/* Casttit home, product-first (design preview, 15 Oct 2026). Inspired by Red Bull's product pages: the product big on
   a calm light page, a huge two-line name, one idea per screen while the product stage stays pinned, a plain "what's
   inside", a giant ticker, a range of cards, a dark band. Casttit's own brand: paper, ink, Signal orange, Sora +
   Manrope. Sits on site.css (fonts, buttons) and pages.css (footer). */

/* devices, drawn in CSS; the game inside is drawn live (game.js) */
.device.phone { position: relative; background: linear-gradient(145deg, #2a2d35, #0b0c10 45%, #1c1e24);
                border-radius: 9% / 19%; padding: 1.6%; box-shadow: 0 50px 90px -30px rgba(14, 16, 20, .55),
                0 18px 30px -12px rgba(14, 16, 20, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.device.phone.landscape { aspect-ratio: 2.17; }
.device.phone.portrait { aspect-ratio: .461; border-radius: 19% / 9%; padding: 3.4%; }
.device.phone canvas { display: block; width: 100%; height: 100%; border-radius: 7.6% / 16.6%; background: #0d1330; }
.device.phone.portrait canvas { border-radius: 16% / 7.4%; }
.device.phone .cam { position: absolute; z-index: 2; background: #050608; border-radius: 99px; }
.device.phone.landscape .cam { left: 3.4%; top: 44%; width: 1.4%; height: 12%; }
.device.phone.portrait .cam { top: 3.6%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); }
.device.phone.portrait.iphone .cam { width: 30%; height: 3%; }
.device.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                       background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 32%); }

.monitor { position: relative; display: grid; justify-items: center; }
.monitor .screen { position: relative; width: 100%; aspect-ratio: 1.62; background: #0b0c10; border-radius: 14px;
                   padding: 1.6% 1.6% 4%; box-shadow: 0 50px 80px -34px rgba(14, 16, 20, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .07);
                   display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.monitor .screen canvas { width: 100%; height: 100%; border-radius: 4px; display: block; }
.monitor .neck { width: 9%; height: 34px; background: linear-gradient(90deg, #c9c6bf, #e8e5de, #bdb9b1); }
.monitor .base { width: 34%; height: 10px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#d9d6cf, #b9b5ad); }
.monitor .appbar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 7px; color: #F2F1EE; font: 700 12px var(--display); }
.monitor .appbar img { border-radius: 4px; }
.monitor .appbar .live { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px;
                         background: #13301F; color: #6FE3A8; font: 700 10.5px var(--body); }
.monitor .appbar .live i { width: 6px; height: 6px; border-radius: 50%; background: #3BD18A; }
.monitor .appbar .meta { margin-left: auto; color: #8B909A; font: 600 10.5px var(--body); }

/* 1. hero: the product big, the name huge */
.hero2 { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(20px, 4vw, 64px);
         padding: 110px clamp(20px, 4vw, 56px) 60px; max-width: 1480px; margin: 0 auto; }
.hero2-visual { position: relative; display: grid; place-items: center; }
.hero2-visual .device { width: min(100%, 760px); transform: rotate(-4deg); }
.hero2-visual .glow { position: absolute; inset: 8% 6%; border-radius: 50%; filter: blur(60px);
                      background: radial-gradient(closest-side, rgba(255, 91, 46, .28), rgba(255, 91, 46, 0)); }
.cable-stub { position: absolute; right: -2%; top: 52%; width: 18%; height: 6px; border-radius: 6px;
              background: linear-gradient(90deg, #1c1e24, var(--signal)); transform: rotate(-4deg); }
.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
.product-name { font: 800 clamp(44px, 5.5vw, 92px)/.95 var(--display); letter-spacing: -.05em; color: var(--text); margin: 14px 0 0; }
.product-name span { display: block; color: var(--signal); }
.product-name.small { font-size: clamp(40px, 6vw, 88px); text-align: center; }
.lede2 { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; margin: 22px 0 0; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ctas.center { justify-content: center; }
.ctas .btn { border-radius: 999px; }
.made2 { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 14.5px; margin-top: 22px; }
.made2 .heart { width: 16px; height: 16px; }

/* 2. the stage: pinned while the statements pass */
.stage { --shift: -58; position: relative; height: 420vh; background: var(--white); border-block: 1px solid var(--line); }
.stage-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1.6fr 1fr; align-items: center;
                gap: 32px; padding: 90px clamp(20px, 4vw, 56px) 40px; max-width: 1480px; margin: 0 auto; overflow: hidden; }
.stage-scene { position: relative; width: min(100%, 76vh * 1.28, 870px); aspect-ratio: 1.28; justify-self: center; }
.s-phone { position: absolute; width: 46%; left: 27%; top: 30%; will-change: transform; }
.s-cable { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.s-cable path { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 91, 46, .5)); }
.s-cable .plug { fill: var(--ink); opacity: 0; }
.s-phone { z-index: 2; }
.s-monitor { position: absolute; width: 52%; right: 0; top: 4%; opacity: 0; will-change: transform, opacity; }
.floatcard { position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--white);
             border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(14, 16, 20, .35); opacity: 0; }
.floatcard b { display: block; font: 700 15px var(--display); }
.floatcard span { color: var(--muted); font-size: 13.5px; }
.floatcard .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--signal-soft); display: grid; place-items: center; }
.floatcard .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-headset { right: 6%; top: 62%; }
.s-mute { left: 3%; top: 70%; }
/* step 4: the OBS window opens over the PC's screen, beside the phone, never on it (founder, 16 Oct) */
.obswin { position: absolute; z-index: 1; right: -2%; width: 56%; top: 0; background: #1f2128; border-radius: 12px; padding: 0 0 10px; opacity: 0;
          box-shadow: 0 60px 90px -30px rgba(14, 16, 20, .6); overflow: hidden; }
.obswin .obsbar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: #2b2e37; color: #c9ccd3; font: 600 12.5px var(--body); }
.obswin .obsbar span { width: 10px; height: 10px; border-radius: 50%; background: #4a4e59; }
.obswin .obsbar b { margin-left: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obswin canvas { display: block; width: calc(100% - 20px); margin: 10px auto 0; aspect-ratio: 16 / 9; border-radius: 4px; outline: 2px solid var(--signal); }
.stage-copy { position: relative; display: grid; gap: 22px; }
.step-count { font: 800 14px var(--body); letter-spacing: 3px; color: var(--subtle); }
.step-count span { color: var(--signal); }
.statements { display: grid; }
.st { grid-area: 1 / 1; margin: 0; font: 600 clamp(24px, 2.6vw, 38px)/1.2 var(--display); letter-spacing: -.02em;
      color: var(--muted); opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s; }
.st b { display: block; color: var(--text); font-weight: 800; font-size: 1.35em; letter-spacing: -.04em; margin-bottom: 6px; }
.st.on { opacity: 1; transform: none; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--signal); }

/* 3. the ticker */
.ticker { overflow: hidden; padding-block: clamp(26px, 4vw, 48px); background: var(--paper); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; gap: 6vw; width: max-content; animation: tick 38s linear infinite; }
.ticker span { font: 800 clamp(64px, 11vw, 168px)/1 var(--display); letter-spacing: -.05em; color: var(--text); white-space: nowrap;
               display: inline-flex; align-items: center; gap: 6vw; }
.ticker span::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--signal); }
.ticker span:nth-child(even) { color: var(--signal); }
.ticker span:nth-child(even)::after { background: var(--text); }
@keyframes tick { to { transform: translateX(-50%); } }

/* 4. inside Casttit */
.inside { padding-block: clamp(80px, 10vw, 140px); }
.inside-head { max-width: 900px; }
.inside h2, .range h2, .band h2 { font: 800 clamp(36px, 5vw, 68px)/1 var(--display); letter-spacing: -.045em; margin-top: 12px; }
.inside h2 span, .range h2 span { color: var(--subtle); }
.formula { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
           border-top: 1px solid var(--line-2); }
.formula li { padding: 30px 28px 32px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.formula li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.formula li:not(:nth-child(3n + 1)) { padding-left: 28px; }
.formula .num { font: 800 15px var(--display); color: var(--signal); }
.formula h3 { font: 800 clamp(22px, 2vw, 28px)/1.15 var(--display); letter-spacing: -.03em; }
.formula p { margin: 0; color: var(--muted); }
.formula a { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--signal); justify-self: start; }
.editions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.editions .label { font: 800 13px var(--body); letter-spacing: 2.5px; text-transform: uppercase; color: var(--subtle); margin-right: 6px; }
.pill-tag { padding: 9px 18px; border-radius: 999px; border: 2px solid var(--text); font-weight: 800; }
.editions .req { margin-left: auto; color: var(--text); font-weight: 700; }

/* 5. the range */
.range { padding-block: clamp(70px, 9vw, 120px); background: var(--white); border-top: 1px solid var(--line); }
.range-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1240px; margin: 46px auto 0;
             padding-inline: clamp(20px, 4vw, 48px); }
.range-card { display: grid; gap: 8px; align-content: start; padding: 26px 26px 30px; border-radius: 26px; text-decoration: none;
              color: var(--text); transition: transform .25s, box-shadow .25s; }
.range-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(14, 16, 20, .4); }
.range-card h3 { font: 800 26px/1.15 var(--display); letter-spacing: -.03em; }
.range-card p { margin: 0; color: var(--muted); }
.range-card .more { margin-top: 8px; font-weight: 800; }
.range-visual { height: 220px; display: grid; place-items: center; margin-bottom: 14px; }
.range-visual .device.landscape { width: 92%; transform: rotate(-3deg); }
.device.phone.iphone { background: linear-gradient(145deg, #c9ccd2, #8d9098 40%, #d8dadf); }
.range-visual .monitor.mini { width: 90%; }
.t-green { background: #E3F4EA; } .t-signal { background: #FFE6DC; } .t-ink { background: #E9EAEE; }

/* 6. the band */
.band { position: relative; overflow: hidden; background: var(--ink); color: #F2F1EE; padding-block: clamp(90px, 12vw, 170px); }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 20, .92), rgba(14, 16, 20, .4)); }
.band-copy { position: relative; display: grid; gap: 18px; max-width: 760px; margin-left: max(0px, calc((100vw - 1240px) / 2)); }
.band p { color: #C9CBD0; font-size: 19px; margin: 0; }
.band .btn { justify-self: start; border-radius: 999px; }

/* 7. the ask */
.ask { padding-block: clamp(90px, 12vw, 160px); text-align: center; }


@media (max-width: 1000px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 100px; text-align: left; }
  .stage-sticky { grid-template-columns: 1fr; align-content: center; padding-top: 86px; }
  /* one shape at every screen size, so the phone, the PC and the cards never run into each other (16 Oct) */
  .stage-scene { height: auto; width: min(100%, 46vh * 1.28); aspect-ratio: 1.28; justify-self: center; }
  .formula { grid-template-columns: 1fr 1fr; }
  .formula li:nth-child(n) { padding: 26px 20px 26px 0; border-right: 0; }
  .formula li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .range-row { grid-template-columns: 1fr; }
  }
@media (max-width: 640px) {
  .formula { grid-template-columns: 1fr; }
  .formula li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .editions .req { margin-left: 0; }
  .stage { --shift: 0; }
  .stage-scene { width: min(100%, 46vh * .9); aspect-ratio: .9; }
  .s-phone { width: 60%; left: 0; top: 60%; }
  .s-monitor { width: 72%; top: 0; }
  .obswin { width: 72%; }
  .s-mute { display: none; }
  .s-headset { right: 0; top: auto; bottom: 0; padding: 8px 14px 8px 8px; }   /* one line, under the phone */
  .s-headset span:not(.ico) { display: none; }
  .s-headset .ico { width: 30px; height: 30px; }
  .hero2 .kicker { letter-spacing: 2px; font-size: 12px; }
}
/* very small stages (old 4-inch phones, short windows): no room for the headset card; the words say it */
@media (max-width: 340px), (max-height: 560px) { .s-headset { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .floaty, .ticker-track { animation: none; }
  .stage { height: auto; }
  .stage-sticky { position: relative; }
}
