:root {
  --ink: #17164b;
  --ink-soft: #3d3b69;
  --paper: #fffaf0;
  --paper-strong: #fffdf7;
  --coral: #ff5f68;
  --yellow: #ffd84d;
  --cyan: #4ad8e6;
  --blue: #5c5cff;
  --green: #63dc91;
  --pink: #ff9ec4;
  --line: rgba(23, 22, 75, .2);
  --shadow: 0 1.25rem 0 rgba(23, 22, 75, .12), 0 2.25rem 4.5rem rgba(23, 22, 75, .15);
  --gutter: clamp(1rem, 4.5vw, 4.75rem);
  --measure: 45rem;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff3b7;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; background: #fff3b7; }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--ink); background: #fff3b7; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--paper); background: var(--blue); }

.skip-link {
  position: fixed; z-index: 50; top: .6rem; left: .6rem; transform: translateY(-180%);
  padding: .8rem 1rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }

.pattern-field { position: fixed; z-index: 0; inset: 0; overflow: hidden; background: #fff3b7; }
#pattern-canvas { width: 100%; height: 100%; display: block; }
.paper-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .23;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(23,22,75,.035) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.18) 5px 6px);
  mix-blend-mode: multiply;
}
.stage-indicator {
  position: absolute; right: var(--gutter); bottom: 1.25rem; display: flex; gap: .75rem; align-items: center;
  margin: 0; padding: .6rem .85rem; border: 2px solid var(--ink); border-radius: 999px;
  background: rgba(255,250,240,.88); box-shadow: 4px 4px 0 var(--ink); font-size: .7rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
}
.stage-indicator span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: var(--paper); background: var(--ink); }

.site-header {
  position: fixed; z-index: 20; top: .8rem; left: var(--gutter); right: var(--gutter); min-height: 4.4rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .55rem .65rem;
  border: 2px solid var(--ink); border-radius: 1.1rem; background: rgba(255,250,240,.92);
  box-shadow: 6px 6px 0 rgba(23,22,75,.94); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; width: max-content; color: var(--ink); text-decoration: none; }
.brand span {
  display: grid; place-items: center; width: 2.7rem; height: 2.7rem; flex: none; border: 2px solid var(--ink); border-radius: 48% 52% 55% 45%;
  background: var(--yellow); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; transform: rotate(-5deg);
}
.brand b { font-size: .72rem; line-height: 1.05; letter-spacing: .1em; text-transform: uppercase; }
.header-note { margin: 0; font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.header-cta {
  justify-self: end; padding: .72rem 1rem; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--paper); background: var(--ink); font-size: .76rem; font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.header-cta:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--coral); }

main, .site-footer { position: relative; z-index: 2; }
.story {
  position: relative; min-height: 112svh; display: grid; grid-template-columns: minmax(0,1fr) minmax(19rem,1fr);
  align-items: center; padding: max(7.4rem,12vh) var(--gutter) 9vh;
}
.paper-card {
  position: relative; width: min(100%, var(--measure)); padding: clamp(1.4rem, 3.5vw, 3.5rem);
  border: 2px solid var(--ink); border-radius: clamp(1.25rem, 2vw, 2.25rem); background: rgba(255,250,240,.94);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.paper-card::after {
  content: ""; position: absolute; z-index: -1; inset: .55rem -.65rem -.65rem .55rem; border: 2px solid var(--ink);
  border-radius: inherit; background: var(--yellow); transform: rotate(1deg);
}
.card-right { grid-column: 2; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.15rem; color: var(--ink); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 1.75rem; height: .75rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--coral); }
h1, h2 {
  margin: 0; max-width: 14ch; font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: .94;
  letter-spacing: -.055em; text-wrap: balance;
}
h1 { font-size: clamp(3.35rem, 7.6vw, 8rem); }
h2 { font-size: clamp(2.55rem, 5.25vw, 5.5rem); }
h1 em { position: relative; color: var(--blue); font-weight: 700; text-decoration: none; }
h1 em::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: -.04em; height: .12em; border-radius: 999px; background: var(--coral); transform: rotate(-2deg); }
.paper-card > p:not(.eyebrow):not(.price):not(.big-note), .request-copy > p:not(.eyebrow):not(.form-ribbon) {
  max-width: 37rem; color: var(--ink-soft); font-size: clamp(1rem,1.35vw,1.18rem); line-height: 1.62;
}
.lede { max-width: 34rem !important; font-size: clamp(1.08rem,1.65vw,1.38rem) !important; }

.hero { grid-template-columns: minmax(0,1.35fr) minmax(14rem,.65fr); }
.hero-card { width: min(100%, 66rem); background: rgba(255,253,247,.96); }
.hero-card::after { background: var(--cyan); transform: rotate(-1deg); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; min-height: 3.45rem; align-items: center; justify-content: center; gap: 1rem; padding: .86rem 1.25rem;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button-primary { color: var(--paper); background: var(--ink); box-shadow: 5px 5px 0 var(--coral); }
.button:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--coral); }
.button:disabled { cursor: progress; opacity: .62; transform: none; }
.text-link { font-weight: 850; text-underline-offset: .3rem; text-decoration-thickness: 2px; }
.hero-stamp {
  justify-self: center; display: grid; grid-template-columns: auto auto; align-items: center; gap: .65rem; width: 12rem; height: 12rem;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--coral); box-shadow: 12px 12px 0 var(--yellow); transform: rotate(8deg);
}
.hero-stamp strong { justify-self: end; color: var(--paper); font-family: Georgia,serif; font-size: 5.5rem; line-height: 1; }
.hero-stamp span { color: var(--ink); font-size: .75rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.scroll-note { position: absolute; left: var(--gutter); bottom: 2rem; margin: 0; font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.scroll-note span { display: inline-block; width: 3rem; height: 2px; margin-right: .65rem; vertical-align: middle; background: var(--ink); }

.measure-list { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.measure-list li { padding: .48rem .75rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: .76rem; font-weight: 900; }
.route-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: .5rem; margin-top: 1.75rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.route-line i { height: 2px; background: var(--ink); }
.ink-card { color: var(--paper); background: rgba(23,22,75,.95); }
.ink-card::after { background: var(--pink); }
.ink-card .eyebrow, .ink-card > p:not(.eyebrow) { color: var(--paper) !important; }
.ink-card .eyebrow > span { background: var(--yellow); border-color: var(--paper); }
.big-note { margin: 1.6rem 0 0; color: var(--yellow); font-family: Georgia,serif; font-size: clamp(1.5rem,3vw,3rem); font-weight: 700; line-height: 1.05; }
.price-card::after { background: var(--green); }
.price { margin: 1.2rem 0 .5rem; color: var(--coral); font-family: Georgia,serif; font-size: clamp(3.3rem,6vw,6.5rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.price small { font-family: inherit; font-size: .35em; letter-spacing: -.02em; }
.payment-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: .7rem; margin-top: 1.6rem; }
.payment-line b { display: grid; place-items: center; width: 4rem; height: 4rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--cyan); font-family: Georgia,serif; font-size: 1.1rem; }
.payment-line b:nth-of-type(2) { background: var(--yellow); }.payment-line b:nth-of-type(3) { background: var(--coral); }
.payment-line span { height: 2px; background: var(--ink); }

.story-final { min-height: 118svh; padding-bottom: 13vh; }
.request-panel {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,.9fr) minmax(22rem,1fr); gap: clamp(2rem,6vw,6rem);
  padding: clamp(1.5rem,4.5vw,4.5rem); border: 2px solid var(--ink); border-radius: clamp(1.25rem,3vw,3rem);
  background: rgba(255,250,240,.96); box-shadow: 14px 14px 0 var(--cyan), 28px 28px 0 var(--ink);
}
.request-copy h2 { max-width: 9ch; }
.form-ribbon { display: inline-block; margin: 1rem 0 0; padding: .55rem .8rem; border: 2px solid var(--ink); background: var(--yellow); font-size: .72rem; font-weight: 900; text-transform: uppercase; transform: rotate(-2deg); }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .48rem; color: var(--ink); font-size: .86rem; font-weight: 850; }
label > span { letter-spacing: .04em; }
input, textarea {
  width: 100%; padding: .9rem 1rem; border: 2px solid var(--ink); border-radius: .8rem; background: var(--paper-strong); color: var(--ink); resize: vertical;
  box-shadow: inset 0 -4px 0 rgba(92,92,255,.1);
}
input:focus, textarea:focus { background: #fff; box-shadow: 5px 5px 0 var(--yellow); }
small, .privacy-note, .form-status { color: var(--ink-soft); font-weight: 500; line-height: 1.45; }
.form-status { min-height: 1.4em; margin: .25rem 0 0; font-weight: 800; }
.form-status[data-state="pending"] { color: var(--blue); }
.form-status[data-state="error"] { color: #a60030; }
.form-status[data-state="success"] { color: #087234; }
.privacy-note { margin: 0; font-size: .78rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
  min-height: 15rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: 4rem var(--gutter);
  border-top: 2px solid var(--ink); color: var(--paper); background: var(--ink);
}
.site-footer .brand { color: var(--paper); }.site-footer .brand span { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.5rem; font-weight: 800; }
.site-footer p { grid-column: 1 / -1; margin: 0; color: #d6d5ff; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }

.inner-page { min-height: 100vh; background: #fff3b7; }
.pattern-field-inner { opacity: .72; }
.inner-main, .legal-main { position: relative; z-index: 2; padding: 9.5rem var(--gutter) 6rem; }
.inner-hero { width: min(100%, 72rem); min-height: 31rem; display: grid; align-content: center; }
.inner-hero::after { background: var(--coral); }
.inner-hero h1, .legal-main h1 { max-width: 12ch; }
.inner-hero > p:last-child, .legal-lede { max-width: 49rem; color: var(--ink-soft); font-size: clamp(1.05rem,1.6vw,1.3rem); line-height: 1.65; }
.concept-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2vw,1.5rem); margin-top: 3rem; }
.concept { min-width: 0; padding: 1rem; border: 2px solid var(--ink); border-radius: 1.5rem; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.concept-coral { background: #ffd0cc; }.concept-cyan { background: #c8f7f4; }.concept-yellow { background: #fff0a6; }
.concept img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border: 2px solid var(--ink); border-radius: .9rem; background: var(--paper); }
.concept h2, .legal-main h2, .input-callout h2 { font-family: Georgia,serif; font-size: clamp(1.8rem,3vw,3rem); font-weight: 700; line-height: 1; }
.concept .eyebrow { margin-top: 1rem; font-size: .62rem; }
.concept dl { display: grid; gap: .9rem; color: var(--ink-soft); }
.concept dl div { border-top: 2px solid var(--line); padding-top: .75rem; }
.concept dt { color: var(--ink); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.concept dd { margin: .35rem 0 0; line-height: 1.55; }
.case-link { display: inline-flex; margin-top: 1rem; font-weight: 900; text-underline-offset: .3rem; }
.input-callout { margin-top: 5rem; }
.input-callout::after { background: var(--blue); }
.input-callout p { max-width: 48rem; color: var(--ink-soft); line-height: 1.65; }
.legal-main { width: min(calc(100% - 2 * var(--gutter)),70rem); margin: 9.5rem auto 6rem; padding: clamp(1.5rem,5vw,5rem); }
.legal-main::after { background: var(--yellow); }
.legal-main section { max-width: 49rem; margin: 3.5rem 0; border-top: 2px solid var(--line); padding-top: 1rem; }
.legal-main section p { color: var(--ink-soft); line-height: 1.7; }
.thanks-page { display: grid; place-items: center; padding: 1rem; }
.thanks-main { position: relative; z-index: 2; width: min(100%,55rem); }
.thanks-main::after { background: var(--coral); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }.header-note { display: none; }
  .story, .hero { min-height: 103svh; grid-template-columns: 1fr; align-items: end; padding-top: 7rem; }
  .paper-card, .card-right { grid-column: 1; width: 100%; }
  .hero-stamp { position: absolute; top: 8rem; right: var(--gutter); width: 8rem; height: 8rem; opacity: .86; }
  .hero-stamp strong { font-size: 3.6rem; }.hero-stamp span { font-size: .58rem; }
  .request-panel { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }.site-footer p { grid-column: 1; }
  .stage-indicator { display: none; }
}

@media (max-width: 520px) {
  .site-header { left: .75rem; right: .75rem; top: .6rem; min-height: 3.9rem; border-radius: .9rem; }
  .brand span { width: 2.35rem; height: 2.35rem; }.brand b { font-size: .61rem; }
  .header-cta { padding: .63rem .72rem; font-size: .68rem; }
  .story { padding-left: .85rem; padding-right: .85rem; }
  .paper-card { padding: 1.25rem; border-radius: 1.2rem; }
  h1 { font-size: clamp(3rem,14vw,4.45rem); } h2 { font-size: clamp(2.35rem,11vw,3.55rem); }
  .hero-stamp { top: 7.5rem; right: 1rem; width: 6.5rem; height: 6.5rem; box-shadow: 7px 7px 0 var(--yellow); }
  .hero-stamp strong { font-size: 3rem; }.hero-stamp span { display: none; }
  .route-line { grid-template-columns: 1fr; gap: .25rem; }.route-line i { width: 2px; height: 1rem; margin-left: 1rem; }
  .payment-line { gap: .35rem; }.payment-line b { width: 3.35rem; height: 3.35rem; font-size: .95rem; }
  .request-panel { padding: 1.15rem; border-radius: 1.25rem; box-shadow: 7px 7px 0 var(--cyan), 14px 14px 0 var(--ink); }
  .inner-main { padding-left: .85rem; padding-right: .85rem; }
  .inner-hero h1, .legal-main h1 { font-size: clamp(2.6rem, 11.5vw, 3.25rem); overflow-wrap: break-word; }
  .legal-main { width: calc(100% - 1.7rem); margin-top: 7.6rem; padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
