/* Landing page: only what is specific to it. Tokens, shell and components live in brand.css. */

body.brand.landing main { padding-top: 88px; }
@media (min-width: 48rem) { body.brand.landing main { padding-top: 140px; } }

/* ---------- Hero with teaser ---------- */
body.brand .lp-hero { display: grid; gap: 32px; padding: 8px 0 0; align-items: center; }
@media (min-width: 56rem) { body.brand .lp-hero { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
body.brand .lp-hero h1 { font-size: clamp(34px, 8vw, 56px); }
body.brand .lp-lead { margin-bottom: 24px; }
body.brand .lp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
body.brand .lp-cta { min-height: 52px; padding: 14px 32px; font-size: 16px; position: relative; overflow: hidden; }
@media (max-width: 30rem) { body.brand .lp-hero .lp-cta { width: 100%; } }
body.brand .lp-cta-link { font-size: 15px; font-weight: 500; color: var(--color-text-secondary); }
body.brand .lp-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--color-text-secondary); }
body.brand .lp-facts li::before { content: "✓"; margin-right: 6px; color: var(--color-success); font-weight: 700; }


/* Mock of the guest view: same tokens and proportions as style.css (capybara default) */
body.brand .lp-mock { width: 100%; max-width: 460px; justify-self: center; padding: 14px; border-radius: var(--radius-xl); border: 1px solid var(--line); background-color: var(--bg); background-image: radial-gradient(var(--bg-dot) 2px, transparent 2px); background-size: 28px 28px; color: var(--ink); font-family: var(--font-body); box-shadow: 0 24px 60px -24px #8b5cf655; }
@media (min-width: 56rem) { body.brand .lp-mock { justify-self: end; } }
body.brand .lp-mock-head { display: grid; text-align: center; margin-bottom: 12px; }
body.brand .lp-mock-head strong { font-size: 20px; font-weight: 800; }
body.brand .lp-mock-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
body.brand .lp-mock-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.brand .lp-mock-item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(80, 50, 20, .06), 0 8px 24px rgba(80, 50, 20, .07); }
body.brand .lp-mock-thumb { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
body.brand .lp-mock-motif { width: 52%; opacity: .9; }
body.brand .lp-mock-badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 99px; background: var(--mint); color: #fff; font-size: 11px; font-weight: 700; }
body.brand .lp-mock-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
body.brand .lp-mock-body strong { font-size: 15px; line-height: 1.3; }
body.brand .lp-mock-price { font-size: 14px; font-weight: 700; color: var(--accent); }
body.brand .lp-mock-btn { margin-top: auto; align-self: start; padding: 7px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
body.brand .lp-mock-status { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
body.brand .lp-mock-item.is-taken { opacity: .62; }
body.brand .lp-mock-item.is-taken strong { text-decoration: line-through; text-decoration-color: var(--muted); }

/* ---------- Sections ---------- */
body.brand.landing section { margin-top: 80px; }
@media (min-width: 48rem) { body.brand.landing section { margin-top: 112px; } }
body.brand .lp-kicker { margin: 0 0 8px; font: 500 13px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent-purple); }
body.brand .lp-section-lead { max-width: 640px; color: var(--color-text-secondary); font-size: 17px; line-height: 1.6; }
body.brand .lp-steps { counter-reset: none; }
body.brand .lp-steps li { background: linear-gradient(180deg, var(--color-bg-secondary), var(--color-bg-primary)); }

body.brand .lp-benefits { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
body.brand .lp-benefits li { display: grid; gap: 6px; align-content: start; padding: 24px; background: var(--color-bg-secondary); border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); }
body.brand .lp-benefits strong { font-size: 18px; }
body.brand .lp-benefits li > span:not(.lp-icon) { font-size: 15px; line-height: 1.65; color: var(--color-text-secondary); }
body.brand .lp-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; font-size: 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #3b82f626, #8b5cf626); }
body.brand .lp-note { margin: 20px 0 0; color: var(--color-text-secondary); font-size: 15px; }

body.brand .lp-ai-panel { margin-top: 24px; padding: 24px; background: var(--color-bg-secondary); border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); }
body.brand .lp-ai-panel .tabs { margin-top: 0; }
body.brand .lp-ai-panel .steps li { line-height: 1.6; }

body.brand .lp-final { text-align: center; padding: 48px 24px; background: radial-gradient(ellipse at top, #8b5cf626, #0000 70%), var(--color-bg-secondary); border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); }
body.brand .lp-final h2 { font-size: clamp(24px, 5vw, 36px); }
body.brand .lp-final p { color: var(--color-text-secondary); margin-bottom: 24px; }

/* ---------- Wizard dialog: full-screen sheet on phones, centered card on larger screens ---------- */
body.brand:has(dialog.wiz[open]) { overflow: hidden; }
body.brand dialog.wiz { padding: 0; margin: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; overflow: hidden; }
body.brand dialog.wiz[open] { display: flex; }
body.brand dialog.wiz::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
body.brand .wiz-box { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
@media (min-width: 40rem) {
  body.brand dialog.wiz { margin: auto; width: 520px; height: auto; max-height: min(680px, 92dvh); min-height: 560px; border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); box-shadow: 0 40px 100px -20px #000; }
  body.brand .wiz-box { padding: 24px 28px; }
}

body.brand .wiz-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
body.brand .wiz-progress { flex: 1; }
body.brand .wiz-count { margin: 0 0 8px; font: 500 13px var(--font-mono); color: var(--color-text-secondary); }
body.brand .wiz-bar { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
body.brand .wiz-bar li { flex: 1; height: 4px; border-radius: 2px; background: var(--color-border-default); transition: background .3s; }
body.brand .wiz-bar li.on { background: var(--gradient-brand); }
body.brand button.wiz-close { flex: none; width: 44px; padding: 0; font-size: 26px; line-height: 1; font-weight: 400; }

body.brand .wiz-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.brand .wiz-steps { flex: 1; min-height: 0; }
body.brand .wiz-step { height: 100%; min-height: 0; display: flex; flex-direction: column; }
body.brand .wiz-step[hidden] { display: none; }
body.brand .wiz-h { font-size: clamp(22px, 6vw, 28px); font-weight: 700; margin-bottom: 8px; outline: none; }
body.brand .wiz-nav { display: flex; gap: 12px; padding-top: 16px; }
body.brand .wiz-nav button { flex: 1; min-height: 52px; font-size: 16px; }
body.brand .wiz-nav button[type="submit"] { flex: 2; }
body.brand .wiz-form .error-inline { margin: 8px 0 0; }
body.brand .lp-closed { margin-top: 8px; }

/* Design step: two rows of cards, swiped sideways, so the step never scrolls vertically */
body.brand .lp-designs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; margin: 4px 0 0; }
body.brand .carousel { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc(42% - 6px); gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin: 0 -2px; scrollbar-width: thin; overscroll-behavior-x: contain; }
body.brand .carousel > p { grid-row: 1; }
body.brand .carousel .theme-card { flex: none; width: auto; scroll-snap-align: start; padding: 10px 8px 12px; }
body.brand .carousel .theme-card .tc-art { width: min(84px, 17dvh); height: min(84px, 17dvh); }
@media (min-width: 40rem) { body.brand .carousel { grid-auto-columns: calc(30% - 8px); } }
@media (max-height: 36rem) { body.brand .carousel .theme-card .tc-art { width: 52px; height: 52px; } }

/* Done screen: the one step that may scroll (links, optional assistant key) */
body.brand .lp-done { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
body.brand .lp-done label:first-of-type { margin-top: 8px; }
body.brand .lp-share { width: 100%; margin-top: 8px; }
body.brand .carousel .theme-card .tc-art svg { overflow: hidden; }
body.brand .carousel .theme-card { align-content: start; line-height: 1.2; gap: 4px; }

/* Design step: sideways-scroll cues */
body.brand .carousel.more-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, #0000); mask-image: linear-gradient(90deg, #000 85%, #0000); }
body.brand .carousel.more-right.more-left { -webkit-mask-image: linear-gradient(90deg, #0000, #000 8%, #000 85%, #0000); mask-image: linear-gradient(90deg, #0000, #000 8%, #000 85%, #0000); }
body.brand .carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.brand .carousel-count { flex: 1; margin: 0; text-align: center; font: 500 13px var(--font-mono); color: var(--color-text-secondary); }
body.brand button.carousel-arrow { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 26px; line-height: 1; font-weight: 400; }
body.brand .lp-mock { --accent: #b0551a; --muted: #75604e; }
@media (prefers-color-scheme: dark) { body.brand .lp-mock { --accent: #f39a52; --muted: #bba792; } }

/* Collapsible AI section: teaser first, details on click */
body.brand .lp-more { margin-top: 20px; }
body.brand .lp-more > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); background: var(--color-bg-secondary); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
body.brand .lp-more > summary::-webkit-details-marker { display: none; }
body.brand .lp-more > summary::after { content: "▾"; color: var(--color-accent-blue); transition: transform .2s; }
body.brand .lp-more[open] > summary::after { transform: rotate(180deg); }
body.brand .lp-more > summary:hover { border-color: var(--color-border-hover); }
body.brand .lp-more .lp-more-close, body.brand .lp-more[open] .lp-more-open { display: none; }
body.brand .lp-more[open] .lp-more-close { display: inline; }
body.brand .lp-more[open] > summary { margin-bottom: 16px; }
