/* Deuck — "The product performs" (draw.mjs seed 498269042), colours kept from the Deuck logo system:
   Deuck blue #2F6BFF, bright blue #007AFF, near-black #151821, on a neutral ground.
   One grid: 12 columns between equal 40px margins (20px on a phone). Page corners are square;
   the product fragments ([data-ui]) keep their own small radii and control lines. */
:root {
  --ground: #f4f6fa;
  --surface: #ffffff;
  --ink: #151821;
  --muted: #555b6b;          /* 6.6:1 on the ground */
  --blue: #2f6bff;
  --bright: #007aff;
  --blue-tint: #e3ebff;
  --blue-mid: #b5c9ff;
  --margin: 40px;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 5.2vw, 5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Stack Sans Text", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2 { font-family: "Stack Sans Headline", "Stack Sans Text", sans-serif; font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; }
.soft { color: var(--muted); }
.hero-copy h1 .soft { display: block; }

/* The wordmark, set as in the logo system: Outfit 800, tight, with the period in bright blue. */
.wm { font-family: "Outfit", sans-serif; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.wm-dot { color: var(--bright); }

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: var(--ink); color: #fff;
  font-weight: 500; text-decoration: none; transition: background-color 160ms, transform 160ms var(--ease);
}
.button:hover { background: #2a2f3d; }
.button:active { transform: scale(0.98); }

/* ---------- Hero: headline upper left, the quote screen on a cut blue stage ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; padding: 0 var(--margin); overflow: hidden; }
.nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.625rem; }
.nav nav { display: flex; gap: 28px; font-size: var(--step-small); }
.nav nav a { text-decoration: none; transition: color 160ms; }
.nav nav a:hover { color: var(--blue); }
.hero-copy { grid-column: 1 / 7; grid-row: 2; align-self: start; position: relative; z-index: 1; padding-top: clamp(56px, 10vh, 120px); }
.hero-copy h1 { font-size: var(--step-display); max-width: 18ch; }
.hero-copy p { margin: 24px 0 28px; max-width: 40ch; font-size: var(--step-body); }
.stage {
  grid-column: 7 / -1; grid-row: 2; align-self: end; margin-right: calc(-1 * var(--margin));
  height: 70svh; min-height: 480px; margin-top: 40px; background: var(--blue);
  clip-path: polygon(0 64px, 64px 0, 100% 0, 100% 100%, 0 100%);
  padding: 56px 0 0 56px; overflow: hidden;
}

/* Sandy's quote screen: the product's own interface at true size. */
.quote { width: min(620px, 100%); background: #fff; border-radius: 10px 10px 0 0; padding: 18px 20px 22px; font-size: 14px; color: #14171f; }
.q-head { display: flex; justify-content: space-between; align-items: center; }
.q-app { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.q-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #2bcc61; color: #04250e; font-size: 12px; font-weight: 700; }
.q-status { padding: 2px 10px; border-radius: 999px; background: #eef1f6; color: #3d4352; font-size: 12px; font-weight: 500; }
.q-status.sent { background: #dcfae5; color: #04250e; }
.q-customer { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #f4f6fa; color: #3d4352; }
.q-customer strong { color: #14171f; font-weight: 500; }
.q-label { margin-top: 14px; font-size: 13px; color: #555b6b; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.q-chips button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: #eef1f6; cursor: pointer; font-size: 13px; transition: background-color 140ms, color 140ms; }
.q-chips button:hover { background: #e2e6ee; }
.q-chips button[aria-checked="true"] { background: #2bcc61; color: #04250e; font-weight: 500; }
.q-lines { width: 100%; margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.q-lines td { padding: 7px 0; border-bottom: 1px solid #eef1f6; }
.q-lines td:last-child { text-align: right; }
.q-total td { border-bottom: 0; padding-top: 10px; font-weight: 500; font-size: 15px; }
.q-send { width: 100%; height: 40px; margin-top: 14px; border: 0; border-radius: 8px; background: #14171f; color: #fff; font-weight: 500; cursor: pointer; transition: background-color 140ms, transform 140ms var(--ease); }
.q-send:hover { background: #2a2f3d; }
.q-send:active { transform: scale(0.99); }
.q-send:disabled { background: #2bcc61; color: #04250e; cursor: default; }
.q-sent { margin-top: 10px; color: #17803d; }
.q-note { margin-top: 10px; font-size: 12px; color: #6b7180; }

/* ---------- Where AI earns its place: benches on a 5/7 split, fragments of varied size ---------- */
.benches { padding: 160px var(--margin) 120px; display: grid; gap: 96px; }
.benches-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.benches-intro h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.benches-intro p { grid-column: 8 / 13; max-width: 40ch; }
.bench { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: center; }
.bench-text h3 { font-family: "Stack Sans Headline", sans-serif; font-weight: 300; font-size: var(--step-head); letter-spacing: -0.022em; line-height: 1.05; }
.bench-text p { margin-top: 14px; max-width: 34ch; }
.bench-text .text-link { display: inline-block; margin-top: 12px; color: #1f57e6; font-weight: 500; text-underline-offset: 4px; }
.bench-frag { display: grid; align-items: center; min-height: 260px; background: var(--blue-tint); padding: 40px; }
.frag-sms { justify-items: start; }
.frag-rule { justify-items: end; background: var(--surface); }
.frag-model { justify-items: center; background: var(--ink); }
.frag-site { justify-items: start; padding: 40px 40px 0; align-items: end; overflow: hidden; background: var(--blue); }
.frag-site { max-height: 420px; }
.frag-site img { width: min(280px, 60%); height: 380px; object-fit: cover; object-position: 50% 0; }
.frag-chart { justify-items: end; }
.rule { width: min(440px, 100%); background: var(--ground); border-radius: 10px; padding: 16px 18px; font-size: 14px; }
.rule-src { font-size: 13px; color: var(--muted); }
.rule-quote { margin-top: 8px; font-size: 15px; }
.rule-out { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.model { width: min(380px, 100%); background: #fff; border-radius: 10px; padding: 16px 18px; font-size: 14px; color: #14171f; }
.model-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
.model dl { margin-top: 12px; display: grid; gap: 8px; }
.model dl div { display: flex; justify-content: space-between; gap: 16px; }
.model dt { color: #555b6b; }
.chart { width: min(420px, 100%); background: #fff; border-radius: 10px; padding: 16px 18px; font-size: 14px; color: #14171f; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 16px; }
.bars span { flex: 1; height: var(--h); background: var(--blue-mid); border-radius: 4px 4px 0 0; position: relative; }
.bars span.now { background: var(--blue); }
.bars b { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-weight: 500; font-size: 13px; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: #555b6b; }

/* ---------- Work: pinned index and picture, one viewport per project ---------- */
.work { position: relative; height: 270svh; background: var(--ground); }
.work-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 38fr 62fr; overflow: hidden; }
.work-left { display: flex; flex-direction: column; padding: 40px var(--margin) 32px; }
.work-left h2 { font-size: var(--step-display); line-height: 0.95; max-width: 6ch; }
.work-desc { margin-top: auto; margin-bottom: 28px; max-width: 34ch; font-size: var(--step-body); }
.work-index li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 48px; padding: 6px 0; text-decoration: none; color: var(--muted); transition: color 200ms; }
.work-index li a span:first-child { font-size: var(--step-lead); }
.work-index .disc { font-size: var(--step-small); }
.work-index li.current a, .work-index li a:hover { color: var(--ink); }
.work-index li.current a span:first-child { font-weight: 500; }
.work-right { position: relative; background: var(--ink); }
.pic { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease); }
.pic.current { clip-path: inset(0 0 0 0); z-index: 1; }
.pic > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 0% 0%; }
.pic-sandy > img:first-child { object-position: 50% 40%; }
.pic-phone { position: absolute; right: 7%; bottom: 0; width: min(240px, 24%); outline: 8px solid var(--ink); }
.pic-match { display: grid; place-items: center; background: var(--blue-tint); padding: 40px; }
.pic-sandy .sms { position: absolute; left: 8%; bottom: 10%; }

.match { width: min(560px, 100%); background: #fff; border-radius: 10px; padding: 16px 20px; font-size: 14px; color: #0a1628; }
.match-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid #e6edf3; /* taste-skill-ignore: a real table rule */ }
.match-head span + span { font-weight: 400; color: #4f5d70; }
.match-row { display: grid; grid-template-columns: 92px 108px 1fr; align-items: center; gap: 10px; padding: 11px 8px; margin: 0 -8px; border-bottom: 1px solid #eef1f4; border-radius: 6px; /* taste-skill-ignore: a real table rule */ }
.match-row.selected { background: #f1f5ff; }
.match-name { font-weight: 500; }
.pill { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.pill-fit { background: #dcfae5; color: #04250e; } .pill-maybe { background: #e3f4fb; color: #0a4f6e; } .pill-no { background: #ffedea; color: #831c1e; }
.match-why { color: #34404f; }
.demo-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sms { width: min(340px, 84%); background: #fff; border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: 14px; color: #14171f; }
.sms-from { font-size: 12px; color: #555b6b; margin-bottom: 4px; }
.sms-link { margin-top: 8px; color: #17803d; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Try it: a headline you can type into ---------- */
.try { min-height: 88svh; display: flex; flex-direction: column; padding: 120px var(--margin) 64px; background: var(--surface); }
.try h2 { font-size: var(--step-lead); font-family: "Stack Sans Text", sans-serif; font-weight: 500; letter-spacing: 0; max-width: 44ch; }
.try-line input {
  width: 100%; margin-top: 24px; padding: 0; border: 0; background: transparent; outline: none;
  font-family: "Stack Sans Headline", sans-serif; font-weight: 300; font-size: clamp(2.75rem, 6vw, 6.5rem); letter-spacing: -0.03em; line-height: 1.1;
  caret-color: var(--blue); color: var(--ink);
}
.try-line input:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.answer { width: min(560px, 100%); margin-top: 48px; font-size: 14px; }
.ans-row { display: grid; grid-template-columns: 92px 108px 1fr; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e6eaf0; /* taste-skill-ignore: a real table rule */ }
.examples { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: auto; padding-top: 48px; }
.examples button { border: 0; background: none; padding: 6px 0; font-size: var(--step-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--blue-mid); transition: color 160ms; }
.examples button:hover { color: var(--ink); text-decoration-color: var(--blue); }

/* ---------- How it works: one card, four fields ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: 84svh; padding: 40px 28px 28px; display: flex; flex-direction: column; }
.f1 { background: var(--blue-tint); } .f2 { background: var(--blue-mid); } .f3 { background: var(--blue); color: #fff; } .f4 { background: var(--ink); color: #fff; }
.field h2 { font-size: var(--step-lead); font-family: "Stack Sans Text", sans-serif; font-weight: 500; letter-spacing: 0; }
.card { width: 260px; margin: 18svh auto auto; background: #fff; color: #14171f; border-radius: 10px; padding: 14px 16px; font-size: 14px; transition: transform 150ms var(--ease); }
.field:hover .card { transform: translateY(-6px); }
.c-top { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.c-badge { padding: 2px 9px; border-radius: 999px; background: #eef1f6; color: #3d4352; font-size: 12px; }
.c-blue { background: #e3ebff; color: #1b3a99; } .c-amber { background: #fff1d6; color: #7a4a00; } .c-green { background: #dcfae5; color: #04250e; }
.card dl { margin-top: 12px; display: grid; gap: 6px; }
.card dl div { display: flex; justify-content: space-between; }
.card dt { color: #555b6b; }
.c-checks { margin-top: 12px; display: grid; gap: 6px; }
.c-checks li { padding-left: 24px; position: relative; color: #3d4352; }
.c-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border: 1.5px solid #b6bdcb; border-radius: 4px; }
.c-checks li.done { color: #14171f; }
.c-checks li.done::before { background: #2f6bff; border-color: #2f6bff; }
.c-checks li.done::after { content: ""; position: absolute; left: 4px; top: 6px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.c-figure { margin-top: 12px; font-weight: 500; }
.clause { font-size: var(--step-lead); line-height: 1.25; max-width: 16ch; }

/* ---------- Contact: one field ---------- */
.contact { padding: 200px var(--margin) 160px; display: grid; justify-content: center; }
.contact > * { width: min(520px, calc(100vw - 2 * var(--margin))); }
.contact h2 { font-family: "Stack Sans Text", sans-serif; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.ask { position: relative; margin-top: 28px; }
.ask input { width: 100%; height: 64px; padding: 0 64px 0 20px; border: 0; background: var(--surface); font-size: 1.0625rem; outline: none; }
.ask input::placeholder { color: var(--muted); }
.ask input:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ask button { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color 160ms, transform 160ms var(--ease); }
.ask button:hover { background: #1f57e6; }
.ask button:active { transform: scale(0.95); }
.ask-note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.ways { margin-top: 72px; display: grid; gap: 10px; font-size: var(--step-body); }
.ways div { display: flex; justify-content: space-between; gap: 16px; }
.ways dt { color: var(--muted); }

/* ---------- Footer: a board of tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 220px 320px auto; gap: 8px; padding: 10px; background: var(--ground); }
.tile { padding: 24px; background: var(--surface); text-decoration: none; }
.t-statement { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; }
.t-statement p:first-child { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
.t-small { font-size: var(--step-small); color: var(--muted); }
.t-nav { grid-column: 5 / 8; display: flex; flex-direction: column; gap: 6px; }
.t-nav a { text-decoration: none; transition: color 160ms; }
.t-nav a:hover { color: var(--blue); }
.t-photo { grid-column: 8 / 10; padding: 0; overflow: hidden; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.t-phone { grid-column: 10 / 13; display: flex; flex-direction: column; justify-content: space-between; }
.t-phone a { font-size: var(--step-lead); font-weight: 500; text-decoration: none; }
.t-phone a:hover { color: var(--blue); }
.t-wordmark { grid-column: 1 / 9; display: grid; place-items: center; background: var(--ink); color: #fff; }
.t-wordmark .wm { font-size: clamp(4rem, 9vw, 9rem); }
.t-start { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; background: var(--blue); color: #fff; transition: background-color 180ms; }
.t-start span { font-size: var(--step-lead); font-weight: 500; }
.t-start svg { align-self: flex-end; transition: transform 220ms var(--ease); }
.t-start:hover { background: #1f57e6; }
.t-start:hover svg { transform: translate(4px, -4px); }
.credits { grid-column: 1 / -1; padding: 16px 14px 8px; font-size: var(--step-body); color: var(--muted); max-width: 72ch; }

/* ---------- entrances (scripts only; content shows without them) ---------- */
.js .rise { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
.js .stage { clip-path: polygon(0 64px, 64px 0, 100% 0, 100% 100%, 0 100%); }
.js .stage .quote { transform: translateY(40px); opacity: 0; transition: transform 1100ms var(--ease) 200ms, opacity 700ms var(--ease) 200ms; }
.js.loaded .stage .quote { transform: none; opacity: 1; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav nav { gap: 20px; }
  .hero { grid-template-rows: auto auto auto; }
  .hero-copy { grid-column: 1 / -1; }
  .stage { grid-column: 3 / -1; grid-row: 3; height: 56svh; }
  .work { height: auto; }
  .work-stage { position: relative; height: auto; display: block; }
  .work-left { padding: 88px var(--margin) 24px; }
  .work-desc { margin-top: 24px; }
  .work-right { display: grid; gap: 8px; background: var(--ground); padding: 0 var(--margin) 88px; }
  .pic { position: relative; inset: auto; clip-path: none; height: 64svh; }
  .work-index { display: none; }
  .work-desc { display: none; }
  .pic::after { content: attr(data-name); }
  .how { grid-template-columns: repeat(2, 1fr); }
  .bench { grid-template-columns: 1fr; }
  .bench-frag { justify-items: center; }
  .benches-intro { grid-template-columns: 1fr; }
  .benches-intro h2, .benches-intro p { grid-column: 1; }
  .tiles { grid-template-columns: repeat(6, 1fr); grid-template-rows: auto; }
  .t-statement { grid-column: 1 / 4; } .t-nav { grid-column: 4 / 7; }
  .t-photo { grid-column: 1 / 3; min-height: 200px; } .t-phone { grid-column: 3 / 7; }
  .t-wordmark { grid-column: 1 / -1; min-height: 240px; } .t-start { grid-column: 1 / -1; min-height: 200px; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root { --margin: 20px; }
  .hero { display: block; min-height: auto; padding-bottom: 0; }
  .nav nav { display: none; }
  .hero-copy { padding-top: 48px; }
  .hero-copy h1 { font-size: 8.6vw; }
  .hero-copy p { font-size: 1rem; }
  .stage { margin: 48px calc(-1 * var(--margin)) 0; height: auto; min-height: 0; padding: 72px 16px 0; clip-path: polygon(0 72px, 72px 0, 100% 0, 100% 100%, 0 100%); }
  .quote { min-width: 0; }
  .q-customer { flex-direction: column; gap: 2px; }
  .work-left h2 { font-size: 14vw; }
  .pic { height: auto; aspect-ratio: 4 / 5; }
  .pic-phone { display: none; }
  .pic-match { aspect-ratio: auto; padding: 24px 12px; }
  .match-row, .ans-row { grid-template-columns: 1fr auto; }
  .match-why { grid-column: 1 / -1; }
  .try { min-height: auto; padding: 88px var(--margin) 64px; }
  .benches { padding: 96px var(--margin) 72px; gap: 64px; }
  .bench-frag { padding: 24px 16px; min-height: 200px; }
  .frag-site { padding: 24px 16px 0; }
  .try-line input { font-size: 11vw; }
  .examples { flex-direction: column; gap: 8px; }
  .examples button { min-height: 44px; padding: 0 14px; background: var(--ground); text-decoration: none; text-align: left; color: var(--ink); }
  .how { grid-template-columns: 1fr; }
  .field { min-height: 64svh; padding: 20px; }
  .card { margin: 32px 0 auto; }
  .field .clause { order: -1; font-size: 1.5rem; margin-top: 8px; }
  .field h2 { order: -2; }
  .contact { padding: 64px var(--margin) 72px; }
  .ask input { height: 60px; }
  .ways div { flex-direction: column; gap: 2px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .t-wordmark { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .t-start { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .t-nav { grid-column: 1; } .t-phone { grid-column: 2; }
  .t-photo { grid-column: 1; } .t-statement { grid-column: 2; }
  .tile { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .stage .quote { opacity: 1; transform: none; transition: none; }
  .pic { transition: none; }
  .card { transition: none; }
}
