/* LoomiTV — landing page styles */

:root{
    --radius:3px;
    --maxw:1240px;
  }

:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

body{
    background:var(--bg);
    color:var(--fg);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
    line-height:1.5;
    overflow-x:hidden;
  }

.eyebrow{
    font-family:'Inter', sans-serif;
    font-weight:600;
    font-size:12px;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color:var(--muted);
  }

.on-light .eyebrow{ color:var(--muted-2); }

.on-light .eyebrow span{ color:var(--crimson); }

h1,h2,h3,h4{
    font-family:'Fraunces', serif;
    font-weight:600;
    letter-spacing:-0.01em;
    line-height:1.05;
  }

em{ font-style:italic; color:var(--gold); font-weight:500; }

.on-light em{ color:var(--crimson); }

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

.btn-primary:hover{ background:#A9291F; border-color:#A9291F; }

.btn-ghost:hover{ border-color:var(--fg); background:rgba(255,255,255,0.04); }

.btn-arrow{ transition:transform .25s ease; }

.btn:hover .btn-arrow{ transform:translateX(4px); }

.marquee-dots{
    height:8px;
    background-image:radial-gradient(circle, var(--gold) 2.2px, transparent 2.6px);
    background-size:22px 100%;
    background-position:center;
    opacity:0.55;
  }

/* HERO */
  .hero{
    position:relative;
    min-height:100vh;
    display:flex; align-items:center;
    padding-top:120px; padding-bottom:80px;
    background:
      radial-gradient(ellipse 70% 55% at 78% 10%, rgba(227,166,62,0.16), transparent 60%),
      radial-gradient(ellipse 60% 50% at 5% 90%, rgba(198,52,42,0.18), transparent 60%),
      radial-gradient(ellipse 90% 70% at 50% 50%, #1C1420, #150F1A 70%);
    overflow:hidden;
  }

.hero-grid{
    position:relative; z-index:2;
    display:grid; grid-template-columns:1.4fr 1fr; gap:60px; align-items:end;
  }

.hero h1{
    font-size:clamp(48px, 6.4vw, 84px);
    margin:18px 0 24px;
    font-weight:600;
  }

.hero p.lead{
    font-size:18px; color:var(--muted); max-width:480px; margin-bottom:36px;
  }

.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }

.hero-actions .btn-trial{ display:none; }

.region-strip{ display:flex; gap:22px; flex-wrap:wrap; }

.region-strip span{
    font-family:'Inter', sans-serif; font-weight:500; font-size:12.5px; letter-spacing:0.03em;
    color:var(--muted-2); border-left:2px solid var(--line-strong); padding-left:10px;
  }

/* TICKET PANEL — signature element */
  .ticket{
    background:var(--light);
    color:var(--fg-on-light);
    border-radius:6px;
    padding:30px 30px 26px;
    position:relative;
    transform:rotate(1.5deg);
    box-shadow:0 30px 60px rgba(0,0,0,0.35);
    transition:transform .3s cubic-bezier(.2,.7,.3,1);
    will-change:transform;
  }

.ticket::before, .ticket::after{
    content:'';
    position:absolute; width:26px; height:26px; background:var(--bg);
    border-radius:50%; top:50%; transform:translateY(-50%);
  }

.ticket::before{ left:-13px; }

.ticket::after{ right:-13px; }

.ticket-head{ display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px dashed var(--line-on-light); padding-bottom:16px; margin-bottom:16px; }

.ticket-head .t-eyebrow{ font-family:'Inter',sans-serif; font-weight:600; font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--muted-2); }

.ticket-head h4{ font-family:'Fraunces', serif; font-size:26px; font-weight:600; margin-top:4px; }

.ticket-code{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--crimson); text-align:right; }

.ticket .row{
    display:flex; justify-content:space-between; align-items:baseline;
    padding:10px 0;
    font-family:'Inter', sans-serif; font-size:13.5px;
  }

.ticket .row span:first-child{ color:var(--muted-2); }

.ticket .row span:last-child{ color:var(--fg-on-light); font-weight:600; }

.barcode{
    margin-top:14px; height:34px;
    background:repeating-linear-gradient(90deg, var(--fg-on-light) 0 2px, transparent 2px 5px, var(--fg-on-light) 5px 6px, transparent 6px 10px);
    opacity:0.85;
  }

/* STATS STRIP */
  .stats{
    background:var(--bg-warm);
    border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  }

.stats-grid{ display:grid; grid-template-columns:repeat(5,1fr); }

.stat-item{ padding:40px 24px; border-right:1px solid var(--line); }

.stat-item:last-child{ border-right:none; }

.stat-num{ font-family:'Fraunces', serif; font-weight:700; font-size:38px; color:var(--fg); }

.stat-num span{ color:var(--gold); }

.stat-label{ font-family:'Inter', sans-serif; font-size:12.5px; color:var(--muted); margin-top:8px; }

/* SECTION HEADER */
  .section{ padding:120px 0; }

.section-head{ max-width:640px; margin-bottom:64px; }

.section-head h2{ font-size:clamp(32px, 4.2vw, 50px); margin-top:10px; font-weight:600; }

.section-head p:not(.eyebrow){ color:var(--muted); margin-top:16px; font-size:16px; max-width:520px; }

.on-light .section-head p{ color:var(--muted-2); }

/* NOW STREAMING — light break section */
  .showcase{ background:var(--light); color:var(--fg-on-light); }

.showcase .section-head p{ color:var(--muted-2); }

.poster-wall{ display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }

.poster{
    aspect-ratio:2/3; border-radius:8px; position:relative; overflow:hidden;
    display:flex; flex-direction:column; justify-content:flex-end; padding:18px;
    box-shadow:0 16px 30px rgba(28,20,32,0.18);
    transition:transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease;
  }

.poster:hover{ transform:translateY(-10px) rotate(-0.4deg); box-shadow:0 26px 46px rgba(28,20,32,0.3); }

.poster:nth-child(3n+2){ transform:translateY(16px); }

.poster:nth-child(3n+2):hover{ transform:translateY(6px) rotate(0.4deg); }

/* Swap artwork: set a background-image on .poster-art (e.g. style="background-image:url('cover.jpg')") — it will replace the gradient placeholder automatically. Real showcase photography (assets/images/showcase/) is rendered as an <img> instead, so it benefits from native loading="lazy" — the gradient below still shows through as an instant-paint placeholder until each photo loads. */
  .poster-art{
    position:absolute; inset:0; z-index:0;
    background-size:cover; background-position:center;
    transition:transform .6s cubic-bezier(.2,.7,.3,1);
  }

.poster-art img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

.poster:hover .poster-art{ transform:scale(1.09); }

.poster-overlay{
    position:absolute; inset:0; z-index:1;
    background:linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.82) 100%);
    transition:background .4s ease;
  }

.poster:hover .poster-overlay{ background:linear-gradient(180deg, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.88) 100%); }

.poster-badge{
    position:absolute; top:14px; left:14px; z-index:2;
    background:rgba(0,0,0,0.4); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
    color:#fff; font-family:'Inter',sans-serif; font-weight:600; font-size:10.5px;
    letter-spacing:0.08em; text-transform:uppercase; padding:5px 10px; border-radius:20px;
  }

.poster-info{ position:relative; z-index:2; transform:translateY(6px); transition:transform .35s ease; }

.poster:hover .poster-info{ transform:translateY(0); }

.poster h4{ color:#fff; font-family:'Fraunces', serif; font-size:18px; font-weight:600; }

.poster span.genre{ color:rgba(255,255,255,0.75); font-size:11.5px; font-family:'Inter',sans-serif; }

.p1 .poster-art{ background:linear-gradient(150deg,#C6342A,#7A1E1E); }

.p2 .poster-art{ background:linear-gradient(150deg,#2E5FA8,#152C52); }

.p3 .poster-art{ background:linear-gradient(150deg,#E3A63E,#8A5B12); }

.p4 .poster-art{ background:linear-gradient(150deg,#3E8F72,#164A38); }

.p5 .poster-art{ background:linear-gradient(150deg,#8A3E9E,#3C1A48); }

.p6 .poster-art{ background:linear-gradient(150deg,#C1546F,#5C1E30); }

.p7 .poster-art{ background:linear-gradient(150deg,#4E4E9E,#211F52); }

.p8 .poster-art{ background:linear-gradient(150deg,#B87A2E,#5C3712); }

.p9 .poster-art{ background:linear-gradient(150deg,#2E9C8F,#134A43); }

.p10 .poster-art{ background:linear-gradient(150deg,#7A5CC6,#312057); }

.p11 .poster-art{ background:linear-gradient(150deg,#D68A3E,#7A4712); }

.p12 .poster-art{ background:linear-gradient(150deg,#4E8FC6,#173352); }

/* FEATURES */
  .feature-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); }

.feature-card{ background:var(--bg); padding:40px 32px; transition:background .25s ease; }

.feature-card:hover{ background:var(--bg-warm); }

.feature-num{ font-family:'Fraunces', serif; font-style:italic; font-size:15px; color:var(--gold); margin-bottom:22px; }

.feature-card h3{ font-size:22px; margin-bottom:12px; font-weight:600; }

.feature-card p{ color:var(--muted); font-size:14.5px; }

/* PRICING — ticket stubs */
  .pricing{ background:var(--bg-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

.toggle-row{ display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center; margin-bottom:56px; }

.toggle-group{ display:flex; border:1px solid var(--line-strong); border-radius:var(--radius); overflow:hidden; }

.toggle-group button{
    font-family:'Inter', sans-serif; font-weight:600; font-size:13px;
    padding:12px 20px; background:transparent; border:none; color:var(--muted); cursor:pointer;
    border-right:1px solid var(--line-strong);
    transition:all .2s ease;
  }

.toggle-group button:last-child{ border-right:none; }

.toggle-group button.active{ background:var(--gold); color:#241802; }

.plan-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }

.plan-card{
    background:var(--light); color:var(--fg-on-light);
    border-radius:8px;
    padding:32px 30px; display:flex; flex-direction:column;
    position:relative;
    box-shadow:0 20px 40px rgba(0,0,0,0.25);
  }

.plan-card::before, .plan-card::after{
    content:''; position:absolute; width:22px; height:22px; background:var(--bg-deep);
    border-radius:50%; left:50%; transform:translateX(-50%);
  }

.plan-card::before{ top:-11px; }

.plan-card::after{ bottom:-11px; }

.plan-card.featured{ outline:2px solid var(--crimson); outline-offset:-2px; }

.plan-badge{
    position:absolute; top:20px; right:20px;
    background:var(--crimson); color:#fff;
    font-family:'Inter',sans-serif; font-weight:600; font-size:10px; letter-spacing:0.06em; text-transform:uppercase;
    padding:6px 12px; border-radius:20px;
  }

.plan-name{ font-family:'Fraunces', serif; font-size:27px; font-weight:600; margin-bottom:4px; }

.plan-sub{ color:var(--muted-2); font-size:13px; margin-bottom:22px; font-family:'Inter',sans-serif; }

.plan-price{ display:flex; align-items:baseline; gap:6px; margin-bottom:4px; }

.plan-price .amount{ font-family:'Fraunces', serif; font-weight:700; font-size:44px; }

.plan-price .cycle{ color:var(--muted-2); font-size:13px; }

.plan-billed{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--muted-2); margin-bottom:14px; }

.plan-card .barcode{ margin-bottom:22px; opacity:0.5; }

.plan-features{ margin-bottom:28px; flex:1; border-top:2px dashed var(--line-on-light); padding-top:16px; }

.plan-features li{
    display:flex; gap:10px; align-items:flex-start;
    font-size:13.5px; color:var(--fg-on-light); padding:7px 0;
  }

.plan-features li::before{ content:'✦'; color:var(--crimson); flex-shrink:0; font-size:11px; margin-top:2px;}

.plan-card .btn{ justify-content:center; width:100%; border-color:var(--fg-on-light); color:var(--fg-on-light); }

.plan-card .btn-primary{ background:var(--crimson); border-color:var(--crimson); color:#fff; }

.plan-card .btn-ghost:hover{ background:rgba(28,20,32,0.06); }

/* DEVICES */
  .device-band{ display:grid; grid-template-columns:repeat(6,1fr); border:1px solid var(--line); }

.device-item{
    position:relative; padding:36px 16px; text-align:center; border-right:1px solid var(--line);
    display:flex; flex-direction:column; align-items:center; gap:14px;
    cursor:pointer; overflow:hidden;
    transition:background .35s ease, transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
  }

.device-item:last-child{ border-right:none; }

.device-item::before{
    content:''; position:absolute; inset:0;
    background:radial-gradient(circle at 50% 30%, rgba(227,166,62,0.16), transparent 70%);
    opacity:0; transition:opacity .35s ease;
  }

.device-item:hover{
    background:var(--bg-warm);
    transform:translateY(-6px);
    box-shadow:0 20px 34px rgba(0,0,0,0.28);
    z-index:1;
  }

.device-item:hover::before{ opacity:1; }

.device-item svg{ width:28px; height:28px; stroke:var(--muted); position:relative; transition:stroke .3s ease, transform .35s cubic-bezier(.2,.7,.3,1); }

.device-item:hover svg{ stroke:var(--gold); transform:scale(1.12); }

.device-item span{ font-family:'Inter', sans-serif; font-weight:500; font-size:12px; color:var(--muted); position:relative; transition:color .3s ease; }

.device-item:hover span{ color:var(--fg); }

.device-tag{
    position:relative; font-family:'Inter',sans-serif; font-weight:600; font-size:10.5px;
    letter-spacing:0.04em; color:var(--gold); max-height:0; opacity:0;
    transition:max-height .3s ease, opacity .3s ease;
  }

.device-item:hover .device-tag{ max-height:20px; opacity:1; }

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

.testi-card{ border:1px solid var(--line); border-radius:6px; padding:32px; background:var(--bg-warm); }

.testi-quote{ font-family:'Fraunces', serif; font-style:italic; font-size:18px; color:var(--fg); margin-bottom:24px; line-height:1.5; font-weight:500; }

.testi-who{ display:flex; justify-content:space-between; font-family:'Inter', sans-serif; font-size:12.5px; color:var(--muted); border-top:1px solid var(--line); padding-top:16px; }

/* FAQ */
  .faq-list{ max-width:800px; }

.faq-item{ border-bottom:1px solid var(--line); }

.faq-q{
    width:100%; text-align:left; background:none; border:none; color:var(--fg);
    padding:26px 0; display:flex; justify-content:space-between; align-items:center;
    cursor:pointer; font-size:17px; font-family:'Inter', sans-serif; font-weight:500;
  }

.faq-q .plus{ font-family:'Fraunces', serif; color:var(--gold); font-size:22px; transition:transform .25s ease; flex-shrink:0; margin-left:20px;}

.faq-item.open .plus{ transform:rotate(45deg); }

.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }

.faq-a p{ color:var(--muted); padding-bottom:26px; max-width:640px; font-size:14.5px; }

/* CTA BAND */
  .cta-band{
    padding:100px 0; text-align:center;
    background:radial-gradient(ellipse 70% 100% at 50% 100%, rgba(227,166,62,0.14), transparent 60%), var(--bg-deep);
    border-top:1px solid var(--line);
  }

.cta-band h2{ font-size:clamp(34px,4.6vw,56px); margin-bottom:24px; font-weight:600; }

.cta-band p{ color:var(--muted); margin-bottom:36px; }

/* FOOTER */
  footer{ background:var(--bg-deep); border-top:1px solid var(--line); padding:64px 0 32px; }

.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(3, 1fr); gap:40px; margin-bottom:56px; }

.footer-col h4{ font-family:'Inter', sans-serif; font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:20px; }

.footer-col ul li{ margin-bottom:12px; }

.footer-col ul a{ color:var(--muted); font-size:14px; transition:color .2s ease; }

.footer-col ul a:hover{ color:var(--fg); }

.footer-desc{ color:var(--muted); font-size:14px; max-width:280px; margin-top:16px; }

.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-top:32px; border-top:1px solid var(--line); font-family:'Inter', sans-serif; font-size:12.5px; color:var(--muted-2); }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }

.reveal.in{ opacity:1; transform:translateY(0); }

.feature-grid .reveal:nth-child(1),.poster-wall .reveal:nth-child(1),.testi-grid .reveal:nth-child(1),.stats-grid .reveal:nth-child(1),.plan-grid .reveal:nth-child(1),.device-band .reveal:nth-child(1){ transition-delay:0s; }

.feature-grid .reveal:nth-child(2),.poster-wall .reveal:nth-child(2),.testi-grid .reveal:nth-child(2),.stats-grid .reveal:nth-child(2),.plan-grid .reveal:nth-child(2),.device-band .reveal:nth-child(2){ transition-delay:.08s; }

.feature-grid .reveal:nth-child(3),.poster-wall .reveal:nth-child(3),.testi-grid .reveal:nth-child(3),.stats-grid .reveal:nth-child(3),.plan-grid .reveal:nth-child(3),.device-band .reveal:nth-child(3){ transition-delay:.16s; }

.feature-grid .reveal:nth-child(4),.poster-wall .reveal:nth-child(4),.stats-grid .reveal:nth-child(4),.plan-grid .reveal:nth-child(4),.device-band .reveal:nth-child(4){ transition-delay:.24s; }

.feature-grid .reveal:nth-child(5),.poster-wall .reveal:nth-child(5),.stats-grid .reveal:nth-child(5),.device-band .reveal:nth-child(5){ transition-delay:.32s; }

.feature-grid .reveal:nth-child(6),.poster-wall .reveal:nth-child(6),.device-band .reveal:nth-child(6){ transition-delay:.4s; }

.poster-wall .reveal:nth-child(7){ transition-delay:.48s; }

.poster-wall .reveal:nth-child(8){ transition-delay:.56s; }

.poster-wall .reveal:nth-child(9){ transition-delay:.64s; }

.poster-wall .reveal:nth-child(10){ transition-delay:.72s; }

.poster-wall .reveal:nth-child(11){ transition-delay:.8s; }

.poster-wall .reveal:nth-child(12){ transition-delay:.88s; }

@media (prefers-reduced-motion:reduce){
    .reveal{ transition-delay:0s !important; }
  }

@media (max-width:980px){
    .hero-actions .btn-ghost{ display:none; }
    .hero-actions .btn-trial{ display:inline-flex; }
  }

@media (max-width:900px){
    .hero-grid{ grid-template-columns:1fr; }
    .stats-grid{ grid-template-columns:repeat(2,1fr); }
    .stat-item{ border-bottom:1px solid var(--line); }
    .feature-grid, .plan-grid, .testi-grid{ grid-template-columns:1fr; }
    .poster-wall{ grid-template-columns:repeat(2,1fr); }
    .poster:nth-child(3n+2){ transform:none; }
    .device-band{ grid-template-columns:repeat(3,1fr); }
    .device-item{ border-bottom:1px solid var(--line); }
    .footer-grid{ grid-template-columns:1fr 1fr; }
    .section{ padding:80px 0; }
    .ticket{ transform:none; margin-top:20px; }
  }

/* ======================================================================
   STATISTICS SECTION — mobile-only carousel (≤768px).
   Scoped to .stats-grid / .stat-item only. Everything above (the >900px
   five-across row, and the 769–900px two-column layout from the 900px
   block just above) is untouched and keeps rendering exactly as before —
   this block only takes effect at 768px and below, and only overrides
   layout: .stat-num / .stat-label typography and colors are not touched.
   ====================================================================== */
@media (max-width:768px){
  /* Full-width section, padded carousel content inside it — .wrap's own
     32px side padding would otherwise stack with .stats-grid's 16px,
     leaving oversized gutters before the mobile carousel even starts. */
  .stats .wrap{
    max-width:none;
    padding:0;
  }

  /* .stats-grid is the clipping viewport; .stats-track (injected by
     landing.js, mobile-only) is the inner flex row that gets moved via
     transform:translate3d(). See the STATISTICS SECTION block in
     landing.js. */
  .stats-grid{
    display:block;
    overflow:hidden;
    position:relative;
    padding:0 12%;
  }

  .stats-track{
    display:flex;
    flex-wrap:nowrap;
    gap:16px;
    will-change:transform;
  }

  .stat-item{
    flex:0 0 76%;
    padding:32px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:var(--bg-card);
  }
}
