.ap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100svh; }
.scene { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gx) 32px; overflow: hidden; isolation: isolate; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.scene .veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, rgba(13, 26, 21, .15), rgba(13, 26, 21, .7)), linear-gradient(to bottom, rgba(13, 26, 21, .6), transparent 25%, transparent 70%, rgba(13, 26, 21, .85)); }
.scene .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scene .logo img { height: 36px; width: auto; }
.scene .links { display: flex; gap: 8px; }
.scene .links a { height: 46px; padding: 0 18px; border-radius: 999px; display: grid; place-items: center; font-size: 14.5px; }
.scene .tilt { padding: 24px 0; }
.scene .mcard { width: min(92%, 540px); }
.scene .note { font-size: 15px; color: color-mix(in oklab, var(--cream) 82%, transparent); max-width: 44ch; }

.flow { position: relative; padding: calc(env(safe-area-inset-top, 0px) + 40px) var(--gx) 48px clamp(32px, 6vw, 110px); display: grid; grid-template-rows: auto 1fr; gap: 32px; background: var(--night); }
.prog { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); padding-top: 6px; }
.prog i { flex: 1; height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.prog b { display: block; height: 100%; width: 20%; background: var(--gold); transition: width .9s var(--ease); }
#apply-form { display: grid; grid-template-rows: 1fr auto; align-content: center; max-width: 640px; gap: 40px; }
.step { display: none; gap: 22px; align-content: center; }
.step .q + .hint { margin-top: -6px; margin-bottom: 8px; }
.step.on { display: grid; }
.q { font: 300 clamp(40px, 4.6vw, 76px)/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.035em; padding: 0; margin: 0 0 4px; }
.hint { color: var(--muted); font-size: 17px; max-width: 46ch; }
.hint.small { font-size: 14px; }
.lf.big input { font-size: clamp(24px, 2.4vw, 34px); padding-top: 30px; }
.lf.big label { font-size: clamp(20px, 2vw, 26px); top: 32px; }
.lf.tel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 14px; }
.lf.tel .cc { font-size: clamp(24px, 2.4vw, 34px); padding-bottom: 12px; color: var(--wheat); border-bottom: 1px solid var(--hair); line-height: 1.4; }
.lf.tel label { inset-inline-start: calc(4.2ch + 14px); }
.lf.tel .err { grid-column: 1 / -1; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 6px; padding: 18px; min-height: 108px; border-radius: 18px; cursor: pointer; transition: background .3s, box-shadow .3s, color .3s; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile b { font: 300 28px/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.02em; }
.tile small { font-size: 13.5px; color: var(--muted); }
.tile:hover { background: color-mix(in oklab, var(--cream) 14%, transparent); }
.tile:has(input:checked) { background: var(--cream); color: var(--night); }
.tile:has(input:checked) small { color: color-mix(in oklab, var(--night) 70%, transparent); }
.tile:has(input:focus-visible) { outline: 2px solid var(--wheat); outline-offset: 3px; }
.yn { display: flex; gap: 10px; flex-wrap: wrap; }
.yn label { position: relative; height: 56px; padding: 0 28px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; font-size: 17px; }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn label:has(input:checked) { background: var(--cream); color: var(--night); }
.yn label:has(input:focus-visible) { outline: 2px solid var(--wheat); outline-offset: 3px; }
.lf[hidden] { display: none; }
.review { margin: 0; border-top: 1px solid var(--hair); }
.review div { display: grid; grid-template-columns: 9em minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.review dt { color: var(--muted); font-size: 15px; }
.review dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.review button { background: none; border: 0; color: var(--wheat); cursor: pointer; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav .txt { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; min-height: 48px; padding: 0; }
.nav .txt:hover { color: var(--cream); }
.nav .enter { margin-inline-start: auto; font-size: 14px; color: var(--muted); }
.flow.sent-box .prog { visibility: hidden; }
.flow.sent-box #apply-form { display: none; }
.done { align-content: center; gap: 22px; max-width: 620px; }
.done .btn { justify-self: start; margin-top: 12px; }

@media (max-width: 900px) {
  .ap { grid-template-columns: minmax(0, 1fr); }
  .scene { position: relative; height: auto; padding-bottom: 20px; }
  .scene .links .back { display: none; }
  .scene .tilt { padding: 22px 0 6px; }
  .scene .mcard { width: min(100%, 420px); }
  .scene .note { display: none; }
  .flow { padding: 26px var(--gx) calc(env(safe-area-inset-bottom, 0px) + 28px); gap: 26px; }
  #apply-form { align-content: start; gap: 32px; }
  .q { font-size: 40px; }
  .hint { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 96px; padding: 16px; }
  .tile b { font-size: 25px; }
  .nav .enter { display: none; }
  .nav { position: sticky; bottom: 0; z-index: 3; padding: 18px 0 calc(env(safe-area-inset-bottom, 0px) + 12px); margin-bottom: calc(-1 * env(safe-area-inset-bottom, 0px) - 12px); background: linear-gradient(to bottom, transparent, var(--night) 35%); }
  .nav .btn { margin-inline-start: auto; }
  .review div { grid-template-columns: minmax(0, 1fr) auto; }
  .review dt { grid-column: 1 / -1; margin-bottom: -10px; }
}
.count { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 18px; }
.cbtn { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--cream); transition: background .3s, opacity .3s; }
.cbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cbtn:hover { background: color-mix(in oklab, var(--cream) 18%, transparent); }
.cbtn:disabled { opacity: .35; cursor: default; }
.count output { min-width: 2ch; text-align: center; font: 300 clamp(56px, 6vw, 84px)/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; font-variant-numeric: tabular-nums; }
.count .clab { color: var(--muted); font-size: 16px; }
.mcard .fam { margin: 6px 0 0; }
@media (max-width: 900px) { .count { grid-template-columns: auto auto auto; } .count .clab { grid-column: 1 / -1; } }
