/* ===========================================================================
   Yaz marketing site — design system v2
   Direction: "App Store style" product landing, Flat Design.
   Theme: explicit light/dark via [data-theme] on <html>; LIGHT is the default.
   Brand: deep-jade accent on warm off-white neutrals (harmonizes with the
   cream+jade app screenshots). Typeface: Plus Jakarta Sans.
   =========================================================================== */

/* ----------------------------------------------- tokens: LIGHT (default) */
:root,
[data-theme="light"] {
  --bg: #fbfaf7;
  --bg-2: #f3f0e9;
  --surface: #ffffff;
  --surface-2: #faf8f3;

  --ink: #16150f;
  --ink-2: #5b564c;
  --ink-3: #938c7f;

  --line: #ebe6da;
  --line-2: #ddd6c8;

  --accent: #1b5e54;
  --accent-press: #154a42;
  --accent-weak: #e7efec;
  --accent-ink: #134b43;
  --on-accent: #ffffff;

  --gold: #c2702a;
  --gold-weak: #f6ead8;
  --danger: #c0392b;

  --shadow-frame: 0 30px 60px -28px rgba(24, 23, 15, 0.34),
    0 10px 24px -18px rgba(24, 23, 15, 0.3);
  --shadow-pop: 0 14px 40px -16px rgba(24, 23, 15, 0.22);
  --shadow-header: 0 1px 0 var(--line), 0 6px 20px -16px rgba(24, 23, 15, 0.4);

  color-scheme: light;
}

/* ----------------------------------------------- tokens: DARK (toggle) */
[data-theme="dark"] {
  --bg: #0d0f0e;
  --bg-2: #121413;
  --surface: #16191700;
  --surface: #161917;
  --surface-2: #1c1f1d;

  --ink: #f2f1ec;
  --ink-2: #a9a499;
  --ink-3: #6f6a60;

  --line: #262a27;
  --line-2: #353a36;

  --accent: #43b79f;
  --accent-press: #5cc7b1;
  --accent-weak: #15241f;
  --accent-ink: #8fe0ce;
  --on-accent: #07140f;

  --gold: #e0a056;
  --gold-weak: #2a2113;
  --danger: #e0584f;

  --shadow-frame: 0 30px 70px -24px rgba(0, 0, 0, 0.75),
    0 8px 24px -16px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 14px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-header: 0 1px 0 var(--line), 0 6px 20px -16px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

:root {
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
  --narrow: 720px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: 70px;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font-family: inherit;
}
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.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;
}

/* -------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding-block: clamp(60px, 9vw, 116px);
}
.section.alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .amh {
  font-weight: 800;
  letter-spacing: 0;
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}
.h-section {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 14px;
  max-width: 20ch;
}
.lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.9vw, 18.5px);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.6;
}
.center {
  text-align: center;
}
.center .h-section,
.center .lead {
  margin-inline: auto;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding-inline: 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-press);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--sm {
  height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid color-mix(in srgb, var(--on-accent) 45%, transparent);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-header);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand .amharic {
  color: var(--ink-3);
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
/* current section (scroll-spy) or current page — colour only, no background */
.nav-link.active {
  color: var(--accent);
}
/* the CTA inside .nav is only for the mobile drawer; on desktop the
   .header-tools button is the single visible CTA */
.nav > .btn {
  display: none;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* keep the CTA in the cluster, then push the theme toggle to the far-right
   end, set a little apart on its own */
.header-tools > .btn {
  order: 1;
}
.header-tools > .nav-toggle {
  order: 3;
}
.theme-toggle {
  order: 2;
  margin-left: 6px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}
.theme-toggle .i-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .i-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .i-moon {
  display: block;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
}

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto 30%;
  height: 720px;
  background: radial-gradient(
      52% 60% at 70% 18%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 72%
    ),
    radial-gradient(
      46% 56% at 30% 0%,
      color-mix(in srgb, var(--gold) 12%, transparent),
      transparent 66%
    );
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5.6vw, 60px);
  letter-spacing: -0.035em;
  margin-top: 18px;
}
.hero h1 .hl {
  color: var(--accent);
}
.hero .lead {
  margin-top: 20px;
  max-width: 46ch;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-trust svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex: none;
}

/* ---------------------------------------------- signup (shared) */
.signup {
  margin-top: 26px;
  max-width: 470px;
}
.signup-row {
  display: flex;
  gap: 10px;
}
.signup-field {
  flex: 1;
}
.signup input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.signup input::placeholder {
  color: var(--ink-3);
}
.signup input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.signup input[aria-invalid="true"] {
  border-color: var(--danger);
}
.signup .btn {
  height: 50px;
  flex: none;
}
.signup-note {
  margin-top: 11px;
  font-size: 13px;
  color: var(--ink-3);
  min-height: 18px;
}
.signup-note[data-state="error"] {
  color: var(--danger);
  font-weight: 600;
}
.signup-note[data-state="success"] {
  color: var(--accent);
  font-weight: 600;
}
.signup-success {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--accent-weak);
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-lg);
  max-width: 470px;
  margin-top: 26px;
}
.signup-success[data-show="true"] {
  display: flex;
  animation: pop 0.3s var(--ease-out);
}
.signup-success .check {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--accent);
  display: grid;
  place-items: center;
}
.signup-success .check svg {
  width: 21px;
  height: 21px;
  stroke: var(--on-accent);
}
.signup-success strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.signup-success span {
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ----------------------------------------------- device frames */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  position: relative;
  flex: none;
  width: clamp(186px, 21.5vw, 242px); /* both phones share ONE size */
  border-radius: 42px;
  background: #0c0d0b;
  padding: 8px;
  box-shadow: var(--shadow-frame);
}
[data-theme="dark"] .phone {
  background: #2a2e2b;
}
.phone::before {
  /* status pill / Dynamic Island — on both phones */
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 18px;
  background: #0c0d0b;
  border-radius: var(--r-pill);
  z-index: 2;
}
[data-theme="dark"] .phone::before {
  background: #2a2e2b;
}
.phone img {
  width: 100%;
  height: auto; /* keep the screenshot's aspect ratio (HTML has height attr) */
  border-radius: 34px;
  display: block;
}
/* two equal phones, fanned and tilted toward each other; the front one (the
   library) sits slightly forward and to the right, the back one peeks left */
.phone--ghost {
  transform: rotate(-9deg) translateY(16px);
  margin-right: -46px;
  z-index: 1;
}
.phone--primary {
  transform: rotate(5deg);
  z-index: 2;
}

/* browser window frame */
.browser {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.browser-dots {
  display: flex;
  gap: 7px;
}
.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}
.browser-url {
  flex: 1;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  max-width: 360px;
}
.browser-url svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent);
}
.browser img {
  width: 100%;
  height: auto; /* keep the screenshot's aspect ratio (HTML has height attr) */
  display: block;
}

/* skeleton shimmer shown inside the device/browser frame while the screenshot
   loads — replaces the bare black/empty box with a soft animated placeholder.
   main.js adds .is-loaded once the image has decoded. */
.shot {
  background-color: var(--bg-2);
  background-image: linear-gradient(
    100deg,
    transparent 28%,
    color-mix(in srgb, var(--surface) 85%, transparent) 46%,
    color-mix(in srgb, var(--surface) 85%, transparent) 54%,
    transparent 72%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: shotShimmer 1.5s ease-in-out infinite;
}
.shot.is-loaded {
  animation: none;
  background-image: none;
  background-color: transparent;
}
@keyframes shotShimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shot {
    animation: none;
  }
}

/* --------------------------------------------------- sources strip */
.sources {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
.sources-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-block: 22px;
}
.sources-inner .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.src {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-2);
}
.src .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* --------------------------------------------------- feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.fcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.fcard:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.fcard .ic {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-weak);
  margin-bottom: 16px;
}
.fcard .ic svg {
  width: 23px;
  height: 23px;
  stroke: var(--accent);
}
.fcard .ic.gold {
  background: var(--gold-weak);
}
.fcard .ic.gold svg {
  stroke: var(--gold);
}
.fcard h3 {
  font-size: 18.5px;
  font-weight: 700;
}
.fcard p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* --------------------------------------------------- split showcase */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
.split-copy .feat-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.feat-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.feat-item .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-weak);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.feat-item .tick svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
}
.feat-item b {
  font-size: 15.5px;
  color: var(--ink);
}
.feat-item span {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* --------------------------------------------------- how to use */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.howto-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
}
.howto-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-weak);
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
}
.howto-card .tag svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
}
.howto-card > h3 {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
}
.howto-steps {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.howto-steps .beta-step p {
  font-size: 14px;
}
.howto-card .note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.howto-card .note strong {
  color: var(--ink);
}

/* --------------------------------------------------- download & install */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.dl-card .dl-ic {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-weak);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.dl-card .dl-ic svg {
  width: 25px;
  height: 25px;
  stroke: var(--accent);
}
.dl-card h3 {
  font-size: 19px;
  font-weight: 700;
}
.dl-card .sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.dl-card .btn {
  margin-top: 18px;
}
.dl-card .btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.dl-steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 11px;
}
.dl-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  counter-increment: step;
}
.dl-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.dl-steps code,
.dl-card .dl-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
}
.dl-card .dl-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.dl-latest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-weak);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: var(--r-pill);
}
.dl-foot {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.dl-steps .grow,
.dl-card .grow {
  margin-top: auto;
}

/* --------------------------------------------------- how sync */
.sync-flow {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}
.sync-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}
.sync-node .ic {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-weak);
}
.sync-node .ic svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}
.sync-node.mid .ic {
  background: var(--accent);
}
.sync-node.mid .ic svg {
  stroke: var(--on-accent);
}
.sync-node h4 {
  font-size: 16px;
  font-weight: 700;
}
.sync-node p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.sync-arrow {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}
.sync-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}
.sync-arrow .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.sync-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.sync-point h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
}
.sync-point h4 svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex: none;
}
.sync-point p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* --------------------------------------------------- beta CTA */
.beta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.beta-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -55% 42%;
  height: 340px;
  background: radial-gradient(
    50% 60% at 50% 50%,
    var(--accent-weak),
    transparent 70%
  );
  pointer-events: none;
}
.beta-card .inner,
.beta-steps {
  position: relative;
  z-index: 1;
}
.beta-steps {
  display: grid;
  gap: 14px;
}
.beta-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.beta-step .n {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.beta-step b {
  font-size: 15px;
  color: var(--ink);
}
.beta-step p {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.platform-pills {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.platform-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.platform-pills svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
}

/* --------------------------------------------------- FAQ */
.faq {
  margin-top: 40px;
  max-width: var(--narrow);
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .chev {
  flex: none;
  width: 22px;
  height: 22px;
  stroke: var(--ink-3);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary .chev {
  transform: rotate(180deg);
}
.faq .answer {
  padding: 0 4px 20px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 64ch;
}
.faq .answer a {
  font-weight: 600;
}

/* --------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 54px 38px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand {
  font-size: 20px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
  max-width: 34ch;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 0;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-bottom .amh-note {
  font-weight: 600;
}

/* --------------------------------------------- legal/doc pages */
.doc {
  max-width: var(--narrow);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 80px);
}
.doc .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.doc .back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.03em;
}
.doc .updated {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}
.doc .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-2);
}
.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 44px;
}
.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 26px;
}
.doc p,
.doc li {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.doc ul,
.doc ol {
  margin-top: 8px;
  padding-left: 22px;
}
.doc strong {
  color: var(--ink);
}
.doc .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-top: 22px;
}
.doc .panel h2,
.doc .panel h3 {
  margin-top: 0;
}
.doc .panel.accent {
  background: var(--accent-weak);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
}
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.doc .toc {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
}
.doc .toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc .toc a {
  font-weight: 600;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14.5px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 800;
}
.data-table td {
  color: var(--ink-2);
}
.data-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------- reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead,
  .signup,
  .signup-success {
    margin-inline: auto;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    min-height: 0;
    margin-bottom: 8px;
  }
  .phone--ghost {
    display: none;
  }
  .phone--primary {
    transform: none; /* upright single phone on mobile */
  }
  .split {
    grid-template-columns: 1fr;
  }
  .howto-grid {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .split-media {
    max-width: 460px;
    margin-inline: auto;
  }
  .sync-flow {
    grid-template-columns: 1fr;
  }
  .sync-arrow {
    transform: rotate(90deg);
    padding-block: 4px;
  }
  .beta-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav,
  .header-tools .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
    box-shadow: var(--shadow-pop);
  }
  .nav.open .nav-link {
    padding: 12px;
    font-size: 16px;
  }
  .nav.open .btn {
    display: inline-flex;
    margin-top: 8px;
  }
  .features-grid,
  .sync-points {
    grid-template-columns: 1fr;
  }
  .signup-row {
    flex-direction: column;
  }
  .signup .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
