/*
  Emmy STACK01: /websites
  Loads AFTER index-style.css and reuses its tokens, nav, drawer, modal, buttons, FAQ, pricing panel,
  footer and the CSS-drawn mini-website visuals (.visual, .browser, .mk-*).
  Only page-specific styles live here (prefix ws-, plus .conversion-note).
*/

/* ---------- Header (same dark treatment as the articles header) ---------- */
.ws-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--text-main);
  background:
    radial-gradient(800px 420px at 88% 0%, color-mix(in srgb, var(--accent-color) 22%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--primary-color) 30%, transparent), transparent 70%),
    var(--b-dark); }
.ws-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(color-mix(in srgb, var(--primary-color) 18%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 18%, transparent) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 95%); mask-image: linear-gradient(to bottom, #000 15%, transparent 95%); }
.ws-hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad) clamp(3rem, 8vw, 5rem); }
.ws-hero :focus-visible, .pricing :focus-visible, .conversion-note :focus-visible { outline-color: var(--accent-color); }
.ws-eyebrow { display: block; margin-bottom: .6rem; font-size: var(--fs-small); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-color); }
.ws-hero h1 { max-width: 20ch; font-family: var(--font-display); font-size: clamp(2.7rem, 1.4rem + 6vw, 5.4rem); font-weight: 700; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.ws-hero p { margin-top: 1.1rem; max-width: 44ch; font-size: clamp(1rem, .94rem + .3vw, 1.25rem); font-weight: 500; color: var(--text-muted); text-wrap: pretty; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Button groups: a row from 600px up; on phones they stack and each button fills the width (labels wrap instead of overflowing) */
.ws-actions { display: flex; flex-wrap: wrap; gap: .8rem; max-width: 100%; }
.ws-actions > a { flex: 0 1 auto; min-width: 0; }
.ws-hero .ws-actions { margin-top: 1.75rem; }
.ws-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; max-width: 100%; min-height: 44px; padding: .8rem clamp(1.2rem, 4vw, 1.7rem); border: 2px solid color-mix(in srgb, var(--text-main) 55%, transparent); border-radius: 999px; background: transparent; color: var(--text-main); font-family: var(--font-body); font-size: var(--fs-btn); font-weight: 700; letter-spacing: .01em; line-height: 1.2; text-align: center; text-transform: uppercase; transition: transform .2s, background-color .2s, border-color .2s; }
.ws-btn-ghost:hover { transform: translateY(-2px); border-color: var(--text-main); background: color-mix(in srgb, var(--text-main) 12%, transparent); }

/* ---------- Website type guide ---------- */
.ws-pick, .ws-type, .ws-projects, .faq { scroll-margin-top: 5.5rem; }
.ws-pick-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.ws-pick .sec-title { margin-bottom: .6rem; }
.ws-lede { max-width: 52ch; font-size: clamp(1rem, .94rem + .3vw, 1.2rem); color: var(--ink-soft); }
.ws-typelist { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ws-typelist a { display: flex; align-items: center; gap: .9rem; height: 100%; min-height: 44px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--secondary-color) 8%, transparent); transition: transform .25s, border-color .25s, box-shadow .25s; }
.ws-typelist a:hover, .ws-typelist a:focus-visible { transform: translateY(-3px); border-color: var(--primary-color); box-shadow: 0 18px 40px color-mix(in srgb, var(--secondary-color) 16%, transparent); }
.ws-typelist .tile-icon { flex-shrink: 0; }
.ws-type-text { display: grid; gap: .1rem; min-width: 0; }
.ws-type-name { font-weight: 800; line-height: 1.25; color: var(--secondary-color); }
.ws-type-for { font-size: var(--fs-small); line-height: 1.35; color: var(--ink-soft); }
.ws-type-arrow { flex-shrink: 0; margin-left: auto; font-size: 1.3rem; color: var(--primary-color); }

/* ---------- One section per website type ---------- */
.ws-type { background: var(--tint); }
.ws-type.ws-alt { background: var(--white); }
.ws-wrap { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--pad); }
.ws-type-head { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ws-type-intro { display: grid; gap: .6rem; justify-items: start; }
.ws-h2 { margin-top: .35rem; font-family: var(--font-display); font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--secondary-color); }
.ws-quick { max-width: 46ch; font-size: clamp(1rem, .94rem + .3vw, 1.15rem); color: var(--ink-soft); }

.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.ws-block { min-width: 0; padding: clamp(1.2rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--secondary-color) 8%, transparent); }
.ws-block h3 { margin-bottom: .6rem; font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; text-transform: uppercase; color: var(--secondary-color); }
.ws-block p { color: var(--ink-soft); }

/* The scenario is the one block that stands apart: accent edge in the card's own tab colour, larger copy */
.ws-scenario { --tab: color-mix(in srgb, var(--accent-color) calc(var(--i) * 13%), var(--primary-color)); border: 0; border-left: .4rem solid var(--tab); border-radius: 0 22px 22px 0; background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--tint) 70%, #fff)); }
.ws-scenario p { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); line-height: 1.65; color: var(--secondary-color); }
.ws-scenario .ws-more-label { margin-top: 1.1rem; font-size: var(--fs-small); font-weight: 800; color: var(--primary-color); }
.ws-examples { display: grid; gap: .5rem; margin: .5rem 0 0; padding-left: 1.2rem; font-size: var(--fs-body); color: var(--ink-soft); }
.ws-examples li::marker { color: var(--primary-color); }

.ws-checks { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.ws-checks li { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.4; color: var(--ink-soft); }
.ws-checks i { flex-shrink: 0; margin-top: .05em; font-size: 1.15rem; color: var(--primary-color); }
.ws-caveat { display: flex; align-items: flex-start; gap: .55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: var(--fs-small); line-height: 1.5; }
.ws-caveat i { flex-shrink: 0; margin-top: .1em; font-size: 1.1rem; color: var(--primary-color); }

/* Conversion note: same dark panel as the pricing band, so every section ends on one clear next step */
.conversion-note { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: clamp(22px, 3.5vw, 30px); background: linear-gradient(120deg, var(--b-dark), var(--secondary-color) 60%, var(--primary-color)); color: var(--text-main); }
.conversion-note::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -60%; width: min(55%, 360px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 34%, transparent), transparent 68%); pointer-events: none; }
.conversion-copy { flex: 1 1 20rem; }
.conversion-note h3 { margin-bottom: .4rem; font-family: var(--font-display); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.conversion-note p { max-width: 52ch; color: var(--text-main); opacity: .92; }
.conversion-note .btn-white { flex-shrink: 0; }

.ws-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; }
.ws-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: var(--fs-small); font-weight: 800; color: var(--primary-color); }
.ws-link:hover { color: var(--secondary-color); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Recent projects (content comes from Keystatic; hidden until a project is set to show) ---------- */
.ws-projects .sec-title { margin-bottom: .6rem; }
.ws-project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 3vw, 1.75rem); margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.ws-project { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--secondary-color) 8%, transparent); }
.ws-project-head { display: grid; gap: .3rem; padding: 1.3rem 1.4rem 1rem; }
.ws-project-head h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); font-weight: 800; line-height: 1.25; color: var(--secondary-color); }
.ws-project .ws-project-type { font-size: var(--fs-small); font-weight: 800; color: var(--primary-color); }
.ws-project-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.ws-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-project-body { display: flex; flex: 1; flex-direction: column; gap: .8rem; padding: 1.1rem 1.4rem 1.5rem; }
.ws-project-body p { color: var(--ink-soft); }
.ws-project-facts { display: grid; gap: .9rem; margin: .2rem 0 0; }
.ws-project-facts dt { margin-bottom: .2rem; font-size: var(--fs-small); font-weight: 800; color: var(--secondary-color); }
.ws-project-facts dd { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.ws-project-facts dd p + p { margin-top: .5rem; }
.ws-project-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: auto; padding-top: .6rem; }

/* ---------- Final call to action (reuses .pricing) ---------- */
.pricing .ws-actions { flex: 0 1 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 599px) {
  .ws-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .ws-actions > a { width: 100%; }
  .pricing .ws-actions { flex: 1 1 100%; }
  .conversion-note .btn-white { width: 100%; }
  .ws-project .cta { width: 100%; }
}
@media (min-width: 600px) {
  .ws-typelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-scenario { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .ws-typelist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-typelist a { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.2rem; }
  .ws-type-arrow { margin-left: 0; margin-top: auto; }
  .ws-type-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .ws-type.ws-alt .ws-type-intro { order: 2; }
}
@media (min-width: 1000px) {
  .ws-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-typelist a, .ws-btn-ghost { transition: none; }
  .ws-typelist a:hover, .ws-typelist a:focus-visible, .ws-btn-ghost:hover { transform: none; }
}
