@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
}

:root {
  --canvas: #f8fbfc;
  --ink: #15242b;
  --deep: #0e1b22;
  --paper: #edf4f6;
  --muted: #4d6069;
  --line: #ccdce0;
  --neon: #61fff0;
  --neon-hover: #a8fff6;
  --accent-ink: #00655c;
  --light: #f3fbfc;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 1rem/1.5 "DM Sans", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
::selection { color: var(--deep); background: var(--neon-hover); }
.frame { width: min(100% - 9vw, 1320px); margin-inline: auto; }
.skip:not(:focus), .trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 1rem; left: 1rem; background: var(--canvas); padding: .65rem 1rem; }

.top, .hero, .footer { background: var(--deep); color: var(--light); }
.top :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--neon); }
.top { border-bottom: 1px solid #c5e7ed29; }
.top-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .9rem; }
.top-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-weight: 750; font-size: 1.12rem; letter-spacing: -.055em; white-space: nowrap; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 5px #61fff080); }
.top nav { display: flex; gap: clamp(.7rem, 2.9vw, 2.6rem); }
.top nav a, .footer-inner > a:last-child { font-size: .91rem; text-underline-offset: .27em; text-decoration-color: transparent; }
.top nav a:hover, .footer-inner > a:last-child:hover { text-decoration-color: currentColor; }

.hero { display: grid; grid-template-columns: 45% 55%; overflow: hidden; }
.hero-copy {
  align-self: center;
  padding: clamp(44px, 6vw, 95px) clamp(22px, 3.2vw, 60px) clamp(47px, 6vw, 95px) max(4.5vw, calc((100vw - 1320px)/2));
}
.hero h1 {
  margin: 0 0 clamp(1rem, 2.5vw, 2rem);
  font-size: clamp(3.6rem, 6.25vw, 7.2rem);
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.085em;
}
.hero-copy p { max-width: 390px; margin-bottom: 1.65rem; color: #d2e0e4; font-size: clamp(1.05rem, 1.35vw, 1.24rem); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: .65rem 1.18rem; border: 1px solid transparent; border-radius: 3px; font-weight: 750; text-decoration: none; transition: color .18s, background .18s, border-color .18s; }
.hero-button { background: var(--neon); color: var(--deep); }
.hero-button:hover { background: var(--neon-hover); }
.hero-photo { isolation: isolate; min-height: clamp(430px, 39vw, 625px); position: relative; background: #2d3b42; overflow: hidden; }
.hero-photo img, #snow { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-photo img { object-fit: cover; object-position: 54% center; filter: grayscale(1); }
#snow { pointer-events: none; transition: opacity .23s; }
.snow-off #snow { opacity: 0; }
.snow-switch { position: absolute; bottom: 16px; right: 16px; min-height: 39px; display: inline-flex; align-items: center; gap: .34rem; padding: .35rem .65rem; border: 1px solid #61fff0a3; border-radius: 3px; background: #0e1b22e8; color: var(--light); font-size: .81rem; }
.snow-switch:hover { border-color: var(--neon); }
.snow-switch span:first-child { font-size: 1.08rem; line-height: 1; }
.switch-state { color: var(--neon); }

.matching { padding-block: clamp(38px, 6vw, 92px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.03fr); gap: clamp(24px, 6.3vw, 100px); align-items: start; }
.direction-set { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.direction-set legend, .request h2, .process h2 { margin: 0 0 .55rem; padding: 0; font-size: clamp(2rem, 3.4vw, 3.45rem); font-weight: 650; line-height: 1.04; letter-spacing: -.07em; }
.section-note { margin: 0 0 1.25rem; color: var(--muted); }
.direction-list { border-top: 1px solid var(--line); }
.direction { min-height: 67px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem; padding: .68rem .6rem .68rem 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .17s, padding .17s; }
.direction:hover { background: var(--paper); padding-inline-start: .55rem; }
.direction:has(:checked) { background: #dff8f4; border-bottom-color: #7dbdb4; padding-inline-start: .55rem; }
.direction:has(:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.direction-text { display: grid; gap: .12rem; }
.direction-name { font-weight: 750; font-size: 1.01rem; letter-spacing: -.025em; }
.direction-focus { color: var(--muted); font-size: .91rem; line-height: 1.35; }
.direction input { appearance: none; display: grid; place-items: center; width: 19px; height: 19px; margin: 0 .1rem; border: 1px solid #71878f; border-radius: 50%; cursor: pointer; }
.direction input::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-ink); transform: scale(0); transition: transform .17s; }
.direction input:checked { border-color: var(--accent-ink); }
.direction input:checked::after { transform: scale(1); }
.direction-error { margin: .6rem 0 0; color: #96234c; font-size: .91rem; }
.direction-error:empty, .form-status:empty, .direction-status:empty { display: none; }
.mobile-continue { display: none; }

.request { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: clamp(19px, 2.75vw, 43px); }
.request .section-note { margin-bottom: 1.15rem; }
.request .direction-status { color: var(--accent-ink); margin: -.15rem 0 .8rem; font-size: .89rem; font-weight: 750; }
form { display: grid; gap: .92rem; }
form label:not(.consent) { display: grid; gap: .32rem; font-size: .89rem; font-weight: 750; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
textarea, form input:not([type="checkbox"]) { min-width: 0; width: 100%; padding: .62rem .68rem; color: var(--ink); background: var(--canvas); border: 1px solid #8ea5ad; border-radius: 3px; font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; min-height: 93px; }
textarea::placeholder, input::placeholder { color: var(--muted); }
.form-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.consent { display: flex; align-items: start; gap: .62rem; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.consent input { display: grid; place-items: center; appearance: none; width: 18px; height: 18px; margin: .1rem 0 0; flex: none; border: 1px solid #708994; border-radius: 4px; background: var(--canvas); cursor: pointer; }
.consent input::after { content: ""; width: 8px; height: 5px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); }
.consent input:checked { border-color: var(--accent-ink); background: var(--accent-ink); }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.mobile-continue { background: var(--neon); color: var(--deep); border-color: #70b0ac; justify-self: start; }
.mobile-continue:hover { background: var(--neon-hover); border-color: var(--accent-ink); }
.submit {
  min-height: 48px;
  padding: .6rem 1.15rem;
  border: 1px solid #225f5e;
  border-radius: 5px;
  background: var(--deep);
  color: var(--light);
  box-shadow: inset 0 -2px #61fff0bc;
  font-size: .91rem;
  white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.submit:hover:not(:disabled) { background: #17383b; border-color: #398983; color: var(--neon-hover); box-shadow: inset 0 -2px var(--neon); }
.submit:disabled { opacity: .65; cursor: wait; }
.form-status { border-left: 2px solid var(--accent-ink); padding: .32rem .56rem; margin: 0; color: var(--accent-ink); }
.form-status.error { color: #96234c; border-color: #96234c; }

.process { display: grid; grid-template-columns: minmax(0,.62fr) minmax(0,1.7fr); gap: 1.3rem; border-top: 1px solid var(--line); padding-block: clamp(30px, 4.2vw, 55px); }
.process h2 { font-size: clamp(2rem, 3vw, 3.05rem); }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding-top: .2rem; }
.process-steps > div { border-left: 1px solid var(--line); padding-left: .7rem; }
.process h3 { margin: 0 0 .28rem; font-size: .98rem; letter-spacing: -.02em; }
.process p { margin: 0; color: var(--muted); font-size: .91rem; }
.footer-inner { min-height: 66px; }

@media (max-width: 1000px) {
  .hero-copy { padding-right: 18px; }
  .matching { gap: 2rem; }
  .form-pair { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 1000px), (max-width: 540px) {
  .form-actions { grid-template-columns: 1fr; gap: .92rem; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .top-inner { min-height: 60px; }
  .brand { gap: .38rem; font-size: 1.02rem; }
  .brand img { width: 35px; height: 28px; }
  .top nav { gap: .65rem; }
  .top nav a { font-size: .8rem; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 35px 16px 29px; }
  .hero h1 { max-width: 520px; font-size: clamp(3.1rem, 12vw, 5.6rem); }
  .hero-copy p { margin-bottom: 1.1rem; font-size: 1rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.62; }
  .snow-switch { bottom: 10px; right: 10px; min-height: 34px; }
  .matching, .process { grid-template-columns: 1fr; }
  .matching { gap: 24px; }
  .mobile-continue { display: inline-flex; margin-top: .9rem; }
  .form-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 430px) {
  .form-pair { grid-template-columns: 1fr; }
  .top nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
