/* To test another local font, change only the filename in this src. */
@font-face {
  font-family: "FFC";
  src: url("assets/fonts/anaheim/Anaheim.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --stroke: 1px;
  --chrome-background: #000;
  --size-ui: 0.875rem;
  --line-ui: 1.3;
  --size-judge-name: 1.375rem;
  --size-judge-copy: 0.875rem;
  --font-primary: "FFC", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --size-h1: clamp(4rem, 8.28125vw, 6.625rem);
  --size-h2: clamp(2.25rem, 4.53125vw, 3.625rem);
  --size-h3: clamp(1.25rem, 2.5vw, 2rem);
  --size-body: 1rem;
  --size-small: 0.75rem;
  --line-h1: 0.924528;
  --line-h2: 0.862069;
  --line-h3: 0.75;
  --line-body: 1.5;
  --line-small: 1.333333;
  --tracking-h1: -0.03381132em;
  --tracking-h2: -0.02648276em;
  --tracking-h3: -0.016em;
  --tracking-body: 0;
  font-family: var(--font-primary);
  font-synthesis: none;
  font-style: normal;
  color: #000;
  background: #fff;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-space: clamp(4.5rem, 10vw, 10rem);
  --content-max: none;
  --header-top: 1.5rem;
  --header-bottom: 1.5rem;
  --footer-top: 3rem;
  --footer-bottom: 3rem;
  --footer-divider: 0px;
  --drop-height: clamp(17rem, 31.25vw, 25rem);
  --drop-padding: clamp(1.25rem, 3vw, 3rem);
  --drop-top: 2rem;
  --drop-bottom: 0px;
  --zigzag-size: 12px;
  --zigzag-stroke: 2px;
  --zigzag-enabled: 1;
  --url-width: 100%;
  --url-grow: 1;
  --url-height: 3.143rem;
  --url-border: 1px;
  --url-top: 0px;
  --url-bottom: 0px;
  --url-gap: 1rem;
}

* { box-sizing: border-box; }
main { max-width: var(--content-max); margin-inline: auto; }
body { margin: 0; font-family: var(--font-primary); font-size: var(--size-body); font-weight: var(--weight-regular); line-height: var(--line-body); letter-spacing: var(--tracking-body); }
h1, h2, h3, p, blockquote { margin: 0; }
p + p { margin-top: 0.25rem; }
a { color: inherit; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section { padding: var(--section-space) var(--gutter); scroll-margin-top: 2rem; }
section + section { border-top: var(--stroke) solid #000; border-inline: var(--stroke) solid #000; }
section + section:last-child { border-bottom: var(--stroke) solid #000; }

/* Figma: FFC / H1, H2, H3, Paragraph, Small. Responsive sizes share these tokens. */
h1, h2, h3, strong, b { font-weight: var(--weight-regular); }
h1, .h1, .display, .major-statement, .statement, .verdict-letter {
  font-size: var(--size-h1); line-height: var(--line-h1);
  letter-spacing: var(--tracking-h1); overflow-wrap: anywhere;
}
h2, .h2, .type-product {
  font-size: var(--size-h2); line-height: var(--line-h2);
  letter-spacing: var(--tracking-h2); overflow-wrap: anywhere;
}
h3, .h3, .summary dt {
  font-size: var(--size-h3); line-height: var(--line-h3);
  letter-spacing: var(--tracking-h3); overflow-wrap: anywhere;
}
p, .body {
  font-size: var(--size-body); line-height: var(--line-body);
  letter-spacing: var(--tracking-body);
}
small, .small, .label, nav, .cta, .site-footer p {
  font-size: var(--size-small); line-height: var(--line-small); letter-spacing: 0;
}
/* Placeholders only: inherit the surrounding type until artwork/type is supplied. */
.hand, .brush, .stencil { font-family: inherit; }

.site-header { padding: var(--header-top) var(--gutter) var(--header-bottom); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.wordmark { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--size-small); font-weight: var(--weight-medium); }
nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hero { padding-top: clamp(4rem, 8vw, 8rem); }
.label + h1, .label + h2, .label + .h1, .label + .h2 { margin-top: 1.5rem; }
.copy { max-width: 42rem; margin-top: 2rem; }
.cta { display: inline-block; margin-top: 2rem; padding: 0.65rem 0; font: inherit; font-size: var(--size-small); line-height: var(--line-small); letter-spacing: 0; font-weight: var(--weight-medium); text-decoration: underline; text-underline-offset: 0.3em; }
button.cta { border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; }
.cta[aria-disabled], .cta:disabled { cursor: not-allowed; opacity: 1; }
.location { margin-top: 2rem; }
.statement { margin-top: 3rem; }
.copy + .display { margin-top: 3rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.continuation { display: block; margin-top: 1.5rem; }
.text-list { margin-top: 2rem; }
.text-list li + li { margin-top: 0.5rem; }
.process-note { margin-top: 3rem; color: #000; }
nav a[aria-current="page"] { text-decoration-thickness: 2px; }
.steps { margin-top: 3rem; }
.steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.5rem; }
.steps li + li { margin-top: 3rem; }
.steps .label { padding-top: 0.4rem; }
.steps p { margin-top: 0.75rem; max-width: 42rem; }
.placeholder-note { color: #000; margin-top: 0.5rem; }
.brand-statement { padding: var(--section-space) var(--gutter); }
.site-footer { border-top: var(--footer-divider) solid #000; padding: var(--footer-top) var(--gutter) var(--footer-bottom); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 4rem; }
.site-footer p + p { margin-top: 0.5rem; }
.skip-link { position: absolute; top: 0.5rem; left: var(--gutter); padding: 0.75rem; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  nav { gap: 0.25rem 1.25rem; }
  .steps li { grid-template-columns: 1fr; gap: 0.75rem; }
  .site-footer { flex-direction: column; }
}

/* V0.4: one large interactive surface, neutral prototype states. */
[hidden] { display: none !important; }
.interactive-hero { padding-top: clamp(2rem, 4vw, 4rem); }
.work-area { border: var(--stroke) solid #000; margin-top: var(--drop-top); margin-bottom: var(--drop-bottom); min-width: 0; }
.drop-target { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem; width: 100%; min-height: var(--drop-height); padding: var(--drop-padding); border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.drop-target:hover, .drop-target:focus-visible, .work-area.drag-over { background: #ededed; }
.drop-target:active { background: #dedede; }
.browse { text-decoration: underline; text-underline-offset: 0.3em; }
.url-entry { padding: 0 var(--drop-padding) 1.25rem; margin-top: var(--url-top); margin-bottom: var(--url-bottom); }
.url-controls { display: flex; align-items: center; gap: var(--url-gap); flex-wrap: wrap; }
.url-controls input { flex: var(--url-grow) 1 var(--url-basis, 12rem); width: var(--url-width); max-width: var(--url-width); min-width: 0; }
.url-controls .cta { margin-top: 0; }
button, input, textarea, select { font-family: inherit; font-weight: inherit; font-style: inherit; }
input, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #000; border-radius: 0; padding: 0.65rem; }
.work-url { min-height: var(--url-height); border-width: var(--url-border); }
input:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
textarea { display: block; width: 100%; resize: vertical; margin-top: 1rem; }
.flow-actions { display: flex; gap: 2rem; flex-wrap: wrap; }
button.cta { cursor: pointer; }

/* V0.5: intake steps, service rows and summaries share one neutral surface. */
.flow-content { padding: clamp(1.25rem, 3vw, 3rem); }
.flow-copy, .prototype-price { margin-top: 1.25rem; }
.flow-error { padding: 0 clamp(1.25rem, 3vw, 3rem); overflow-wrap: anywhere; }
.flow-error:not(:empty) { padding-bottom: 1.5rem; }
.file-list { margin-top: 1.5rem; }
.file-list li { padding-block: 0.5rem; overflow-wrap: anywhere; }
.file-list strong, .file-list span { display: block; }
.file-list strong { margin-bottom: 0.5rem; }
.field-label { display: block; margin-top: 1.75rem; font-weight: var(--weight-medium); }
.field-label .small { font-weight: var(--weight-regular); }
.service-options { margin-top: 2rem; }
.service-row { display: block; width: 100%; border: 0; border-top: 1px solid #000; padding: 1.5rem 0; color: inherit; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.service-row:last-child { border-bottom: 1px solid #000; }
.service-row span { display: block; margin-top: 0.5rem; }
.service-row:hover:not(:disabled) { background: #ededed; }
.summary { margin: 2rem 0 0; }
.summary dt { margin-top: 1.75rem; }
.summary dd { margin: 0.5rem 0 0; overflow-wrap: anywhere; }
.summary .file-list { margin-top: 0; }
.preserve-lines { white-space: pre-wrap; }
.flow-actions .cta, .url-controls .cta { min-height: 44px; }
.flow-content .h2, .service-row { overflow-wrap: anywhere; }

/* Accessibility and customer feedback. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.progression-arrow { margin: 0.5rem 0; }
.feedback-label { margin-top: 2rem; margin-bottom: 0.5rem; }
.verdict-letter { margin-top: 1rem; }
#debug-controls { padding: 1.5rem 0; border-bottom: 1px solid #000; }
#work-area { scroll-margin-top: 1rem; }

/* Isolated local review desk. No public navigation points here. */
.internal-review { padding: clamp(2rem, 5vw, 5rem) var(--gutter); }
.internal-review textarea { max-width: 60rem; }
.internal-review p { overflow-wrap: anywhere; }
.internal-review button:disabled { cursor: not-allowed; color: #000; }


/* Border experiment: pixel values, shared by every side. Solid border is the fallback. */
.work-area { position: relative; }
.work-area.zigzag-ready { border-color: transparent; }
.work-area.zigzag-ready::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--stroke));
  pointer-events: none;
  background: currentColor;
  mask: var(--zigzag-mask) center / 100% 100% no-repeat;
  -webkit-mask: var(--zigzag-mask) center / 100% 100% no-repeat;
}

/* Shared public chrome; internal review deliberately remains separate. */
[data-public-header] {
  height: 64px; min-height: 64px; flex: none;
  padding: 10px clamp(1.25rem, 5vw, 4rem);
  background: #fff; color: #000;
}
@media (max-width: 700px) {
  [data-public-header] { padding-block: 0; gap: 0; }
  [data-public-header] > .wordmark { min-height: 20px; display: flex; align-items: center; }
}
[data-public-footer] {
  background: #fff; color: #000;
  min-height: 52px; padding: 14px clamp(1.25rem, 5vw, 4rem);
  justify-content: flex-end;
}
[data-public-footer] p { font-size: var(--size-body); line-height: var(--line-body); font-weight: var(--weight-regular); }
small, .small, .label { font-weight: var(--weight-regular); }
input::placeholder, textarea::placeholder { color: #000; opacity: 1; }
.judges-intro { padding-bottom: 1.25rem; }
.judge-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.75rem; margin: 0 var(--gutter); padding: 2rem 0 4.5rem; border-bottom: var(--stroke) solid #000; }
.judge { min-width: 0; }
.judge h2 { margin-top: 1.25rem; font-size: var(--size-judge-name); line-height: 1.25; letter-spacing: 0; font-weight: var(--weight-medium); }
.judge p { font-size: var(--size-judge-copy); line-height: 1.4; font-weight: var(--weight-medium); margin-top: 1rem; }
.judge-portrait { display: block; width: 150px; height: 150px; }

.judges-note { padding: 2rem var(--gutter); }
.judge-selection { border: 0; padding: 0; margin: 0; min-width: 0; font-size: var(--size-small); line-height: var(--line-small); }
.judge-selection legend { padding: 0; }
.judge-option { display: flex; align-items: center; gap: .4rem; min-height: 1rem; cursor: pointer; }
.judge-option input { appearance: none; padding: 0; margin: 0; flex: 0 0 .65rem; width: .65rem; height: .65rem; border: var(--stroke) solid #000; border-radius: 50%; }
.judge-option input:checked { background: #000; box-shadow: inset 0 0 0 2px #fff; }
@media (max-width: 700px) { .judge-list { grid-template-columns: minmax(0, 1fr); } .judge-option { min-height: 44px; } .meet-judges { display: inline-flex; align-items: center; min-height: 44px; } }
[data-public-footer] p + p { margin-top: 0; }

/* Explicit UI sizes retained in the current Figma controls; shared styles above remain semantic. */
.cta, .wordmark, .drop-target .small, .drop-target .label, .url-entry label { font-size: var(--size-ui); line-height: var(--line-ui); }
.drop-target .display { font-size: clamp(4rem, 7vw, 8rem); line-height: .95; letter-spacing: -.04em; }
.flow-copy.small, .flow-content > .label, .hero > .label, .process-note, .placeholder-note { font-size: var(--size-body); line-height: var(--line-body); }
.hero > .label + h1 { margin-top: 1.5rem; }
.flow-content .file-list { margin-top: 2rem; }
.flow-content .file-list li { padding-top: 0; }
.summary dt:first-child { margin-top: 0; }
@media (max-width: 700px) {
  :root { --line-h2: 1; --line-h3: 1.1; }
}

[data-public-footer] a { text-decoration: none; }
nav a:hover, [data-public-footer] a:hover { text-decoration: underline; }

/* Core experience: a persistent in-page workspace, with explicit 24/48 rhythm. */
body:has(.interactive-hero) { --gutter: clamp(1.25rem, 5vw, 4rem); }
.interactive-hero { padding-bottom: 2rem; --workspace-inset: 40px; --drop-padding: var(--workspace-inset); }
.interactive-hero > #work-area { margin-top: 0; }
.core-statement { padding: var(--workspace-inset) var(--workspace-inset) 0; }
.core-statement p { font-size: 18px; line-height: 22px; letter-spacing: 0; }
.core-statement p + p { margin-top: 4px; }
.core-workspace .flow-content { padding: 48px var(--workspace-inset) var(--workspace-inset); }
.core-workspace .flow-content > * { margin: 0; }
.core-workspace .flow-content > * + * { margin-top: 24px; }
.core-workspace .flow-heading { font-size: var(--size-h3); line-height: var(--line-h3); letter-spacing: var(--tracking-h3); }
.core-workspace .flow-actions { margin-top: 48px; gap: 0 32px; }
.core-workspace .cta { margin-top: 0; }
.core-workspace .file-list li { padding: 0; }
.core-workspace .file-list li + li { margin-top: 8px; }
.core-workspace .confirmation-details { margin-top: 48px; }
.core-workspace .summary-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
.core-workspace .summary-row + .summary-row { margin-top: 24px; }
.core-workspace .confirmation-details dt, .core-workspace .confirmation-details dd { margin: 0; font: inherit; }
.core-workspace .confirmation-details dd { overflow-wrap: anywhere; }
.core-workspace .flow-error { padding: 0; }
.core-workspace .flow-error:empty { display: none; }
.core-workspace .drop-content > .flow-error:not(:empty) { padding: 0 var(--drop-padding) 24px; }
.core-workspace .summary dt:not(:first-child) { margin-top: 48px; }
.core-workspace .summary dd { margin-top: 24px; }
.core-workspace .summary .file-list { margin: 0; }
/* Shared content minimum keeps all six core states stationary.
   Animate the contents only; mobile keeps its natural document height. */
@media (min-width: 701px) {
  #work-area:is([data-step="drop"], [data-step="intent"], [data-step="question"]),
  #work-area[data-review="quick"]:is([data-step="recommendation"], [data-step="payment"], [data-step="confirmation"], [data-step="feedback"]) {
    min-height: var(--core-workspace-height, 620px);
    flex: 1;
  }
}

/* Non-interactive sizing pass, removed before the browser paints. */
.workspace-measure { position: fixed; top: 0; left: 0; visibility: hidden; pointer-events: none; margin: 0; height: auto; }
.workspace-measure .file-list:empty { min-height: 24px; }

/* CURRENT core shell. Supporting pages retain their existing public chrome. */
.core-experience { min-height: 100svh; display: flex; flex-direction: column; }
.core-experience > main { width: 100%; flex: 1; }
.core-experience .interactive-hero { padding-top: 10px; padding-bottom: 38px; }
.core-experience .drop-target { min-height: 0; padding: 48px var(--workspace-inset); }
.core-experience .url-entry { padding-bottom: var(--workspace-inset); }

/* Desktop canvas consumes the space left by normal-flow chrome and breathing room. */
.core-workspace .judge-selection { margin-top: 48px; }
@media (min-width: 701px) {
  .core-experience { min-height: 100dvh; }
  .core-experience > main { display: flex; flex-direction: column; }
  .core-experience .interactive-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5vh max(20px, 2vw) 2vh;
  }
}

/* State 01: the whole canvas accepts files; feedback never changes geometry. */
.core-workspace[data-step="drop"].drag-over { background: #ededed; }
.core-workspace[data-step="drop"].drag-over > .core-statement,
.core-workspace[data-step="drop"].drag-over > #workspace-content { opacity: .45; }


/* Isolated, temporary mobile design preview only. */
.preview-notice { margin: 0; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); font-size: 14px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; color: #000; background: #fff; }

/* Public legal footer: retain the existing type, with a full-width text flow. */
.site-footer > [data-artwork-retention] { flex-basis: 100%; margin: 0; }

/* Verified-email handoff uses the same customer column and action components. */
.customer-email { display: grid; gap: var(--space-related, 12px); width: 100%; max-width: 672px; margin-top: var(--space-section, 48px); }
.customer-email label { display: grid; gap: var(--space-detail, 6px); }
.customer-email input { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
.customer-email p { margin: 0; }
.customer-email button { justify-self: start; }

.customer-email .customer-email-links { display: flex; flex-wrap: wrap; gap: var(--space-related, 12px); }

.site-footer .mobile-legal { display: none; }
