  * { box-sizing: border-box; }
  .ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
  :root {
    --bg-dark: #fbf5ee;
    --bg-dark-2: #ffffff;
    --bg-card: #ffffff;
    --border-dark: rgba(20,9,11,0.08);
    --border-dark-strong: rgba(20,9,11,0.16);
    --fg-light: #14090b;
    --fg-light-muted: rgba(20,9,11,0.66);
    --fg-light-faint: rgba(20,9,11,0.6);
    --accent-orange: #ea580c;
    --accent-orange-2: #f59e0b;
    --accent-burgundy: #5c0d1f;
    --accent-burgundy-2: #8a1838;
    --accent-burgundy-50: #f7e8ec;
  }
  html, body { margin: 0; padding: 0; background: var(--bg-dark); color: var(--fg-light); font-family: var(--font-jakarta); -webkit-font-smoothing: antialiased; }
  img { display: block; max-width: 100%; }
  a { color: inherit; }

  body::before {
    content: "";
    position: fixed; inset: 0;
    background:
      radial-gradient(900px 600px at 50% -10%, rgba(92,13,31,0.10), transparent 60%),
      radial-gradient(700px 500px at 80% 20%, rgba(150,30,60,0.16), transparent 65%),
      radial-gradient(600px 500px at 10% 60%, rgba(150,30,60,0.10), transparent 70%);
    pointer-events: none; z-index: 0;
  }
  main, nav, footer { position: relative; z-index: 1; }

  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px;
  }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand img { width: 24px; height: 24px; }
  .brand .name { font-weight: 700; font-size: 18px; letter-spacing: -0.3px; color: var(--fg-light); }
  .nav-right { display: flex; align-items: center; gap: 24px; }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a { color: var(--fg-light-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
  .nav-links a:hover { color: var(--fg-light); }
  .nav-cta {
    background: var(--fg-light); color: var(--bg-dark);
    border: none; border-radius: 9999px;
    height: 36px; padding: 0 18px;
    font-family: inherit; font-weight: 600; font-size: 13.5px;
    letter-spacing: -0.1px;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: transform 120ms ease, opacity 120ms ease;
  }
  .nav-cta:hover { opacity: 0.9; }
  .nav-cta .arr { display: inline-block; transition: transform 160ms ease; }
  .nav-cta:hover .arr { transform: translateX(2px); }

  .wrap { max-width: none; margin: 0 auto; padding: 0 28px; }

  .hero {
    text-align: center;
    padding-block: 8px 40px;
  }
  .pill-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid rgba(138,24,56,0.28);
    background:
      linear-gradient(180deg, rgba(247,232,236,0.9) 0%, rgba(247,232,236,0.55) 100%);
    color: var(--accent-burgundy);
    border-radius: 9999px;
    padding: 7px 16px 7px 13px;
    font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 18px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 18px -10px rgba(92,13,31,0.4);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    max-width: 100%;
  }
  .pill-eyebrow-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
  }
  .pill-eyebrow .dot {
    position: relative;
    display: inline-block;
    width: 7px; height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--accent-burgundy);
    box-shadow: 0 0 0 0 rgba(150,30,60,0.5);
  }
  .pill-eyebrow .dot::after {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%; background: var(--accent-burgundy);
    animation: pillPulse 2.4s ease-out infinite;
  }
  @keyframes pillPulse {
    0%   { box-shadow: 0 0 0 0 rgba(150,30,60,0.45); opacity: 1; }
    70%  { box-shadow: 0 0 0 7px rgba(150,30,60,0); opacity: 1; }
    100% { box-shadow: 0 0 0 0 rgba(150,30,60,0); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pill-eyebrow .dot::after { animation: none; }
  }
  .btn-app > .ic { width: 22px !important; height: 22px !important; }
  .feature .icon > .ic { width: 18px !important; height: 18px !important; }
  .chip > .ic { width: 14px !important; height: 14px !important; }

  .h-display {
    font-size: clamp(40px, 5.6vw, 76px);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -2.4px;
    color: var(--fg-light);
    margin: 0 auto 16px;
    max-width: 900px;
    text-wrap: balance;
  }
  .h-display em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-burgundy);
    letter-spacing: -2px;
  }
  .lede {
    font-size: 16px; line-height: 24px;
    color: var(--fg-light-muted);
    max-width: 500px;
    margin: 0 auto 22px;
    text-wrap: pretty;
  }

  .app-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
  /* Official store badges — Apple & Google supplied artwork (do not recolor/distort) */
  .badge-app {
    display: inline-flex; align-items: center;
    text-decoration: none;
    transition: transform 120ms ease, opacity 120ms ease;
  }
  .badge-app:hover { transform: translateY(-1px); opacity: 0.85; }
  /* Google's generic badge ships with extra internal padding, so size it taller
     to make the logos optically match the App Store badge height. */
  .badge-app img { display: block; width: auto; }
  .badge-app .badge-ic.apple  { height: 40px; }
  .badge-app .badge-ic.google { height: 60px; }
  .cta-note {
    margin-top: 12px;
    color: var(--fg-light-faint);
    font-size: 12.5px;
  }

  /* ---------- DEVICES STAGE (3 layered phones) ---------- */
  .stage {
    position: relative;
    margin: 36px auto 0;
    height: clamp(420px, 64vh, 720px);
    display: flex; align-items: center; justify-content: center;
  }
  .device {
    position: relative;
    display: flex;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 8px;
    box-shadow:
      0 0 0 2px #2a2a2a,
      0 30px 60px -10px rgba(0, 0, 0, 0.6),
      0 50px 100px -20px rgba(234,88,12,0.1);
  }
  .device::before {
    content: "";
    position: absolute;
    top: 16px; left: 50%; transform: translateX(-50%);
    width: 86px; height: 24px;
    background: #000;
    border-radius: 14px;
    z-index: 5;
  }
  .device-screen {
    border-radius: 32px;
    overflow: hidden;
    height: 100%; width: auto;
    background: #000;
  }
  .device-screen img { display: block; height: 100%; width: auto; background: #000; }

  .stage .device.center { height: 100%; z-index: 3; }
  .stage .device.left {
    position: absolute;
    height: 86%;
    transform: translateX(-110%) rotate(-12deg);
    z-index: 2;
    opacity: 0.95;
  }
  .stage .device.right {
    position: absolute;
    height: 86%;
    transform: translateX(110%) rotate(12deg);
    z-index: 2;
    opacity: 0.95;
  }
  /* Side devices are scaled to 86%, so scale their island to match */
  .stage .device.left::before,
  .stage .device.right::before {
    width: 74px; height: 21px;
  }

  .chip {
    position: absolute; z-index: 6;
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 12.5px; font-weight: 700;
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4);
    white-space: nowrap;
  }
  .chip-rating-orange { background: var(--accent-orange); color: #fff7ed; }
  .chip-rating-orange .num { font-size: 14px; }
  .chip-rating-amber { background: #f59e0b; color: #451a03; }
  .chip-dark {
    background: linear-gradient(180deg, #c01f49 0%, #961e3c 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.24);
  }
  .chip-dark svg { color: #4ade80; }
  .chip.score-1 { top: 10%; left: 22%; }
  .chip.score-2 { top: 60%; left: 5%; right: auto; padding-right: 14px; }
  .chip.added { top: 22%; left: 62%; right: auto; bottom: auto; transform: translateX(-50%); }

  .features {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .feature {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fdf7f0 100%);
    padding: 32px 28px;
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transition: transform 480ms cubic-bezier(.2,.7,.2,1), box-shadow 480ms cubic-bezier(.2,.7,.2,1), border-color 480ms ease, background 480ms ease;
  }
  .feature::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(220px 140px at 90% -10%, rgba(150,30,60,0.10), transparent 70%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 480ms ease;
  }
  .feature:hover::before { opacity: 1; }
  .feature::after {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-burgundy), var(--accent-burgundy-2));
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: center;
    transition: opacity 480ms ease, transform 480ms cubic-bezier(.2,.7,.2,1);
  }
  .feature:hover {
    transform: translateY(-4px);
    border-color: var(--accent-burgundy-2);
    box-shadow: 0 24px 48px -20px rgba(92,13,31,0.28);
  }
  .feature:hover::after { opacity: 1; transform: scaleY(1); }
  .feature .icon { transition: transform 480ms cubic-bezier(.2,.7,.2,1), background 480ms ease, border-color 480ms ease; }
  .feature:hover .icon { transform: scale(1.06); }
  .feature > * { position: relative; z-index: 1; }
  .feature .num { display: none; }
  .feature .icon {
    position: relative; top: auto; left: auto;
    margin: 0;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--accent-burgundy-50);
    border: 1px solid rgba(92,13,31,0.18);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent-burgundy);
    margin-bottom: 0;
  }
  .feature .icon > .ic { width: 22px !important; height: 22px !important; }
  .feature h2 {
    font-size: 20px; font-weight: 700;
    color: var(--fg-light);
    margin: 0;
    letter-spacing: -0.4px;
  }
  .feature p {
    font-size: 14.5px; line-height: 22px;
    color: var(--fg-light-muted);
    margin: 0;
  }
  .feature .learn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--accent-burgundy);
    text-decoration: none;
    justify-content: center;
  }
  .feature .learn .arrow {
    transition: transform 360ms cubic-bezier(.2,.7,.2,1);
  }
  .feature:hover .learn .arrow { transform: translateX(5px); }

  footer.foot {
    margin-top: 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-dark);
  }
  .foot-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--fg-light-faint);
  }
  .foot-row .links { display: flex; gap: 18px; }
  .foot-row a { color: var(--fg-light-faint); text-decoration: none; }
  .foot-row a:hover { color: var(--fg-light); }

  /* Legal / long-form content pages (privacy, terms) */
  .legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 28px 80px;
  }
  .legal .eyebrow {
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--accent-burgundy);
    margin: 0 0 10px;
  }
  .legal h1 {
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.04; font-weight: 800; letter-spacing: -1.4px;
    margin: 0 0 8px; color: var(--fg-light); text-wrap: balance;
  }
  .legal .updated { font-size: 14px; color: var(--fg-light-faint); margin: 0 0 32px; }
  .legal h2 {
    font-size: 21px; font-weight: 700; letter-spacing: -0.4px;
    margin: 40px 0 12px; color: var(--fg-light);
  }
  .legal h3 {
    font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
    margin: 24px 0 8px; color: var(--fg-light);
  }
  .legal p, .legal li {
    font-size: 15.5px; line-height: 1.65; color: var(--fg-light-muted);
    text-wrap: pretty;
  }
  .legal p { margin: 0 0 14px; }
  .legal ul { margin: 0 0 16px; padding-left: 22px; }
  .legal li { margin: 0 0 8px; }
  .legal a { color: var(--accent-burgundy); text-decoration: underline; text-underline-offset: 2px; }
  .legal a:hover { color: var(--accent-burgundy-2); }
  .legal strong { color: var(--fg-light); font-weight: 600; }
  .legal .lead {
    font-size: 17px; line-height: 1.6; color: var(--fg-light);
    margin: 0 0 28px;
  }
  .legal hr { border: none; border-top: 1px solid var(--border-dark); margin: 40px 0; }

  /* 404 / not-found page */
  .notfound {
    min-height: 70vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 64px 28px;
  }
  .notfound .code {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic; font-weight: 400;
    font-size: clamp(96px, 18vw, 200px); line-height: 0.9;
    color: var(--accent-burgundy);
    letter-spacing: -4px; margin: 0;
  }
  .notfound h1 {
    font-size: clamp(24px, 3.6vw, 34px); font-weight: 800;
    letter-spacing: -0.8px; margin: 12px 0 8px; color: var(--fg-light);
  }
  .notfound p {
    font-size: 16px; line-height: 1.6; color: var(--fg-light-muted);
    max-width: 420px; margin: 0 0 28px; text-wrap: pretty;
  }
  .notfound .home-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--fg-light); color: var(--bg-dark);
    border-radius: 9999px; height: 42px; padding: 0 22px;
    font-weight: 600; font-size: 14.5px; letter-spacing: -0.1px;
    text-decoration: none;
    transition: opacity 120ms ease;
  }
  .notfound .home-link:hover { opacity: 0.9; }

  @media (max-width: 860px) {
    .legal { padding: 40px 24px 64px; }
    .notfound { padding: 48px 24px; }
    .nav { padding: 18px 24px; }
    .nav-links { display: none; }
    .nav-cta { height: 34px; padding: 0 14px; font-size: 13px; }
    .wrap { padding: 0 24px; }
    .hero { padding-block: 16px 40px; }
    .h-display { letter-spacing: -1.6px; }
    .h-display em { letter-spacing: -1px; }
    .stage { height: 460px; }
    .stage .device.left { transform: translateX(-78%) rotate(-12deg); height: 76%; }
    .stage .device.right { transform: translateX(78%) rotate(12deg); height: 76%; }
    .chip.score-1 { left: 8%; }
    .chip.score-2 { left: 2%; right: auto; }
    .features { grid-template-columns: 1fr; }
  }
