:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #60646c;
  --line: #ddd8cf;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #f0f5f1;
  --accent: #17645d;
  --accent-strong: #0f413d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 58%, #f3f5f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

main {
  flex: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 28px;
}

.brand {
  font-family: "futura-pt", "Futura PT", Futura, "Trebuchet MS", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 48px;
  align-items: end;
  padding: 62px 0 42px;
  border-top: 1px solid var(--line);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.app-type {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.8vw, 76px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.hero p:not(.eyebrow),
.simple-page p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.hero-note {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
}

.hero-note span {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.apps {
  display: grid;
  gap: 18px;
  padding: 18px 0 74px;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.app-visual {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--soft);
  text-decoration: none;
}

.app-visual picture img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.app-visual:hover picture img {
  transform: scale(1.025);
}

.app-icon {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.app-content {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.app-content p:not(.app-type) {
  margin: 18px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  border-color: #c8c1b5;
  background: #f8f7f3;
  box-shadow: 0 10px 24px rgba(20, 24, 27, 0.08);
  transform: translateY(-1px);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: #082f2c;
  background: #082f2c;
  color: #ffffff;
}

.button:focus-visible {
  outline: 3px solid rgba(23, 100, 93, 0.22);
  outline-offset: 3px;
}

.narrow,
.narrow-content {
  width: min(780px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.simple-page {
  padding: 90px 0 140px;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.form-field label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 100, 93, 0.16);
  outline: none;
}

.contact-form .button {
  justify-self: start;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .site-header,
  .site-footer,
  main,
  .narrow,
  .narrow-content {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 24px 0 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 34px;
  }

  .hero p:not(.eyebrow),
  .simple-page p {
    font-size: 18px;
  }

  .simple-page {
    padding: 0 0 40px;
  }

  .contact-form {
    margin-top: 28px;
  }

  .apps {
    padding-bottom: 54px;
  }

  .app-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-visual picture img {
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 0;
  }

  .app-content {
    min-height: 0;
    padding: 22px;
  }
}

@media (max-width: 425px) {
  .site-header {
    gap: 16px;
  }

  .brand {
    font-size: 20px;
  }

  nav {
    gap: 14px;
  }
}
