/* Costworks marketing site. Plain CSS, no build. Layout: desktop frame from 900px, mobile frame below. */
@font-face { font-family: Fraunces; font-weight: 100 900; font-style: normal; font-display: swap; src: url(fonts/fraunces-latin-full-normal.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 100 900; font-style: italic; font-display: swap; src: url(fonts/fraunces-latin-full-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/dm-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/dm-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #F6F1E7; --ink: #1C1917; --secondary: #5C544B; --red: #C8371C; --red-dark: #F2705A;
  --green: #15803D; --line: #D9D0BF; --panel-foot: #FAF7F0; --muted-dark: #B8AE9F; --white: #FFFFFF;
  --slip: #FFFDF8;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --fv: "SOFT" 0, "WONK" 1;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: 20px;
  --h-hero: clamp(50px, calc(32.9px + 4.38vw), 96px);
  --h-flow: clamp(32px, calc(24.6px + 1.9vw), 52px);
  --h-feat: clamp(30px, calc(24.8px + 1.333vw), 44px);
  --h-built: clamp(36px, calc(24.1px + 3.048vw), 68px);
  --h-cta: clamp(38px, calc(25.4px + 3.238vw), 72px);
  --h-priv: clamp(38px, calc(31.3px + 1.714vw), 56px);
  --sec-y: 56px;
}
@media (min-width: 900px) { :root { --pad: clamp(20px, 8.33vw, 120px); --sec-y: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.wrap { max-width: calc(1200px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Focus: ink on light, paper on dark */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.flow-sec a:focus-visible, .built a:focus-visible, .foot a:focus-visible, .btn-nav:focus-visible { outline-color: var(--paper); }
.btn-nav:focus-visible { outline-color: var(--ink); }
.flow-sec :focus-visible, .built :focus-visible, .foot :focus-visible { outline-color: var(--paper); }

/* Nav */
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.logo { text-decoration: none; font-size: 20px; letter-spacing: -0.04em; white-space: nowrap; }
.logo b { font-weight: 700; color: var(--ink); }
.logo span { font-weight: 400; color: var(--secondary); }
.btn-nav { background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-login { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 9px 15px; }
.btn-login:hover { background: var(--ink); color: var(--white); }
@media (max-width: 359px) { .btn-nav { padding-inline: 10px; } .btn-login { padding-inline: 9px; } .nav-actions { gap: 6px; } }
.opt { display: none; }
@media (min-width: 900px) {
  .nav-in { padding-block: 22px; }
  .logo { font-size: 22px; }
  .opt { display: inline; }
}

/* Hero */
.hero-in { display: flex; flex-direction: column; gap: 44px; padding-block: 32px; }
h1 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: var(--h-hero); line-height: 0.98; letter-spacing: -0.03em; }
h1 em { font-style: italic; color: var(--red); }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sub { font-size: 16px; line-height: 1.5; color: var(--secondary); }
.hero-text h1 { margin-bottom: 0; }
.receipt-tilt { width: min(312px, 100%); margin: 8.2px 0; transform: rotate(3deg); }
@media (min-width: 900px) {
  .hero-in { flex-direction: row; align-items: center; gap: 56px; padding-block: 72px; }
  .hero-text { flex: 1 1 0; gap: 26px; }
  .sub { font-size: 19px; max-width: 520px; }
  .receipt-holder { flex: 0 0 460px; }
  .receipt-tilt { width: min(360px, 100%); margin-block: 9.5px; }
}

/* Waitlist form */
.form-slot { width: 100%; }
.waitlist { display: flex; flex-direction: column; gap: 10px; }
.waitlist-row { display: flex; flex-direction: column; gap: 8px; }
.waitlist input[name=email] { font: 400 15px var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; line-height: 18px; width: 100%; min-width: 0; }
.waitlist input[name=email]::placeholder { color: var(--secondary); opacity: 1; }
.waitlist button { font: 600 15px var(--sans); color: var(--white); background: var(--red); border: 0; border-radius: 8px; padding: 13px 20px; line-height: 18px; cursor: pointer; white-space: nowrap; }
.waitlist-note { font-size: 13px; line-height: normal; color: var(--secondary); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
noscript .waitlist-note { margin-top: 10px; }
@media (min-width: 640px) {
  .waitlist-row { flex-direction: row; align-items: flex-start; }
  .waitlist input[name=email] { flex: 0 0 290px; width: 290px; }
}
/* States from frame 7:3 (data-state is set by waitlist.js) */
.waitlist[data-state=invalid] input[name=email] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.waitlist[data-state=invalid] .waitlist-note, .waitlist[data-state=failed] .waitlist-note { color: var(--red); font-weight: 500; }
.waitlist[data-state=sending] button { opacity: 0.6; cursor: default; }
.waitlist-done { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; max-width: 450px; display: flex; flex-direction: column; gap: 6px; }
.waitlist-done:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waitlist-done h3 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: 22px; line-height: normal; }
.waitlist-done p { font-size: 15px; line-height: 1.5; color: var(--secondary); overflow-wrap: anywhere; }

/* Receipt */
.receipt-holder { display: flex; justify-content: center; padding: 24px 12px; }
.receipt { position: relative; filter: drop-shadow(0 14px 18px rgba(28, 26, 23, 0.16)); font-family: var(--mono); }
.slip { background: var(--slip); padding: 26px 26px 72px; display: flex; flex-direction: column; gap: 11px; }
.slip hr { border: 0; height: 0; margin: 0; overflow: visible; }
/* Frame 4:2 line: 1.5px #D9D0BF, dashes 3.95px with 3.95px gaps, half dashes at both ends */
.slip hr::after { content: ""; display: block; height: 1.5px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 1.974px, transparent 1.974px 5.923px, var(--line) 5.923px 7.897px); }
.r-title { font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-align: center; }
.r-sub { font-size: 12px; color: var(--secondary); text-align: center; }
.r-line { display: flex; gap: 8px; font-size: 14px; }
.r-line span:first-child { flex: 1 1 0; min-width: 0; }
.r-muted { color: var(--secondary); }
.r-big { display: flex; align-items: flex-end; font-weight: 500; }
.r-big span:first-child { flex: 1 1 0; font-size: 14px; }
.r-big span:last-child { font-size: 26px; }
.r-good { color: var(--green); }
.r-note { font-size: 12px; color: var(--green); text-align: right; }
.torn { height: 8px; background: var(--slip); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.stamp { position: absolute; left: 22px; bottom: 32px; transform: rotate(-6deg); border: 2.5px solid var(--red); border-radius: 6px; padding: 8px 14px; opacity: 0.88; color: var(--red); font-weight: 500; font-size: 16px; letter-spacing: 0.1em; white-space: nowrap; line-height: normal; }

/* Parts of the product */
.parts { padding-block: 24px var(--sec-y); }
.parts h2 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: var(--h-flow); letter-spacing: -0.02em; line-height: 1.23; margin-bottom: 32px; }
.parts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.parts-list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: break-word; min-width: 0; }
.parts-list h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.parts-list p { font-size: 14px; line-height: 1.5; color: var(--secondary); }
.parts-note { margin-top: 24px; font-size: 16px; line-height: 1.5; color: var(--secondary); }
@media (min-width: 900px) {
  .parts h2 { margin-bottom: 56px; }
  .parts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .parts-list h3 { font-size: 17px; }
  .parts-list p { font-size: 15px; }
  .parts-note { margin-top: 32px; font-size: 18px; }
}

/* One price moves */
.flow-sec { background: var(--ink); color: var(--paper); padding-block: var(--sec-y); }
.flow-sec h2 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: var(--h-flow); letter-spacing: -0.02em; line-height: 1.23; margin-bottom: 32px; }
.flow { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.step-label { font-weight: 500; font-size: 13px; color: var(--muted-dark); }
.step-name { font-weight: 500; font-size: 16px; }
.step-val { font-family: var(--mono); font-weight: 500; font-size: 30px; }
.step-delta { font-family: var(--mono); font-size: 13px; color: var(--muted-dark); }
.step-delta.hot { color: var(--red-dark); }
.conn { display: block; height: 0; position: relative; }
.conn::before { content: ""; position: absolute; left: 0; right: 0; top: -0.75px; height: 1.5px; background: var(--secondary); }
@media (min-width: 900px) {
  .flow-sec h2 { margin-bottom: 56px; }
  .flow { flex-direction: row; align-items: center; gap: 24px; }
  .step-val { font-size: 36px; }
  .conn { flex: 1 1 0; min-width: 24px; position: relative; }
  /* Frame 4:2 connector: 1.5px #5C544B line with an open chevron head at each end (6 x 11px) */
  .conn::before { top: -5.52px; height: 11.05px; background: linear-gradient(var(--secondary), var(--secondary)) 0.75px 4.77px / calc(100% - 1.5px) 1.5px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11.05' fill='none' stroke='%235C544B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.3 0.75 1.8 5.52 5.3 10.3'/%3E%3C/svg%3E") left top / 6px 11.05px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11.05' fill='none' stroke='%235C544B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0.7 0.75 4.2 5.52 0.7 10.3'/%3E%3C/svg%3E") right top / 6px 11.05px no-repeat; }
  .conn::after { content: none; }
}

/* Features */
.features { padding-block: 56px; }
.features .wrap { display: flex; flex-direction: column; gap: 56px; }
.feature { display: flex; flex-direction: column; gap: 24px; }
.f-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.f-text h2 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: var(--h-feat); line-height: 1.08; letter-spacing: -0.02em; }
.f-text p { font-size: 16px; line-height: 1.5; color: var(--secondary); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(28, 26, 23, 0.08); overflow: hidden; min-width: 0; }
.p-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.p-title { font-weight: 600; font-size: 14px; }
.p-meta { white-space: nowrap; font-weight: 500; font-size: 12px; color: var(--secondary); }
.p-rows { padding: 8px 20px; font-size: 13px; }
.p-row { display: flex; align-items: center; gap: 12px; padding-block: 9px; }
.p-name { flex: 1 1 0; min-width: 0; }
.p-qty, .p-val { flex: 0 0 64px; width: 64px; text-align: right; font-family: var(--mono); }
.p-qty { color: var(--secondary); }
.p-val { font-weight: 500; }
.p-val.hot { color: var(--red); } .p-val.good { color: var(--green); } .p-val.flat { color: var(--secondary); }
.p-foot { background: var(--panel-foot); border-top: 1px solid var(--line); padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.p-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 13px; color: var(--secondary); }
.p-total span:last-child { font-family: var(--mono); font-size: 14px; color: var(--ink); text-align: right; }
.p-total span.good { color: var(--green); }
.panel-chart { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c-sub { font-size: 12px; color: var(--secondary); margin-top: 2px; }
.c-now { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.c-price { font-family: var(--mono); font-weight: 500; font-size: 20px; }
.c-delta { font-weight: 500; font-size: 12px; color: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bars i { flex: 1 1 0; min-width: 0; background: var(--line); border-radius: 3px; }
.bars i.hl { background: var(--red); }
@media (min-width: 900px) {
  .features { padding-block: 112px; }
  .features .wrap { gap: 104px; }
  .feature { flex-direction: row; align-items: center; gap: 88px; }
  .feature > * { flex: 1 1 0; }
  .feature.flip .panel { order: -1; }
  .f-text h2 { }
  .f-text p { font-size: 18px; }
}

/* Built in a kitchen */
.built { background: var(--red); color: var(--paper); padding-block: var(--sec-y); }
.built-in { display: flex; flex-direction: column; gap: 20px; }
.built h2 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: var(--h-built); line-height: 1; letter-spacing: -0.03em; }
.built p { font-size: 16px; line-height: 1.5; }
@media (min-width: 900px) {
  .built-in { flex-direction: row; align-items: flex-end; gap: 88px; }
  .built h2 { flex: 1 1 0; }
  .built p { flex: 0 0 380px; font-size: 18px; }
}

/* Final call to action */
.cta-in { display: flex; flex-direction: column; gap: 24px; padding-block: 64px; }
.cta h2 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: var(--h-cta); line-height: 1.02; letter-spacing: -0.03em; }
@media (min-width: 900px) {
  .cta-in { align-items: center; gap: 32px; padding-block: 120px; text-align: center; }
  .cta .form-slot { max-width: 450px; text-align: left; }
  .cta .waitlist-row { flex-direction: row; }
  .cta .waitlist input[name=email] { flex: 0 0 290px; }
}

/* Footer */
.foot { background: var(--ink); color: var(--muted-dark); }
.foot-in { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 28px; font-size: 13px; }
.foot .logo { font-size: 17px; }
.foot .logo b { color: var(--paper); }
.foot .logo span { color: var(--muted-dark); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .dot { margin-inline: 8px; }
@media (min-width: 900px) { .foot-in { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Privacy */
.privacy .wrap { padding-block: 32px 64px; }
.p-col { max-width: 670px; /* frame 7:61 column is 680px but Figma's Inter measures ~10px wider; 670px gives the frame's line breaks */ display: flex; flex-direction: column; gap: 10px; }
.privacy h1 { font-size: var(--h-priv); line-height: 1.1; letter-spacing: 0; }
.updated { font-family: var(--mono); font-size: 13px; color: var(--secondary); }
.privacy h2 { font-family: var(--serif); font-variation-settings: var(--fv); font-weight: 600; font-size: 22px; line-height: 1.2; margin-top: 28px; }
.privacy .p-col > p:not(.updated) { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .privacy .wrap { padding-block: 72px 120px; }
  .privacy h2 { font-size: 24px; }
  .privacy .p-col > p:not(.updated) { font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* DM Mono: Figma's line height for the face is 1.31 (browser "normal" is 1.4) */
.receipt, .step-val, .step-delta, .p-qty, .p-val, .p-total span:last-child, .c-price, .updated { line-height: 1.31; }
