:root {
  color-scheme: light dark;
  --ink: #17221f;
  --muted: #5d6965;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --surface-soft: #edf6f3;
  --line: #cbd8d3;
  --brand: #0b4b45;
  --brand-deep: #07352f;
  --teal: #00a99d;
  --teal-dark: #007d75;
  --amber: #f4a621;
  --blue: #1589d7;
  --danger: #b72f28;
  --shadow: 0 22px 56px rgba(6, 48, 43, 0.14);
  --page: min(1320px, calc(100% - 48px));
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: #fff;
  background: var(--brand-deep);
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-deep);
  font-size: 1.18rem;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-control label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.language-control select {
  max-width: 164px;
  min-height: 42px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  border: 1px solid var(--teal-dark);
  border-radius: 6px;
  background: var(--teal-dark);
  font-weight: 760;
  text-decoration: none;
}

.button:hover {
  background: var(--brand);
}

.button.secondary {
  color: var(--brand);
  background: var(--surface);
}

.button svg,
.inline-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 104px));
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  background: #102f2c;
}

.hero-media,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
}

.hero-media img {
  object-fit: cover;
  object-position: center 32%;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(4, 33, 30, 0.72);
}

.hero-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 84px 0 124px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
}

.page-intro .eyebrow {
  color: #805000;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: 7rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #f3faf7;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button {
  min-height: 52px;
  padding-inline: 24px;
  color: #062f2a;
  border-color: #fff;
  background: #fff;
}

.hero-actions .button.secondary {
  color: #fff;
  background: rgba(4, 33, 30, 0.46);
}

.hero-proof {
  margin: 22px 0 0;
  color: #d3e3de;
  font-size: 0.95rem;
}

.section {
  padding: 104px 0;
}

.section.compact {
  padding: 72px 0;
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 48px;
}

.section-heading h2,
.page-intro h1 {
  margin: 0;
  font-size: 4.2rem;
  line-height: 1.02;
}

.section-heading p,
.page-intro > p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.workflow {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.workflow:nth-of-type(even) {
  background: var(--surface-soft);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 7vw;
  align-items: center;
}

.workflow-copy {
  min-width: 0;
  padding-block: 20px;
}

.workflow-media,
.feature-row > * {
  min-width: 0;
}

.workflow-index {
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workflow h2,
.feature-row h2 {
  margin: 12px 0 18px;
  font-size: 3.2rem;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.workflow-copy p,
.feature-row p {
  color: var(--muted);
  font-size: 1.12rem;
}

.product-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #91aaa3;
  border-radius: var(--radius);
  background: #dfe9e5;
  box-shadow: var(--shadow);
}

.product-frame img {
  width: 100%;
  height: auto;
}

.product-frame.tall {
  max-height: 700px;
}

.product-frame.tall img {
  object-fit: cover;
  object-position: top;
}

.principles {
  color: #f6fbf9;
  background: var(--brand-deep);
}

.principles .section-heading .eyebrow {
  color: #ffd17a;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.principle {
  min-height: 260px;
  padding: 34px;
  background: var(--brand-deep);
}

.principle strong {
  display: block;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 1.35rem;
}

.principle p {
  color: #cee0da;
}

.page-intro {
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.page-intro .section-inner {
  max-width: min(1060px, calc(100% - 48px));
}

.feature-list {
  max-width: 1080px;
  margin: 0 auto;
}

.feature-row {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-kicker {
  color: var(--teal-dark);
  font-weight: 800;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.app-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-lockup img {
  width: 116px;
  height: 116px;
  border-radius: 24px;
}

.availability {
  margin: 32px 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-block: 1px solid var(--line);
}

.availability strong,
.availability span {
  display: block;
}

.availability span {
  margin-top: 4px;
  color: var(--muted);
}

.legal-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 110px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 72px;
}

.legal-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

.legal-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--brand);
}

.legal-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.legal-content {
  min-width: 0;
}

.legal-meta {
  margin: 0 0 44px;
  padding-bottom: 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.legal-content section {
  margin: 0 0 44px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
  color: #34423e;
}

.legal-content li + li {
  margin-top: 9px;
}

.contact-band {
  border-top: 1px solid var(--line);
  background: #e7f1ef;
}

.contact-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.language-suggestion {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100% - 40px));
  padding: 18px;
  display: none;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-suggestion[data-visible="true"] {
  display: flex;
}

.language-suggestion p {
  flex: 1;
  margin: 0;
  font-size: 0.94rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.site-footer {
  padding: 64px 0 34px;
  color: #d6e4e0;
  background: #092f2b;
}

.footer-grid {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.7fr);
  gap: 56px;
}

.footer-brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 780;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d6e4e0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-legal {
  width: var(--page);
  margin: 44px auto 0;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9eb6b0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.86rem;
}

.not-found {
  min-height: 65svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found strong {
  display: block;
  color: var(--teal-dark);
  font-size: 5rem;
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 36px, 880px);
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    padding: 16px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav[data-open="true"] {
    display: grid;
  }

  .main-nav a {
    padding: 10px 8px;
  }

  .header-actions .button {
    display: none;
  }

  .workflow-grid,
  .download-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1 {
    font-size: 5.4rem;
  }

  .section-heading h2,
  .page-intro h1 {
    font-size: 3.5rem;
  }

  .workflow h2,
  .feature-row h2 {
    font-size: 2.7rem;
  }

  .workflow:nth-of-type(even) .workflow-copy {
    order: 0;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: auto;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 28px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    top: 64px;
    right: 14px;
    left: 14px;
  }

  .language-control select {
    width: 124px;
  }

  .hero {
    min-height: calc(100svh - 96px);
    align-items: end;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero::after {
    background: rgba(4, 33, 30, 0.76);
  }

  .hero-inner {
    padding: 52px 0 48px;
  }

  .hero h1 {
    font-size: 3.65rem;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 1.08rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .section-heading h2,
  .page-intro h1 {
    font-size: 2.5rem;
  }

  .workflow h2,
  .feature-row h2 {
    font-size: 2.15rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .workflow-grid {
    gap: 32px;
  }

  .feature-row {
    padding: 42px 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .availability {
    grid-template-columns: 1fr;
  }

  .app-lockup {
    align-items: flex-start;
  }

  .app-lockup img {
    width: 82px;
    height: 82px;
  }

  .legal-layout {
    width: calc(100% - 28px);
    padding-top: 52px;
  }

  .contact-band .section-inner,
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 32px 0 28px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 16px;
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 48px;
  }

  .hero-proof {
    margin-top: 14px;
    font-size: 0.86rem;
  }

  .section-heading h2,
  .page-intro h1 {
    font-size: 2.25rem;
  }

  #reading-workflow {
    padding-top: 8px;
  }

  #reading-workflow .workflow-copy {
    padding-top: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef6f3;
    --muted: #b2c2bd;
    --paper: #101816;
    --surface: #17231f;
    --surface-soft: #1b2c27;
    --line: #3b504a;
    --brand: #5cd3c6;
    --brand-deep: #0b312d;
    --teal: #2cc7ba;
    --teal-dark: #27b6aa;
    --shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
  }

  .button {
    color: #051e1b;
  }

  .button.secondary {
    color: var(--ink);
  }

  .page-intro .eyebrow {
    color: #ffc866;
  }

  .legal-content p,
  .legal-content li {
    color: #d6e3df;
  }

  .contact-band {
    background: #19322d;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-nav,
  .language-suggestion {
    display: none;
  }

  .legal-layout {
    display: block;
    width: 100%;
    padding: 0;
  }
}
