/* CV Compiler /resume-optimizer. White page, three pale blue fields, floating paper scenes.
   Page-only stylesheet: every rule is scoped by this file and the body class "opt". */

@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/uploads-pre-acq/fonts/SpaceMonoRegular/SpaceMonoRegular.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-SemiBold.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --sky-1: #f3f8fe;
  --sky-2: #e6f0fc;
  --sky-3: #cfe1f8;
  --sky-4: #a9c8ee;
  --blue: #1f57a4;
  --blue-deep: #153e79;
  --ink: #14171f;
  --ink-soft: #414756;
  --ink-faint: #5d6474;
  --purple: #4a2de0;
  --purple-dark: #3a20c2;
  --hl: #ffe9a8;
  --hl-edge: #e9c24d;
  --rule: rgba(20, 23, 31, 0.12);
  --rule-strong: rgba(20, 23, 31, 0.28);
  --error: #a3211a;

  --sans: "Cerebri Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  /* Display face for h1/h2 only. Set to var(--sans) to return to an all-sans page. */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --fs-micro: 0.75rem;
  --fs-small: 0.9375rem;
  --fs-note: 1.0625rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.3125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-paper: 0.875rem;
  --fs-paper-name: 1.375rem;

  --gutter: 32px;
  --wrap: 1160px;
  --gap: clamp(72px, 9vw, 128px);
  --radius: 10px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.opt {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
section[id], div[id] { scroll-margin-top: 24px; }
.nw { white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 18px;
  background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 600; border-radius: 6px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; }

.label {
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 28px; border: 0; border-radius: 999px;
  background: var(--purple); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(20, 23, 31, 0.2);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58, 32, 194, 0.24); }
.btn:active { transform: none; }
.btn[disabled] { background: #8d8aa8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--small { min-height: 44px; padding: 9px 20px; font-size: var(--fs-small); }

/* ---------- Header ---------- */
.top { background: var(--sky-2); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand {
  font-family: var(--mono); font-weight: 400; font-size: 1.1875rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a {
  display: inline-block; padding: 10px 0; font-size: var(--fs-small); color: var(--ink-soft);
  text-decoration: none; transition: color 160ms var(--ease);
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none; align-items: center; min-height: 44px; padding: 8px 16px; background: transparent;
  border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}

/* ---------- Hero: copy and upload on the left, a paper floating on a blue field on the right ---------- */
.hero {
  padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 46% at 12% 100%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(46% 40% at 70% 104%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--sky-1) 62%, var(--white) 100%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px clamp(36px, 5vw, 72px); align-items: center; }
.hero__lead { max-width: 33em; margin-top: 22px; font-size: var(--fs-lead); line-height: 1.48; color: var(--ink-soft); }
.hero__note { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-faint); }

.upload {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; text-align: left;
  max-width: 560px; margin-top: 32px; padding: 18px 18px 18px 26px;
  background: var(--white); border: 1.5px dashed var(--sky-4); border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(21, 62, 121, 0.45);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.upload.is-drag { border-color: var(--purple); border-style: solid; background: #f4f1ff; }
.upload__text { flex: 1 1 220px; min-width: 0; }
.upload__title { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.upload__meta { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); }
.upload__action { flex: 0 0 auto; }
/* Messages and the progress panel added by the shared uploader. */
.upload noscript { flex: 1 1 100%; }
.upload__status { flex: 1 1 100%; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.upload + div { max-width: 560px; margin-top: 18px; font-size: var(--fs-small); font-weight: 500; text-align: left; }
.upload + div p { margin-bottom: 10px; }
.upload + div button {
  min-height: 44px; padding: 8px 18px; background: transparent; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; cursor: pointer;
}

.sky {
  position: relative; padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 40px) 22px; border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 34% at 18% 96%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(54% 30% at 82% 88%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #8fb6e8 0%, #b9d4f3 58%, #d9e8f9 100%);
}
.sky figcaption { margin-top: 18px; font-size: var(--fs-small); line-height: 1.45; color: var(--blue-deep); }

/* ---------- Paper: the sample resume as real text ---------- */
.paper {
  position: relative; background: var(--white); color: #1b1e27; border-radius: 4px;
  padding: 30px 32px 32px; font-size: var(--fs-paper); line-height: 1.5;
  box-shadow: 0 1px 1px rgba(21, 62, 121, 0.12), 0 26px 50px -22px rgba(21, 62, 121, 0.5);
}
.paper__name { font-size: var(--fs-paper-name); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.paper__role { margin-top: 2px; font-weight: 500; color: var(--blue-deep); }
.paper__contact { margin-top: 2px; color: var(--ink-soft); }
.paper__h {
  margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #1b1e27;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.paper__h--first { margin-top: 0; }
.paper__job { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin-top: 10px; }
.paper__h + .paper__job { margin-top: 0; }
.paper__job b { font-weight: 600; }
.paper ul { margin-top: 4px; }
.paper li { position: relative; padding: 1px 4px 1px 16px; margin: 0 -4px; border-radius: 3px; }
.paper li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 4px; height: 4px; border-radius: 50%; background: #1b1e27; }
.paper mark {
  padding: 1px 3px; margin: 0 -3px; border-radius: 3px; color: inherit; background: var(--hl);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.paper__more { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--rule-strong); font-size: var(--fs-small); color: var(--ink-faint); }

.paper--hero { max-width: 460px; margin: 0 auto; }

/* ---------- Sections ---------- */
.sec { padding-top: var(--gap); }
.sec--rule > .wrap::before { content: ""; display: block; height: 1px; margin-bottom: var(--gap); background: var(--rule); }
.prose { max-width: 720px; }
.prose--center { margin-left: auto; margin-right: auto; }
.prose > h2 { text-align: center; }
.prose > h2 + p { margin-top: 24px; }
.prose > p + p { margin-top: 1.05em; }
.prose > h3 + p { margin-top: 0.55em; }
.prose + .prose { margin-top: 1.05em; }
.lede { font-size: var(--fs-lead); line-height: 1.5; }
.opt main a:not(.btn) { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.opt main a:not(.btn):hover { color: var(--purple-dark); text-decoration-thickness: 2px; }

/* Three in-page links that introduce the chapters */
.paths { max-width: 900px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.paths li + li { border-left: 1px solid var(--rule); }
.opt main .paths a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; height: 100%; padding: 20px 20px 22px;
  color: var(--ink); text-decoration: none; transition: background-color 160ms var(--ease);
}
.opt main .paths a:hover { background: var(--sky-1); color: var(--ink); }
.paths__n { grid-row: 1 / span 2; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--blue); }
.paths__t { font-weight: 600; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.paths__d { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }

/* ---------- Blue fields ---------- */
.field { margin-top: var(--gap); }
.field > .wrap {
  max-width: calc(var(--wrap) + 128px);
  padding-left: clamp(24px, 4vw, 64px); padding-right: clamp(24px, 4vw, 64px);
  padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 22% at 88% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--sky-1) 100%);
}
.field--tool > .wrap {
  background:
    radial-gradient(50% 20% at 10% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
}

/* Early draft line */
.draft {
  max-width: 720px; margin: 28px auto; padding: 16px 22px 18px; background: var(--white);
  border-radius: 4px; border-left: 3px solid var(--ink-faint);
  box-shadow: 0 10px 26px -18px rgba(21, 62, 121, 0.45);
}
.draft p { margin-top: 4px; font-size: 1rem; line-height: 1.5; }
.draft b { font-weight: 600; }

/* Skill-to-evidence map */
.map { margin-top: 40px; }
.map__pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-bottom: 26px; }
.map__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.map__btns button {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--white); cursor: pointer;
  font-size: var(--fs-small); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--sky-4);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.map__btns button:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.map__btns button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; box-shadow: none; }
.map__grid { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; }
.paper--map { position: sticky; top: 24px; }

.why { display: grid; gap: 14px; }
.why li {
  padding: 22px 24px 24px; background: rgba(255, 255, 255, 0.72); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(31, 87, 164, 0.16);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.why h3 { font-family: var(--mono); font-weight: 400; font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); }
.why__line { margin-top: 8px; font-weight: 600; line-height: 1.45; }
.why__line + p { margin-top: 10px; font-size: var(--fs-note); line-height: 1.58; color: var(--ink-soft); }

/* One skill selected: its marks stay lit, its bullet gets a soft band, its explanation comes forward.
   Nothing is hidden, so the page reads the same without the script. */
.map[data-active] mark { background: transparent; }
.map[data-active="selenium"] mark[data-skill="selenium"],
.map[data-active="postman"] mark[data-skill="postman"],
.map[data-active="jira"] mark[data-skill="jira"] { background: var(--hl); box-shadow: 0 0 0 1px var(--hl-edge); }
.map[data-active="selenium"] .paper li[data-skill="selenium"],
.map[data-active="postman"] .paper li[data-skill="postman"],
.map[data-active="jira"] .paper li[data-skill="jira"] { background: #fff7dc; }
.map[data-active="selenium"] .why li[data-skill="selenium"],
.map[data-active="postman"] .why li[data-skill="postman"],
.map[data-active="jira"] .why li[data-skill="jira"] { background: var(--white); box-shadow: inset 0 0 0 2px var(--blue), 0 16px 34px -22px rgba(21, 62, 121, 0.55); }
.map__cap { max-width: 720px; margin: 28px auto 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); text-align: center; }

.aside-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.aside-grid .prose { max-width: none; }
.note { padding: 26px 28px 28px; background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(21, 62, 121, 0.5); }
.note h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.note p { margin-top: 12px; font-size: var(--fs-note); line-height: 1.58; color: var(--ink-soft); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: clamp(40px, 5vw, 60px); }
.cta-row span { max-width: 24em; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }

/* ---------- First third of the resume, with notes ---------- */
.first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px clamp(32px, 5vw, 72px); align-items: start; margin: 44px 0 clamp(48px, 6vw, 72px); }
.first__stage {
  position: sticky; top: 24px; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sky-3) 0%, var(--sky-2) 55%, var(--sky-1) 100%);
}
.paper--first { padding-left: 58px; }
.ln { position: relative; }
.n {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-deep); color: #fff;
  font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; font-style: normal; line-height: 1;
}
.paper .n { position: absolute; left: -40px; top: -2px; }
.notes { display: grid; gap: 30px; }
.notes > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 18px; align-items: start; }
.notes .n { margin-top: 2px; }
.notes p { margin-top: 0.55em; }
.notes p + p { margin-top: 0.8em; color: var(--ink-soft); }

/* ---------- Conventions ---------- */
.conv { max-width: 980px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.conv > li { padding: 26px 0 28px; border-top: 1px solid var(--rule-strong); }
.conv p { margin-top: 0.55em; font-size: var(--fs-note); line-height: 1.6; }
.pair { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin-top: 16px; padding: 14px 16px; background: var(--sky-1); border-radius: 8px; font-size: var(--fs-small); line-height: 1.45; }
.pair dt { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.pair dt:nth-of-type(2) { color: var(--blue-deep); }
.pair dd:nth-of-type(2) { font-weight: 600; }
.two { max-width: 980px; margin: 8px auto 0; padding-top: 30px; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 64px); }
.two .prose { max-width: none; margin-top: 0; }

/* ---------- Tool section ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 56px); align-items: start; margin-top: 44px; }
.tool__img { position: sticky; top: 24px; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, var(--sky-4), var(--sky-3)); box-shadow: 0 26px 50px -28px rgba(21, 62, 121, 0.6); }
/* The slot is 3:2. If the delivered image has other proportions, change the width and height
   attributes in the HTML and this ratio together. */
.tool__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tool__img figcaption { padding: 12px 18px 14px; background: var(--white); font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.stages { counter-reset: st; }
.stages li { position: relative; padding: 0 0 26px 54px; counter-increment: st; }
.stages li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--blue-deep);
  font-family: var(--mono); font-size: var(--fs-small); box-shadow: inset 0 0 0 1.5px var(--sky-4);
}
.stages li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 6px; width: 1px; background: var(--sky-4); }
.stages h3 { padding-top: 3px; }
.stages p { margin-top: 0.45em; font-size: var(--fs-note); line-height: 1.6; color: var(--ink-soft); }

.order { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid rgba(31, 87, 164, 0.25); }
.order .prose { max-width: none; }
.order__list { counter-reset: o; background: var(--white); border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(21, 62, 121, 0.5); }
.order__list li { position: relative; padding: 16px 22px 16px 58px; counter-increment: o; font-size: var(--fs-note); line-height: 1.55; }
.order__list li + li { border-top: 1px solid var(--rule); }
.order__list li::before { content: counter(o); position: absolute; left: 22px; top: 15px; font-family: var(--display); font-size: 1.375rem; line-height: 1.3; color: var(--blue); }
.order__list b { font-weight: 600; }

.next { margin-top: clamp(44px, 6vw, 64px); }
.next ul { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid rgba(31, 87, 164, 0.25); }
.next li { padding: 16px 0; border-bottom: 1px solid rgba(31, 87, 164, 0.18); }
.next a { font-weight: 600; }
.next span { display: block; margin-top: 3px; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 36px auto 0; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0;
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--mono); font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 42em; padding: 0 0 24px; }

/* ---------- Closing ---------- */
.close { padding: var(--gap) 0; }
.close__in {
  padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 48px); border-radius: var(--radius-lg); text-align: center;
  background:
    radial-gradient(60% 40% at 20% 100%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 36% at 84% 96%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #9dc0ec 0%, #c4dbf5 60%, #e0ecfa 100%);
}
.close__in > p { max-width: 31em; margin: 16px auto 0; color: var(--blue-deep); }
.close .upload, .close .upload + div { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.foot { padding: 44px 0 52px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-soft); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.foot__about { margin-top: 12px; max-width: 26em; }
.foot__h { margin-bottom: 8px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot__legal { margin-top: 36px; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 4px 16px; }
  .top__in { gap: 20px; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .top__in > .btn { order: 1; }
  .top__in { flex-wrap: wrap; gap: 12px 14px; padding-top: 12px; padding-bottom: 12px; }
  .nav { flex: 1 1 100%; order: 3; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 6px; }
  .nav a { display: block; padding: 11px 0; border-top: 1px solid var(--rule); font-size: var(--fs-body); }
}
@media (max-width: 900px) {
  .hero__in, .map__grid, .aside-grid, .first, .tool, .order { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero .upload, .hero .upload + div { margin-left: auto; margin-right: auto; }
  .paper--map, .first__stage, .tool__img { position: static; }
  .paper--map, .first__stage, .tool__img, .sky { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
  .notes, .why, .stages { max-width: 620px; margin-left: auto; margin-right: auto; width: 100%; }
}
@media (max-width: 760px) {
  .paths, .conv, .two, .next ul, .foot__in { grid-template-columns: minmax(0, 1fr); }
  .paths li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .two { gap: 28px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --fs-body: 1.0625rem; --fs-note: 1rem; --fs-lead: 1.1875rem; --fs-h3: 1.1875rem; --fs-paper: 0.8125rem; --fs-paper-name: 1.25rem; --radius-lg: 20px; }
  .top__in { min-height: 64px; gap: 12px 10px; }
  .top__in > .btn { padding: 9px 14px; }
  .nav-toggle { padding: 8px 13px; }
  .btn__opt { display: none; }
  .hero__copy { text-align: left; }
  .upload { margin-top: 26px; padding: 18px; }
  .upload__text { flex-basis: 100%; }
  .upload__action { width: 100%; }
  .paper { padding: 22px 20px 24px; }
  .paper--first { padding-left: 46px; }
  .paper .n { left: -34px; width: 22px; height: 22px; }
  .paper__job { display: block; }
  .paper__job > span { display: block; }
  .sky { padding: 22px 14px 18px; }
  .first__stage { padding: 16px 12px; }
  .field > .wrap { padding: 44px var(--gutter); border-radius: 0; }
  .why li, .note { padding: 20px 18px 22px; }
  .map__pick { justify-content: flex-start; }
  .map__btns { justify-content: flex-start; gap: 6px; }
  .map__btns button { padding: 8px 12px; }
  .map__cap { text-align: left; }
  .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-row span { max-width: none; }
  .prose > h2 { text-align: left; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pair dd + dt { margin-top: 8px; }
  .order__list li { padding: 14px 16px 14px 46px; }
  .order__list li::before { left: 16px; top: 13px; }
  .close__in { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .close .upload { text-align: left; }
  .faq summary { padding: 18px 0; }
}
@media (max-width: 380px) {
  .btn--small { padding: 9px 14px; }
  .brand { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .upload, .nav a, .paper mark, .why li, .map__btns button, .opt main .paths a { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  .top, .upload, .foot, .close, .map__pick, .cta-row { display: none; }
}
