/* Eazy Pizzy — public website (Home, How we build, Eazy Office extras, Contact, Case story).
   Uses tokens only. Loaded after core/app.css. Class prefix: ws- (website). */

/* ---------- shared ---------- */
.ws-kicker { font-size: var(--fs-sm); color: var(--muted); }
.ws-h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--s-4); }
.ws-h2 em, .ws-hero__title em { font-style: normal; color: var(--primary); }
.ws-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.ws-link { font-weight: 600; color: var(--link); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ws-link:hover { text-decoration: underline; }
.ws-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.ws-link:hover::after { transform: translateX(3px); }
.ws-grid-2 { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .ws-grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */
.ws-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.ws-hero::before { content: ""; position: absolute; inset: -30% -10% auto 45%; height: 140%; background: radial-gradient(closest-side, var(--blue-100), transparent 70%); opacity: .9; pointer-events: none; }
:root[data-theme="dark"] .ws-hero::before { opacity: .15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-hero::before { opacity: .15; } }
.ws-hero__grid { position: relative; display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .ws-hero__grid { grid-template-columns: 1.02fr 1fr; } }
.ws-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 var(--s-5); color: var(--ink); }
.ws-hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; max-width: 40ch; margin: 0 0 var(--s-6); }
.ws-hero__assure { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--ink-soft); font-size: var(--fs-sm); }
.ws-hero__assure li { display: inline-flex; align-items: center; gap: 6px; }
.ws-hero__assure li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

/* Product frame around a video */
.ws-frame { position: relative; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.ws-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.ws-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.ws-frame__bar em { margin-left: 10px; font-style: normal; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }
.ws-frame video, .ws-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-muted); }
.ws-frame__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface-brand); color: var(--on-brand); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-md); }
.ws-frame__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 30%, transparent); }

/* ---------- proof strip ---------- */
.ws-proof { border-block: 1px solid var(--border); background: var(--bg-elevated); }
.ws-proof__inner { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); align-items: center; justify-content: space-between; padding-block: var(--s-5); }
.ws-proof__label { font-weight: 700; color: var(--ink); }
.ws-proof__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ws-proof__list li { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft); }
.ws-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-6); }
.ws-stats strong { display: block; font-size: var(--fs-2xl); color: var(--primary); letter-spacing: -0.02em; }
.ws-stats span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- principle / problem cards ---------- */
.ws-cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ws-card { position: relative; padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ws-card__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--primary); font-weight: 700; }
.ws-card h3 { font-size: var(--fs-xl); margin: var(--s-3) 0 var(--s-2); }
.ws-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* ---------- industry videos ---------- */
.ws-videos { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .ws-videos { grid-template-columns: 300px 1fr; align-items: start; } }
.ws-tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
@media (min-width: 1000px) { .ws-tabs { flex-direction: column; overflow: visible; } }
.ws-tab { display: flex; align-items: center; gap: var(--s-3); width: 100%; white-space: nowrap; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ws-tab:hover { background: var(--surface); border-color: var(--border); color: var(--ink); }
.ws-tab[aria-selected="true"] { background: var(--surface); border-color: var(--primary); color: var(--ink); box-shadow: var(--shadow-sm); }
.ws-tab__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); }
.ws-player { display: grid; gap: var(--s-4); }
.ws-player__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; }
.ws-player__meta h3 { margin: 0; font-size: var(--fs-xl); }
.ws-player__meta p { margin: 4px 0 0; color: var(--ink-soft); }
.ws-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: color-mix(in srgb, var(--blue-950) 28%, transparent); cursor: pointer; color: var(--on-brand); font: inherit; }
.ws-play span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--r-pill); background: var(--surface-brand); font-weight: 700; box-shadow: var(--shadow-lg); }
.ws-play span::before { content: ""; width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.ws-play[hidden] { display: none; }
.ws-frame--video { aspect-ratio: auto; }

/* ---------- steps ---------- */
.ws-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ws-step { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.ws-step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-brand); color: var(--on-brand); font-weight: 800; margin-bottom: var(--s-4); }
.ws-step h3 { margin: 0 0 var(--s-2); font-size: var(--fs-lg); }
.ws-step p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.ws-step__time { display: inline-block; margin-top: var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- case story ---------- */
.ws-case { background: var(--surface-brand); color: var(--on-brand); }
.ws-case .ws-h2, .ws-case h3 { color: var(--on-brand); }
.ws-case .eyebrow { color: var(--cream-300); }
.ws-case__lead { color: var(--blue-200); font-size: var(--fs-lg); line-height: 1.6; max-width: 62ch; }
.ws-case__amount { display: block; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.04em; color: var(--cream-300); line-height: 1; margin-bottom: var(--s-3); }
.ws-gapfix { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
@media (min-width: 860px) { .ws-gapfix { grid-template-columns: 1fr 1fr; } }
.ws-gapfix__col { padding: var(--s-6); border-radius: var(--r-lg); background: rgba(255, 253, 248, 0.06); border: 1px solid rgba(255, 253, 248, 0.14); }
.ws-gapfix__col h3 { margin: 0 0 var(--s-4); font-size: var(--fs-lg); display: flex; align-items: center; gap: 10px; }
.ws-gapfix__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.ws-gapfix__col li { position: relative; padding-left: 28px; line-height: 1.55; color: var(--cream-100); }
.ws-gapfix__col li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ws-gapfix__col--gap li::before { content: "!"; background: #b4473b; color: #fff; }
.ws-gapfix__col--fix li::before { content: "✓"; background: #2f7d5b; color: #fff; }
.ws-case .btn--secondary { --btn-bg: transparent; --btn-fg: var(--on-brand); --btn-bd: rgba(255, 253, 248, 0.38); }

/* ---------- AI agents ---------- */
.ws-agents { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.ws-agent { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.ws-agent__name { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.ws-agent__name span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); }
.ws-agent ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ws-agent li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }
.ws-agent li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); }
.ws-agent li.is-human { color: var(--ink); font-weight: 700; }
.ws-agent li.is-human::before { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }

/* ---------- Eazy Office band ---------- */
.ws-band { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-7) var(--s-6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .ws-band { grid-template-columns: 1.4fr auto; } }
.ws-band h2 { margin: 0 0 var(--s-2); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ws-band p { margin: 0; color: var(--ink-soft); }
.ws-band__apps { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.ws-band__apps span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: var(--fs-sm); }

/* ---------- final CTA ---------- */
.ws-final { text-align: center; padding: clamp(48px, 7vw, 88px) var(--s-5); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--blue-950), var(--blue-700)); color: var(--cream-50); box-shadow: var(--shadow-lg); }
.ws-final h2 { color: var(--cream-50); font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto var(--s-4); }
.ws-final p { color: var(--blue-200); max-width: 52ch; margin: 0 auto var(--s-6); font-size: var(--fs-lg); }
.ws-final .ws-actions { justify-content: center; }

/* ---------- page hero (inner pages) ---------- */
.ws-pagehead { padding-block: clamp(48px, 6vw, 80px) var(--s-7); }
.ws-pagehead h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 var(--s-4); max-width: 20ch; }
.ws-pagehead p { max-width: 62ch; }

/* ---------- How we build ---------- */
.ws-phases { display: grid; gap: var(--s-5); }
.ws-phase { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 860px) { .ws-phase { grid-template-columns: 220px 1fr; } }
.ws-phase__label { display: grid; gap: 6px; align-content: start; }
.ws-phase__label strong { font-size: var(--fs-xl); }
.ws-phase__label span { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.ws-phase ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); line-height: 1.7; }
.ws-phase p { margin: 0 0 var(--s-3); color: var(--ink-soft); line-height: 1.6; }
.ws-promise { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ws-promise div { padding: var(--s-5); border-left: 3px solid var(--primary); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; }
.ws-promise h3 { margin: 0 0 6px; font-size: var(--fs-lg); }
.ws-promise p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.ws-faq { display: grid; gap: var(--s-3); max-width: 860px; }
.ws-faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 0 var(--s-5); }
.ws-faq summary { cursor: pointer; list-style: none; padding: var(--s-4) 0; font-weight: 700; display: flex; justify-content: space-between; gap: var(--s-4); }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--primary); }
.ws-faq details[open] summary::after { content: "–"; }
.ws-faq details p { margin: 0 0 var(--s-4); color: var(--ink-soft); line-height: 1.65; }

/* ---------- Contact / quote ---------- */
.ws-contact { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .ws-contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.ws-quote { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.ws-quote__progress { display: flex; gap: var(--s-3); margin-bottom: var(--s-5); list-style: none; padding: 0; }
.ws-quote__progress li { flex: 1; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.ws-quote__progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--border); }
.ws-quote__progress li.is-done, .ws-quote__progress li.is-current { color: var(--ink); }
.ws-quote__progress li.is-done::before, .ws-quote__progress li.is-current::before { background: var(--primary); }
.ws-quote fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.ws-quote legend { font-weight: 700; margin-bottom: var(--s-3); font-size: var(--fs-md); }
.ws-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ws-chip { position: relative; }
.ws-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ws-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-soft); font-weight: 600; transition: all var(--dur) var(--ease); }
.ws-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-brand); }
.ws-chip input:focus-visible + span { box-shadow: var(--ring); }
.ws-quote .form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .ws-quote .form-row--2 { grid-template-columns: 1fr 1fr; } }
.ws-quote__nav { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: center; margin-top: var(--s-5); }
.ws-quote__step[hidden] { display: none; }
.ws-quote .check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }
.ws-quote .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.ws-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ws-agentcode summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: var(--fs-sm); margin: var(--s-2) 0; }
.ws-done { text-align: center; padding: var(--s-6) var(--s-3); }
.ws-done__mark { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); font-size: 30px; font-weight: 800; }
.ws-done h2 { margin: 0 0 var(--s-2); }
.ws-done__ref { display: inline-block; margin: var(--s-3) 0 var(--s-5); padding: 8px 16px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary); font-family: var(--font-mono); font-weight: 700; }
.ws-next { list-style: none; margin: var(--s-5) auto 0; padding: 0; display: grid; gap: var(--s-3); max-width: 460px; text-align: left; counter-reset: n; }
.ws-next li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; color: var(--ink-soft); }
.ws-next li::before { counter-increment: n; content: counter(n); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-brand); color: var(--on-brand); font-weight: 700; font-size: var(--fs-sm); }
.ws-side { display: grid; gap: var(--s-4); }
.ws-side__card { padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.ws-side__card h2 { font-size: var(--fs-lg); margin: 0 0 var(--s-3); }
.ws-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ws-side__list li { display: grid; gap: 2px; }
.ws-side__list span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ws-side__list a { font-weight: 600; }
.ws-wa { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); color: var(--ink); text-decoration: none; font-weight: 700; }
.ws-wa small { display: block; font-weight: 500; color: var(--ink-soft); }
.ws-wa__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--good); color: #fff; }

/* ---------- Eazy Office extras ---------- */
.ws-compare { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .ws-compare { grid-template-columns: 1fr 1fr; } }
.ws-compare > div { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.ws-compare > div.is-custom { border-color: var(--primary); box-shadow: var(--shadow-md); }
.ws-compare h3 { margin: 0 0 var(--s-2); font-size: var(--fs-xl); }
.ws-compare ul { margin: var(--s-4) 0 var(--s-5); padding-left: 1.1em; color: var(--ink-soft); line-height: 1.8; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ws-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .ws-reveal.is-in { opacity: 1; transform: none; }
}
.ws-quote .field, .ws-quote .form-row { margin-bottom: var(--s-4); }
