/* The studio site (standalone): the clinic's colors and type, but crisper. The decks' own slides are the pictures. */

body.st { padding-bottom: 72px; background: var(--paper); }
.st-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.st-head .wrap { display: flex; align-items: center; gap: var(--space-8); min-height: 72px; }
.st-brand { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; flex: none; }
.st-brand img { width: 44px; height: 44px; border-radius: 50%; }
.st-brand b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.05; font-weight: 700; }
.st-brand small { display: block; font-size: 13px; color: var(--leaf); font-weight: 600; }
.st-nav { display: flex; gap: var(--space-6); flex: 1; }
.st-nav a { font-size: 15px; font-weight: 600; color: var(--ink-muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.st-nav a:hover { color: var(--ink); border-bottom-color: var(--sun); }
.st-code { margin-inline-start: auto; min-height: 40px; padding: 0 var(--space-4); }
@media (max-width: 900px) { .st-nav { display: none; } .st-code span { display: none; } .st-code { padding: 0 12px; } }

/* ---------- hero: the headline on the right, the decks turning on the left ---------- */
.hero { padding-block: var(--space-12) var(--space-8); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.h1 { font-family: var(--font-display); font-size: clamp(42px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.01em; }
.h1 .a { display: block; font-weight: 750; color: var(--ink); }
.h1 .b { display: block; font-weight: 300; color: var(--leaf); }
.lead { margin-top: var(--space-4); font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 42ch; }
.hero-cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.byline { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-3); font-size: 15px; line-height: 21px; color: var(--ink-muted); }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.byline b { color: var(--ink); }

.carousel { position: relative; height: 440px; perspective: 1500px; }
.ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.cv { position: absolute; left: 50%; top: 46%; width: 360px; aspect-ratio: 16 / 9; margin: -101px 0 0 -180px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px color-mix(in srgb, var(--ink) 12%, transparent), 0 24px 40px -18px color-mix(in srgb, var(--ink) 45%, transparent); backface-visibility: hidden; display: block; outline-offset: 4px; }
.cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-dummy { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cv-cap { position: absolute; inset-inline: 0; bottom: 0; text-align: center; display: grid; gap: 2px; }
.cv-cap b { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.cv-cap span { font-size: 14px; color: var(--ink-muted); }
.cv-paused { position: absolute; top: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-muted); opacity: 0; transition: opacity .2s; }
.carousel.is-paused .cv-paused { opacity: 1; }
@media (max-width: 719px) { .carousel { height: 300px; } .cv { width: 260px; margin: -73px 0 0 -130px; top: 42%; } }

/* ---------- sections ---------- */
.sec { padding-block: var(--space-12); }
.sec-h { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; font-weight: 700; }
.sec-sub { margin-top: var(--space-2); color: var(--ink-muted); font-size: 17px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }

/* deck cards: the deck's own opening slide is the picture */
.decks-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.dk { display: grid; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.dk-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.dk-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dk-play { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.dk:hover .dk-pic { transform: translateY(-5px); box-shadow: 0 20px 34px -18px color-mix(in srgb, var(--ink) 50%, transparent); }
.dk-style { font-size: 13px; font-weight: 600; color: var(--leaf); }
.dk-title { font-family: var(--font-display); font-size: 26px; line-height: 1.08; font-weight: 700; }
.dk-sub { color: var(--ink-muted); font-size: 16px; line-height: 24px; }
.dk-meta { font-size: 14px; color: var(--ink-muted); }
.dk-meta b { color: var(--ink); }
.dummy { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--sun-wash); color: var(--sun-ink); margin-inline-start: 8px; vertical-align: middle; }

/* behind the decks */
.behind { display: grid; gap: var(--space-10, 40px); align-items: center; }
@media (min-width: 900px) { .behind { grid-template-columns: 380px minmax(0, 1fr); } }
.behind img { width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.behind-text { display: grid; gap: var(--space-4); max-width: 60ch; }
.behind-name { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 750; }
.domains { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.domains li { font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper-raised); border: 1px solid var(--line); }

/* pricing */
.tiers { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-8) var(--space-6); border-radius: 16px; background: var(--paper-raised); border: 1px solid var(--line); }
.tier.mid { border: 2px solid var(--leaf); }
.tier-name { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.tier-range { color: var(--ink-muted); font-size: 15px; }
.tier-price { font-family: var(--font-display); font-size: 46px; line-height: 1; font-weight: 750; margin-top: var(--space-3); }
.tier-price s { font-size: 22px; font-weight: 400; color: var(--ink-muted); margin-inline-start: 8px; }
.tier-rent { font-size: 15px; color: var(--ink-muted); padding-top: var(--space-3); margin-top: var(--space-2); border-top: 1px solid var(--line); }
.tier-rent b { color: var(--ink); }
.price-note { margin-top: var(--space-4); font-size: 15px; color: var(--ink-muted); }

/* the slim price bar */
.st-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--paper-raised) 95%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.st-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 66px; }
.st-bar p { font-size: 14px; line-height: 19px; color: var(--ink-muted); }
.st-bar b { color: var(--ink); }
body.st .sketch-ribbon { bottom: 82px; }

/* footer */
.st-foot { background: var(--root); color: var(--on-root-muted); padding-block: var(--space-10, 40px); font-size: 15px; line-height: 24px; }
.st-foot a { color: var(--on-root); }
.st-foot-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .st-foot-grid { grid-template-columns: 1fr auto; align-items: center; } }
.st-foot-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--on-root); }
.st-foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }

/* trailer dialog (the video) */
dialog.trailer { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #0d1210; color: #e6ede8; }
dialog.trailer::backdrop { background: rgba(10, 16, 13, .84); }
dialog.trailer video, dialog.trailer .tr-stage { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; position: relative; }
.tr-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.tr-stage img.on { opacity: 1; }
.tr-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 28px 18px; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff; margin: 0; }
.tr-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 14px 20px; }
.tr-foot .ng-btn-secondary { color: #e6ede8; border-color: #667a71; }

/* dummy notice on a deck page */
.dummy-note { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: 10px; background: var(--sun-wash); color: var(--sun-ink); font-size: 15px; line-height: 22px; }

/* payment dialog (studio-shell.js payOrAsk): shown while a Grow payment link is still empty */
dialog.pay-dlg { border: 0; border-radius: 14px; padding: var(--space-8); width: min(460px, calc(100vw - 32px)); box-shadow: var(--lift); background: var(--paper-raised); color: var(--ink); }
dialog.pay-dlg[open] { display: grid; gap: var(--space-3); }
dialog.pay-dlg::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
dialog.pay-dlg .btn-row { margin-top: var(--space-3); }
body.st.no-bar { padding-bottom: 0; }

/* home: a dummy deck (a style sample, not for rent) gets an order link under its card */
.dk-item { display: grid; gap: var(--space-3); align-content: start; }
.dk-order { justify-self: start; min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }

/* deck page: a dummy deck shows a style-sample note where the price would be */
.sample { display: grid; gap: var(--space-2); margin-top: var(--space-2); padding: var(--space-4) var(--space-6); border-radius: 14px; background: var(--paper-raised); border: 1px dashed var(--line-strong); }
.sample-tag { font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 700; }
.sample p { color: var(--ink-muted); font-size: 16px; line-height: 24px; }

/* deck page: the coupon field (assets/catalog.js COUPONS) */
.coupon { margin-top: var(--space-1); }
.coupon > summary { list-style: none; display: inline-flex; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--water); text-decoration: underline; text-underline-offset: 4px; padding: var(--space-1) 0; }
.coupon > summary::-webkit-details-marker { display: none; }
.coupon-form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-2); }
.coupon-form .ng-input { width: 11em; min-height: 44px; padding-block: 6px; letter-spacing: .08em; text-transform: uppercase; }
.coupon-form .ng-btn { min-height: 44px; }
.coupon-msg { font-size: 15px; line-height: 22px; margin-top: var(--space-2); }
.coupon-msg.ok { color: var(--leaf); font-weight: 600; }
.coupon-msg.bad { color: var(--alert); font-weight: 600; }
.rent.coupon-on b { color: var(--leaf); }

/* text pages: thanks, terms, privacy, accessibility */
.doc { padding-block: var(--space-12) var(--space-16); }
.doc .main { max-width: 68ch; }
.doc h1 { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; font-weight: 750; }
.doc h2 { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 700; margin-top: var(--space-6); }
.doc h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin-top: var(--space-2); }
.doc .lead { margin-top: 0; max-width: none; }
.doc ol { display: grid; gap: var(--space-2); padding-inline-start: var(--space-6); }
.doc li::marker { color: var(--leaf); }
.doc .updated { font-size: 15px; color: var(--ink-muted); }
.draft-flag { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: 10px; background: var(--sun-wash); color: var(--sun-ink); border: 1.5px dashed var(--sun-ink); font-size: 15px; line-height: 22px; }
.draft-flag b { font-size: 17px; }
mark.fill { background: var(--sun-mark); color: var(--ink); padding: 0 .3em; border-radius: 4px; border-bottom: 1.5px dashed var(--sun-ink); }
.steps { list-style: none; padding: 0 !important; counter-reset: st; display: grid; gap: var(--space-4) !important; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--leaf-wash); color: var(--leaf); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.steps b { display: block; color: var(--ink); }
.steps span { color: var(--ink-muted); }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-wash); color: var(--leaf); }
.done-mark .ng-icon { width: 34px; height: 34px; }
#coupon-note { color: var(--leaf); font-weight: 600; font-size: 15px; }


/* ---------- hero: the headline on the right, the improved carousel on the left (hero-lab winner, 11.10.2026) ---------- */
:root { --hx-bleed: max(var(--space-4), calc((100vw - 1184px) / 2 + var(--space-4))); }

/* the split hero: the headline on the right, the stage on the left. On a phone: headline, stage, then the text. */
.hx { padding-block: var(--space-8) var(--space-8); }
.hx-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); grid-template-areas: "h1" "stage" "text"; }
.hx-grid > .h1 { grid-area: h1; }
.hx-stage { grid-area: stage; min-width: 0; position: relative; }
.hx-text { grid-area: text; }
.hx-text .lead { margin-top: 0; }
@media (min-width: 1000px) {
  .hx { padding-block: var(--space-12) var(--space-12); }
  .hx-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". stage" "h1 stage" "text stage" ". stage"; column-gap: var(--space-12); row-gap: 0; align-items: center; }
  .hx-text { margin-top: var(--space-4); }
}
