/* ==========================================================================
   fram.d marketing site
   Design tokens mirror the Flutter app (lib/theme/app_theme.dart):
   background #FFFFFF · surface #F7F7F7 · textPrimary #0A0A0A ·
   textSecondary #9E9E9E · accent #1A1A1A · border #EDEDED · font DM Sans
   ========================================================================== */

/* Self-hosted DM Sans (variable font, 400–700). Served same-origin so it's off
   the Google Fonts critical chain. One face per unicode-range covers all
   weights because the woff2 is variable. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: #ffffff;
  --surface: #f7f7f7;
  --text-primary: #0a0a0a;
  --text-secondary: #9e9e9e;
  --accent: #1a1a1a;
  --border: #ededed;

  --radius-card: 16px;
  --radius-button: 12px;

  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);

  --max-width: 1120px;
  --space-section: 120px;

  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-button);
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-width: 200px;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .badge-small {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.store-badge .badge-large {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  margin-bottom: 24px;
}

.hero .lead {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  margin-bottom: 20px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  aspect-ratio: 300 / 620;
  background: var(--accent);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 36px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Hero audio demo: one photo with three voice notes */
.demo-card {
  margin: 0;
  width: 100%;
  max-width: 400px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
}

.demo-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.demo-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px 6px;
}

.demo-caption strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.demo-caption span {
  font-size: 13px;
  color: var(--text-secondary);
}

.voice-list {
  list-style: none;
  margin: 0;
  padding: 6px 12px 14px;
}

.voice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.15s ease;
}

.voice.is-playing {
  background: var(--surface);
}

.voice-play {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.voice-play:hover {
  transform: scale(1.06);
}

.voice-play svg {
  width: 18px;
  height: 18px;
}

.voice-play .icon-pause,
.voice.is-playing .icon-play {
  display: none;
}

.voice.is-playing .icon-pause {
  display: block;
}

.voice-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.voice-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.voice-wave span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: #d6d6d6;
  transition: background 0.1s linear;
}

.voice-wave span.on {
  background: var(--accent);
}

.voice-time {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.testimonial blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.testimonial figcaption > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.testimonial figcaption span span {
  color: var(--text-secondary);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   App screenshots showcase
   -------------------------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-sm {
  width: 260px;
  max-width: 100%;
  border-radius: 40px;
  padding: 10px;
}

.phone-sm .phone-screen {
  border-radius: 31px;
}

.shot figcaption {
  margin-top: 24px;
  max-width: 300px;
}

.shot h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.shot p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Trust / security band
   -------------------------------------------------------------------------- */
.trust-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  padding: 56px 52px;
  box-shadow: var(--shadow-card);
}

.trust-shield {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.32);
  color: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-shield svg {
  width: 52px;
  height: 52px;
}

.trust-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 14px;
}

.trust-band h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 16px;
  color: #fff;
  max-width: 640px;
}

.trust-band p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin-bottom: 26px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 500;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd3fc;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Encryption notice band
   -------------------------------------------------------------------------- */
.encrypt-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(125, 211, 252, 0.16), transparent 55%),
    var(--accent);
  color: #fff;
  border-radius: 28px;
  padding: 60px 56px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* WhatsApp-style system notice chip */
.encrypt-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.encrypt-notice svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.encrypt-band h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: 16px;
  color: #fff;
}

.encrypt-band h2,
.encrypt-band p {
  max-width: 720px;
}

.encrypt-band p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-section) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 20px;
}

.section-head p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-button);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Split / privacy feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.split h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}

.split p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.check-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-list .check svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
}

.split-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
}

.split-visual svg {
  width: 55%;
  height: auto;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--accent);
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.cta-band h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 18px;
  color: #fff;
}

.cta-band p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-band .store-badges {
  justify-content: center;
}

.cta-band .store-badge {
  background: #fff;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: var(--space-section);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: var(--text-primary);
  font-size: 15px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer actions that aren't navigation (e.g. "Cookie settings") */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.footer-col .link-button {
  color: var(--text-primary);
  font-size: 15px;
  transition: color 0.15s ease;
}

.footer-col .link-button:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Legal / document pages
   -------------------------------------------------------------------------- */
.doc {
  padding: 72px 0 40px;
}

.doc-inner {
  max-width: 760px;
  margin: 0 auto;
}

.doc .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.doc .back-link:hover {
  color: var(--text-primary);
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 12px;
}

.doc .updated {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.doc h2 {
  font-size: 24px;
  margin: 48px 0 16px;
}

.doc h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.doc p,
.doc li {
  color: #3a3a3a;
  font-size: 16px;
  margin-bottom: 14px;
}

.doc ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a.inline {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.doc .toc h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.doc .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.doc .toc li {
  margin-bottom: 8px;
}

.doc .toc a {
  color: var(--text-primary);
  font-size: 15px;
}

.doc .toc a:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --space-section: 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .store-badges {
    justify-content: center;
  }

  .demo-card {
    margin-left: auto;
    margin-right: auto;
  }

  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .features,
  .steps,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .shots {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trust-band {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 44px 28px;
  }

  .trust-shield {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-band h2,
  .trust-band p {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-badges {
    justify-content: center;
  }

  .encrypt-notice {
    font-size: 12px;
  }

  .encrypt-band {
    text-align: center;
    padding: 44px 28px;
  }

  .split-visual {
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .cta-band {
    padding: 48px 24px;
  }

  .doc .toc ul {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Cookie consent banner (Google Consent Mode v2)
   -------------------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 660px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  z-index: 1000;
}

.consent-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.consent-text a {
  color: var(--text-primary);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.consent-btn {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text-primary);
  cursor: pointer;
}

.consent-accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 480px) {
  .consent-actions {
    width: 100%;
  }

  .consent-btn {
    flex: 1;
  }
}

/* SEO landing pages (wedding-photo-sharing, shared-photo-album, scan-old-photos) */
.lp .back-link a { color: inherit; }
.lp .lp-lead { font-size: 19px; line-height: 1.55; color: #2a2a2a; margin-bottom: 24px; }
.lp .lp-badges { margin-bottom: 8px; }
.lp .lp-note { color: var(--text-secondary); font-size: 14px; }
.lp ol { padding-left: 22px; margin-bottom: 20px; }
.lp ol li { color: #3a3a3a; font-size: 16px; margin-bottom: 10px; }
.lp .lp-shot { margin: 40px auto 8px; max-width: 280px; }
.lp .lp-shot img { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-subtle); }
.lp .lp-cta { margin: 56px 0 24px; }
.lp .lp-cta h2 { margin-top: 0; }
.lp .lp-cta p { color: inherit; }
.lp .lp-more { font-size: 14px; color: var(--text-secondary); }
.lp .lp-more a, .lp p a { text-decoration: underline; text-underline-offset: 2px; }
.feature-card p a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
