/* Well Kept organizer application.
   Tokens follow the team design system's form-brand-spec.md (design/). */

@font-face {
  font-family: "Miltona";
  src: url("/assets/fonts/miltona-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1b3b6d;
  --navy-700: #142c52;
  --navy-muted: #596c91;
  --navy-on-dark: #aab6cd;
  --cream: #f8f5ef;
  --white: #ffffff;
  --pink: #f1c9d2;
  --pink-wash: #fbecec;
  --pink-text: #a65067;
  --peach: #f9bba0;
  --greige: #e7e0d5;
  --line-strong: #d8cfc1;
  --placeholder: #9aa3b3;

  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Marcellus", Georgia, "Times New Roman", serif;
  --font-script: "Miltona", "Brittany Signature", cursive;

  --radius-sm: 4px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 24px rgba(27, 59, 109, .08), 0 2px 6px rgba(27, 59, 109, .05);
  --focus-ring: 0 0 0 3px rgba(27, 59, 109, .10);
  --ease: 280ms cubic-bezier(.22, .61, .36, 1);

  --gutter: 96px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }

a { color: var(--navy); text-decoration-color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy-muted);
}
.eyebrow-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach);
  flex-shrink: 0;
}

/* ---------- Header + hero ---------- */

.hero {
  background: var(--pink-wash);
  padding: 32px var(--gutter) 88px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { height: 68px; width: auto; display: block; }
.logo-link { display: block; border-radius: 2px; }
.logo-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hero-nav { display: flex; align-items: center; gap: 32px; }
.site-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.hero-copy .eyebrow { font-size: 12px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--navy-muted); max-width: 620px; }

/* ---------- Body: aside + form ---------- */

.body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
  display: flex;
  gap: 72px;
  align-items: flex-start;
}

.aside {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 8px;
}
.aside-block { display: flex; flex-direction: column; gap: 20px; }
.aside-block:first-child { gap: 28px; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--greige); }
.steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.step-num { font-family: var(--font-serif); font-size: 28px; line-height: 1; color: var(--pink-text); width: 28px; flex-shrink: 0; }
.steps div { display: flex; flex-direction: column; gap: 6px; }
.steps h3 { font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--navy-muted); }

.traits { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.traits li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 18px; }
.traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach);
}
.traits strong { font-size: 15px; line-height: 1.5; font-weight: 600; }
.traits span { font-size: 14px; line-height: 1.6; color: var(--navy-muted); }

.aside-questions { gap: 10px; padding-top: 28px; border-top: 1px solid var(--greige); }
.aside-questions p { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }

.card-wrap { flex-grow: 1; min-width: 0; }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 64px 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---------- Form sections ---------- */

.form-section { display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-family: var(--font-serif); font-weight: 400; font-size: 34px; line-height: 1.15; }

.rule { border: 0; height: 1px; background: var(--greige); margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 9px; }
fieldset.field { gap: 12px; }

.field > label:not(.wk-drop):not(.consent),
.field > .label,
fieldset.field > legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-muted);
}
fieldset.field > legend { margin-bottom: 12px; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hint { font-size: 12px; line-height: 1.5; color: var(--navy-muted); }

.wk-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.wk-input:focus { border-color: var(--navy); box-shadow: var(--focus-ring); }
.wk-input::placeholder { color: var(--placeholder); }
textarea.wk-input { resize: vertical; line-height: 1.6; min-height: 132px; }
input[type="date"].wk-input { min-height: 50px; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--navy-muted);
  border-bottom: 1.5px solid var(--navy-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Chips: radios and checkboxes styled as pills */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wk-chip { position: relative; display: inline-flex; cursor: pointer; }
.wk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.wk-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  color: var(--navy);
  transition: background var(--ease), border-color var(--ease);
}
.wk-chip:hover span { border-color: var(--navy); }
.wk-chip input:checked + span { background: var(--pink); border-color: var(--pink); }
.wk-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27, 59, 109, .18); }

/* Yes / no confirmations on the pink wash */
.yesno-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--pink-wash);
  border-radius: var(--radius-lg);
}
.yesno-rule { height: 1px; background: rgba(27, 59, 109, .12); }
fieldset.yesno {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 8px;
}
fieldset.yesno > legend {
  float: left;
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}
fieldset.yesno .chips { flex-wrap: nowrap; }
fieldset.yesno .field-error { grid-column: 1 / -1; }

/* Résumé drop zone */
.wk-sr { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.wk-drop {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.wk-drop:hover { border-color: var(--navy); }
.wk-sr:focus-visible + .wk-drop { border-color: var(--navy); box-shadow: var(--focus-ring); }
.wk-drop.has-file { border-style: solid; }
.drop-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink-wash);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drop-text { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.drop-title { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.drop-sub { font-size: 12px; color: var(--navy-muted); }
.drop-btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.link-btn {
  align-self: flex-start;
  font: 500 13px/1.5 var(--font-sans);
  color: var(--navy);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Consent + submit */
.submit-area {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--greige);
}
.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-muted);
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.privacy { font-size: 12px; line-height: 1.6; color: var(--navy-muted); padding-left: 32px; }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.reply-note { font-size: 13px; line-height: 1.5; color: var(--navy-muted); max-width: 300px; }

.wk-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  border: 0;
  cursor: pointer;
  padding: 16px 30px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  transition: background var(--ease);
}
.wk-btn:hover { background: var(--navy-700); }
.wk-btn:active { transform: translateY(1px); }
.wk-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(27, 59, 109, .25); }
.wk-btn[disabled] { cursor: progress; background: var(--navy-700); }
.wk-btn[disabled]:active { transform: none; }

/* Validation. Deep rose is the brand's only text-safe pink (5.3:1 on white). */
.field-error {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--pink-text);
}
.field-error::before { content: "—"; }
.wk-input[aria-invalid="true"],
.wk-input[aria-invalid="true"]:focus { border-color: var(--pink-text); }
.wk-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(166, 80, 103, .14); }
.is-invalid .wk-chip span,
.is-invalid .wk-drop { border-color: var(--pink-text); }

/* Notices */
.notice {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 24px;
  background: var(--pink-wash);
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.5;
}
.notice svg { flex-shrink: 0; }
.notice-error { display: block; border-left: 3px solid var(--pink-text); }
.notice-error[hidden], .card[hidden] { display: none; }
.notice:focus, .card:focus { outline: none; }
.card-success { padding: 48px; }

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Closing + footer ---------- */

.closing {
  padding: 128px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.closing-rule { width: 64px; height: 1px; background: var(--peach); }
.script { font-family: var(--font-script); font-size: 48px; line-height: 1.4; color: var(--navy); text-align: center; }

.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 44px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--cream);
  text-decoration: none;
}
.footer-name:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--peach); }
.footer-name:focus-visible { box-shadow: 0 0 0 3px rgba(248, 245, 239, .35); }
.footer-tag { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-on-dark); text-align: center; }
.footer-copy { font-size: 13px; color: var(--navy-on-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 56px; }
  .body { gap: 48px; }
  .aside { width: 260px; }
  .card { padding: 48px 40px 44px; }
  .footer { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-tag { order: 3; flex-basis: 100%; }
}

@media (max-width: 920px) {
  :root { --gutter: 32px; }
  .hero { gap: 48px; padding-bottom: 64px; }
  .body { flex-direction: column; align-items: stretch; padding-top: 56px; gap: 56px; }
  .aside { width: auto; padding-top: 0; gap: 40px; }
  .closing { padding-top: 96px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 20px; padding-bottom: 48px; gap: 40px; }
  .logo { height: 52px; }
  .hero-nav .eyebrow { display: none; }
  .hero-copy { gap: 16px; }
  .lead { font-size: 17px; }
  .body { padding-top: 40px; gap: 40px; }
  .card { padding: 32px 20px; gap: 44px; border-radius: 10px; }
  .card-success { padding: 24px 20px; }
  .section-head h2 { font-size: 28px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  fieldset.yesno { grid-template-columns: minmax(0, 1fr); }
  .yesno-panel { padding: 20px; }
  .wk-drop { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .drop-btn { width: 100%; text-align: center; }
  .submit-row { flex-direction: column-reverse; align-items: stretch; }
  .wk-btn { width: 100%; }
  .privacy { padding-left: 0; }
  .closing { padding: 72px var(--gutter) 56px; }
  .script { font-size: 36px; }
  .footer { flex-direction: column; padding: 36px var(--gutter); gap: 14px; }
  .footer-tag { order: 0; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
