/* ============================================================
   Nooki marketing site — design system derived from the app:
   teal #0B6E63 · mint #B7EFE4 · coral #FF6F59 · ink #14201D
   Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  --teal: #0B6E63;
  --teal-deep: #095A51;
  --pine: #1B5E47;          /* logo badge gradient end */
  --pine-2: #2E7D5B;        /* logo badge gradient start */
  --mint: #B7EFE4;
  --mint-soft: #DCEFE9;
  --coral: #FF6F59;
  --coral-deep: #F4511E;
  --ink: #14201D;
  --ink-muted: #4C5A56;
  --bg: #F6F9F8;
  --surface: #FFFFFF;
  --surface-var: #EAF1EE;
  --outline: #D3DEDA;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 2px 8px rgba(20, 32, 29, 0.06), 0 12px 32px rgba(20, 32, 29, 0.08);
  --shadow-phone: 0 24px 48px -12px rgba(11, 110, 99, 0.28), 0 8px 16px rgba(20, 32, 29, 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--mint); color: var(--ink); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.eyebrow.on-dark { color: var(--mint); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.section-title.on-dark { color: #F2FBF8; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* split headline word reveal */
[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
[data-split] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
[data-split].is-visible .word > span { transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(246, 249, 248, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(20, 32, 29, 0.07);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 110, 99, 0.32);
}
.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 110, 99, 0.38);
}
.btn-sm { padding: 10px 22px; font-size: 15px; }

/* nav language switcher */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-var);
  border: 1px solid var(--outline);
  border-radius: 999px;
}
.lang-switch button {
  font: 600 12.5px var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-switch button:hover { color: var(--teal); }
.lang-switch button.is-active {
  background: var(--teal);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 0;
  overflow: clip;
}
@media (max-height: 820px) {
  .hero { padding-top: 110px; }
  .hero-stats { margin-top: 48px; }
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: blob-drift 18s ease-in-out infinite alternate;
}
.blob-a {
  width: 560px; height: 560px;
  background: var(--mint);
  top: -180px; right: -120px;
}
.blob-b {
  width: 420px; height: 420px;
  background: #FFD9D1;
  bottom: -80px; left: -160px;
  animation-delay: -9s;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 50px) scale(1.12); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 110, 99, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 110, 99, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  max-width: 34em;
  margin: 0 0 32px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  will-change: transform;
}
.store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(20, 32, 29, 0.28);
}
.store-btn small { display: block; font-size: 11px; opacity: 0.75; font-weight: 500; }
.store-btn strong { font-size: 17px; font-weight: 600; }
.store-btn-light { background: #fff; color: var(--ink); }
.store-btn-light:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-verified { background: var(--teal); }
.dot-free { background: var(--coral); }
.dot-lang { background: #1565C0; }

/* hero phone */
.hero-visual { position: relative; justify-self: center; }

.phone {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #243531, #0e1715);
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone::after { /* notch pill */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  width: 84px; height: 22px;
  transform: translateX(-50%);
  background: #0e1715;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--mint-soft);
  aspect-ratio: 336 / 720;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-hero {
  /* capped by viewport height so the phone fits above the fold at 100% zoom */
  width: min(280px, 34vh, 74vw);
  animation: phone-float 7s ease-in-out infinite;
  transform: rotate(2.5deg);
}
@keyframes phone-float {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50%      { transform: rotate(2.5deg) translateY(-14px); }
}

/* floating chips */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20, 32, 29, 0.06);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: chip-float 6s ease-in-out infinite;
  z-index: 4;
}
.chip-distance { top: 16%; left: -56px; animation-delay: -1.5s; }
.chip-verified { top: 46%; right: -64px; animation-delay: -3s; color: var(--teal-deep); }
.chip-panic {
  bottom: 9%; left: -78px;
  background: var(--teal);
  color: #fff;
  border-color: transparent;
  animation-delay: -4.5s;
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.chip-pin {
  width: 12px; height: 12px;
  background: var(--coral);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex: none;
}
.chip-nav {
  width: 0; height: 0; flex: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid currentColor;
  transform: rotate(35deg);
}

/* hero stats */
.hero-stats {
  position: relative;
  max-width: 1160px;
  margin: 84px auto 0;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--outline);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 14px; color: var(--ink-muted); font-weight: 500; }

/* ============================================================
   STORY
   ============================================================ */
.story { padding: 130px 0 110px; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 8px 0 56px;
}
.story-lead { font-size: 18px; color: var(--ink-muted); margin: 0; }
.story-lead em, .panic-copy em { font-style: italic; }

.panic-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px 44px;
  background: linear-gradient(135deg, #0F4D44, var(--pine));
  border-radius: var(--radius-lg);
  color: #E9F7F2;
  overflow: hidden;
}
.panic-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}
.panic-card p { margin: 0; color: rgba(233, 247, 242, 0.85); max-width: 42em; }

.panic-pulse { position: relative; width: 64px; height: 64px; flex: none; }
.panic-pulse::before {
  content: "";
  position: absolute; inset: 14px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 111, 89, 0.6);
}
.panic-pulse span {
  position: absolute; inset: 0;
  border: 2px solid var(--coral);
  border-radius: 50%;
  animation: pulse-ring 2.4s var(--ease-out) infinite;
  opacity: 0;
}
.panic-pulse span:nth-child(2) { animation-delay: 1.2s; }
@keyframes pulse-ring {
  0%   { transform: scale(0.45); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.panic-demo { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.panic-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font: 600 15px var(--font-body);
  color: var(--teal-deep);
  background: #fff;
  border: none;
  border-radius: 999px;
  cursor: default;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.panic-result {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mint);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.7s, transform 0.6s var(--ease-out) 0.7s;
}
.panic-card.is-visible .panic-result { opacity: 1; transform: none; }

/* ============================================================
   SHOWCASE (sticky phone)
   ============================================================ */
.showcase { padding: 60px 0 80px; }
.showcase-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: clamp(40px, 7vw, 110px);
  margin-top: 48px;
}
.showcase-steps { display: flex; flex-direction: column; }

.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
.step.is-active { opacity: 1; }

.step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.08em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}
.step p { color: var(--ink-muted); margin: 0 0 20px; max-width: 36em; }

.step-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.step-tags li {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--mint-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

.showcase-sticky {
  position: relative;
}
.phone-showcase {
  --pw: min(300px, 36vh, 74vw); /* phone width; total height ≈ 2.26 × width */
  width: var(--pw);
  position: sticky;
  top: calc(50vh - var(--pw) * 1.13);
  margin: 0 auto;
}
.screen-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.7s var(--ease-out);
}
.screen-img.is-active { opacity: 1; transform: none; position: relative; }

/* ============================================================
   TRUST (dark)
   ============================================================ */
.trust {
  position: relative;
  padding: 120px 0 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(46, 125, 91, 0.35), transparent 65%),
    linear-gradient(165deg, #0E1B18, #11241F 60%, #0E1B18);
  color: #DCE9E5;
  overflow: hidden;
}
.trust-lead {
  font-size: 19px;
  color: rgba(220, 233, 229, 0.78);
  max-width: 38em;
  margin: 0 0 56px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 90px;
}
.trust-card {
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(183, 239, 228, 0.12);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}
.trust-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 239, 228, 0.3);
}
.trust-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 10px;
}
.trust-card p { margin: 0; font-size: 15px; color: rgba(220, 233, 229, 0.72); }
.trust-card em { color: #fff; font-style: italic; }

/* marquee */
.marquee {
  border-top: 1px solid rgba(183, 239, 228, 0.12);
  padding: 26px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: rgba(220, 233, 229, 0.5);
  white-space: nowrap;
}
.marquee-track i { color: var(--coral); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   DUO (languages + share)
   ============================================================ */
.duo { padding: 110px 0; }
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.duo-grid > * { min-width: 0; }   /* let cards shrink below content min-width */
.duo-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.duo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.duo-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.duo-card > p { color: var(--ink-muted); margin: 0; }

.duo-visual {
  border-radius: var(--radius);
  background: var(--surface-var);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}

.lang-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lang-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: var(--ink-muted);
  border: 1px solid var(--outline);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-spring);
}
.lang-pill.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: scale(1.06);
}
.lang-sample {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}
.lang-sample.is-switching { opacity: 0; }

.share-visual { gap: 12px; }
.share-bubble {
  background: #fff;
  border-radius: 18px 18px 18px 4px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  max-width: 300px;
}
.share-bubble p { margin: 0 0 6px; font-size: 14.5px; }
.share-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
}
.share-arrow { font-size: 20px; color: var(--ink-muted); }
.share-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}

/* ============================================================
   WHY (comparison)
   ============================================================ */
.why { padding: 30px 0 120px; }
.compare {
  margin-top: 48px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  align-items: center;
  border-top: 1px solid var(--outline);
  font-size: 15px;
}
.compare-row > div { padding: 18px 24px; }
.compare-row > div:first-child { font-weight: 600; }
.compare-row > div:nth-child(2) { color: var(--ink-muted); }
.compare-head {
  border-top: none;
  background: var(--surface-var);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.compare-nooki-col {
  background: rgba(183, 239, 228, 0.25);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal-deep);
}
.compare-head .compare-nooki-col { color: var(--teal); }
.check { color: var(--teal); font-weight: 800; }
.x { color: #C62828; font-weight: 700; opacity: 0.7; }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  position: relative;
  padding: 130px 0;
  background: linear-gradient(150deg, var(--pine-2), var(--pine) 55%, #144A39);
  overflow: hidden;
  text-align: center;
}
.dl-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 80%);
}
.dl-inner { position: relative; }
.dl-logo {
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: phone-float 6s ease-in-out infinite;
}
.dl-sub {
  color: rgba(233, 247, 242, 0.85);
  font-size: 18px;
  max-width: 34em;
  margin: 0 auto 40px;
}
.dl-cta { justify-content: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 120px 0; text-align: center; }
.contact-lead { color: var(--ink-muted); max-width: 36em; margin: 0 auto 44px; }
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 280px;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: left;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal);
}
.contact-icon { font-size: 22px; color: var(--teal); }
.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.contact-value { font-weight: 600; color: var(--teal-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0E1B18;
  color: rgba(220, 233, 229, 0.7);
  padding: 64px 0 48px;
  font-size: 14.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}
.footer .nav-logo { color: #fff; }
.footer-brand p { margin: 10px 0 0; font-style: italic; font-family: var(--font-display); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-meta a {
  color: rgba(220, 233, 229, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover, .footer-meta a:hover { color: var(--mint); }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 8px; }
.footer-attrib { font-size: 13px; opacity: 0.7; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding: 150px 0 90px; }
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 600;
  margin: 0 0 8px;
}
.legal .legal-date { color: var(--ink-muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 12px;
}
.legal p, .legal li { color: var(--ink-muted); }
.legal a { color: var(--teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 24px; }
  .chip-distance { left: -10px; }
  .chip-verified { right: -14px; }
  .chip-panic { left: -22px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .lang-switch { margin-left: auto; }
  .lang-switch button {              /* ≥44px touch target */
    min-width: 44px;
    min-height: 44px;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-logo { padding: 6px 0; }                  /* taller tap area */
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .panic-card { grid-template-columns: 1fr; text-align: center; }
  .panic-pulse { margin: 0 auto; }
  .panic-demo { align-items: center; }
  .duo-grid { grid-template-columns: 1fr; }

  /* showcase: phone above steps, no sticky */
  .showcase-layout { grid-template-columns: 1fr; }
  .showcase-sticky { order: -1; }
  .phone-showcase { position: relative; top: 0; }
  .step { min-height: 0; padding: 36px 0; opacity: 1; }

  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { padding: 10px 20px; }
  .compare-row > div:first-child { padding-top: 18px; }
  .compare-row > div:last-child { padding-bottom: 18px; }
  .compare-head { display: none; }
  .compare-nooki-col::before { content: "Nooki: "; font-weight: 700; color: var(--teal); }
  .compare-row > div:nth-child(2)::before { content: "Tavalliset kartat: "; font-weight: 600; }
  html[lang="en"] .compare-row > div:nth-child(2)::before { content: "Generic maps: "; }
  html[lang="sv"] .compare-row > div:nth-child(2)::before { content: "Vanliga kartor: "; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }

  /* nav: drop CTA (hero shows store buttons immediately) so the row fits */
  .nav .btn-primary.btn-sm { display: none; }
  .nav-inner { gap: 10px; }

  .hero { padding-top: 116px; }
  .hero-cta { width: 100%; }
  .store-btn { flex: 1 1 150px; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; gap: 20px; padding: 28px 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .chip-distance { left: 0; }
  .chip-verified { right: 0; }
  .chip-panic { left: 4px; }
  .contact-card { width: 100%; }
  .dl-cta .store-btn { flex: 1 1 150px; }

  /* tighten vertical rhythm for phones */
  .story { padding: 72px 0 60px; }
  .showcase { padding: 40px 0 50px; }
  .trust { padding: 80px 0 0; }
  .duo { padding: 64px 0; }
  .why { padding: 20px 0 72px; }
  .download { padding: 84px 0; }
  .contact { padding: 76px 0; }
  .panic-card { padding: 32px 24px; }
  .duo-card { padding: 28px 24px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, [data-split] .word > span { opacity: 1; transform: none; }
}
