/*
  The sections the home page and the pricing page add after the studio, loaded before them: the closing band's
  demo button, then (below) the platforms band and the pricing page. The "Book your demo" dialog itself is
  contact.css, loaded only with the dialog.
*/

/* ---------- the closing band: "Book a demo" and "Try the live demo" side by side, the shop side's link under them ---------- */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .link-out { margin-top: 14px; color: #FAF3E9; }
.btn-line-light { background: transparent; color: #FAF3E9; border-color: rgba(250, 243, 233, 0.75); }
.btn-line-light:hover { background: rgba(250, 243, 233, 0.12); border-color: #FAF3E9; }
.cta .btn:focus-visible, .cta .link-out:focus-visible { outline-color: #FAF3E9; }
/* in dark mode the light button would take the dark page color behind sage text; it stays light, as on the band */
html.dark .btn-light { background: #FAF3E9; border-color: #FAF3E9; color: var(--band-2); }
html.dark .btn-light:hover { background: #F3E8D6; border-color: #F3E8D6; }

/* ---------- the platforms band: Shopify today, other platforms on request ---------- */
.platforms { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.platforms-head { max-width: 760px; margin-bottom: 40px; }
.platforms h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.platforms-head > p:last-child { color: var(--soft); font-size: 18px; }
.platforms-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .platforms-grid { grid-template-columns: 1.3fr 1fr; } }
.platform { padding: 28px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.platform-main { border: 2px solid var(--btn); box-shadow: 0 24px 50px -32px var(--shadow); }
html.dark .platform-main { border-color: var(--accent); }
.platform-other { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--ink) 25%, var(--bg-2)); }
.platform-tag { display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.platform h3 { font-size: 26px; margin-bottom: 14px; }
html.serif .platform h3, html.serif .price h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; }
.platform p:not(.platform-tag) { color: var(--soft); }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; color: var(--soft); }
.checks li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 7px; height: 13px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.platforms-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.platforms-more { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.platforms-more:hover { color: var(--ink); }

/* ---------- the header's current page, and the footer's links (the same on every page) ---------- */
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sig); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.foot-links a { color: var(--soft); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--ink); }

/* ---------- the pricing page ---------- */
.pricing-hero { padding: 64px 0 80px; }
.pricing-hero-in { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .pricing-hero { padding: 96px 0 104px; } .pricing-hero-in { grid-template-columns: 1fr 0.9fr; gap: 72px; } }
.pricing-hero h1 { font-size: clamp(40px, 5.4vw, 62px); margin-bottom: 22px; text-wrap: balance; }
.price { padding: 32px; border-radius: 22px; background: var(--bg-2); border: 2px solid var(--btn); box-shadow: 0 30px 60px -34px var(--shadow); }
html.dark .price { border-color: var(--accent); }
.price-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 26px; }
.price-big b { font: 600 clamp(80px, 11vw, 120px)/0.85 var(--serif); letter-spacing: -0.04em; color: var(--accent); }
html:not(.serif) .price-big b { font-family: var(--sans); }
.price-big span { max-width: 13em; font-size: 19px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.price .checks li { color: var(--ink); }
.price-example { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-example-title { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.price-example dl { margin: 0; }
.price-example dl div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 16px; }
.price-example dt { color: var(--soft); }
.price-example dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-example .price-sum { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 600; }
.price-example .price-sum dt { color: var(--ink); }

/* the pricing film: the home page's film band, with a poster that turns into the film */
.pricing-film { border-top: 1px solid var(--line); }
.pricing-film .film-poster { display: block; }
.film-length { position: absolute; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(28, 24, 21, 0.82); color: #FAF3E9; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.film-playing { cursor: auto; }
.film-playing video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
/* the pricing film on a phone held upright: the vertical cut, as tall as the screen allows (the reels' rule, pages.css) */
@media (orientation: portrait) and (max-width: 700px) {
    .pricing-film .film-poster { width: min(100%, calc(72svh * 9 / 16)); margin: 0 auto; }
    .pricing-film .film-poster img { aspect-ratio: 9 / 16; object-fit: cover; }
}
.film-vertical video { aspect-ratio: 9 / 16; }

/* links in a step or an answer: to the home page's engine story */
.how-steps p a, .faq details p a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.how-steps p a:hover, .faq details p a:hover { color: var(--ink); }
.step-link { display: inline-block; margin-top: 6px; }

/* how it works: four steps in a row on a wide screen */
@media (min-width: 1040px) { .how-steps.pricing-steps { grid-template-columns: repeat(4, 1fr); } }

/* the questions */
.faq { padding: 96px 0; border-top: 1px solid var(--line); }
.faq-in { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-in { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq h2 { font-size: clamp(32px, 4vw, 46px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 640px; padding: 0 0 24px; color: var(--soft); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
