/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: Formwork (deal 1/3, seed indonesian-tailoring-tool-paste-40e6·031ac71e·2026-10-23·r0) · job: buy · draw: b42604
 * hero: Banner · nav: slab · footer: colophon · imagery: none, the CV shown as a sample in two plates · signature: the price cast as a plate · formwork: cast, restrained, orange on the action only
 * axes: mid/display-condensed/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0
 * sweep: Floor 0 FAIL · Reflex 0 open (1 waived: 85) · WARN 0 · finish-review: subagent, 1 fixed (the buy form was browser chrome) 2 answered
 * shape swapped from the draw's Index-First (a single-offer page has no index to lead with); footer swapped from index columns (no sitemap exists); the draw's Pinned run dropped, one generation is not a tour */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V3 · weakest: V, the draw's Index-First refused a one-product material, so the shape is Narrative Workflow and the offer sits in the hero as a cast plate, not a feature run */
/* Hallmark · waive 85 · the close is the buy box: Bayar Rp99.000 charges for one CV, and the file picker sits inside a styled label so only the email and the posting link are counted as fields · a purchase form is not a mailing list, and the guard's verb list carries no Indonesian word for ordering */
@import url("./tokens.css");
@import url("./base.css");

/* The paper is cast, so the grain sits over the whole sheet at the token's whisper. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-raised);
  pointer-events: none;
  opacity: var(--texture-opacity);
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
}
.skip:focus-visible { top: var(--space-md); }

/* Nav · a slab: the full-width ink bar. */
.slab {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-ink);
  color: var(--color-plate-ink);
}
.slab__in {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  min-height: 72px;
}
.slab__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-plate-ink);
  min-width: 0;
}
.slab__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.slab__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-plate-ink);
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
.slab__links a:hover { color: var(--color-accent); }
.slab :focus-visible { outline: 2px solid var(--color-plate-ink); outline-offset: 3px; }
.slab__cta { text-decoration: underline; text-underline-offset: 0.2em; }
.slab__cta:hover { color: var(--color-accent); }

/* Hero · Banner: half the screen, and the first section shows under it. */
.hero { padding-block: var(--space-3xl) 0; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: center;
}
.hero__text { grid-column: 1 / span 7; }
.hero__text .lead { margin-top: var(--space-lg); }
.hero__text .btn { margin-top: var(--space-xl); }

.plate {
  background: var(--color-plate);
  border: var(--rule-bar) solid var(--color-ink);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  min-width: 0;
}
.price {
  grid-column: 8 / span 5;
  align-self: center;
}
.price__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6.2vw, 5rem);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}
.price__cur {
  font-size: 0.44em;
  vertical-align: 0.85em;
  margin-right: var(--space-2xs);
}
.price__unit {
  display: block;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-paper-3);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Controls · Formwork casts them: no radius, a hard offset, a press of 3px. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-xl);
  border: 2px solid var(--color-ink);
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 3px 0 var(--color-accent-deep);
  transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--primary:active { translate: 0 3px; box-shadow: 0 0 0 var(--color-accent-deep); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary { transition: none; }
}

/* Sections · the three scaffold rungs, mixed so no two seams read the same. */
.sect { padding-block: var(--section-gap); }
.sect--tight { padding-block: var(--section-gap-s); }
.sect--wide { padding-block: var(--section-gap-l); }
.sect--ruled { border-top: var(--rule-bar) solid var(--color-ink); }
.sect__intro { margin-top: var(--space-md); }
.sect h2 { max-width: 24ch; }

/* Comparison · two plates, the same line written twice. */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin-top: var(--space-2xl);
  align-items: start;
}
.pair__plate dl { margin: var(--space-lg) 0 0; }
.row { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-paper-3); }
.row:first-child { border-top: 0; padding-top: 0; }
.row dt { font-size: var(--text-sm); color: var(--color-muted); }
.row dd { margin: var(--space-2xs) 0 0; }
.caption {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: 60ch;
}

/* Steps · a pour sequence: the numeral, the stage, one line. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  border-left: var(--rule-hair) solid var(--color-paper-3);
  padding-left: var(--space-lg);
  min-width: 0;
}
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-s);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: var(--space-xs); max-width: 32ch; }

/* Table · rules only, no frame. */
.spec {
  width: 100%;
  margin-top: var(--space-2xl);
  border-collapse: collapse;
}
.spec th,
.spec td {
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-paper-3);
  text-align: left;
  vertical-align: top;
}
.spec tr:first-child th,
.spec tr:first-child td { border-top: var(--rule-bar) solid var(--color-ink); }
.spec th { width: 30%; font-weight: 500; }

/* Close · the fields beside the head, the offer in the head's voice. */
.buy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: start;
}
.buy__head { grid-column: 1 / span 4; }
.buy { grid-column: 6 / span 7; display: grid; gap: var(--space-lg); min-width: 0; }
.field { display: grid; gap: var(--space-2xs); }
.field label,
.field__label { font-size: var(--text-sm); font-weight: 500; }
.field input {
  min-height: 48px;
  padding: 0 var(--space-md);
  border: 2px solid var(--color-ink);
  border-radius: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  outline: 2px solid transparent;
  outline-offset: -4px;
  box-shadow: inset 0 2px 3px color-mix(in oklab, var(--color-ink) 22%, transparent);
}
.field input:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid] { border-color: var(--color-error); }
.field input::placeholder { color: var(--color-muted); }

/* The CV picker is cast like an input, not left as browser chrome. */
.file {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: var(--space-2xs);
  border: 2px solid var(--color-ink);
  background: var(--color-paper);
  box-shadow: inset 0 2px 3px color-mix(in oklab, var(--color-ink) 22%, transparent);
  cursor: pointer;
  min-width: 0;
}
.file:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.file:has(input[aria-invalid]) { border-color: var(--color-error); }
.file input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  border: 0;
  box-shadow: none;
}
.file__btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 var(--space-md);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out);
}
.file:hover .file__btn { background: var(--color-paper-3); }
.file__name {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.field__hint { font-size: var(--text-sm); color: var(--color-muted); }
.buy__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }
.buy .btn { justify-self: start; }

/* Footer · a colophon, not a link farm. */.foot { padding-block: var(--space-2xl); border-top: var(--rule-bar) solid var(--color-ink); }
.foot__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}
.foot__mark {
  grid-column: 1 / span 4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  min-width: 0;
}
.foot__body { grid-column: 6 / span 7; display: grid; gap: var(--space-md); }
.foot__body p { max-width: 52ch; }
.foot__contact { font-size: var(--text-sm); color: var(--color-ink-2); }
.foot__contact a { text-decoration: underline; text-underline-offset: 0.16em; }
.foot__links { display: grid; gap: var(--space-2xs); list-style: none; margin: 0; padding: 0; }
.foot__links a { font-size: var(--text-sm); font-weight: 500; }
.foot__legal { font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .hero__grid,
  .buy__grid,
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text,
  .price,
  .buy__head,
  .buy,
  .foot__mark,
  .foot__body { grid-column: 1 / -1; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li {
    border-left: 0;
    border-top: var(--rule-hair) solid var(--color-paper-3);
    padding: var(--space-lg) 0 0;
  }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .spec th { width: 38%; }
}

@media (max-width: 40rem) {
  .slab__in { gap: var(--space-md); }
  .slab__links li:not(:last-child) { display: none; }
  .hero { padding-block: var(--space-2xl) 0; }
}

/* Legal documents · prose in the page's own system, no design moves. */
.doc { padding-block: var(--space-3xl) var(--space-4xl); }
.doc__head { max-width: 26ch; }
.doc__head h1 {
  font-size: var(--text-section);
  max-width: none;
}
.doc__updated {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.doc__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin-top: var(--space-2xl);
  align-items: start;
}
.doc__toc { grid-column: 1 / span 4; }
.doc__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}
.doc__toc a { color: var(--color-ink-2); text-decoration: none; }
.doc__toc a:hover { color: var(--color-ink); text-decoration: underline; }
.doc__body { grid-column: 6 / span 7; max-width: 68ch; }
.doc__body h2 {
  margin-top: var(--space-2xl);
  font-size: var(--text-title);
  line-height: 1.15;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body p,
.doc__body li { margin-top: var(--space-sm); line-height: 1.65; }
.doc__body ul { margin: var(--space-sm) 0 0; padding-left: var(--space-lg); }
.doc__body li::marker { color: var(--color-muted); }
.doc__body a { text-decoration: underline; text-underline-offset: 0.16em; }
.fill {
  padding: 0 var(--space-2xs);
  border: 1px dashed color-mix(in oklab, var(--color-muted) 70%, transparent);
  border-radius: 0;
  color: var(--color-muted);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (max-width: 60rem) {
  .doc__grid { grid-template-columns: minmax(0, 1fr); }
  .doc__toc,
  .doc__body { grid-column: 1 / -1; }
  .doc__toc { margin-bottom: var(--space-xl); }
}

/* ── /mulai — the generator. App screen, same material as the lander. ─────── */
.flow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: start;
  padding-block: var(--space-3xl) var(--space-4xl);
}
.flow__rail { grid-column: 1 / span 3; position: sticky; top: var(--space-3xl); }
.flow__rail ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-md); }
.flow__rail li {
  counter-increment: step;
  padding-left: var(--space-xl);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.flow__rail li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.2em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.flow__rail li[aria-current="step"] { color: var(--color-ink); }
.flow__rail li[aria-current="step"]::before { color: var(--color-accent); }
.flow__rail li[data-done]::before { color: var(--color-ink-2); }
.flow__panel { grid-column: 5 / span 8; min-width: 0; }
.flow__panel > * + * { margin-top: var(--space-lg); }

.field textarea {
  width: 100%;
  min-height: 150px;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-ink);
  border-radius: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
  outline: 2px solid transparent;
  outline-offset: -4px;
  box-shadow: inset 0 2px 3px color-mix(in oklab, var(--color-ink) 22%, transparent);
}
.field textarea:focus-visible { outline-color: var(--color-focus); }
.field textarea[aria-invalid] { border-color: var(--color-error); }
.field__hint a { text-decoration: underline; }

/* the five questions */
.qs { display: grid; gap: var(--space-xl); margin: 0; padding: 0; }
.q { border-top: var(--rule-bar) solid var(--color-ink); padding-top: var(--space-md); }
.q__why { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-2xs); }
.q textarea { min-height: 84px; width: 100%; }

/* the requirement checklist — the honest replacement for a score */
.check { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.check li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-paper-3);
  font-size: var(--text-sm);
}
.check li:first-child { border-top: 0; }
.check__mark { font-family: var(--font-display); font-weight: 700; }
.check li[data-ok="1"] .check__mark { color: var(--color-accent-deep); }
.check li[data-ok="0"] { color: var(--color-muted); }

/* the generated CV */
.cvdoc { background: var(--color-plate); border: var(--rule-bar) solid var(--color-ink); box-shadow: var(--shadow-card); padding: var(--space-xl); }
.cvdoc h2 { font-size: var(--text-title); margin-top: var(--space-xl); }
.cvdoc h2:first-child { margin-top: 0; }
.cvdoc ul { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); }
.cvdoc li { margin-top: var(--space-2xs); }
.cvdoc .cvdoc__head { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); }

.panel[hidden] { display: none !important; }
.notice {
  padding: var(--space-md);
  border-left: var(--rule-bar) solid var(--color-accent);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
}
@media (max-width: 60rem) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__rail, .flow__panel { grid-column: 1 / -1; }
  .flow__rail { position: static; }
  .flow__rail ol { grid-auto-flow: column; gap: var(--space-sm); }
}

/* Print · the buyer leaves with a real file, no checkout needed yet. */
@media print {
  .slab, .foot, .flow__rail, #p1, #p2, .skip, .buy__help { display: none !important; }
  #p3 > *:not(#result) { display: none !important; }
  #result > *:not(.cvdoc) { display: none !important; }
  body::after { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .flow { display: block; padding: 0; }
  .flow__panel { grid-column: 1 / -1; }
  .cvdoc { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: #fff !important; }
  .cvdoc h1, .cvdoc h2 { color: #000; }
  .cvdoc h2 { font-size: 12pt; margin-top: 14pt; }
  .cvdoc p, .cvdoc li { font-size: 10.5pt; line-height: 1.45; }
  @page { margin: 18mm 16mm; }
}
