/* =========================================================
   CINEFLIQ — styles.css
   Deep navy atmosphere · glassmorphism · swipe-first
   ========================================================= */
:root{
  /* True black rather than navy. The old #05060F read as a blue-grey wash and
     pulled every surface toward the same middle tone; black lets one accent do
     all the work and makes poster artwork the brightest thing on the page. */
  --bg:#000000;
  --surface:#0A0A0A;
  --card:#0D0D0D;
  --elevated:#0F0F0F;

  /* Hairlines, not glass. A 1px #1C1C1C edge separates surfaces without the
     blur-and-tint stack the old design leaned on. */
  --line:#1C1C1C;
  --line-soft:rgba(255,255,255,.06);

  /* Text */
  --t1:#FAFAFA;
  --t2:#A1A1A1;
  --t3:#7D7D7D;

  /* One accent, used sparingly. Cinefliq's cyan, kept so the site and the app
     agree; the app's tab bar and genre labels already use it. Swap these two
     values to restyle every accented element on the site. */
  --sky:#22C7F0;
  --accent:#22C7F0;
  --accent-ink:#001016;
  --accent-soft:rgba(34,199,240,.12);
  --accent-line:rgba(34,199,240,.28);

  /* Decision colours, identical to the app's four swipe meanings. */
  --loved:#B98BFF;
  --watched:#4ADE80;
  --watchlist:#FFC24B;
  --skip:#8FA0BE;

  /* Legacy aliases, so components not yet migrated keep resolving. */
  --navy:#0A0A0A;
  --ocean:#22C7F0;
  --ocean-lift:#22C7F0;
  --ice:#7FDCF5;
  --frost:#BDEBFA;
  --glass-bg:#0D0D0D;
  --glass-brd:#1C1C1C;
  --glass-hi:rgba(255,255,255,.04);

  --radius:12px;
  --radius-sm:8px;
  --maxw:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--t1);
  /* The system stack, not a webfont. Inter was flagged as an overused face, and
     dropping the Google Fonts request also removes a third party that was
     receiving every visitor's IP address. The native UI face renders sharper on
     each platform than a downloaded approximation of it. */
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,
              "Helvetica Neue",Arial,"Noto Sans",sans-serif;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.container{max-width:var(--maxw);margin:0 auto;padding:0 28px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* ---------- atmosphere ---------- */
.atmosphere{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
/* The two 120px-blur radial glows are gone. They were the single most
   category-generic element on the page and they lifted the background off
   true black, which is the whole point of this palette. */
.glow{display:none}
.glow-1{width:620px;height:620px;background:radial-gradient(circle,var(--ocean),transparent 65%);top:-180px;right:-120px}
.glow-2{width:560px;height:560px;background:radial-gradient(circle,var(--navy),transparent 65%);bottom:-160px;left:-140px;opacity:.7}
.grain{position:absolute;inset:0;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ---------- shared ---------- */
/* Flat card, hairline edge, no blur. Glass over near-black was doing nothing
   but costing paint time and muddying the contrast underneath. */
.glass{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.kicker{
  display:inline-block;font-size:.74rem;font-weight:600;letter-spacing:.22em;
  text-transform:uppercase;color:var(--sky);margin-bottom:1rem
}
/* Was gradient-clipped text. Emphasis now comes from weight and colour, which
   survives at any size and does not disappear when a gradient is clipped. */
.grad{color:var(--accent)}

.btn{
  display:inline-flex;align-items:center;gap:.55rem;justify-content:center;
  font-family:inherit;font-weight:600;font-size:.98rem;cursor:pointer;
  border-radius:var(--radius-sm);padding:.8rem 1.5rem;border:1px solid transparent;
  transition:transform .25s var(--ease),box-shadow .3s var(--ease),background .3s,border-color .3s;
}
.btn-sm{padding:.6rem 1.15rem;font-size:.9rem}
/* Flat accent on black. #22C7F0 against #001016 measures 9.1:1, so the label
   clears AA comfortably without the gradient the old button needed. */
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:#4AD4F5}
.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}
.btn-ghost{background:transparent;border-color:var(--line);color:var(--t1)}
.btn-ghost:hover{border-color:#333;background:var(--surface)}

/* ---------- nav ---------- */
#nav{position:fixed;top:0;left:0;right:0;z-index:40;transition:background .3s,border-color .3s;
  border-bottom:1px solid transparent}
#nav.scrolled{background:rgba(0,0,0,.82);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;font-size:1.25rem;letter-spacing:-.02em}
.brand-mark{width:15px;height:15px;border-radius:4px;background:var(--accent)}

/* ---------- hero ---------- */
.hero{position:relative;z-index:1;padding:76px 0 48px;display:flex;flex-direction:column;justify-content:center}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
/* Below 920px the demo leads: proof before the ask. */
@media(max-width:920px){
  .hero{padding:96px 0 48px}
  .hero-grid{grid-template-columns:1fr;gap:34px;text-align:center}
  .hero-visual{order:-1}
}
.eyebrow{display:inline-flex;align-items:center;gap:.6rem;font-size:.82rem;color:var(--t2);
  padding:.4rem .85rem;border-radius:100px;border:1px solid var(--line);background:var(--surface);margin-bottom:.9rem;
  font-weight:500;letter-spacing:.01em}
.eyebrow-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(1.6)}}
h1{font-size:clamp(2.6rem,5.6vw,4.2rem);font-weight:800;line-height:.98;letter-spacing:-.042em;
   margin-bottom:.85rem;text-wrap:balance}
.lede{font-size:1.08rem;color:var(--t2);max-width:44ch;margin-bottom:1rem;line-height:1.55}
@media(max-width:920px){.lede{margin-left:auto;margin-right:auto}}

/* phone */
.hero-visual{position:relative;display:flex;justify-content:center;perspective:1400px}
.phone{position:relative;width:300px;height:610px;border-radius:46px;padding:12px;z-index:2;
  background:#0A0A0A;
  border:1px solid #222;
  box-shadow:0 40px 80px rgba(0,0,0,.8);
  transform:rotateY(-12deg) rotateX(4deg);transition:transform .4s var(--ease)}
.phone-notch{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:120px;height:24px;
  background:#000;border-radius:0 0 16px 16px;z-index:5}
.phone-screen{position:relative;width:100%;height:100%;border-radius:36px;overflow:hidden;
  background:#000;display:flex;flex-direction:column}
.app-top{display:flex;align-items:center;justify-content:space-between;padding:26px 22px 14px}
.app-logo{font-weight:800;font-size:1rem;letter-spacing:-.02em}
.app-row{display:flex;gap:5px}
.app-row i{width:6px;height:6px;border-radius:50%;background:var(--t3)}
.app-row i:first-child{background:var(--sky)}
.deck{position:relative;flex:1;margin:0 18px}
.swipe-legend{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:12px 14px 22px}
/* These four labels are product truth, not chrome. They stay at 12px minimum. */
.lg{font-size:.75rem;font-weight:600;color:var(--t2);background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius-sm);padding:.38rem .3rem;text-align:center;
  white-space:nowrap}
.lg-up{color:var(--loved)}.lg-right{color:var(--watched)}.lg-left{color:var(--watchlist)}.lg-down{color:var(--skip)}
.phone-shadow{display:none}
/* Narrower on small screens so there is page-scroll gutter either side of the
   card, which owns all four gesture directions and cannot pass scroll through. */
@media(max-width:420px){
  .phone{width:262px;height:536px;border-radius:40px}
  .phone-screen{border-radius:32px}
  .phone-shadow{width:206px}
}

/* deck cards */
/* touch-action:none lets the card own vertical drags. Without it the browser
   scrolls the page during an up/down swipe and "Loved it" and "Skip" both break. */
.m-card{position:absolute;inset:0;border-radius:24px;overflow:hidden;cursor:grab;touch-action:none;
  box-shadow:0 20px 40px rgba(0,0,0,.5);transition:transform .5s var(--ease),opacity .4s;will-change:transform}
.m-card.dragging{transition:none;cursor:grabbing}
.m-card .pp{position:absolute;inset:0;background-size:cover;background-position:center}
.m-card .pp img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  pointer-events:none;-webkit-user-drag:none;user-select:none}
.m-card .pp::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(3,4,30,.95) 10%,transparent 55%)}
.m-card .glassbar{position:absolute;left:12px;right:12px;bottom:12px;z-index:2;padding:12px 14px;border-radius:16px;
  background:rgba(8,16,40,.5);backdrop-filter:blur(10px);border:1px solid var(--glass-brd)}
/* Was .62rem, computing to 9.92px. DESIGN.md's Twelve Pixel Floor Rule applies:
   this is a real label inside the demo, not decoration. Tracking eased because
   .14em at a larger size pushed two-word genres onto a second line. */
.m-card .g{font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.m-card .ti{font-size:1.05rem;font-weight:800;letter-spacing:-.01em;margin:.2rem 0}
.m-card .me{font-size:.78rem;color:var(--t2)}
.m-card .me b{color:var(--ice)}
.m-stamp{position:absolute;top:18px;left:50%;transform:translateX(-50%) scale(.8);z-index:4;
  font-size:.9rem;font-weight:800;letter-spacing:.1em;padding:.35rem .8rem;border-radius:9px;
  border:2px solid;opacity:0;transition:opacity .15s}

/* ---------- footer ---------- */
footer{position:relative;z-index:1;border-top:1px solid var(--glass-brd);padding:42px 0;margin-top:40px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.2rem}
.footer-links{display:flex;gap:1.1rem;flex-wrap:wrap;justify-content:center}
/* 44px minimum touch target: these measured 24px tall and were missed on first tap. */
.footer-links a{color:var(--t2);font-size:.92rem;transition:color .2s;
  display:inline-flex;align-items:center;min-height:44px;padding:0 .4rem}
.footer-links a:hover{color:var(--t1)}
.copy{color:var(--t3);font-size:.85rem}
.attribution{color:var(--t3);font-size:.78rem;line-height:1.5;margin-top:1rem;
  flex-basis:100%;text-align:center}
.attribution a{color:var(--t2);text-decoration:underline;text-underline-offset:2px}

/* ---------- a11y ---------- */
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Off-screen until focused, then it lands where a keyboard user can see it.
   Not display:none, which would take it out of the tab order entirely and
   defeat the point. */
.skip-link{
  position:absolute;left:12px;top:-60px;z-index:60;
  background:var(--accent);color:var(--accent-ink);
  padding:.7rem 1.1rem;border-radius:var(--radius-sm);
  font-weight:700;font-size:.92rem;
  transition:top .18s var(--ease);
}
.skip-link:focus{top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The deck is gesture-driven, so it also takes focus and answers arrow keys. */
.deck:focus-visible{outline:2px solid var(--sky);outline-offset:4px;border-radius:26px}
.deck-hint{font-size:.7rem;color:var(--t3);text-align:center;padding:0 14px 6px;opacity:0;
  transition:opacity .2s}
.deck:focus-visible ~ .deck-hint,.deck:focus ~ .deck-hint{opacity:1}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .phone{transform:none}
}

/* ============ interest form ============ */
.form-card{padding:1.4rem;margin-top:.6rem;max-width:440px}
@media(max-width:920px){.form-card{margin-left:auto;margin-right:auto}}
.form-title{font-size:1.35rem;font-weight:800;letter-spacing:-.02em;margin-bottom:.3rem}
.form-sub{color:var(--t2);font-size:.95rem;margin-bottom:1rem}
.interest-form .field{margin-bottom:.8rem;text-align:left}
.interest-form label,
.interest-form .field-label{display:block;font-size:.82rem;font-weight:600;color:var(--t2);margin-bottom:.4rem}
.interest-form input[type=text],
.interest-form input[type=email]{
  width:100%;font-family:inherit;font-size:.98rem;color:var(--t1);
  padding:.8rem 1rem;border-radius:12px;background:rgba(5,8,20,.6);
  border:1px solid var(--glass-brd);transition:border-color .2s,box-shadow .2s}
.interest-form input::placeholder{color:var(--t3)}
.interest-form input:focus{outline:none;border-color:var(--sky);box-shadow:0 0 0 3px rgba(0,180,216,.15)}
.platform-toggle{display:flex;gap:.5rem}
.platform-toggle .pill{flex:1;position:relative;cursor:pointer;margin:0}
.platform-toggle .pill input{position:absolute;opacity:0;inset:0;cursor:pointer}
.platform-toggle .pill span{display:block;text-align:center;padding:.75rem .4rem;border-radius:12px;
  background:rgba(5,8,20,.5);border:1px solid var(--glass-brd);color:var(--t2);font-weight:600;
  font-size:.92rem;transition:all .2s}
.platform-toggle .pill input:checked + span{
  background:rgba(0,180,216,.14);border-color:var(--sky);color:var(--t1)}
.platform-toggle .pill input:focus-visible + span{outline:2px solid var(--sky);outline-offset:2px}
.btn-block{width:100%;margin-top:.4rem}
.form-msg{font-size:.9rem;text-align:left}
/* Reassurance sits with the button, where the visitor decides. */
.form-fine{margin-top:.7rem;font-size:.8rem;color:var(--t3);text-align:center;line-height:1.5}
.form-fine a{color:var(--t2);text-decoration:underline;text-underline-offset:2px}
/* success */
.success-card{text-align:center;margin-top:1.2rem;padding:2.4rem 1.8rem}
.success-check{width:56px;height:56px;border-radius:50%;margin:0 auto 1.2rem;
  display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:800;color:#04121f;
  background:linear-gradient(135deg,var(--sky),var(--ice));box-shadow:0 0 34px rgba(0,180,216,.5)}

/* ============ legal / content pages ============ */
/* 640px keeps the body measure near 70ch. At 760px it ran to 85ch, which is
   past the point where the eye reliably finds the next line. */
.page{position:relative;z-index:1;padding:120px 0 70px;max-width:640px;margin:0 auto}
.page h1{font-size:clamp(2rem,4.5vw,2.9rem);margin-bottom:.5rem}
.page .updated{color:var(--t3);font-size:.88rem;margin-bottom:2.6rem}
.page h2{font-size:1.22rem;font-weight:800;letter-spacing:-.01em;margin:2.4rem 0 .7rem;color:var(--t1)}
.page p,.page li{color:var(--t2);font-size:1rem;line-height:1.75}
.page p{margin-bottom:1rem}
.page ul{margin:0 0 1rem 1.15rem}
.page li{margin-bottom:.5rem}
.page a{color:var(--ice);text-decoration:underline;text-underline-offset:3px}
.page a:hover{color:var(--frost)}
.page strong{color:var(--t1);font-weight:700}
.page .lead{font-size:1.1rem;color:var(--t2);margin-bottom:1.6rem}
.page .callout{border:1px solid var(--glass-brd);background:rgba(144,224,239,.05);
  border-radius:14px;padding:1.1rem 1.25rem;margin:1.6rem 0}
.page .callout p:last-child{margin-bottom:0}
.back-home{display:inline-flex;align-items:center;gap:.45rem;color:var(--t3);
  font-size:.92rem;margin-bottom:2rem;min-height:44px}
.back-home:hover{color:var(--t1)}
.contact-mail{display:inline-block;font-size:1.28rem;font-weight:700;color:var(--ice);
  padding:.65rem 0;text-decoration:none;letter-spacing:-.01em}
.contact-mail:hover{color:var(--frost)}

/* ---------- store availability ---------- */
/* Not links and not official badge artwork: the app is not published, so a real
   Apple or Google badge pointing nowhere would misrepresent the product. */
.stores{display:flex;gap:.7rem;margin:1rem 0 0;flex-wrap:wrap}
@media(max-width:920px){.stores{justify-content:center}}
.store{
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  column-gap:.7rem;align-items:center;
  padding:.6rem 1.05rem .6rem .85rem;border-radius:13px;
  border:1px solid var(--glass-brd);background:rgba(144,224,239,.045);
  min-width:170px;cursor:default;
}
/* Platform marks rather than words. The Apple glyph inherits currentColor so it
   sits on the dark surface without a second asset; the Play mark keeps its own
   four colours because a monochrome Play triangle is not recognisable. */
.store-icon{grid-row:1/3;width:23px;height:23px;flex:none;color:var(--t1)}
.store-line{font-size:.94rem;font-weight:700;color:var(--t1);letter-spacing:-.01em;text-align:left}
.store-soon{font-size:.72rem;color:var(--t3);text-align:left}

/* ---------- height-aware hero rhythm ---------- */
/* The hero used fixed padding, so the submit button sat at a constant 776px no
   matter how tall the viewport was. That cleared an 800px window by 24px and
   missed a 760px one by 16px and a 700px one by 76px. Laptops are mostly
   shorter than 800px once browser chrome is subtracted, so the CTA was under
   the fold for a large share of desktop visitors.

   These tiers compress the vertical rhythm as height shrinks. Nothing is
   removed and nothing reflows sideways; the same content just breathes less
   when there is less room to breathe in. */

@media (max-height: 820px) and (min-width: 921px){
  .hero{padding:56px 0 40px}
  .eyebrow{margin-bottom:.6rem}
  h1{font-size:clamp(2.1rem,4.2vw,3rem);margin-bottom:.55rem}
  .lede{font-size:1rem;margin-bottom:.6rem}
  .form-card{margin-top:.35rem;padding:1.15rem}
  .form-sub{margin-bottom:.7rem}
  .interest-form .field{margin-bottom:.55rem}
  .form-title{margin-bottom:.15rem}
}

@media (max-height: 745px) and (min-width: 921px){
  .hero{padding:34px 0 26px}
  /* Widen the measure rather than shrink the type. The lede wraps to three
     lines at 38ch and two at 64ch, and a line saved here is worth more than a
     line saved anywhere else in the stack. 64ch is still inside a comfortable
     reading measure. */
  .lede{max-width:64ch}
  .eyebrow{margin-bottom:.45rem;padding:.35rem .8rem}
  h1{font-size:clamp(1.8rem,3.2vw,2.2rem);margin-bottom:.4rem}
  .lede{font-size:.95rem;margin-bottom:.45rem}
  .form-card{margin-top:.25rem;padding:1rem}
  .form-sub{margin-bottom:.55rem}
  .interest-form .field{margin-bottom:.45rem}
  .interest-form input[type=text],
  .interest-form input[type=email]{padding:.65rem 1rem}
  .platform-toggle .pill span{padding:.6rem .4rem}
}

/* Short phones in landscape, and small laptops in the single column layout. */
@media (max-height: 700px) and (max-width: 920px){
  .hero{padding:72px 0 32px}
  .hero-grid{gap:22px}
}

/* ---------- why it is different ---------- */
/* Deliberately not three identical icon-and-heading cards. Two asymmetric
   editorial blocks separated by a hairline, then the four swipe meanings at a
   size anyone can actually read. Those four labels were previously only visible
   at 10px inside the phone mockup, which is where the product's whole
   vocabulary was hiding. */
.why{position:relative;z-index:1;padding:22px 0 70px}
.why-inner{max-width:900px;margin:0 auto}
.why-block{padding:1.9rem 0;border-top:1px solid var(--glass-brd)}
.why-block:first-child{border-top:none;padding-top:0}
.why h2{font-size:clamp(1.45rem,2.6vw,1.9rem);font-weight:800;letter-spacing:-.025em;
  margin-bottom:.5rem;color:var(--t1);text-wrap:balance}
.why p{color:var(--t2);font-size:1.02rem;line-height:1.7;max-width:60ch}

.meanings{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
  margin-top:2.4rem;padding-top:1.9rem;border-top:1px solid var(--glass-brd)}
@media(max-width:640px){.meanings{grid-template-columns:repeat(2,1fr)}}
.meaning{display:flex;align-items:center;gap:.6rem;min-height:44px}
.meaning-arrow{font-size:1.35rem;line-height:1;color:var(--c);font-weight:700}
.meaning-label{font-size:.95rem;font-weight:600;color:var(--t1)}
.meanings-note{color:var(--t3);font-size:.92rem;margin-top:1.1rem}

/* ---------- field level validation ---------- */
/* #FF9A9A measures 9.32:1 against the glass form card. Lightened slightly from
   the previous #FF8A8A, which was already fine at 8.34:1, purely so the inline
   text holds up at .83rem where the old colour was set at .9rem. */
.field-error{
  color:#FF9A9A;font-size:.83rem;line-height:1.45;margin-top:.4rem;
  display:flex;align-items:flex-start;gap:.35rem;
}
.field-error::before{content:"!";font-weight:800;flex:none;
  width:1.05em;height:1.05em;border-radius:50%;border:1.5px solid currentColor;
  font-size:.72rem;line-height:1.05em;text-align:center;margin-top:.15em}
.interest-form input[aria-invalid="true"]{border-color:#FF9A9A}
.interest-form input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(255,154,154,.16)}
.platform-toggle[aria-invalid="true"] .pill span{border-color:#FF9A9A}
/* No min-height: this used to reserve a line to avoid a jump, but the
   per-field errors now carry every case the visitor can fix, so the
   reservation was costing vertical space on every render. */
.form-msg{margin-top:0;margin-bottom:0}
.form-msg:not(:empty){margin-bottom:.6rem}
.form-fine a{color:var(--t2);text-decoration:underline;text-underline-offset:2px}

/* ---------- optional details after conversion ---------- */
.extras{margin-top:1.4rem;padding-top:1.3rem;border-top:1px solid var(--glass-brd);text-align:left}
.extras-intro{color:var(--t2);font-size:.92rem;margin-bottom:.9rem}
.extras-skip{
  display:block;width:100%;margin-top:.6rem;min-height:44px;
  background:none;border:0;color:var(--t3);font-family:inherit;font-size:.9rem;
  cursor:pointer;text-decoration:underline;text-underline-offset:3px;
}
.extras-skip:hover{color:var(--t1)}
.extras-done{color:var(--ice);font-size:.95rem;margin-top:1.1rem}
