/* happyimva.com brand home + 404 (HT-330), the approved "H · Ink & Brass" design:
   the "F · Atelier" layout in ink navy, cool white and brass, set in Geist. No logo
   on the page. Phone layout first; the 12-column desktop grid from 900px. The font
   is self-hosted so the CSP stays 'self' only. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ground: #F5F6F8; --ink: #141C2E; --body: #4A5468; --rule: #DADDE3;
  --cta: #141C2E; --cta-ink: #FFFFFF; --cta-hover: #26314A; --cta-press: #34405A;
  --field: #141C2E; --field-ink: #FFFFFF; --field-soft: #BFC6D4; --field-rule: #2F3A52;
  --navy: #0A0E17; --navy-ink: #F5F6F8; --navy-soft: #9AA3B5; --navy-rule: #232B3B; --footer-edge: transparent;
  --brass: #C9A45E; --sage: #5C9079;

  --sans: Geist, "Helvetica Neue", Arial, sans-serif;
  --gutter: 24px;
  --measure: 1248px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0B0F18; --ink: #EEF1F6; --body: #B4BCCB; --rule: #232B3B;
    --cta: #D8B76E; --cta-ink: #0B0F18; --cta-hover: #E6CA8C; --cta-press: #C9A45E;
    --field: #161F33;
    --navy: #05070C; --navy-ink: #EEF1F6; --footer-edge: #232B3B;
    --brass: #D8B76E; --sage: #7DB39A;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  a[href]:hover { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
}
a[href]:not(.cta):active { opacity: .7; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

/* One centred column; full-bleed bands (the ink field, the footer) put their
   background on the outer element and their content in a .shell. The gutter
   grows to clear a landscape iPhone's notch (viewport-fit=cover). */
.shell {
  width: min(100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), var(--measure));
  margin-inline: auto;
}

/* header: the brand is the name in type, never a logo */
.top { padding-top: 24px; }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; letter-spacing: .02em; }

/* headline type: one face, set tight */
.hero h1, .field h2, .availability h3, .how h2, .tagline { font-weight: 600; text-wrap: balance; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero h1 { max-width: 15ch; font-size: 44px; line-height: 1.06; letter-spacing: -.035em; }
.hero p { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; max-width: 28em; }
.hero .cta { margin-top: 24px; }
.hero .launch-note { margin-top: 14px; font-size: 14px; }
.cta {
  margin-top: 32px; min-height: 56px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cta); color: var(--cta-ink); outline-color: var(--cta);
  font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: .01em;
  transition: background-color .15s ease;
}
@media (hover: hover) { .cta:hover { background: var(--cta-hover); } }
.cta:active { background: var(--cta-press); }
.cta:focus-visible { outline-color: var(--cta); }
.cta svg { flex: none; width: 18px; height: 18px; }

/* Happy Travel: the ink field */
.field { padding: 72px 0 80px; background: var(--field); color: var(--field-ink); border-top-left-radius: 72px; }
.app-icon { display: block; width: 72px; height: 72px; }
.field h2 { margin-top: 24px; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
.app-sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--field-soft); }
.lede { margin-top: 28px; font-size: 22px; line-height: 1.3; font-weight: 400; letter-spacing: -.01em; text-wrap: pretty; }

/* the stage tour (HT-339): stage tabs and one phone showing real app screens. The phone
   keeps the app's own light look in both site themes; the --app-* tokens exist for it. */
.tour {
  --app-bg: #F3F2EE; --app-device: #0A0E17;
  margin-top: 40px; display: grid; gap: 24px;
}
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--field-rule); }
.tab { flex: none; min-height: 48px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--field-soft); font: inherit; font-size: 15px; line-height: 1.3; text-align: left; cursor: pointer; }
.tab small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.tab p { display: none; }
.tab[aria-selected="true"] { color: var(--field-ink); border-bottom-color: var(--brass); }
.tab:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
@media (hover: hover) { .tab:hover { color: var(--field-ink); } }

.phone { justify-self: center; width: 300px; max-width: 100%; height: 440px; overflow: hidden; background: var(--app-bg); border: 8px solid var(--app-device); border-radius: 40px; box-shadow: 0 0 0 1px var(--field-rule); }
.phone > .shot { display: block; width: 100%; height: auto; }
.phone { touch-action: pan-y pinch-zoom; }
.tour-hint { justify-self: center; margin-top: -8px; color: var(--field-soft); font-size: 14px; }
.tour-count { margin-left: 16px; color: var(--field-ink); font-variant-numeric: tabular-nums; }

.facts { margin-top: 48px; display: flex; flex-direction: column; }
.facts > div { padding: 16px 0 18px; border-top: 1px solid var(--field-rule); }
.facts h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.facts p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--field-soft); text-wrap: pretty; }

.availability { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--field-rule); }
.availability h3 { font-size: 26px; line-height: 1.1; letter-spacing: -.025em; }
.stores { margin-top: 20px; display: flex; flex-direction: column; }
.stores li + li { border-top: 1px solid var(--field-rule); }
.stores a { min-height: 56px; display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.stores svg { flex: none; width: 20px; height: 20px; }

/* How we work */
.how { padding: 72px 0 80px; }
.how h2 { font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
.values { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.values > div { padding-top: 20px; border-top: 1px solid var(--rule); }
.values h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.values p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* footer */
.foot { margin-top: auto; padding: 64px 0 calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: var(--navy-ink); border-top: 1px solid var(--footer-edge); }
.tagline { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; }
.legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--navy-rule); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.legal p { font-size: 14px; line-height: 1.5; color: var(--navy-soft); }

.legal-nav { display: flex; align-items: center; gap: 24px; }
.legal-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--navy-ink); }

/* privacy + terms (HT-331): one readable column of long-form text */
.doc { flex: 1; padding: 40px 0 72px; }
.doc .shell > * { max-width: 720px; } /* left-aligned with the wordmark */
.doc h1 { font-size: 40px; line-height: 1.04; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.doc .updated { margin-top: 12px; font-size: 15px; color: var(--body); }
.doc .intro { margin-top: 28px; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.doc h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.doc h3 { margin-top: 28px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; padding-left: 1.25em; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.doc mark { padding: 0 .25em; background: var(--brass); color: var(--navy); } /* a value still to fill in */

/* 404: the hero's type on its own, and a footer that is just the © line */
.lost { flex: 1; }
.lost h1 { max-width: 12em; }
.foot-slim { padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.foot-slim .legal { margin-top: 0; padding-top: 0; border-top: 0; }

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }

@media (max-width: 599px) {
  .top .shell { gap: 12px; flex-wrap: wrap; padding-bottom: 14px; }
  .wordmark { font-size: 20px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13px; letter-spacing: 0; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 359px) {
  .nav { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (min-width: 600px) {
  :root { --gutter: 40px; }
  .cta { display: inline-flex; justify-content: flex-start; gap: 14px; padding: 0 24px 0 28px; }
}

@media (min-width: 900px) {
  :root { --gutter: clamp(40px, 6.67vw, 96px); }
  body { font-size: 17px; }
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

  .top { padding-top: 28px; }
  .wordmark { font-size: 26px; }
  .nav { gap: 36px; }
  .nav a { min-height: 48px; }

  .hero { padding: 80px 0 96px; }
  .hero .shell { align-items: start; }
  .hero h1 { grid-column: 1 / span 7; font-size: clamp(56px, 4.6vw, 68px); }
  .hero-side { grid-column: 8 / span 5; display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0 0; }
  .hero p { margin-top: 0; font-size: 19px; }
  .hero .cta { margin-top: 28px; }
  .hero .launch-note { margin-top: 16px; }
  .cta { margin-top: 36px; }

  .field { padding: 120px 0 112px; border-top-left-radius: clamp(96px, 11.1vw, 160px); }
  .field-head { align-items: end; }
  .app-intro { grid-column: 1 / span 6; display: flex; flex-direction: column; }
  .app-icon { width: 88px; height: 88px; }
  .field h2 { margin-top: 32px; font-size: clamp(40px, 3.33vw, 48px); }
  .app-sub { margin-top: 18px; font-size: 20px; }
  .lede { grid-column: 8 / span 5; margin-top: 0; font-size: clamp(24px, 2.08vw, 30px); }

  .tour { margin-top: 80px; grid-template-columns: 5fr 7fr; column-gap: 56px; align-items: center; }
  .tour-hint { display: none; }
  .tabs { flex-direction: column; overflow: visible; border-bottom: 0; }
  .tab { min-height: 0; padding: 16px 0 16px 20px; border-bottom: 0; border-left: 2px solid var(--field-rule); font-size: clamp(20px, 1.67vw, 24px); letter-spacing: -.02em; }
  .tab[aria-selected="true"] { border-left-color: var(--brass); }
  .tab p { margin-top: 4px; max-width: 30em; font-size: 16px; letter-spacing: 0; color: var(--field-soft); }
  .tab[aria-selected="true"] p { display: block; }
  .phone { width: 320px; height: 480px; }

  .facts { margin-top: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .facts > div { padding: 24px 0 0; }
  .facts h3 { font-size: 18px; }
  .facts p { margin-top: 10px; font-size: 17px; line-height: 1.6; }

  .availability { margin-top: 88px; padding-top: 48px; align-items: start; }
  .availability h3 { grid-column: 1 / span 7; font-size: clamp(30px, 2.64vw, 38px); }
  .stores { grid-column: 8 / span 5; margin-top: 0; }
  .stores a { min-height: 64px; gap: 14px; font-size: 20px; }

  .how { padding: 112px 0 120px; }
  .how .shell { align-items: start; }
  .how-head { grid-column: 1 / span 4; padding-top: 25px; }
  .how h2 { margin-top: 0; font-size: clamp(40px, 3.33vw, 48px); }
  .values { grid-column: 8 / span 5; margin-top: 0; gap: 32px; }
  .values > div { padding-top: 24px; }
  .values h3 { font-size: 22px; }
  .values p { margin-top: 10px; font-size: 17px; line-height: 1.6; }

  .foot { padding: 96px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
  .tagline { font-size: clamp(44px, 3.89vw, 56px); }
  .legal { margin-top: 64px; padding-top: 20px; gap: 24px; }
  .legal p { font-size: 15px; }

  .doc { padding: 80px 0 112px; }
  .doc h1 { font-size: 56px; }
  .doc .intro { font-size: 21px; }
  .doc h2 { margin-top: 56px; font-size: 28px; }
  .doc p, .doc li { font-size: 17px; }

  .lost p { margin-top: 24px; max-width: 452px; }
  .foot-slim { padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
}
