:root {
  --porcelain: #f4f5f1;
  --paper: #fffefa;
  --ink: #202521;
  --secondary: #697069;
  --moss: #53685a;
  --moss-dark: #36483d;
  --oxblood: #8c4544;
  --brass: #a27d48;
  --rule: #d9ddd7;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shell: min(1180px, calc(100vw - 40px));
  --control-height: 54px;
  --control-radius: 15px;
  --control-ease: 180ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--porcelain);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, select { font: inherit; }
img, video { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding-block: clamp(84px, 11vw, 150px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: white;
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

.site-header {
  width: var(--shell);
  min-height: 78px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-facet {
  width: 25px;
  height: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: rotate(45deg);
  overflow: hidden;
  border: 1px solid var(--moss-dark);
}
.brand-facet i:nth-child(1) { background: var(--moss); }
.brand-facet i:nth-child(2) { background: var(--brass); }
.brand-facet i:nth-child(3) { background: var(--paper); }
.brand-facet i:nth-child(4) { background: var(--oxblood); }

.header-actions { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 38px); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: color var(--control-ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--control-ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.language-picker { position: relative; z-index: 30; }
.language-trigger {
  min-width: 176px;
  height: 44px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--rule) 90%, var(--secondary));
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 5px 16px rgba(20, 27, 22, 0.035);
  font: 680 13px/1 var(--body);
  text-align: left;
  cursor: pointer;
  transition: color var(--control-ease), background var(--control-ease), border-color var(--control-ease), box-shadow var(--control-ease), transform var(--control-ease);
}
.language-trigger:hover {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--moss) 55%, var(--rule));
  box-shadow: 0 8px 22px rgba(20, 27, 22, 0.09), 0 1px 0 rgba(255, 255, 255, 0.58) inset;
  transform: translateY(-1px);
}
.language-trigger:active { transform: translateY(0); }
.language-trigger:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--brass) 76%, var(--rule));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 27%, transparent);
}
.language-picker.is-open .language-trigger {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--brass) 72%, var(--rule));
}
.control-icon,
.language-chevron {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.control-icon { width: 18px; height: 18px; color: var(--moss); }
.language-chevron { width: 14px; height: 14px; color: var(--secondary); transition: transform var(--control-ease); }
.language-picker.is-open .language-chevron { transform: rotate(180deg); }
.language-trigger-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-trigger-code { display: none; font: 720 11px/1 var(--utility); letter-spacing: 0.04em; white-space: nowrap; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  max-height: calc(100svh - 98px);
  padding: 10px;
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--rule) 88%, var(--ink));
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(20, 27, 22, 0.2), 0 1px 0 rgba(255, 255, 255, 0.62) inset;
  transform-origin: top right;
  animation: language-menu-enter 160ms var(--control-ease) both;
}
.language-menu[hidden] { display: none; }
.language-menu-title {
  display: block;
  padding: 8px 10px 10px;
  color: var(--secondary);
  font: 720 10px/1 var(--utility);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.language-options { display: grid; gap: 2px; }
.language-option {
  min-height: 44px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  transition: background var(--control-ease), color var(--control-ease);
}
.language-option:hover, .language-option:focus-visible { background: color-mix(in srgb, var(--moss) 11%, transparent); }
.language-option:focus-visible { outline-offset: -2px; }
.language-option-code { color: var(--secondary); font: 650 10px/1 var(--utility); letter-spacing: 0.025em; }
.language-option-check { color: transparent; font-size: 13px; text-align: center; }
.language-option[aria-checked="true"] { color: var(--moss-dark); background: color-mix(in srgb, var(--moss) 13%, transparent); }
.language-option[aria-checked="true"] .language-option-check { color: var(--moss); }

@keyframes language-menu-enter {
  from { transform: translateY(-5px) scale(0.985); }
  to { transform: translateY(0) scale(1); }
}

.hero {
  min-height: min(760px, calc(100svh - 78px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.48fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding-block: clamp(54px, 7vw, 92px);
}

.hero-copy { padding-bottom: clamp(0px, 2vw, 26px); }

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.hero h1 em { color: var(--moss-dark); font-weight: 400; }

.hero-intro {
  max-width: 630px;
  margin: 32px 0 0;
  color: var(--secondary);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 32px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 11px 0 21px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--control-radius);
  box-shadow: 0 10px 26px rgba(20, 27, 22, 0.15), 0 1px 0 rgba(255, 255, 255, 0.13) inset;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: color var(--control-ease), background var(--control-ease), border-color var(--control-ease), box-shadow var(--control-ease), transform var(--control-ease);
}
.primary-action-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: #f0d19c;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}
.primary-action-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary-action:hover {
  background: var(--moss-dark);
  border-color: var(--moss-dark);
  box-shadow: 0 13px 31px rgba(20, 27, 22, 0.21), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-1px);
}
.primary-action:active { transform: translateY(0); }

.hero-demo {
  position: relative;
  width: min(100%, 326px);
  margin: 0 0 0 auto;
}
.hero-demo::before {
  content: none;
}

.display-frame {
  width: 100%;
  padding: clamp(6px, 0.7vw, 9px);
  background: #151816;
  border: 1px solid #555b57;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.16) inset,
    0 26px 70px rgba(20, 27, 22, 0.22);
}
.display-frame-phone { border-radius: clamp(30px, 4.6vw, 50px); }
.display-frame-screen {
  width: 100%;
  overflow: hidden;
  background: #f4f5f1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(24px, 3.9vw, 42px);
}
.display-frame-hero {
  display: block;
}
.display-frame-hero .display-frame-screen {
  position: relative;
  display: block;
  aspect-ratio: 201 / 437;
}
.display-frame img,
.display-frame video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.display-frame-hero .demo-poster,
.display-frame-hero video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center top;
}
.display-frame-hero video {
  pointer-events: none;
}
.display-frame-hero .demo-poster {
  display: none;
}
.display-frame-hero.is-static .demo-poster {
  display: block;
}
.display-frame-hero.is-static video {
  display: none;
}

/*
 * The localized recordings contain the full Simulator and physical device.
 * Crop inside the stationary native device screen (x=82…442, y=118…901 in
 * the 524×1000 source). The small inset removes the captured device bezel so
 * the exact same CSS frame used by the feature showcase can provide the only
 * visible bezel. The localized video bytes remain unchanged.
 */
.display-frame-hero.has-native-simulator-capture {
  overflow: hidden;
}
.display-frame-hero.has-native-simulator-capture .display-frame-screen {
  overflow: hidden;
}
.display-frame-hero.has-native-simulator-capture video,
.display-frame-hero.has-native-simulator-capture .demo-poster {
  position: absolute;
  top: -15.076%;
  left: -22.778%;
  width: 145.556%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.feature-showcase {
  color: #f2f3ee;
  background: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--ink) 85%, white);
}

.feature-showcase-layout {
  min-height: 780px;
  padding-block: clamp(74px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.62fr);
  align-items: center;
  gap: clamp(54px, 10vw, 150px);
}

.feature-showcase-copy { min-width: 0; }

.feature-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-tab {
  height: 68px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  color: #aeb7af;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  text-align: left;
  font: 700 11px/1.3 var(--utility);
  letter-spacing: 0.075em;
  cursor: pointer;
  transition: color var(--control-ease), background var(--control-ease), border-color var(--control-ease), box-shadow var(--control-ease), transform var(--control-ease);
}
.feature-tab:hover {
  color: white;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.feature-tab:active { transform: translateY(0); }
.feature-tab[aria-selected="true"] {
  color: var(--ink);
  background: #f2f3ee;
  border-color: #f2f3ee;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.feature-tab:focus-visible { outline-color: #e4c491; outline-offset: 3px; }

.feature-copy-panel {
  max-width: 680px;
  padding-top: clamp(46px, 7vw, 82px);
}
.feature-copy-panel h2 {
  margin: 0;
  font: 600 clamp(48px, 6vw, 78px)/0.98 var(--display);
  letter-spacing: -0.05em;
}
.feature-copy-panel p {
  max-width: 570px;
  margin: 25px 0 0;
  color: #b9c1ba;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.feature-media {
  width: min(100%, 326px);
  margin: 0 auto;
}
.display-frame-feature {
  background: #0f1210;
  border-color: #68706a;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.18) inset,
    0 34px 84px rgba(0, 0, 0, 0.48);
}
.feature-media .display-frame-feature img {
  aspect-ratio: 201 / 437;
  object-position: center top;
  opacity: 1;
  transition: opacity 150ms ease;
}
.display-frame-feature img.is-switching { opacity: 0.1; }

.site-footer { padding-block: 42px; color: #d9ded9; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; }
.site-footer strong { color: white; font: 600 22px/1 var(--display); }
.site-footer p { margin: 7px 0 0; color: #aeb6af; font-size: 12px; }
.site-footer > .footer-grid > p { max-width: 430px; margin: 0 0 0 auto; text-align: right; }
.site-footer a { font-size: 13px; font-weight: 700; }
.site-footer a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

.product-footer { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.product-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--oxblood);
  font: 700 12px/1.2 var(--utility);
  letter-spacing: 0.15em;
}

.legal { max-width: 900px; }
.legal h1 {
  max-width: 760px;
  margin: 0;
  font: 600 clamp(42px, 5.5vw, 72px)/1.02 var(--display);
  letter-spacing: -0.045em;
}
.legal-date { color: var(--secondary); font: 600 12px/1.4 var(--utility); }
.policy-notice { margin: 42px 0; padding: 22px 24px; color: #294034; background: #e4ede6; border-left: 5px solid var(--moss); font-weight: 650; }
.legal-intro { max-width: 760px; margin: 0 0 64px; color: var(--secondary); font-size: 20px; }
.legal-sections { border-top: 1px solid var(--ink); }
.legal-sections section { display: grid; grid-template-columns: 240px 1fr; gap: 45px; padding: 34px 0; border-bottom: 1px solid var(--rule); }
.legal-sections h2 { margin: 0; font: 600 25px/1.15 var(--display); }
.legal-sections p { margin: 0; color: var(--secondary); }
.contact-panel { margin: 64px 0 0; padding: 30px 34px; background: var(--paper); border: 1px solid var(--rule); }
.contact-panel h2 { margin: 0; font: 600 30px/1.15 var(--display); }
.contact-panel > p { max-width: 680px; margin: 12px 0 24px; color: var(--secondary); }
.contact-card { display: grid; gap: 3px; font-style: normal; }
.contact-card strong { margin-bottom: 3px; font: 600 21px/1.2 var(--display); }
.contact-card a { width: fit-content; color: var(--moss-dark); font-weight: 720; text-underline-offset: 4px; }
.contact-card a:first-of-type { margin-top: 12px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 38px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.text-link { font-weight: 750; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(255px, 0.55fr);
    gap: 42px;
  }
  .hero-demo { width: min(100%, 286px); }
  .hero-demo::before { right: 0; }
  .feature-showcase-layout { grid-template-columns: minmax(0, 1fr) minmax(245px, 0.6fr); gap: 46px; }
  .feature-media { width: min(100%, 286px); }
  .footer-grid { grid-template-columns: 1fr auto; }
  .site-footer > .footer-grid > p { grid-column: 1 / -1; margin: 0; text-align: left; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; grid-template-columns: 1fr auto; gap: 12px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-facet { width: 20px; height: 20px; }
  .header-actions { gap: 13px; }
  .site-nav { gap: 14px; }
  .site-nav a:first-child { display: none; }
  .site-nav a { font-size: 13px; }
  .language-trigger { min-width: 92px; width: 92px; height: 44px; grid-template-columns: 17px 1fr 12px; padding-inline: 11px; gap: 7px; }
  .language-trigger-label { display: none; }
  .language-trigger-code { display: block; }
  .language-menu { width: min(272px, calc(100vw - 28px)); }

  .hero { grid-template-columns: 1fr; padding-block: 58px 70px; }
  .hero h1 { font-size: clamp(48px, 14.8vw, 68px); }
  .hero-intro { margin-top: 25px; font-size: 18px; }
  .hero-actions { align-items: stretch; margin-top: 27px; }
  .primary-action { width: 100%; justify-content: center; }
  .hero-demo { width: min(75vw, 300px); margin: 22px auto 0; }

  .feature-showcase-layout { min-height: 0; grid-template-columns: 1fr; padding-block: 70px 78px; }
  .feature-tabs { order: 0; }
  .feature-tab {
    min-height: 80px;
    height: 80px;
    padding: 0 13px;
    font-size: 12px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
  .feature-copy-panel { padding-top: 42px; }
  .feature-copy-panel h2 { font-size: clamp(46px, 13.5vw, 64px); }
  .feature-copy-panel p { font-size: 18px; }
  .feature-media { width: min(75vw, 300px); margin-top: 4px; }

  .legal-sections section { grid-template-columns: 1fr; gap: 12px; }
  .contact-panel { padding: 25px 22px; }
  .product-footer-row { align-items: baseline; }
}

@media (max-width: 390px) {
  .site-header { gap: 9px; }
  .brand { font-size: 15px; }
  .brand-facet { width: 18px; height: 18px; }
  .language-trigger { width: 96px; min-width: 96px; padding-inline: 9px; }
}

@media (max-width: 480px) {
  .site-nav { display: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --porcelain: #111412;
    --paper: #1a1e1b;
    --ink: #f0f1ec;
    --secondary: #aab1aa;
    --moss: #9bb3a2;
    --moss-dark: #b8cbbd;
    --oxblood: #d88c87;
    --brass: #d3b47d;
    --rule: #343a35;
  }
  .brand-facet { border-color: #bdcabf; }
  .primary-action { color: #111412; background: #f0f1ec; }
  .primary-action:hover { color: #111412; background: #c6d2c8; }
  .primary-action-icon { color: #584421; background: rgba(17, 20, 18, 0.08); border-color: rgba(17, 20, 18, 0.12); }
  .language-trigger { background: var(--paper); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 7px 20px rgba(0, 0, 0, 0.12); }
  .language-trigger:hover { background: var(--paper); box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22); }
  .language-menu { box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48), 0 1px 0 rgba(255, 255, 255, 0.08) inset; }
  .policy-notice { color: #d5e4d8; background: #243129; }
  .display-frame {
    border-color: #747b76;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.2) inset,
      0 28px 74px rgba(0, 0, 0, 0.48);
  }
  .feature-showcase { color: #111412; background: #f0f1ec; }
  .feature-tab { color: #566159; background: rgba(17, 20, 18, 0.035); border-color: rgba(17, 20, 18, 0.18); }
  .feature-tab:hover { color: #111412; }
  .feature-tab[aria-selected="true"] { color: #f0f1ec; background: #111412; border-color: #111412; box-shadow: 0 10px 26px rgba(17, 20, 18, 0.16); }
  .feature-copy-panel p { color: #505a52; }
  .site-footer { color: #111412; background: #f0f1ec; }
  .site-footer strong { color: #111412; }
  .site-footer p, .site-footer > .footer-grid > p { color: #4f5a52; }
  .product-footer { border-top-color: rgba(17, 20, 18, 0.2); }
}

@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 (forced-colors: active) {
  .display-frame { border-color: CanvasText; box-shadow: none; }
  .feature-tab[aria-selected="true"] { border-bottom-color: Highlight; }
}
