/* ============================================================
   AUGUST — scenes
   How a product page sells, shared by every one of them since
   23 Oct 2026 (first built on /typekit after Cesar's recording of
   the maksymgladysh.com product pages):

     one idea per screen, a big headline in two or three short
     lines with one word in Signal Blue, the product itself beside
     it, the old way against this one, the reasons dealt as cards,
     the offer as its own moment, and the questions last.

   Loaded on the same pages as refine.css - every page but /links.
   Each page still owns its own demos; this is only the frame.
   ============================================================ */

.scene {
  min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(4.5rem, 11vh, 7.5rem); padding-bottom: clamp(4.5rem, 11vh, 7.5rem);
}
@media (max-width: 760px) { .scene { min-height: 0; } }
/* A scene is a flex column, and a child centred with margin:auto inside one
   is sized to its widest content, not to the screen - PowerGrade's node row
   pushed its window 359px past a phone's edge. Every child takes the full
   width (its own max-width still applies) and may shrink below its content. */
.scene > * { width: 100%; min-width: 0; }
.scene-title { font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
.acc { color: var(--accent); }
html[data-theme="dark"] .acc { color: #5E90FF; }
.scene-sub { font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.6; color: var(--text-muted); max-width: 46ch; margin: 1.3rem 0 0; text-wrap: pretty; }
.scene-head { max-width: 780px; margin: 0 auto clamp(2rem, 4.5vw, 3.2rem); text-align: center; }
.scene-head .scene-sub { margin-left: auto; margin-right: auto; }
.scene-head-left { text-align: left; margin: 0; }
.scene-note { text-align: center; margin: 1.3rem 0 0; font-size: .66rem; color: var(--text-faint); letter-spacing: .04em; }
.scene-cta { display: flex; justify-content: center; margin-top: clamp(1.4rem, 3vw, 2rem); }

/* ---------- hero: the promise left, the product right ---------- */
.scene-hero { padding-top: clamp(7rem, 15vh, 9.5rem); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1320px; margin: 0 auto; width: 100%; }
.hero-copy .scene-title { margin-top: 1.4rem; }
.hero-copy .ph-priceline, .hero-copy .ph-ctas { justify-content: flex-start; }
.hero-copy .ph-note { text-align: left; }
.hero-visual, .hero-reel-win { box-shadow: var(--shadow-float); }
/* the small label at the right of a window's title bar ("real renders", "drag it") */
.win-tag {
  flex: none; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); border: 1px solid var(--border);
  border-radius: 6px; padding: .16rem .42rem; background: var(--surface);
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero-copy .ph-priceline, .hero-copy .ph-ctas { justify-content: center; }
  .hero-copy .ph-note { text-align: center; }
  .hero-copy .scene-sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .hero-copy .ph-priceline { flex-direction: column; align-items: center; gap: .35rem; }
  .hero-copy .ph-ctas { flex-direction: column; align-items: stretch; }
  .hero-copy .ph-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- a panel row and a switch, as the Inspector draws them ---------- */
.tp-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .44rem 1.1rem; border-top: 1px solid var(--border); }
.tp-row span { font-size: .8rem; color: var(--text-muted); }
.tp-row b { font-size: .72rem; font-weight: 600; color: var(--text); text-align: right; }
.tp-sw i { position: relative; flex: none; width: 26px; height: 15px; border-radius: 999px; background: var(--border-strong); transition: background-color .3s ease; }
.tp-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-spring, ease); }
.tp-sw.on i { background: var(--accent); }
.tp-sw.on i::after { transform: translateX(11px); }
.tp-sw.on span { color: var(--text); }

/* ---------- the old way, against this one ---------- */
.way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1160px; margin: 0 auto; width: 100%; }
@media (max-width: 900px) { .way { grid-template-columns: minmax(0, 1fr); } }
.way-switch { display: inline-flex; gap: 4px; padding: 4px; margin-top: 1.6rem; border-radius: 999px; background: var(--bg-deep); border: 1px solid var(--border); }
.way-switch button {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: .6rem 1.05rem;
  background: transparent; color: var(--text-muted); font: 600 .82rem/1 "Inter", ui-sans-serif, system-ui, sans-serif;
  transition: background-color .25s ease, color .25s ease;
}
.way-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.way[data-way="old"] .way-say-new, .way[data-way="new"] .way-say-old { display: none; }
.way-win { min-height: 23rem; }
.way-list { list-style: none; counter-reset: node; margin: 0; padding: .9rem; display: grid; gap: 6px; }
.way-list li {
  counter-increment: node; position: relative; padding: .58rem .9rem .58rem 2.6rem;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: .84rem;
  animation: wayIn .45s cubic-bezier(.22,.61,.36,1) both;
}
.way-list li:nth-child(2) { animation-delay: 40ms; } .way-list li:nth-child(3) { animation-delay: 80ms; }
.way-list li:nth-child(4) { animation-delay: 120ms; } .way-list li:nth-child(5) { animation-delay: 160ms; }
.way-list li:nth-child(6) { animation-delay: 200ms; } .way-list li:nth-child(7) { animation-delay: 240ms; }
.way-list li:nth-child(8) { animation-delay: 280ms; } .way-list li:nth-child(9) { animation-delay: 320ms; }
.way-list li::before { content: counter(node, decimal-leading-zero); position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font: .62rem ui-monospace, "SF Mono", Consolas, monospace; color: var(--text-faint); }
.way-list li:last-child { border-style: dashed; color: var(--text-muted); }
.way-one { padding: clamp(1.4rem, 3vw, 2.2rem); animation: wayIn .5s cubic-bezier(.22,.61,.36,1) both; }
.way-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--border); font-size: .7rem; }
.way-tabs span { flex: 1; text-align: center; padding: .5rem .3rem; border-radius: 8px; color: var(--text-muted); }
.way-tabs span:first-child { background: var(--surface); color: var(--text); }
.way-clip { display: flex; flex-direction: column; gap: .25rem; margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 10px; background: var(--accent); color: #fff; }
.way-clip .mono { font-size: .62rem; opacity: .8; letter-spacing: .05em; }
.way-clip b { font-size: 1.05rem; }
.way-rows { margin-top: 1.1rem; }
.way-rows .tp-row { padding-left: 0; padding-right: 0; }
.way-fit { margin: 1rem 0 0; font-size: .66rem; color: var(--text-faint); letter-spacing: .05em; }
@keyframes wayIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- the reasons, dealt off the stack ---------- */
.deal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; width: 100%; }
.card {
  position: relative; z-index: calc(6 - var(--i));   /* the first card is the one on top */
  display: flex; flex-direction: column; gap: .55rem; min-height: 12rem; padding: 1.05rem 1rem 1.2rem;
  border-radius: 16px; background: #F7F7F9; color: #17181C; box-shadow: var(--shadow-float);
  transform: translateX(calc((2.5 - var(--i)) * (100% + 14px))) translateY(10px) rotate(calc((var(--i) - 2.5) * 3.5deg));
  transition: transform .95s cubic-bezier(.32,.72,0,1) calc(var(--i) * 65ms);
}
.deal.dealt .card { transform: none; }
.card svg { width: 26px; height: 26px; color: var(--accent); margin-top: auto; }
.card-n { font-size: .62rem; color: #8A8E96; letter-spacing: .05em; }
.card b { font-size: 1.02rem; line-height: 1.15; letter-spacing: -.01em; }
.card span:last-child { font-size: .76rem; line-height: 1.45; color: #5B5F67; }
@media (max-width: 900px) { .deal { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card { transform: none; transition: none; } }
@media (max-width: 560px) { .deal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card { min-height: 10.5rem; } }

/* ---------- the offer ---------- */
.scene-offer {
  position: relative; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 55%, rgba(40,105,237,.20), transparent 70%), var(--bg-deep);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.offer-light { position: absolute; left: 0; top: 50%; width: 100%; height: 70%; transform: translateY(-50%); pointer-events: none; }
.ol { stroke: #5E90FF; stroke-width: 2.2; stroke-dasharray: 900 500; filter: drop-shadow(0 0 6px #2869ED) drop-shadow(0 0 18px rgba(40,105,237,.7)); opacity: .75; animation: olFlow 9s linear infinite; }
.ol-2 { stroke-width: 1.4; opacity: .55; animation-duration: 12s; animation-direction: reverse; }
.ol-3 { stroke: #BFD3FF; stroke-width: 1; opacity: .5; animation-duration: 7s; }
@keyframes olFlow { to { stroke-dashoffset: -1400; } }
.offer-inner { position: relative; z-index: 1; width: 100%; }
.ed-grid {
  display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); max-width: 1060px; margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch;
}
.ed-grid.ed-one { grid-template-columns: minmax(0, 600px); justify-content: center; }
@media (max-width: 820px) { .ed-grid { grid-template-columns: minmax(0, 1fr); } .ed-main { order: -1; } }
.ed-card { display: flex; flex-direction: column; }
.ed-glass {
  padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 22px;
  background: rgba(255,255,255,.72); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-win);
}
html[data-theme="dark"] .ed-glass { background: rgba(23,24,29,.6); border-color: rgba(255,255,255,.12); }
.ed-main { box-shadow: var(--shadow-float); }
html[data-theme="dark"] .ed-main { border-color: rgba(94,144,255,.45); }
.ed-name { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
.ed-tag { margin-left: .4rem; font-size: .58rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.ed-price { margin: .5rem 0 0; font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; text-transform: capitalize; }
.ed-price-note { font-size: .7rem; font-weight: 400; color: var(--text-faint); letter-spacing: .03em; text-transform: none; margin-left: .35rem; }
@media (max-width: 640px) { .ed-price-note { display: block; margin: .4rem 0 0; } }
.ed-warn { margin: .9rem 0 0; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--accent-ring); background: var(--accent-soft); font-size: .8rem; line-height: 1.5; }
.ed-list { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.ed-list li {
  position: relative; display: flex; align-items: baseline; gap: .8rem; padding: .62rem 0 .62rem 1.5rem;
  border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.45;
}
.ed-list li::before { content: "\2713"; position: absolute; left: 0; top: .62rem; color: var(--text-faint); font-weight: 700; }
.ed-main .ed-list li::before { color: var(--accent); }
.ed-kind { margin-left: auto; flex: none; font-size: .66rem; color: var(--accent); border: 1px solid var(--accent-ring); border-radius: 7px; padding: .16rem .42rem; white-space: nowrap; }
.ed-cta { margin-top: auto; padding-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ed-cta .buy-note { flex-basis: 100%; margin: .3rem 0 0; font-size: .68rem; color: var(--text-faint); }
/* The same stack the hero uses. Two buttons do not fit on one line here, so
   without this the second wraps and stretches while the first stays short. */
@media (max-width: 640px) { .ed-cta .btn { width: 100%; justify-content: center; } }

/* ---------- before you buy: one column, the headline above the list ---------- */
.scene-faq { min-height: 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); max-width: 760px; margin: 0 auto; width: 100%; }
@media (max-width: 900px) { .scene-head-left { text-align: center; } }
/* august.css centres .faq-list with margin auto, which inside a grid shrinks it to its text */
.faq-plain { max-width: none; width: 100%; margin: 0; border-top: 1px solid var(--border); }
.faq-plain .faq-item summary { padding-left: 0; padding-right: 0; }
.faq-plain .faq-a, .faq-plain .faq-item > p { padding-left: 0; padding-right: 0; }

@media (prefers-reduced-motion: reduce) {
  .ol { animation: none; }
  .card { transform: none; transition: none; }
  .way-list li, .way-one { animation: none; }
}
