/* OnTheList — website styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500..900;1,9..144,500..800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --color-maroon: #800020;
  --color-maroon-dark: #5c0014;
  --color-popcorn-gold: #f5c518;
  --color-popcorn-gold-light: #ffd740;
  --color-popcorn-gold-dark: #b98a00;
  --color-cream: #faf8f5;
  --color-cream-dark: #f2ebe1;
  --color-white: #ffffff;
  --color-charcoal-deep: #120e0e;
  --color-charcoal-card: #1c1717;
  --color-charcoal-border: #2c2424;
  --color-charcoal-hover: #352a2a;

  /* Light theme */
  --bg-primary: var(--color-cream);
  --bg-primary-rgb: 250, 248, 245;
  --bg-secondary: var(--color-white);
  --bg-card: var(--color-white);
  --bg-interactive: var(--color-cream-dark);
  --border-color: #ece3d6;

  --text-primary: #2d1a1a;
  --text-secondary: #5c4545;
  --text-muted: #6f5757;

  --primary-brand: var(--color-maroon);
  --primary-brand-hover: var(--color-maroon-dark);
  --accent-brand: #7a5b00;

  --card-shadow: 0 10px 30px -12px rgba(92, 26, 26, 0.10), 0 1px 3px rgba(0, 0, 0, 0.03);
  --hero-gradient: radial-gradient(1200px 600px at 80% -10%, #fff4df 0%, rgba(255,244,223,0) 55%), linear-gradient(180deg, #fffaf2 0%, var(--color-cream) 100%);
  --badge-bg: #fff2d6;
  --badge-text: var(--color-maroon-dark);
  --device-bezel: #1c1818;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

.dark-theme {
  --bg-primary: var(--color-charcoal-deep);
  --bg-primary-rgb: 18, 14, 14;
  --bg-secondary: var(--color-charcoal-card);
  --bg-card: var(--color-charcoal-card);
  --bg-interactive: var(--color-charcoal-hover);
  --border-color: var(--color-charcoal-border);

  --text-primary: #f5f2eb;
  --text-secondary: #c9bfbf;
  --text-muted: #9c8e8e;

  --primary-brand: #ff5a5a;
  --primary-brand-hover: #ff8a8a;
  --accent-brand: var(--color-popcorn-gold);

  --card-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.6), 0 1px 5px rgba(0, 0, 0, 0.35);
  --hero-gradient: radial-gradient(1200px 600px at 80% -10%, #2a1414 0%, rgba(42,20,20,0) 55%), linear-gradient(180deg, #1a1212 0%, var(--color-charcoal-deep) 100%);
  --badge-bg: #33231a;
  --badge-text: var(--color-popcorn-gold);
  --device-bezel: #000;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 96px; }
body { line-height: 1.6; overflow-x: hidden; transition: background var(--transition-normal); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); text-wrap: balance; }
p { color: var(--text-secondary); }
a { color: var(--primary-brand); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-brand-hover); }
img, svg { max-width: 100%; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-brand); outline-offset: 3px; border-radius: 4px;
}

.skip-link { position: absolute; top: -100px; left: 20px; background: var(--color-popcorn-gold); color: #000; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-sm); z-index: 9999; transition: top var(--transition-fast); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.skip-link:focus { top: 20px; }

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

/* Reveal-on-scroll — only hidden when JS is present (the <head> adds .js before paint), so
   a no-JS visit or any JS failure leaves every section fully visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.7,0.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; border-radius: var(--radius-full); border: none; cursor: pointer; transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast); text-align: center; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-brand); color: #fff; box-shadow: 0 6px 18px rgba(128,0,32,0.28); }
.btn-primary:hover { background: var(--primary-brand-hover); color: #fff; box-shadow: 0 10px 26px rgba(128,0,32,0.36); transform: translateY(-1px); }
.dark-theme .btn-primary { color: #1a0a0a; }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-interactive); border-color: var(--text-muted); }
.btn-accent { background: var(--color-popcorn-gold); color: #1a1200 !important; box-shadow: 0 6px 18px rgba(245,197,24,0.30); }
.btn-accent:hover { background: var(--color-popcorn-gold-light); color: #1a1200 !important; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(245,197,24,0.4); }

/* ---------- Brand mark ---------- */
.brand-mark { display: inline-flex; width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18)); }
.brand-mark svg { width: 100%; height: 100%; }

/* ---------- Header ---------- */
header.site-header { position: fixed; inset: 0 0 auto 0; background: rgba(var(--bg-primary-rgb), 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-color); z-index: 1000; transition: background var(--transition-normal), border-color var(--transition-normal); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 74px; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-body); font-weight: 800; font-size: 1.5rem; color: var(--text-primary); letter-spacing: -0.03em; line-height: 1; }
.logo-text-accent { color: var(--primary-brand); }
.nav-controls { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-brand); transition: width var(--transition-fast); }
.nav-links a:hover { color: var(--primary-brand); }
.nav-links a:hover::after { width: 100%; }

.theme-btn { background: var(--bg-interactive); border: 1px solid var(--border-color); width: 44px; height: 44px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition-fast), transform var(--transition-fast); font-size: 1.15rem; }
.theme-btn:hover { background: var(--border-color); transform: rotate(12deg); }

.hamburger { display: none; background: none; border: none; width: 44px; height: 44px; position: relative; cursor: pointer; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); position: absolute; left: 10px; transition: transform var(--transition-fast), top var(--transition-fast), opacity var(--transition-fast); }
.hamburger span:nth-child(1){ top:16px } .hamburger span:nth-child(2){ top:22px } .hamburger span:nth-child(3){ top:28px }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: rotate(45deg); top:22px }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0 }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: rotate(-45deg); top:22px }

/* ---------- Hero ---------- */
.hero-section { padding: 150px 0 90px; background: var(--hero-gradient); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
/* Let grid tracks shrink below their content's intrinsic min-width so a wide mockup
   (e.g. the tablet two-pane) can never force the track — and the page — past the viewport. */
.hero-grid > *, .wt-grid > * { min-width: 0; }
.hero-tagline { display: inline-block; background: var(--badge-bg); color: var(--badge-text); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; padding: 7px 15px; border-radius: var(--radius-full); margin-bottom: 22px; font-family: var(--font-body); }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 3.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; line-height: 1.1; }
.hero-title span { color: var(--primary-brand); font-style: italic; }
.hero-description { font-size: 1.18rem; margin-bottom: 30px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-popcorn-gold); box-shadow: 0 0 0 3px rgba(245,197,24,0.18); }

.showcase-container { display: flex; justify-content: center; align-items: center; position: relative; }
.showcase-glow { position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(128,0,32,0.16) 0%, rgba(245,197,24,0.07) 45%, rgba(0,0,0,0) 70%); z-index: 1; pointer-events: none; }
.dark-theme .showcase-glow { background: radial-gradient(circle, rgba(255,90,90,0.16) 0%, rgba(245,197,24,0.09) 45%, rgba(0,0,0,0) 70%); }

/* ---------- Device frames ---------- */
.device { position: relative; z-index: 2; background: var(--device-bezel); box-shadow: 0 34px 70px -20px rgba(0,0,0,0.45); transition: transform var(--transition-normal); }
.device.phone { width: 100%; max-width: 320px; border-radius: 42px; border: 12px solid var(--device-bezel); aspect-ratio: 9 / 19.5; overflow: hidden; }
.device.phone:hover { transform: translateY(-8px) rotate(0.6deg); }
.device-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: var(--device-bezel); border-radius: var(--radius-full); z-index: 4; }

/* App screen surface */
.app-screen { width: 100%; height: 100%; background: var(--bg-primary); color: var(--text-primary); display: flex; flex-direction: column; overflow: hidden; }
.device.phone .app-screen { border-radius: 30px; padding: 34px 14px 14px; gap: 12px; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; }
.app-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--color-maroon), #b82343); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2); }

/* Segmented control */
.seg { display: flex; background: var(--bg-interactive); border-radius: var(--radius-full); padding: 4px; gap: 4px; }
.seg-item { flex: 1; text-align: center; font-size: 0.78rem; font-weight: 700; padding: 7px 0; border-radius: var(--radius-full); color: var(--text-secondary); }
.seg-item.is-active { background: var(--bg-secondary); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.dark-theme .seg-item.is-active { background: var(--color-charcoal-hover); }

/* Filter chips */
.chips { display: flex; gap: 7px; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 0.72rem; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-full); border: 1px solid var(--border-color); color: var(--text-secondary); background: var(--bg-secondary); }
.chip.is-on { background: var(--primary-brand); border-color: var(--primary-brand); color: #fff; }
.dark-theme .chip.is-on { color: #1a0a0a; }
.chip-star { color: var(--color-popcorn-gold); }

/* Poster tiles — real TMDB artwork via inline background-image */
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; overflow: hidden; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background-color: #17131a; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 4px 10px rgba(0,0,0,0.22); }
.poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 22%); pointer-events: none; }
.poster-star { position: absolute; top: 6px; right: 6px; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.5); color: var(--color-popcorn-gold); font-size: 0.7rem; }

/* Phone bottom navigation bar (pinned to the bottom of the screen, bleeding to the edges) */
.app-bottomnav { margin: auto -14px -14px; padding: 9px 4px 11px; display: flex; justify-content: space-around; align-items: flex-end; gap: 2px; border-top: 1px solid var(--border-color); background: var(--bg-primary); }
.navtab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); }
.navtab svg { width: 21px; height: 21px; fill: currentColor; }
.navtab small { font-size: 0.53rem; font-weight: 600; letter-spacing: 0.01em; }
.navtab.is-active { color: var(--primary-brand); }

/* ---------- Features ---------- */
.features-section { padding: 96px 0; background: var(--bg-secondary); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-tagline { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-brand); margin-bottom: 12px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--card-shadow); transition: transform var(--transition-normal), border-color var(--transition-fast); }
.feature-card:hover { transform: translateY(-6px); border-color: var(--color-popcorn-gold); }
.feature-icon { width: 54px; height: 54px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 1.6rem; background: var(--badge-bg); margin-bottom: 18px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.98rem; }

/* ---------- Watch together ---------- */
.watch-together-section { padding: 96px 0; background: var(--bg-secondary); }
.wt-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.sim-app-interface { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--card-shadow); max-width: 440px; margin: 0 auto; }
.sim-app-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 14px; }
.sim-app-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 10px; }
.sim-app-badge { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; padding: 4px 9px; border-radius: var(--radius-full); background: var(--badge-bg); color: var(--badge-text); }
.sim-user-avatars { display: flex; }
.sim-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--color-maroon), #b82343); box-shadow: 0 0 0 2px var(--bg-primary); }
.sim-avatar:nth-child(2) { margin-left: -10px; background: linear-gradient(135deg, #b98a00, var(--color-popcorn-gold)); color: #1a1200; }
.sim-list { display: flex; flex-direction: column; gap: 10px; }
.sim-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-md); background: var(--bg-secondary); border: 1px solid var(--border-color); }
.sim-poster { width: 40px; height: 58px; border-radius: 7px; flex-shrink: 0; background-color: #17131a; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sim-item-info { flex: 1; min-width: 0; }
.sim-item-name { font-weight: 700; font-size: 0.95rem; }
.sim-item-meta { font-size: 0.78rem; color: var(--text-muted); }
.sim-match-tag { font-size: 0.68rem; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-full); background: rgba(16,185,129,0.12); color: #0f9d68; white-space: nowrap; }
.dark-theme .sim-match-tag { background: rgba(16,185,129,0.18); color: #34d399; }

/* ---------- FAQ ---------- */
.faq-section { padding: 96px 0; background: var(--bg-primary); }
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--card-shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; color: var(--text-primary); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-body); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--primary-brand); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary-brand); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: 1rem; }

/* ---------- CTA ---------- */
.cta-section { padding: 96px 0; background: linear-gradient(160deg, var(--color-maroon-dark), var(--color-maroon)); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(245,197,24,0.22), rgba(0,0,0,0) 70%); }
.cta-container { position: relative; text-align: center; max-width: 640px; }
.cta-mark { width: 60px; height: 60px; margin-bottom: 18px; }
.cta-section .section-title { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.86); font-size: 1.12rem; margin: 6px auto 28px; max-width: 480px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-note { font-size: 0.85rem; color: rgba(255,255,255,0.72); }
.cta-note .ios-soon { color: var(--color-popcorn-gold-light); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.footer-logo-lockup { margin-bottom: 12px; }
.footer-tagline { max-width: 320px; margin-bottom: 12px; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-social { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; }
.footer-social svg { width: 21px; height: 21px; }
.footer-social:hover { color: var(--primary-brand); }
.footer-nav h3, .footer-attribution h3 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; font-weight: 700; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-secondary); font-weight: 500; }
.footer-nav a:hover { color: var(--primary-brand); }
.attribution-badge { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.attribution-logo { width: 74px; height: auto; flex-shrink: 0; margin-top: 3px; filter: none; }
.dark-theme .attribution-logo { filter: brightness(0) invert(1) opacity(0.8); }
.attribution-text { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.footer-legal-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-legal-links a { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.footer-legal-links a:hover { color: var(--primary-brand); }
.footer-fineprint { font-size: 0.75rem; color: var(--text-muted); max-width: 620px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .wt-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-text-content, .wt-text-content { text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .wt-mockup-container { order: 2; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* Closed menu is hidden from tab order + a11y tree (visibility:hidden), not just moved
     off-screen, so it matches the hamburger's aria-expanded="false". */
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); padding: 16px 24px 24px; gap: 4px; transform: translateY(-120%); visibility: hidden; transition: transform var(--transition-normal), visibility var(--transition-normal); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
  #main-nav-links.nav-open .nav-links { transform: translateY(0); visibility: visible; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .hamburger { display: block; }
  body.menu-active { overflow: hidden; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 122px 0 70px; }
  .features-section, .watch-together-section, .faq-section, .cta-section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Foldables ---------- */
/* Opened foldable — a roomy, near-square canvas (~800–1150px). Keep the richer two-column
   layouts (rather than the phone-style single column) so the extra width is actually used. */
@media (min-width: 800px) and (max-width: 1150px) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 6/5) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-text-content, .wt-text-content { text-align: left; }
  .hero-description { margin-left: 0; margin-right: 0; }
  .hero-ctas, .hero-trust { justify-content: flex-start; }
  .wt-grid { grid-template-columns: 1fr 1fr; }
  .wt-mockup-container { order: 0; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Physical posture (Device Posture API — reflected onto <html> as .fold-book / .fold-laptop by
   initFoldable() in app.js; a no-op on non-foldables).
   Book  = held in portrait, crease down the centre → a two-page hero spread with a wide central
           gutter so nothing key lands on the fold.
   Laptop = lower half lies flat like a keyboard → weight content toward the top (upright) half. */
:root.fold-book .hero-grid { grid-template-columns: 1fr 1fr; column-gap: 8vw; align-items: center; }
:root.fold-book .hero-text-content, :root.fold-book .wt-text-content { text-align: left; }
:root.fold-book .hero-description { margin-left: 0; margin-right: 0; }
:root.fold-book .hero-ctas, :root.fold-book .hero-trust { justify-content: flex-start; }
:root.fold-book .wt-grid { grid-template-columns: 1fr 1fr; column-gap: 8vw; }
:root.fold-book .wt-mockup-container { order: 0; }

:root.fold-laptop .hero-section { padding: 96px 0 44px; }
:root.fold-laptop .features-section, :root.fold-laptop .watch-together-section, :root.fold-laptop .faq-section, :root.fold-laptop .cta-section { padding: 64px 0; }
