/* Layout and components for the landing page. Colors come from design-system.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { position: relative; isolation: isolate; font: 400 1rem/1.5 var(--font-body); color: var(--text-primary); background: var(--surface-page); }
/* Keep the landing's chosen glow and grid beneath the page content. */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 30%, var(--page-glow-primary) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 15%, var(--page-glow-secondary) 0%, transparent 60%);
  background-size: 140vw 110vh;
  background-position: center -30vh;
  background-repeat: no-repeat;
}
body::after {
  background-image:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
[hidden] { display: none !important; }
a, button, select, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.skip-link { position: fixed; top: var(--space-3); left: var(--space-4); z-index: 101; padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill); color: var(--text-on-accent); background: var(--action-primary); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3 { color: var(--text-strong); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
h2 { font-size: var(--type-display-l); }
h3 { font-size: var(--type-heading); }
em { color: var(--accent-text); font-style: normal; font-weight: 600; }
.container, .nav-inner { width: 100%; max-width: 1240px; padding-inline: var(--space-6); margin-inline: auto; }
section[id], main[id] { scroll-margin-top: calc(var(--nav-height, 64px) + var(--space-4)); }
.section { padding-block: var(--space-8); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--space-6); margin-bottom: var(--space-6); }
.section-head h2 { max-width: 720px; }
.section-head > div { min-width: 0; }
.section-head p { max-width: 400px; color: var(--text-muted); font-size: var(--type-reading); line-height: 1.6; }
.section-label { color: var(--text-muted); font-size: var(--type-body-s); font-weight: 500; margin-bottom: var(--space-3); }
.tag { display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2); font-size: var(--type-body-xs); font-weight: 500; color: var(--text-muted); background: var(--surface-subtle); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-paid); }
/* Rounded landing-page actions, as requested for the marketing page. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: var(--space-3) var(--space-5); font-size: var(--type-body-m); font-weight: 500; line-height: 1.5; transition: background var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.btn > svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { color: var(--text-on-accent); background: var(--action-primary); border-color: var(--action-primary); }
.btn-primary:not(:disabled):hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); }
.btn-primary:not(:disabled):active { background: var(--action-primary-pressed); border-color: var(--action-primary-pressed); }
.btn-icon { display: inline-flex; align-items: center; width: 16px; height: 16px; flex-shrink: 0; }
.btn-icon svg { width: 16px; height: 16px; transition: transform 180ms var(--motion-ease); }
.btn-label { display: inline-grid; }
.btn-label > span { grid-area: 1 / 1; }
.btn-label-reserve { visibility: hidden; }
.btn-ghost { background: var(--surface-raised); color: var(--text-primary); }
.btn-ghost:hover { background: var(--surface-interactive); color: var(--text-strong); border-color: var(--control-border); }

/* One appearance control and complete navigation at every viewport. */
.nav { position: sticky; top: 0; z-index: 100; background: var(--surface-raised); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); min-height: 64px; padding-block: var(--space-2); }
.logo { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; color: var(--text-strong); }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; color: var(--accent-text); }
/* Use the same product name in the wordmark and accessible text. */
.logo-name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); color: var(--text-muted); font-size: var(--type-body-s); }
.nav-links a { display: flex; align-items: center; min-height: 44px; }
.nav-links a:hover { color: var(--accent-text); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta { min-height: 36px; padding: var(--space-1) var(--space-4); font-size: var(--type-body-s); white-space: nowrap; }
.site-appearance { display: flex; align-items: center; }
.theme-trigger { display: grid; place-items: center; width: 58px; height: 48px; border-radius: var(--radius-pill); color: var(--text-muted); background: transparent; }
.theme-track { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; width: 58px; height: 30px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.theme-trigger:hover .theme-track { background: var(--surface-interactive); border-color: var(--control-border); }
.theme-thumb { position: absolute; inset: 3px auto 3px 3px; width: calc((100% - 6px) / 2); border-radius: var(--radius-pill); background: var(--accent-soft); transition: transform 180ms var(--motion-ease); }
.theme-trigger[aria-checked='false'] .theme-thumb { transform: translateX(100%); }
.theme-track svg { position: relative; width: 14px; height: 14px; justify-self: center; transition: color var(--motion-fast) var(--motion-ease); }
.theme-trigger[aria-checked='true'] .theme-sun, .theme-trigger[aria-checked='false'] .theme-moon { color: var(--accent-text); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--control-border); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 24px; height: 24px; }
.mobile-nav[open] summary { background: var(--surface-interactive); }
.mobile-nav-links { position: absolute; right: 0; top: calc(100% + var(--space-2)); display: grid; width: min(280px, calc(100vw - 32px)); padding: var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-floating); }
.mobile-nav-links a { display: flex; align-items: center; min-height: 48px; padding: var(--space-3); border-radius: var(--radius-md); font-size: var(--type-body-m); }
.mobile-nav-links a:hover { background: var(--surface-interactive); }

.hero { display: grid; align-items: center; min-block-size: calc(100vh - var(--nav-height, 65px)); min-block-size: calc(100dvh - var(--nav-height, 65px)); padding-block: clamp(var(--space-5), 4dvh, var(--space-7)); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--space-8); }
.hero-heading { margin-block: var(--space-5); font-size: 3.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.hero-sub { max-width: 560px; margin-bottom: var(--space-5); color: var(--text-muted); font-size: var(--type-reading); line-height: 1.6; text-wrap: balance; }
.hero-sub strong { color: var(--text-primary); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-actions .btn { font-size: var(--type-reading); }
.inbox-preview { min-width: 0; }
/* Let card content determine the illustration height. */
.hero-visual { position: relative; display: grid; align-content: start; min-width: 0; padding-block: var(--space-4); isolation: isolate; scroll-margin-top: var(--space-9); }
.dm-card { position: relative; justify-self: end; width: 340px; max-width: calc(100% - var(--space-7)); min-width: 0; padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: linear-gradient(165deg, color-mix(in srgb, var(--accent-text) 16%, var(--surface-raised)), var(--surface-raised)); box-shadow: var(--shadow-floating); }
.dm-card + .dm-card { margin-top: var(--space-2); }
.dm-card-1 { margin-right: var(--space-5); transform: rotate(3deg); }
.dm-card-2 { z-index: 2; transform: rotate(-2deg); }
.dm-card-3 { margin-right: var(--space-7); transform: rotate(2deg); }
.dm-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.dm-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: var(--type-body-m); font-weight: 600; }
.dm-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.dm-avatar-company { border-radius: var(--radius-md); background: transparent; }
.dm-meta { flex: 1; min-width: 0; }
.dm-name { color: var(--text-strong); font-size: var(--type-body-m); font-weight: 600; }
.dm-handle { color: var(--text-muted); font-size: var(--type-body-xs); margin-top: var(--space-1); }
.dm-price { color: var(--accent-text); font: 500 var(--type-heading)/1.2 var(--font-mono); }
.dm-body { color: var(--text-primary); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); margin-bottom: var(--space-3); font-size: var(--type-body-s); }
.dm-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); font-size: var(--type-body-xs); }
.dm-status { display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2); font-weight: 500; }
.dm-status.paid { color: var(--status-paid); background: var(--status-paid-bg); }
.dm-status.pending { color: var(--status-pending); background: var(--status-pending-bg); }
.dm-status.replied { color: var(--accent-text); background: var(--accent-soft); }
.dm-time { color: var(--text-muted); }

.how-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 432px; align-items: center; gap: clamp(32px, 5vw, 64px); }
.how-copy { max-width: 480px; }
.steps { display: grid; gap: var(--space-5); margin-top: var(--space-6); list-style: none; }
.step { display: flex; align-items: flex-start; gap: var(--space-4); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-text); font: 500 var(--type-body-s)/1 var(--font-mono); }
.step h3 { margin-bottom: var(--space-1); }
.step p { color: var(--text-muted); font-size: var(--type-body-m); line-height: 1.6; }
.how-reassurance { display: flex; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-7); color: var(--text-muted); font-size: var(--type-body-m); }
.how-reassurance svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-text); }

/* Physical graphite hardware stays neutral; the live screen follows the site theme. */
.creator-preview { position: relative; width: 100%; max-width: 432px; min-width: 0; margin-inline: auto; padding-inline: var(--space-1); isolation: isolate; }
.creator-demo-stage { position: relative; width: 100%; min-width: 0; }
.creator-story-navigation { display: none; }
.creator-story-navigation button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--text-muted); cursor: pointer; touch-action: manipulation; transition: color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease); }
.creator-story-navigation button:hover, .creator-story-navigation button:focus-visible { color: var(--accent-text); border-color: var(--accent-text); background: var(--accent-soft); }
/* Keep a 402 × 874 iPhone Pro screen, scaling the complete device on narrow pages. */
.creator-device-stage { position: relative; width: 100%; }
.creator-preview[data-device-scaled] .creator-device-stage { aspect-ratio: 424 / 896; }
.creator-preview[data-device-scaled] .creator-device { position: absolute; inset: 0 auto auto 0; width: 424px; transform: scale(var(--creator-device-scale, 1)); transform-origin: top left; }
.creator-device {
  position: relative; padding: 9px; border: 1px solid #89919e; border-radius: 52px;
  background: linear-gradient(135deg, #c2c8d0 0%, #515b69 12%, #242c38 36%, #87919f 63%, #343e4c 80%, #a4acb8 100%);
  box-shadow: inset 0 0 0 2px #222a36, inset 0 0 0 3px #69717d, 0 0 0 1px #141c29, 0 24px 64px -24px rgba(0, 0, 0, 0.55), 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}
.creator-device-buttons { pointer-events: none; }
.creator-device-buttons span { position: absolute; left: -4px; width: 3px; border: 1px solid #596372; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, #28313d, #8c96a3); }
.creator-device-buttons span:nth-child(1) { top: 96px; height: 24px; }
.creator-device-buttons span:nth-child(2) { top: 142px; height: 44px; }
.creator-device-buttons span:nth-child(3) { top: 198px; height: 44px; }
.creator-device-buttons span:nth-child(4) { top: 162px; left: auto; right: -4px; height: 68px; border-radius: 0 2px 2px 0; }
.creator-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 876px; border: 1px solid #101621; border-radius: 42px; outline: 4px solid #080c13; background: var(--surface-page); }
.creator-status-bar { flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: 20px; color: var(--text-strong); pointer-events: none; }
/* Keep the progress cue in the phone chrome; directional arrows sit outside. */
.creator-story { position: absolute; inset: 0; color: var(--text-primary); pointer-events: auto; }
.creator-story:not([hidden]) ~ .creator-device-time, .creator-story:not([hidden]) ~ .creator-device-status { visibility: hidden; }
.creator-story button { border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.creator-story button:focus-visible { outline-offset: -2px; }
.creator-story-current { position: absolute; top: 4px; left: 20px; right: calc(50% + 55px); height: 36px; display: flex; align-items: center; gap: 5px; text-align: left; white-space: nowrap; }
.creator-story-current-copy { display: flex; flex-direction: column; gap: 1px; }
.creator-story-current strong { font-size: 11px; line-height: 14px; font-weight: 600; }
.creator-story-current-copy > span { color: var(--text-muted); font-size: 10px; line-height: 13px; }
.creator-story-next { position: absolute; top: 4px; right: 20px; left: calc(50% + 55px); height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.creator-story-next img { width: 24px; height: 24px; flex-shrink: 0; object-fit: cover; border: 1px solid var(--border); border-radius: 50%; }
.creator-story-next > span { color: var(--text-muted); font-size: 10px; line-height: 12px; white-space: nowrap; text-align: left; }
.creator-story-next strong { display: block; color: var(--text-primary); font-size: 11px; line-height: 13px; font-weight: 600; }
/* The thin progress rail has a larger click target than its painted line. */
.creator-story-track { position: absolute; inset: auto 20px -2px; display: flex; gap: 5px; height: 14px; }
.creator-story-segment { display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; }
.creator-story-meter { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 2px; background: var(--border-strong); }
.creator-story-segment:hover .creator-story-meter { height: 6px; }
.creator-story-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent-text); transform: scaleX(0); transform-origin: left center; }
.creator-story-hit-zones { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; touch-action: pan-y; user-select: none; }
.creator-story-hit-zones button { position: relative; min-width: 0; border: 0; background: transparent; color: var(--text-primary); touch-action: pan-y; cursor: pointer; }
.creator-story-hit-zones button:focus-visible { outline-offset: -4px; }
.creator-device-time { min-width: 44px; text-align: center; font-size: var(--type-body-s); font-weight: 600; letter-spacing: -0.03em; }
.creator-device-status { display: flex; align-items: center; gap: var(--space-1); }
.creator-camera-island { position: absolute; left: 50%; top: 12px; width: 30%; min-width: 60px; max-width: 94px; height: 28px; transform: translateX(-50%); border: 1px solid #141923; border-radius: var(--radius-pill); background: #03050a; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.035); }
.creator-camera-island::after { content: ''; position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border: 2px solid #101724; border-radius: 50%; background: radial-gradient(circle at 65% 35%, #203454, #080e18 65%); }
.creator-browser-bar { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: var(--space-1) var(--space-4) 0; }
.creator-browser-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-primary); background: var(--surface-interactive); }
.creator-address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 32px; padding-inline: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-interactive); color: var(--text-muted); font-size: .6875rem; }
.creator-address > svg { flex-shrink: 0; }
.creator-address > span { flex: 1; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
/* The phone mirrors the dashboard's portrait profile; all screen colors inherit the site theme. */
.creator-page-content { font-size: var(--type-body-m); line-height: 1.5; letter-spacing: -.005em; text-rendering: optimizeLegibility; color: var(--profile-text-base); flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain auto; scrollbar-width: none; padding: var(--space-3) var(--space-2); background: linear-gradient(var(--profile-grid) 1px, transparent 1px), linear-gradient(90deg, var(--profile-grid) 1px, transparent 1px), radial-gradient(ellipse 280px 280px at 50% 80px, var(--page-glow-primary), transparent 100%), var(--surface-page); background-size: 88px 88px, 88px 88px, auto, auto; background-attachment: local; }
/* Mobile browser scrolling must not reserve desktop scrollbar space beside the card. */
.creator-page-content::-webkit-scrollbar { display: none; }
/* The raised card is opaque; the page grid stays behind it, as in the dashboard. */
.creator-profile-card { position: relative; isolation: isolate; border-radius: var(--radius-xl); background: var(--surface-page); box-shadow: 0 0 0 1px var(--border), var(--shadow-card); }
/* Use the dashboard's shoulder framing in both tabs, without its compact height cap. */
.creator-portrait { position: relative; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
/* Fade the image itself; transparent edge pixels prevent seams when the phone scales. */
.creator-portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgb(0 0 0 / 65%) 72%, transparent calc(100% - 2px)); mask-image: linear-gradient(to bottom, #000 55%, rgb(0 0 0 / 65%) 72%, transparent calc(100% - 2px)); }
.creator-profile-actions { position: absolute; z-index: 2; inset: var(--space-4) var(--space-4) auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.creator-profile-brand, .creator-profile-share { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--text-primary); box-shadow: 0 2px 8px rgb(0 0 0 / 8%); }
.creator-profile-actions > .creator-profile-brand { color: var(--accent-text); }
/* Compact illustration spacing keeps both complete forms inside the Pro screen. */
.creator-profile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -32px; padding-inline: var(--space-4); text-align: center; }
.creator-profile h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.creator-handle { color: var(--text-muted); font-size: var(--type-body-xs); line-height: 1.5; }
.creator-bio { max-width: 38ch; margin-top: 2px; color: var(--text-muted); font-size: var(--type-body-s); line-height: 1.4; }
.creator-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: 2px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.creator-stats > span { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-pill); background: var(--profile-surface-hover); white-space: nowrap; }
.creator-rating-star { margin-left: var(--space-2); color: var(--status-pending); }
.creator-stats .creator-spots { color: var(--status-pending); font-weight: 500; }
.creator-page-body { padding: var(--space-2) var(--space-4); }
.creator-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--border); }
.creator-tabs button { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 0; min-height: 44px; padding: var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--text-muted); font-size: var(--type-body-s); line-height: 1.3; font-weight: 500; cursor: pointer; transition: color var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease); }
.creator-tabs button svg { flex-shrink: 0; }
.creator-tabs button:hover { color: var(--text-primary); }
.creator-tabs button[aria-selected='true'] { color: var(--text-primary); background: var(--accent-soft); border-color: var(--accent-border); font-weight: 600; }
.creator-tabs button[aria-selected='true'] svg { color: var(--accent-text); }
.creator-panel { min-width: 0; border-radius: var(--radius-md); }
/* Preserve the dashboard controls while shortening the illustration's form rows. */
.creator-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-1); }
.creator-panel-heading h4 { color: var(--text-strong); font-size: var(--type-body-m); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.creator-panel-heading > span { flex-shrink: 0; color: var(--text-muted); font-size: var(--type-body-xs); }
.creator-composer { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); }
.creator-composer { position: relative; }
/* Keep final text in the accessibility tree and reserve its complete layout. */
.creator-typing { display: none; position: absolute; inset: 0 0 auto; padding: var(--space-2) var(--space-3); color: var(--text-primary); font: 400 14px/1.4 var(--font-body); letter-spacing: -.005em; white-space: pre-wrap; overflow-wrap: break-word; pointer-events: none; }
.creator-composer[data-revealing] > .creator-message { color: transparent; }
.creator-composer[data-revealing] > .creator-typing { display: block; }
.creator-typing::after { content: ''; display: inline-block; width: 2px; height: .95em; margin-left: 2px; background: var(--accent-text); vertical-align: -.1em; }
#creator-panel-question .creator-typing { font-size: 16px; line-height: 1.6; }
.creator-composer:hover { border-color: var(--border-strong); }
.creator-composer:focus-within { border-color: var(--accent-text); }
.creator-message { display: block; width: 100%; height: 96px; min-height: 96px; margin: 0; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); font: 400 14px/1.4 var(--font-body); letter-spacing: -.005em; resize: none; }
.creator-message:focus { outline: none; }
.creator-composer-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 28px; padding-left: var(--space-3); color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.creator-word-count { color: var(--status-paid); }
.creator-tool-icons { display: inline-flex; flex-shrink: 0; margin-left: auto; }
.creator-tool-button { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 28px; border-radius: var(--radius-md); color: var(--text-primary); }
.creator-tool-button::before { content: ''; position: absolute; inset: 2px var(--space-1); border: 1px solid var(--border-strong); border-radius: inherit; background: var(--surface-interactive); }
.creator-tool-button > svg { position: relative; width: 16px; height: 16px; }
.creator-inquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-bottom: var(--space-1); font-size: var(--type-body-xs); }
.creator-inquiry-fields > div > span { display: block; color: var(--text-primary); font-weight: 500; }
.creator-proposal-label { margin-bottom: 2px; color: var(--text-primary); font-size: var(--type-body-xs); line-height: 1.5; font-weight: 500; }
.creator-inquiry-fields p { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); height: 32px; margin-top: var(--space-1); padding: 0 var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text-primary); font-size: var(--type-body-s); line-height: 1.5; overflow-wrap: anywhere; }
.creator-preview-action { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 44px; margin-top: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--profile-action-primary); color: var(--text-on-accent); font-size: var(--type-body-m); line-height: 1.4; font-weight: 500; cursor: default; }
.creator-panel-note { margin-block: 6px var(--space-2); color: var(--text-muted); font-size: 11px; line-height: 1.5; text-align: center; }
/* Leave comfortable room for the sample question without an oversized empty field. */
#creator-panel-question .creator-message { height: 128px; min-height: 112px; overflow: hidden; font-size: 16px; line-height: 1.6; }
.creator-preview:not([data-device-scaled]) #creator-question-message { overflow: auto; }
#creator-panel-business .creator-message { height: 76px; min-height: 76px; overflow: auto; }
/* Keep the labeled business form inside the same phone content area. */
#creator-panel-business .creator-panel-note { margin-block: 2px var(--space-1); }
#creator-panel-business .creator-preview-action { border-radius: var(--radius-md); }
.creator-home-indicator { flex-shrink: 0; display: grid; place-items: end center; min-height: 20px; margin-top: auto; padding-block: var(--space-2); pointer-events: none; }
.creator-home-indicator::after { content: ''; width: 104px; height: 4px; border-radius: var(--radius-pill); background: var(--text-strong); opacity: 0.8; }
@media (max-width: 859px) { .how-showcase { grid-template-columns: minmax(0, 1fr); } }
/* Fit the closed desktop section below the sticky nav. Expanded details flow below it. */
@media (min-width: 860px) {
  #how[data-viewport-fit] { --how-inset: clamp(16px, 2dvh, 32px); --how-preview-gap: clamp(var(--space-6), 4dvh, var(--space-7)); --how-row-gap: 12px; padding-block: var(--how-inset); scroll-margin-top: var(--nav-height, 65px); }
  #how[data-viewport-fit] > .container { display: grid; gap: var(--how-row-gap); }
  /* Reserve breathing room for the phone and its shadow within the viewport budget. */
  #how[data-viewport-fit] .how-showcase { height: max(0px, calc(100dvh - var(--nav-height, 65px) - 2 * var(--how-inset) - var(--how-preview-gap) - var(--how-row-gap) - var(--how-support-height, 80px))); min-height: min-content; margin-bottom: calc(var(--how-preview-gap) - var(--how-row-gap)); }
  #how[data-viewport-fit] .how-reassurance, #how[data-viewport-fit] .journey-details { margin-top: 0; }
  #how[data-viewport-fit] .creator-preview { display: flex; flex-direction: column; align-items: center; align-self: stretch; height: 100%; }
  #how[data-viewport-fit] .creator-demo-stage { container-type: size; display: grid; place-items: center; flex: 1; min-height: 0; }
  #how[data-viewport-fit] .creator-device-stage { width: min(calc(100% - 112px), calc(100cqh * 424 / 896)); }
  #how[data-viewport-fit] .creator-story-navigation { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
  #how[data-viewport-fit] .creator-story-navigation button { pointer-events: auto; }
}
@media (min-width: 1200px) {
  .how-showcase { grid-template-columns: minmax(0, 1fr) 544px; }
  .creator-preview { max-width: 544px; }
}
@media (min-width: 860px) and (max-height: 740px) {
  #how[data-viewport-fit] .how-copy h2 { font-size: 32px; }
  #how[data-viewport-fit] .steps { gap: 16px; margin-top: 20px; }
  #how[data-viewport-fit] .step { gap: 12px; }
  #how[data-viewport-fit] .step h3 { font-size: 16px; }
  #how[data-viewport-fit] .step p { font-size: 13px; line-height: 1.5; }
}
@media (min-width: 860px) and (max-height: 580px) {
  #how[data-viewport-fit] .how-copy h2 { font-size: 28px; }
  #how[data-viewport-fit] .section-label { font-size: 11px; margin-bottom: 8px; }
  #how[data-viewport-fit] .steps { gap: 10px; margin-top: 12px; }
  #how[data-viewport-fit] .step h3 { font-size: 14px; }
  #how[data-viewport-fit] .step p { font-size: 12px; line-height: 1.4; }
  #how[data-viewport-fit] .how-reassurance { font-size: 12px; }
}
/* Pricing and an illustrative earnings scenario share one compact section. */
.pricing-inner { padding-block: var(--space-7); border-bottom: 1px solid var(--border); }
.pricing-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--space-5); margin-bottom: var(--space-6); }
.pricing-terms { display: grid; gap: var(--space-1); color: var(--text-muted); font-size: var(--type-body-m); }
.pricing-terms strong { color: var(--text-primary); font-size: var(--type-reading); font-weight: 500; }
.earnings-calculator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space-5) var(--space-6); }
.earnings-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); min-width: 0; border: 0; }
.earnings-field { min-width: 0; }
.earnings-label-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.earnings-label-row label { color: var(--text-primary); font-size: var(--type-body-m); font-weight: 500; }
.earnings-label-row label span { color: var(--text-muted); font-weight: 400; }
.earnings-number { position: relative; flex: 0 0 80px; color: var(--text-muted); }
.earnings-number-price { flex-basis: 112px; }
.earnings-number > span { position: absolute; inset-inline-start: var(--space-3); top: 50%; transform: translateY(-50%); font: 500 var(--type-reading)/1.5 var(--font-mono); pointer-events: none; }
.earnings-value { display: block; width: 100%; min-width: 0; height: 40px; padding-inline: var(--space-3); border: 1px solid var(--control-border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text-primary); font: 500 var(--type-reading)/1.5 var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; appearance: textfield; -moz-appearance: textfield; transition: border-color var(--motion-fast) var(--motion-ease); }
.earnings-number-price .earnings-value { padding-inline-start: var(--space-5); }
.earnings-value::-webkit-inner-spin-button, .earnings-value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.earnings-value:not(:disabled):hover { border-color: var(--accent-text); }
.earnings-value[aria-invalid='true'] { border-color: var(--status-error); }
.earnings-value:disabled { opacity: 0.4; }
.earnings-error { margin-top: var(--space-2); color: var(--status-error); font-size: var(--type-body-s); }
@media (pointer: coarse) { .earnings-value { height: 48px; } }
.earnings-controls input[type='range'] { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 48px; border-radius: var(--radius-md); background: transparent; cursor: pointer; }
.earnings-controls input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--action-primary) var(--range-progress, 0%), var(--control-border) var(--range-progress, 0%)); }
.earnings-controls input[type='range']::-moz-range-track { height: 4px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--action-primary) var(--range-progress, 0%), var(--control-border) var(--range-progress, 0%)); }
.earnings-controls input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 3px solid var(--surface-page); border-radius: var(--radius-pill); background: var(--action-primary); box-shadow: 0 0 0 1px var(--control-border); }
.earnings-controls input[type='range']::-moz-range-thumb { box-sizing: border-box; width: 20px; height: 20px; border: 3px solid var(--surface-page); border-radius: var(--radius-pill); background: var(--action-primary); box-shadow: 0 0 0 1px var(--control-border); }
.earnings-controls:disabled input[type='range'] { cursor: default; opacity: 0.4; }
.earnings-range-bounds { display: flex; justify-content: space-between; color: var(--text-muted); font-size: var(--type-body-xs); }
.earnings-result { container-type: inline-size; min-width: 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--accent-soft); }
.earnings-result h3 { font-size: var(--type-body-m); font-weight: 500; letter-spacing: normal; }
.earnings-result > p { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--type-body-s); }
.earnings-cta { margin-top: var(--space-5); }
.earnings-periods { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); margin-top: var(--space-4); }
.earnings-periods > div { flex: 1 0 auto; }
.earnings-periods dt { margin-bottom: var(--space-1); color: var(--text-muted); font-size: var(--type-body-s); }
.earnings-periods output { color: var(--text-primary); font: 500 var(--type-display-s)/1.2 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.earnings-periods > .earnings-period-primary { flex-basis: 100%; padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.earnings-period-primary output { color: var(--accent-text); font-size: clamp(var(--type-display-m), 12cqw, var(--type-display-l)); }
.earnings-assumptions { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--type-body-s); line-height: 1.6; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-7); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq-wrap { max-width: 900px; margin-inline: auto; }
.faq-layout .faq-wrap { width: 100%; min-width: 0; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-5); color: var(--text-strong); font-size: var(--type-heading); font-weight: 500; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-toggle { display: grid; place-items: center; position: relative; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--control-border); border-radius: var(--radius-md); }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background: currentColor; width: 12px; height: 2px; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--surface-interactive); }
.faq-item[open] .faq-toggle::after { display: none; }
.faq-body { max-width: 720px; padding-bottom: var(--space-5); color: var(--text-muted); font-size: var(--type-reading); line-height: 1.6; }
.faq-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.faq-body a:hover { color: var(--accent-text-hover); }
/* Let the page grid continue through the waitlist, with its original centered glow. */
.final-cta { position: relative; isolation: isolate; padding-block: var(--space-8); text-align: center; }
.final-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 65% 80% at 50% 50%, var(--page-glow-primary) 0%, var(--page-glow-secondary) 45%, transparent 75%);
  /* Fade to zero before the section ends so the glow never forms a hard edge. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.final-cta h2 { max-width: 900px; margin: 0 auto var(--space-5); }
.final-cta > .container > p { max-width: 480px; margin: 0 auto var(--space-6); color: var(--text-muted); line-height: 1.6; }
.email-form { display: flex; align-items: end; gap: var(--space-3); max-width: 560px; margin-inline: auto; }
.email-field { flex: 1; min-width: 0; display: grid; gap: var(--space-2); text-align: left; }
.email-field label { color: var(--text-primary); font-size: var(--type-body-s); font-weight: 500; }
.email-form input[type='email'] { width: 100%; min-width: 0; min-height: 50px; padding: var(--space-3) var(--space-4); border: 1px solid var(--control-border); border-radius: var(--radius-pill); color: var(--text-primary); background: var(--surface-raised); font-size: var(--type-reading); }
.email-form input::placeholder { color: var(--text-muted); }
.email-form button { flex-shrink: 0; font-size: var(--type-reading); }
.email-form button:disabled { opacity: 0.4; cursor: not-allowed; }
.email-form button[aria-busy='true'] { cursor: progress; }
.email-form .honeypot { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-note { max-width: 560px; margin-inline: auto; color: var(--text-muted); font-size: var(--type-body-s); margin-top: var(--space-4); overflow-wrap: anywhere; }
.form-note.is-success { color: var(--status-paid); }
.form-note.is-error { color: var(--status-error); }
footer { padding-block: var(--space-7); border-top: 1px solid var(--border); background: var(--surface-page); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); color: var(--text-muted); font-size: var(--type-body-s); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1023px) {
  .container, .nav-inner { padding-inline: var(--space-5); }
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .hero-inner { gap: var(--space-5); }
  .hero-heading { font-size: 2.75rem; }
  .hero-visual { width: 100%; max-width: 420px; margin-inline: auto; }
  .dm-card { width: 300px; justify-self: center; margin-inline: 0; }
  h2 { font-size: var(--type-display-m); }
  .faq-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .how-showcase { gap: var(--space-6); }
}
@media (max-width: 639px) {
  .container, .nav-inner { padding-inline: var(--space-4); }
  .nav-inner { gap: var(--space-2); }
  .nav-actions { gap: var(--space-2); margin-left: auto; }
  /* Keep the header uncluttered and signup within reach further down the page. */
  .nav-cta { position: fixed; bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); min-height: 48px; padding-inline: var(--space-5); box-shadow: var(--shadow-floating); }
  .nav-cta.is-contextual-hidden:not(:focus-visible) { visibility: hidden; pointer-events: none; }
  .section, .final-cta { padding-block: var(--space-7); }
  .btn { min-height: 48px; font-size: var(--type-reading); }
  .how-showcase { grid-template-columns: 1fr; gap: var(--space-6); }
  .pricing-inner { padding-block: var(--space-6); }
  .earnings-calculator { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; align-items: stretch; }
  footer { padding-block: var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }
  .footer-links { gap: var(--space-4); }
}
/* Keep the illustration readable while fitting the first screen at smaller sizes. */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 1024px) and (max-height: 800px) {
  .hero .dm-card { padding: var(--space-3); }
  .hero .dm-head { margin-bottom: var(--space-2); }
  .hero .dm-body { padding: var(--space-2); margin-bottom: var(--space-2); }
}
@media (min-width: 768px) and (max-height: 719px) {
  .hero .dm-card-3 { display: none; }
}
@media (max-height: 620px) {
  .hero { padding-block: var(--space-4); }
}
@media (max-height: 520px) {
  .hero { padding-block: var(--space-2); }
  .hero-heading { font-size: var(--type-display-m); margin-block: var(--space-3); }
  .hero-sub { margin-bottom: var(--space-3); }
  .hero .dm-head { margin-bottom: 0; }
  .hero .dm-body, .hero .dm-foot { display: none; }
}
/* Center the mobile preview in the space left below the copy. Equal preview
   insets preserve breathing room when short screens or larger text must scroll. */
@media (max-width: 767px) {
  .hero { align-items: stretch; min-block-size: min(calc(100vh - var(--nav-height, 65px)), 54rem); min-block-size: min(calc(100dvh - var(--nav-height, 65px)), 54rem); padding-block: clamp(var(--space-6), 5svh, var(--space-7)) 0; }
  .hero-inner { max-width: 480px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(min-content, 1fr); align-items: stretch; gap: 0; }
  .hero-heading { margin-block: var(--space-4); font-size: clamp(2rem, 9.7vw, 2.75rem); line-height: 1.12; letter-spacing: -0.035em; }
  .hero-sub { margin-bottom: var(--space-5); text-wrap: initial; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero .inbox-preview { display: grid; align-items: center; padding-block: var(--space-7); }
  .hero .hero-visual { max-width: none; padding: 0; gap: var(--space-5); }
  .hero .dm-card { width: 100%; max-width: none; margin: 0; padding: var(--space-4); border-radius: var(--radius-xl); }
  .hero .dm-card-3 { display: none; }
  .hero .dm-head { margin-bottom: var(--space-3); }
  .hero .dm-avatar { width: 36px; height: 36px; }
  .hero .dm-price { font-size: var(--type-reading); }
  .hero .dm-body { display: block; margin: 0; padding: 0; border: 0; background: transparent; font-size: var(--type-body-m); line-height: 1.5; }
  .hero .dm-foot { display: none; }
}
@media (pointer: coarse) {
  .btn, .nav-cta, .nav-links a { min-height: 48px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:not(:disabled):hover .btn-icon svg { transform: translateX(2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .creator-tabs button[data-cue] { animation: creator-tab-cue 900ms ease-out; }
  .hero-visual { animation: inbox-arrive 1s var(--motion-ease) 180ms backwards; }
  .dm-card-1 { animation: inbox-float-one 7s ease-in-out infinite; }
  .dm-card-2 { animation: inbox-float-two 8s ease-in-out infinite; }
  .dm-card-3 { animation: inbox-float-three 9s ease-in-out infinite; }
}
@keyframes creator-tab-cue {
  0% { box-shadow: 0 0 0 0 var(--accent-border); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: none; }
}
@keyframes inbox-arrive {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes inbox-float-one {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-8px); }
}
@keyframes inbox-float-two {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(8px); }
}
@keyframes inbox-float-three {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
