:root {
  color-scheme: light;
  --ink: #17332f;
  --ink-soft: #49635d;
  --forest: #123c35;
  --forest-deep: #092923;
  --teal: #16766d;
  --paper: #fffdf4;
  --paper-warm: #f7f1df;
  --canvas: #eee7d5;
  --line: #cfc7b3;
  --yellow: #ffd84d;
  --pink: #ef7195;
  --blue: #64c8e8;
  --green: #8bcf85;
  --purple: #ad84d7;
  --orange: #f0a65a;
  --red: #b33b46;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(26, 52, 47, .13);
  --shadow-small: 0 10px 28px rgba(26, 52, 47, .1);
  --radius-large: 1.75rem;
  --radius: 1.1rem;
  --focus: #086cce;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 6%, rgba(255, 216, 77, .24), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(100, 200, 232, .2), transparent 28rem),
    linear-gradient(180deg, #f8f4e8 0%, var(--canvas) 58%, #e9dfc9 100%);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

button, input, select, textarea { max-width: 100%; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: .75rem;
  background: var(--white);
  color: var(--forest-deep);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding-top: env(safe-area-inset-top, 0);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(9, 41, 35, .96);
  box-shadow: 0 8px 26px rgba(9, 41, 35, .18);
}

.header-inner {
  display: flex;
  width: min(82rem, calc(100% - 2rem));
  min-height: 4.7rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--forest-deep);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: -.02em;
  transform: rotate(-3deg);
}

.brand-copy { display: grid; min-width: 0; line-height: 1.15; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { margin-top: .18rem; color: #cfe8df; font-size: .72rem; letter-spacing: .04em; }

.primary-nav { display: flex; min-width: 0; align-items: center; gap: .2rem; }
.primary-nav a {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: .72rem .8rem;
  border-radius: .8rem;
  color: #e8f7f1;
  font-size: .86rem;
  font-weight: 780;
  text-decoration: none;
}
.primary-nav a:hover { background: rgba(255, 255, 255, .1); }
.primary-nav .receipt-link { border: 1px solid rgba(255, 216, 77, .55); color: var(--yellow); }

main > section { scroll-margin-top: 6rem; }

.hero {
  display: grid;
  width: min(82rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy { min-width: 0; }
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--teal);
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }

.hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .96;
}

.hero-lede {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions, .form-actions {
  display: flex;
  margin-top: 1.6rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: .85rem;
  cursor: pointer;
  padding: .72rem 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--forest); color: var(--white); box-shadow: var(--shadow-small); }
.button-primary:hover:not(:disabled) { background: var(--forest-deep); }
.button-secondary { border-color: #a98309; background: var(--yellow); color: var(--forest-deep); }
.button-secondary:hover:not(:disabled) { background: #ffe477; }
.button-quiet { border-color: #9aab9f; background: transparent; color: var(--forest); }
.button-quiet:hover:not(:disabled) { background: rgba(18, 60, 53, .07); }

.trust-list {
  display: flex;
  margin: 1.65rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 720;
  list-style: none;
}
.trust-list li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-list span { color: var(--teal); font-weight: 950; }

.sample-card {
  position: relative;
  margin: 0;
  padding: .8rem .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}

.sample-card::before,
.sample-card::after {
  position: absolute;
  z-index: 1;
  top: -.7rem;
  width: 5rem;
  height: 1.5rem;
  background: rgba(255, 216, 77, .75);
  content: "";
  transform: rotate(-4deg);
}
.sample-card::before { left: 1.5rem; }
.sample-card::after { right: 1.4rem; transform: rotate(5deg); }
.sample-frame { overflow: hidden; border-radius: .4rem; background: #e5ddc9; }
.sample-frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.sample-card figcaption { display: grid; padding: .8rem .35rem 0; gap: .18rem; }
.sample-card figcaption strong { color: var(--forest); }
.sample-card figcaption span { color: var(--ink-soft); font-size: .78rem; font-weight: 750; }

.workflow-overview {
  padding: clamp(3rem, 6vw, 5rem) max(1rem, calc((100% - 82rem) / 2));
  background: var(--forest);
  color: var(--white);
}
.workflow-overview .eyebrow { color: var(--yellow); }
.section-heading { max-width: 47rem; }
.section-heading-wide { max-width: 62rem; }
.section-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -.04em;
  line-height: 1.02;
}
.section-heading > p:last-child { margin: .85rem 0 0; color: var(--ink-soft); font-size: 1.03rem; }
.workflow-overview .section-heading > p:last-child { color: #cee5dc; }

.workflow-progress {
  display: grid;
  margin: 2.2rem 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  list-style: none;
}
.workflow-progress li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  align-content: start;
}
.workflow-progress li[aria-current="step"],
.workflow-progress li[data-state="current"] { border-color: var(--yellow); background: rgba(255, 216, 77, .12); }
.workflow-progress li[data-state="complete"] { border-color: #8ed0b2; background: rgba(142, 208, 178, .08); }
.workflow-progress li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: .75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--forest-deep);
  font-weight: 950;
}
.workflow-progress strong { font-size: 1rem; }
.workflow-progress small { margin-top: .2rem; color: #c7ded5; }

.workspace, .analysis-section, .packet-section {
  width: min(82rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.workspace-grid {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .6fr);
  gap: 1rem;
  align-items: stretch;
}

.paper-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  padding: clamp(1.15rem, 3vw, 2rem);
}

.card-number {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 950;
}
.card-heading { padding-right: 3rem; }
.card-heading h3, .privacy-gate h3 { margin: 0; color: var(--forest-deep); font-size: 1.4rem; }
.card-heading p, .privacy-gate p { margin: .35rem 0 0; color: var(--ink-soft); }

.photo-picker {
  display: flex;
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 2px dashed #6e9c91;
  border-radius: var(--radius);
  background: #f1f7f2;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-align: center;
}

.field-help { margin: .45rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.evidence-note {
  margin: .55rem 0 0;
  border-radius: .45rem;
  background: #eef4f1;
  color: var(--ink-soft);
  padding: .45rem .55rem;
  font-size: .75rem;
  font-weight: 760;
}

.status-message {
  min-height: 3.15rem;
  margin-top: 1.2rem;
  border-left: .35rem solid var(--teal);
  border-radius: .55rem;
  background: #e8f4ef;
  padding: .75rem .9rem;
  color: var(--forest-deep);
  font-weight: 700;
}
.status-message[data-kind="working"] { border-color: #9a6b00; background: #fff6ce; }
.status-message[data-kind="warning"] { border-color: #9a6b00; background: #fff6ce; color: #634b00; }
.status-message[data-kind="error"] { border-color: var(--red); background: #fff0ef; color: #71232b; }
.status-message[data-kind="success"] { border-color: #26865d; background: #e8f7ed; }

.board-preview-panel {
  margin: 1.25rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  padding: .8rem;
}
.preview-stage {
  display: grid;
  min-height: 16rem;
  place-items: center;
  overflow: hidden;
  border-radius: .75rem;
  background: #d8d0bd;
}
.preview-stage img { display: block; max-width: 100%; max-height: 34rem; object-fit: contain; }
.board-preview-panel figcaption { display: grid; padding: .7rem .3rem .15rem; gap: .2rem; color: var(--ink-soft); font-size: .82rem; }
.sample-disclosure { color: #6b3b00; font-weight: 900; }

.privacy-gate {
  display: grid;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 2px solid #d8b53d;
  border-radius: var(--radius-large);
  background: #fff8d9;
  align-content: start;
  gap: 1.2rem;
  box-shadow: var(--shadow-small);
}
.chalk-icon {
  display: grid;
  width: 5.7rem;
  height: 5.7rem;
  place-items: center;
  border: 3px double rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: .74rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-4deg);
}
.privacy-gate ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.privacy-gate li + li { margin-top: .45rem; }

.intake-form { margin-top: 1rem; }
.form-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.required-note { color: var(--red); font-size: .78rem; font-weight: 850; }
.form-grid {
  display: grid;
  margin-top: 1.4rem;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field-group { min-width: 0; }
.field-group-wide { grid-column: 1 / -1; }
.field-group label, .stage-card label { display: block; margin-bottom: .35rem; color: var(--forest-deep); font-weight: 880; }
.optional { color: var(--ink-soft); font-size: .78rem; font-weight: 680; }

input[type="text"], select, textarea {
  width: 100%;
  min-height: 3rem;
  border: 1.5px solid #8ca49d;
  border-radius: .72rem;
  background: var(--white);
  color: var(--ink);
  padding: .75rem .8rem;
}
textarea { min-height: 6.2rem; resize: vertical; }
input[type="text"]:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(8, 108, 206, .12); outline: 0; }

.confirmation-row {
  display: grid;
  margin-top: 1.25rem;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
}
.confirmation-row input {
  width: 1.3rem;
  height: 1.3rem;
  margin: .18rem 0 0;
  accent-color: var(--teal);
}
.confirmation-row label { color: var(--forest-deep); font-weight: 830; }
.confirmation-row p { grid-column: 2; margin: -.25rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.image-option { padding: .8rem; border-radius: .75rem; background: var(--paper-warm); }

.analysis-section {
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100% - 82rem) / 2));
  padding-left: max(1rem, calc((100% - 82rem) / 2));
  background: #e4f1ed;
}
.analysis-grid {
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.stage-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: .55rem solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  padding: 1.1rem;
  grid-column: span 2;
}
.stage-card:nth-child(4) { grid-column: 2 / span 2; }
.stage-card:nth-child(5) { grid-column: 4 / span 2; }
.stage-problem { border-top-color: var(--pink); }
.stage-idea { border-top-color: var(--green); }
.stage-made { border-top-color: var(--blue); }
.stage-tried { border-top-color: var(--purple); }
.stage-next { border-top-color: var(--orange); }
.stage-number { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .75rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.stage-card textarea { background: #fffef9; }

.analysis-confirmation {
  display: flex;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #a6c6ba;
  border-radius: var(--radius);
  background: var(--white);
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.analysis-confirmation .confirmation-row { margin: 0; }

.packet-section { padding-bottom: 7rem; }
.packet-output {
  overflow: hidden;
  max-width: 52rem;
  min-height: 28rem;
  margin: 2rem auto 0;
  border: 1px solid #b9b19e;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: #202b29;
}
.packet-cover {
  min-height: 12rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, .92), rgba(255, 241, 174, .94)),
    var(--yellow);
}
.packet-cover p { margin: 0; color: var(--forest-deep); font-size: .75rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.packet-cover h3 { max-width: 17ch; margin: 1rem 0; color: var(--forest-deep); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.packet-cover span { color: #4c5c3d; font-weight: 800; }
.packet-placeholder { display: grid; min-height: 14rem; place-items: center; padding: 2rem; color: var(--ink-soft); text-align: center; }
.packet-page {
  overflow-wrap: anywhere;
  min-height: 9.8in;
  padding: clamp(1.25rem, 4vw, 2.2rem);
  border-bottom: 1px dashed #b9b19e;
  background: var(--paper);
}
.packet-page:last-child { border-bottom: 0; }
.packet-page > header { margin-bottom: 1.4rem; }
.packet-page h3 { margin: .25rem 0 0; color: var(--forest-deep); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.packet-page h4 { margin: 1.4rem 0 .8rem; color: var(--forest); font-size: 1.45rem; }
.packet-report-identity {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--forest-deep);
  color: var(--forest-deep);
}
.packet-report-identity p { margin: 0; font-size: .78rem; font-weight: 850; letter-spacing: .06em; }
.packet-report-identity .packet-report-company { flex-basis: 100%; font-size: .9rem; }
.packet-report-product { text-transform: uppercase; }
.packet-report-stardate { font-family: ui-monospace, monospace; }
.packet-eyebrow { margin: 0; color: var(--teal); font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.packet-banner { margin: 0 0 1rem; border: 1px solid #9b7300; background: #fff0a9; padding: .45rem .6rem; color: #584100; font-size: .72rem; font-weight: 950; letter-spacing: .08em; text-align: center; }
.packet-card { margin-top: .8rem; border-left: .42rem solid var(--blue); border-radius: .6rem; background: #f6f2e5; padding: 1rem; }
.packet-card h5 { margin: 0; color: var(--forest); font-size: 1rem; }
.packet-card p { margin: .35rem 0 0; }
.packet-card-featured { border-left-color: var(--orange); background: #fff0dc; }
.packet-board-image { display: block; width: 100%; max-height: 4.6in; margin-top: 1rem; border-radius: .6rem; object-fit: contain; }
.packet-note { margin-top: 1.2rem; border-radius: .6rem; background: #e8f4ef; padding: 1rem; }
.packet-footnote { margin-top: 2rem; color: var(--ink-soft); font-size: .78rem; }
.packet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  max-width: 40rem;
  margin: 1.6rem auto 0;
}
.boundary-note { max-width: 48rem; margin: 1rem auto 0; color: var(--ink-soft); font-size: .86rem; text-align: center; }

.site-footer {
  display: flex;
  padding: 2rem max(1rem, calc((100% - 82rem) / 2));
  background: var(--forest-deep);
  color: #d8ece4;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .7rem 1.5rem;
}
.site-footer p { margin: 0; font-size: .84rem; }

.privacy-rejection:not([hidden]) {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 216, 77, .16), transparent 22rem),
    radial-gradient(circle at 85% 90%, rgba(100, 200, 232, .13), transparent 24rem),
    rgba(9, 41, 35, .96);
  padding:
    max(1rem, env(safe-area-inset-top, 0))
    max(1rem, env(safe-area-inset-right, 0))
    max(1rem, env(safe-area-inset-bottom, 0))
    max(1rem, env(safe-area-inset-left, 0));
  overscroll-behavior: contain;
}

.rejection-board {
  position: relative;
  display: grid;
  width: min(58rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, .85fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  border: .55rem solid #b48a59;
  border-radius: .8rem;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    #16483e;
  background-size: 11px 11px;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, .25), 0 28px 80px rgba(0, 0, 0, .42);
  color: #fffdf2;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  text-align: left;
}

.rejection-board::after {
  position: absolute;
  right: 9%;
  bottom: -.55rem;
  width: 5.2rem;
  height: .55rem;
  border-radius: .5rem .5rem 0 0;
  background: #f4e7c7;
  content: "";
  transform: rotate(-2deg);
}
.rejection-copy { min-width: 0; }
.rejection-heading { display: flex; align-items: flex-start; gap: .85rem; }
.rejection-symbol {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #fff2ad;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--forest-deep);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
}
.rejection-kicker { margin: 0 0 .4rem; color: #ffe88a; font-size: .76rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.rejection-board h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.04em; }
.rejection-board #rejection-message { max-width: 38rem; margin: 1.2rem 0 0; color: #eff8f2; font-size: clamp(1rem, 1.8vw, 1.14rem); }
.rejection-status {
  margin: 1rem 0 0;
  border-left: .3rem solid var(--yellow);
  border-radius: .4rem;
  background: rgba(255, 255, 255, .08);
  padding: .75rem .85rem;
  color: #fff8cf;
  font-size: .92rem;
}
.rejection-status strong { display: block; color: var(--white); }
.rejection-example {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .7rem;
  background: #fffdf4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  color: var(--ink);
  padding: .65rem;
  transform: rotate(.5deg);
}
.rejection-example-frame {
  overflow: hidden;
  border: 1px solid #d6cdb7;
  border-radius: .42rem;
  background: #e6deca;
}
.rejection-example-frame img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rejection-example figcaption { display: grid; padding: .65rem .3rem .2rem; gap: .16rem; }
.rejection-example figcaption strong { color: var(--forest-deep); font-size: 1rem; }
.rejection-example figcaption span { color: var(--ink); font-size: .86rem; font-weight: 780; }
.rejection-example figcaption small { color: var(--ink-soft); font-size: .7rem; font-weight: 720; }
.rejection-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, .35);
  padding-top: 1.1rem;
}
.rejection-actions p { margin: 0; color: #eff8f2; font-weight: 760; }
.rejection-button { flex: 0 0 auto; border-color: #927008; background: var(--yellow); color: var(--forest-deep); }

body.privacy-rejected #app-shell,
body.privacy-rejected > .skip-link { display: none !important; }

@media (max-width: 68rem) {
  .header-inner { min-height: 0; padding: .65rem 0 .55rem; flex-wrap: wrap; gap: .45rem 1rem; }
  .primary-nav {
    width: 100%;
    order: 2;
    overflow-x: auto;
    padding-bottom: .15rem;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
  }
  .primary-nav a { min-height: 2.55rem; padding: .58rem .72rem; }
  .hero { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .workspace-grid { grid-template-columns: 1fr; }
  .privacy-gate { grid-template-columns: auto 1fr; }
  .analysis-grid { grid-template-columns: 1fr 1fr; }
  .stage-card, .stage-card:nth-child(4), .stage-card:nth-child(5) { grid-column: auto; }
  .stage-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  main > section { scroll-margin-top: 8rem; }
  .brand-mark { width: 2.7rem; height: 2.7rem; }
  .brand-copy small { font-size: .67rem; }
  .primary-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: .15rem; }
  .primary-nav a {
    min-height: 2.75rem;
    padding: .4rem .25rem;
    justify-content: center;
    font-size: .68rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .primary-nav .receipt-link { padding: .4rem .25rem; }
  .hero { padding-top: 2.5rem; grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; }
  .sample-card { width: min(36rem, 100%); margin: .5rem auto 0; transform: none; }
  .workflow-progress { grid-template-columns: 1fr 1fr; }
  .workflow-progress li { min-height: 7.2rem; }
  .form-grid, .analysis-grid { grid-template-columns: 1fr; }
  .stage-card, .stage-card:last-child { grid-column: auto; }
  .analysis-confirmation { align-items: stretch; flex-direction: column; }
  .analysis-confirmation .button { width: 100%; }
  .privacy-gate { grid-template-columns: 1fr; }
  .form-heading { flex-direction: column; }
  .rejection-board {
    max-height: calc(100dvh - 1rem);
    grid-template-columns: 1fr;
    gap: .9rem;
    border-width: .42rem;
    padding: 1rem;
  }
  .rejection-example {
    display: grid;
    grid-template-columns: minmax(7rem, .75fr) minmax(0, 1.25fr);
    align-items: center;
    transform: none;
  }
  .rejection-actions { align-items: stretch; flex-direction: column; }
  .rejection-button { width: 100%; }
}

@media (max-width: 34rem) {
  .header-inner { width: min(100% - 1rem, 82rem); gap: .5rem; }
  .brand-copy strong { font-size: .86rem; }
  .brand-copy small { display: none; }
  .hero, .workspace, .packet-section { width: min(100% - 1rem, 82rem); }
  .workflow-overview, .analysis-section { padding-right: .5rem; padding-left: .5rem; }
  .workflow-progress { grid-template-columns: 1fr; }
  .workflow-progress li { min-height: auto; grid-template-columns: 2rem 1fr; gap: 0 .7rem; align-items: center; }
  .workflow-progress li > span { margin: 0; grid-row: 1 / span 2; }
  .workflow-progress small { grid-column: 2; }
  .paper-card { padding: 1rem; border-radius: 1rem; }
  .card-number { top: .8rem; right: .8rem; }
  .photo-picker { align-items: stretch; flex-direction: column; }
  .hero-actions, .form-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .form-actions .button { width: 100%; }
  .packet-actions { grid-template-columns: minmax(0, 1fr); }
  .rejection-heading { gap: .65rem; }
  .rejection-board { gap: .65rem; padding: .75rem; }
  .rejection-symbol { width: 2.35rem; height: 2.35rem; font-size: 1.2rem; }
  .rejection-board h1 { font-size: 1.5rem; }
  .rejection-board #rejection-message { margin-top: .7rem; font-size: .88rem; line-height: 1.42; }
  .rejection-status { margin-top: .6rem; padding: .55rem .6rem; font-size: .78rem; line-height: 1.35; }
  .rejection-example { grid-template-columns: minmax(6.4rem, .72fr) minmax(0, 1.28fr); padding: .5rem; }
  .rejection-example figcaption { padding: .2rem .15rem .2rem .55rem; }
  .rejection-example figcaption strong { font-size: .9rem; }
  .rejection-example figcaption span { font-size: .77rem; }
  .rejection-example figcaption small { font-size: .62rem; }
  .rejection-actions { gap: .4rem; padding-top: .65rem; }
  .rejection-actions p { font-size: .82rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .sample-card, .chalk-icon { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #5b655e; --ink-soft: #2f443f; }
  .paper-card, .stage-card, .sample-card { border-width: 2px; }
  .button { border-color: currentColor; }
}

@media print {
  @page { size: letter; margin: .45in; }
  html, body { min-width: 0; overflow: visible; background: #fff; }
  body { color: #111; }
  .skip-link,
  .site-header,
  .hero,
  .workflow-overview,
  .workspace,
  .analysis-section,
  .packet-section > .section-heading,
  .packet-actions,
  .boundary-note,
  .site-footer,
  .privacy-rejection { display: none !important; }
  .packet-section {
    display: block !important;
    width: auto;
    margin: 0;
    padding: 0;
  }
  .packet-output {
    overflow: visible;
    max-width: none;
    min-height: 0;
    margin: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .packet-output article,
  .packet-output section { break-inside: avoid; }
  .packet-output .packet-page { min-height: 0; break-after: page; page-break-after: always; }
  .packet-output .packet-page:last-child { break-after: auto; page-break-after: auto; }
  .packet-page > h3 { margin-bottom: .12in; }
  .packet-report-identity { color: #111; border-bottom-color: #111; }
  .packet-board-image { max-height: 3in; }
}

.receipt-area { width: min(66rem, calc(100% - 2rem)); margin: 0 auto 3rem; }
.receipt-area > .button { margin-top: 1rem; }
.certificate-personalization { margin: 1.5rem 0; max-width: 35rem; }
#intake-form, #inventor-certificate { scroll-margin-top: 8rem; }
@media print {
  .receipt-area, .print-certificate-only .packet-output > :not(.inventor-certificate) { display: none !important; }
}

.packet-reference { font-family: ui-monospace, monospace; font-size: .8rem; overflow-wrap: anywhere; }
