/* Pino — landing styles
 * Aesthetic: Refero/Acctual — clean white canvas, abundant whitespace,
 * Open Runde headlines with tight tracking, charcoal pill buttons,
 * 20px-radius cards. Photo-table hero with collage objects.
 */

/* Caveat — handwritten accent font, used for the byline & decorative
 * touches (per Acctual's DESIGN.md). Must come first — @import has to
 * precede all other rules. */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Open Runde — self-hosted from /fonts/. The lauridskern/open-runde
 * repo doesn't have a public CDN structure that's stable across
 * versions, so we ship the woff2s ourselves. ~640 KB total for 4
 * weights, cached for a year via _headers. */
@font-face {
  font-family: 'Open Runde';
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/OpenRunde-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Runde';
  font-weight: 500;
  font-style: normal;
  src: url('/fonts/OpenRunde-Medium.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Runde';
  font-weight: 600;
  font-style: normal;
  src: url('/fonts/OpenRunde-Semibold.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Runde';
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/OpenRunde-Bold.woff2') format('woff2');
  font-display: swap;
}


:root {
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --ink: #0f0f0f;
  --ink-deep: #000000;
  --slate: #1e1e1e;
  --ash: #8d8d8d;
  --line: rgba(15, 15, 15, 0.08);
  --button: #0d111b;
  --teal: #0098f2;
  --pink: #f200ca;
  --violet: #6d56fc;
  --teal-soft: #e6f5ff;

  --radius-card: 20px;
  --radius-img: 32px;
  --radius-pill: 100px;

  --font-display: 'Open Runde', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body: 'Open Runde', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-caveat: 'Caveat', 'Sacramento', cursive;

  --max-w: 1200px;
  --section-gap: clamp(48px, 7vw, 96px);

  /* shadow-subtle is the soft drop on cards. shadow-subtle-2 is
   * Acctual's signature primary-button shadow: a 1px dark ring plus a
   * tight inner highlight. Replicated verbatim from DESIGN.md. */
  --shadow-subtle: 0 2.5px 2.5px rgba(0, 0, 0, 0.06);
  --shadow-subtle-2: rgb(36, 38, 40) 0px 0px 0px 1px, rgba(27, 28, 29, 0.48) 0px 1px 2px 0px;
  --shadow-card: 0 12px 40px rgba(15, 15, 15, 0.06), 0 2px 8px rgba(15, 15, 15, 0.03);
  --shadow-deep: 0 24px 64px rgba(15, 15, 15, 0.12), 0 4px 16px rgba(15, 15, 15, 0.05);

  /* Spring-style easing — bezier baseline so older Safari (<17.2) gets a
   * sensible value. Browsers that support linear() (Chrome 113+, Safari
   * 17.2+) override it inside the @supports block below for a closer
   * SwiftUI spring(response:0.55, damping:0.78) feel. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.55 10.5%, 0.865, 1.07 19%, 1.123, 1.142, 1.118, 1.071 28.7%, 0.99 32.8%, 0.928, 0.897, 0.886, 0.902, 0.93 47.8%, 1.005 54.4%, 1.039, 1.045, 1.027 70.9%, 1, 0.984 89.3%, 1);
  }
}

/* Open Runde character-variant features per DESIGN.md — these subtly
 * shift digits and a few lowercase glyphs (`a`, `g`) toward the
 * geometric-modern register Acctual uses. Without them the font looks
 * slightly more neutral. */
body, .headline, .subheading {
  font-feature-settings: "blwf" on, "cv03" on, "cv04" on, "cv09" on, "cv11" on;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Typography scale matches Refero/Acctual:
 * display 64/600, heading 32/600, subheading 20/600, body 16/500.
 * Tracking is tighter on big sizes (-2.4px on display) for the
 * crisp accounting-software register. */
/* Letter-spacing values come straight from Acctual's DESIGN.md:
 *   display 64px → -2.368px (-0.037em)
 *   heading-lg 40px → -1.2px (-0.030em)
 *   heading 32px → -0.64px (-0.020em)
 *   subheading 20px → -0.24px (-0.012em)
 * The em form lets us keep the values correct as font-size scales
 * via clamp(). */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.037em;
  color: var(--ink-deep);
}
.headline-xl { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.037em; }
.headline-lg { font-size: clamp(1.9rem, 4.5vw, 2.5rem); line-height: 1.2; letter-spacing: -0.03em; }
.subheading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
}
.body-lg { font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--slate); line-height: 1.6; font-weight: 500; }
.body-md { font-size: 1rem; color: var(--slate); line-height: 1.6; font-weight: 500; }
.body-sm { font-size: .875rem; color: var(--ash); line-height: 1.5; font-weight: 500; }
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0;
}

/* Handwritten accent — Caveat. Use for short, personal lines:
 * "made on a small island", "by a solo dev", testimonial signatures.
 * Per DESIGN.md role: human touch on otherwise structured interface. */
.handwritten {
  font-family: var(--font-caveat);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--slate);
  letter-spacing: 0;
}
.handwritten-lg { font-size: 1.75rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: var(--section-gap) 0; }

/* ── Nav ─────────────────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
nav.site-nav .nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 16px 10px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-deep);
}
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ash);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--button);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  /* Acctual's signature button shadow: 1px dark outline + tight inner
   * highlight. Subtler and more "designy" than the usual drop shadow. */
  box-shadow: var(--shadow-subtle-2);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.btn-pill-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-subtle-2), 0 6px 20px rgba(13, 17, 27, 0.20); }
.btn-pill-dark svg { width: 16px; height: 16px; fill: #fff; }

/* App Store CTA — large variant for hero / privacy */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--button);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-subtle-2);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.btn-appstore:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-subtle-2), 0 10px 32px rgba(13, 17, 27, 0.22); }
.btn-appstore svg { width: 22px; height: 22px; fill: #fff; }
.btn-appstore-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--ink-deep);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.btn-appstore-light:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.btn-appstore-light svg { width: 22px; height: 22px; fill: var(--ink-deep); }

/* Lang switcher (compact pill) */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { border-color: rgba(15, 15, 15, .25); color: var(--ink); }
.lang-btn .flag { font-size: 1rem; line-height: 1; }
.lang-btn svg { width: 12px; height: 12px; opacity: .5; transition: transform .2s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(15, 15, 15, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  z-index: 200;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-body);
}
.lang-option:hover { background: rgba(15, 15, 15, .04); color: var(--ink); }
.lang-option.active { background: var(--teal-soft); color: var(--teal); }
.lang-option .flag { font-size: 1.1rem; }

/* ── Hero — photo-table collage ──────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(96px, 13vh, 144px) 0 clamp(16px, 3vw, 32px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero-sub {
  max-width: 540px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* Decorative photo objects positioned absolutely around the hero.
 * Sizes match the Acctual reference: keyboard takes ~1/4 of the
 * viewport width, polaroid stack is hefty in the lower-left, MacBook
 * corner peeks in from the right edge, smaller props (paperclip,
 * binder, sticky, latte, iPhone) fill the gaps. On mobile, only the
 * lightest props survive — heavy hardware crowds the headline. */
.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  filter: drop-shadow(0 12px 32px rgba(15, 15, 15, 0.10));
}
.hero-decor img { width: 100%; height: auto; display: block; }

/* Big anchors (one per corner-ish) — sized as % of viewport so they
 * scale with screen, not container. */
/* Big anchors: scaled UP to ~Acctual reference. Keyboard takes
 * ~38% of viewport width and sits at hero-text vertical level so it
 * crowds the headline like in the reference. MacBook corner peeks
 * from upper-right — same beefy size. Polaroid stack gets the
 * lower-right anchor. */
.decor-keyboard {
  top: 28%;
  left: -10%;
  width: clamp(440px, 42vw, 720px);
  transform: rotate(-14deg);
}
.decor-macbook {
  top: -6%;
  right: -10%;
  width: clamp(420px, 40vw, 680px);
  transform: rotate(8deg);
}
.decor-polaroid {
  top: 68%;
  right: -2%;
  width: clamp(320px, 30vw, 480px);
  transform: rotate(12deg);
}
.decor-latte {
  top: 60%;
  left: 8%;
  width: clamp(170px, 16vw, 250px);
  transform: rotate(-6deg);
}
.decor-iphone {
  top: 18%;
  left: 16%;
  width: clamp(140px, 13vw, 210px);
  transform: rotate(-24deg);
}

/* Small props (paperclip, binder, sticky) — accents */
.decor-paperclip {
  top: 26%;
  left: 6%;
  width: clamp(100px, 10vw, 160px);
  transform: rotate(-32deg);
}
.decor-binder-clip {
  top: 76%;
  left: 42%;
  width: clamp(80px, 8vw, 130px);
  transform: rotate(24deg);
}
.decor-sticky {
  top: 14%;
  right: 18%;
  width: clamp(120px, 12vw, 190px);
  transform: rotate(-8deg);
}

@media (max-width: 1100px) {
  .decor-keyboard { width: 360px; left: -14%; }
  .decor-macbook { width: 340px; right: -14%; }
  .decor-polaroid { width: 250px; right: -4%; }
  .decor-latte { width: 140px; }
  .decor-iphone { display: none; }
  .decor-binder-clip { display: none; }
}
@media (max-width: 900px) {
  .decor-keyboard, .decor-polaroid, .decor-macbook { opacity: 0.6; }
  .decor-keyboard { width: 260px; left: -16%; top: 50%; }
  .decor-macbook { width: 260px; right: -18%; top: 4%; }
  .decor-polaroid { width: 200px; right: -10%; top: 62%; }
  .decor-latte, .decor-sticky { display: none; }
}
@media (max-width: 600px) {
  .decor-keyboard, .decor-polaroid, .decor-macbook, .decor-paperclip { display: none; }
}

/* Hero phone screenshot — large image floating on a soft pad */
.hero-screenshot {
  margin: clamp(40px, 6vw, 80px) auto 0;
  max-width: 360px;
  position: relative;
  z-index: 2;
}
.hero-screenshot img {
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-deep);
}
/* Hero demo (live search demo standing in for the static screenshot). */
.hero-screenshot .demo-stage {
  max-width: 360px;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-deep);
  background: linear-gradient(180deg, #fbfdff 0%, #f0f5fa 100%);
}

/* Subtle warm glow under the hero — barely there, like Acctual */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 152, 242, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 60%, rgba(242, 0, 202, 0.025) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Feature rows ────────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 10vw, 128px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reversed .feature-text { order: 2; }
.feature-row.reversed .feature-visual { order: 1; }
.feature-text .eyebrow { margin-bottom: 16px; }
.feature-text h2 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 20px; max-width: 480px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--slate);
  font-weight: 500;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 8px;
}
.feature-visual { position: relative; display: flex; justify-content: center; }

/* ── Bento grid ──────────────────────────────────────────────────── */
.bento-section .section-header { text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.bento-section .section-header p { max-width: 540px; margin: 16px auto 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-soft);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 6px;
}
.bento-card p {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.55;
  font-weight: 500;
}

/* ── Privacy block — dark card with stamp + network-monitor ──────── */
.privacy-section { padding: clamp(48px, 8vw, 80px) 0; }
.privacy-card {
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--radius-img);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.privacy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 152, 242, 0.22) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(109, 86, 252, 0.15) 0%, transparent 55%);
  pointer-events: none;
}
.privacy-card > * { position: relative; z-index: 1; }
.privacy-card .eyebrow { background: rgba(0, 152, 242, 0.18); color: #6db3f2; margin-bottom: 20px; }
.privacy-card h2 { color: #fff; margin-bottom: 16px; }
.privacy-card .privacy-lead {
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Stamp graphic — rotated rubber-stamp look. Sits in upper-right
 * corner of the card, pure CSS, no image. Reinforces "verified /
 * approved by your phone, not by us". */
.privacy-stamp {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  right: clamp(16px, 4vw, 48px);
  transform: rotate(8deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(110px, 12vw, 150px);
  height: clamp(110px, 12vw, 150px);
  border: 3px solid rgba(0, 152, 242, 0.55);
  border-radius: 50%;
  color: rgba(0, 152, 242, 0.85);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.8rem, 1.4vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  z-index: 2;
}
.privacy-stamp small {
  display: block;
  font-size: .55em;
  letter-spacing: 0.15em;
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.7;
}

/* Network-monitor block: visual showing what Pino sends and what it
 * doesn't send. Two columns of pills/lines, the "doesn't send" side
 * has more items and uses muted strikethrough — communicates "the
 * absence of data flow" stronger than icons alone. */
.privacy-monitor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: left;
}
.privacy-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 24px);
}
.privacy-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.privacy-col-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.privacy-col-out .privacy-col-title { color: #ff6b6b; }
.privacy-col-out .privacy-col-title .dot { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15); }
.privacy-col-in .privacy-col-title { color: #4ade80; }
.privacy-col-in .privacy-col-title .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }
.privacy-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.privacy-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}
.privacy-col-out li {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 107, 0.5);
  text-decoration-thickness: 1.5px;
}
.privacy-col li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
}
.privacy-col-out li::before { background: #ff6b6b; opacity: 0.7; }
.privacy-col-in li::before { background: #4ade80; }

/* Bottom pill row — the four hard guarantees. Kept from before but
 * restyled to match the monitor block. */
.privacy-features {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
  margin: 0 auto 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 700px;
}
.privacy-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.privacy-feature .pf-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0, 152, 242, 0.15);
  color: #6db3f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .privacy-monitor { grid-template-columns: 1fr; }
  .privacy-stamp { top: 16px; right: 16px; }
}

/* ── Final CTA ───────────────────────────────────────────────────── */
.final-cta { text-align: center; padding: clamp(48px, 8vw, 80px) 0; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { max-width: 480px; margin: 0 auto 28px; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: .85rem; color: var(--ash); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .8rem; color: var(--ash); }

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius-img);
  transform: scale(.85);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .3);
}
.lightbox.open img { transform: scale(1); }

/* ── Reveal animations ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Mobile ──────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger span + span { margin-top: 6px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reversed .feature-text { order: 1; }
  .feature-row.reversed .feature-visual { order: 2; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 2; }
  .nav-links li:not(.lang-item) { display: none; }
  .nav-links li.lang-item { display: list-item; }
  .nav-pill .nav-cta-btn { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}


/* ════════════════════════════════════════════════════════════════════
 * Animated feature demos — Search / Screenshots / Places.
 * Ported from the iOS onboarding flow (see Views/Onboarding/*) so the
 * marketing page sells the same "show, don't tell" moments. Each demo
 * renders inside a .demo-stage card the size of a phone-frame.
 * ════════════════════════════════════════════════════════════════════ */

.demo-stage {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  position: relative;
}

/* The capsule mimics the in-app glass search bar. */
.demo-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,15,15,.06);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(15,15,15,.04);
  font-size: .95rem;
}
.demo-search svg { width: 16px; height: 16px; color: var(--ash); flex-shrink: 0; }
.demo-search .demo-query { color: var(--ink-deep); font-weight: 500; min-height: 1em; letter-spacing: -0.01em; }
.demo-search .demo-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--teal);
  vertical-align: -2px;
  margin-left: 1px;
  animation: caretBlink 1s steps(2, end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* 3×3 grid for Search demo, 2×3 for Screenshots demo. */
.demo-grid {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}
.demo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.demo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; }

.demo-tile {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
  /* Stagger via --i set inline. transition fires when .hide flips. */
  transition: transform .55s var(--spring, ease-out),
              opacity .35s ease-out;
  transition-delay: calc(var(--i, 0) * 28ms);
  transform-origin: center;
  will-change: transform, opacity;
}
.demo-tile.hide {
  opacity: 0;
  transform: scale(.82);
}

/* Visual-search tiles: real photos. The img fills the tile and is
 * cropped via object-fit. Neutral background = the soft canvas color
 * so corners don't bleed an unrelated tint while jpeg loads. */
.demo-tile.tile-photo {
  background: #eaeef2;
}
.demo-tile.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit; /* match the tile's rounded corners */
}

/* OCR tiles: render a stylized snippet of the underlying screenshot
 * text so the OCR claim is visible at a glance. */
.demo-tile.tile-screen {
  background: #fff;
  border: 1px solid rgba(15,15,15,.06);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  font-size: 9px;
  line-height: 1.25;
  color: var(--ink-deep);
  text-align: left;
}
.demo-tile.tile-screen .ts-head {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: -0.005em;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-tile.tile-screen .ts-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--slate);
  opacity: .82;
}
.demo-tile.tile-screen .ts-pill {
  display: inline-block;
  padding: 1px 5px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 4px;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0;
  margin-top: auto;
  align-self: flex-start;
}

/* Places demo: SVG world + dropping pins + ticker + country list. */
.demo-places {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.demo-map {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.demo-map svg.world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #d6dde4;
  stroke: #fff;
  stroke-width: 0.4;
}
.demo-pin {
  position: absolute;
  /* x/y set as inline style. 0,0 is top-left of .demo-map. */
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -14px; /* anchor at the tip */
  transform: translateY(-180px);
  opacity: 0;
  pointer-events: none;
}
.demo-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(15,15,15,.25)); }
.demo-places.run .demo-pin {
  animation: pinDrop .7s var(--spring-overshoot) both;
  animation-delay: calc(var(--i) * 220ms);
}
@keyframes pinDrop {
  0%   { transform: translateY(-180px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(0);      opacity: 1; }
}
.demo-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.demo-counter-label {
  font-size: .78rem;
  color: var(--ash);
  margin-top: 2px;
}
.demo-countries {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.demo-country-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: .85rem;
  color: var(--ink-deep);
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
}
.demo-places.run .demo-country-row {
  animation: countryIn .55s var(--spring) both;
  /* Country rows start *after* all pins have landed: 7 pins × 220ms ≈ 1540ms */
  animation-delay: calc(1540ms + var(--ci, 0) * 180ms);
}
@keyframes countryIn {
  to { opacity: 1; transform: translateY(0); }
}
.demo-country-row .flag { font-size: 1.05rem; }
.demo-country-row .count { margin-left: auto; color: var(--ash); font-variant-numeric: tabular-nums; font-size: .78rem; }

/* Hero objects subtle float — out-of-phase via per-element delays. */
.decor-keyboard, .decor-macbook, .decor-polaroid, .decor-latte,
.decor-iphone, .decor-paperclip, .decor-binder-clip, .decor-sticky {
  animation: heroFloat var(--float-dur, 3.6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}
.decor-keyboard    { --float-dur: 3.4s; --float-delay: -0.4s; }
.decor-macbook     { --float-dur: 4.1s; --float-delay: -1.7s; }
.decor-polaroid    { --float-dur: 3.7s; --float-delay: -0.9s; }
.decor-latte       { --float-dur: 3.2s; --float-delay: -2.1s; }
.decor-iphone      { --float-dur: 3.9s; --float-delay: -1.3s; }
.decor-paperclip   { --float-dur: 2.8s; --float-delay: -0.6s; }
.decor-binder-clip { --float-dur: 3.5s; --float-delay: -2.4s; }
.decor-sticky      { --float-dur: 4.3s; --float-delay: -1.0s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Hero headline blur-reveal on first paint — SwiftUI .blurReplace look. */
.hero h1, .hero .hero-sub {
  animation: blurIn .55s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.hero .hero-sub { animation-delay: .12s; }
@keyframes blurIn {
  from { filter: blur(8px); opacity: 0; transform: scale(.985); }
  to   { filter: blur(0);   opacity: 1; transform: scale(1); }
}

/* ── Reduced motion: dampen, don't kill informational fades ───────── */
@media (prefers-reduced-motion: reduce) {
  /* Stop all looping/transform-heavy animations; preserve opacity-only
   * reveals so the page still has a sense of arrival. */
  .demo-tile, .demo-pin, .demo-country-row, .demo-caret,
  .decor-keyboard, .decor-macbook, .decor-polaroid, .decor-latte,
  .decor-iphone, .decor-paperclip, .decor-binder-clip, .decor-sticky {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .demo-pin { transform: translateY(0); opacity: 1; }
  .demo-country-row { opacity: 1; transform: none; }
  .demo-caret { background: transparent; }
  .hero h1, .hero .hero-sub { animation: none; filter: none; opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .demo-stage { max-width: 280px; padding: 18px 14px; }
}
