*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--display);font-size:14px;display:flex;flex-direction:column}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
#status,#warnings{padding:10px 20px;color:var(--ink-2)}
#status[data-error=true]{color:#9b2929}
#warnings{background:var(--note-bg);white-space:pre-line}
#status:empty{display:none}
main{flex:1 0 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:150px 12px}
/* An explicit display beats the hidden attribute, and the link-error page hides main. */
main[hidden]{display:none}
.plans-slot{width:min(100%,calc(max(200px,100dvh - 300px) * 3 / 2))}
@media(max-width:650px){.plans-slot{width:100%}main{min-height:300px}}
/* Unlock prompt: fills the stage in place of the scene until the code is accepted. */
.unlock{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center}
.unlock-title{margin:0;font:600 16px/1.3 var(--display);color:var(--ink)}
.unlock-hint{margin:0;max-width:34ch;font:400 13px/1.5 var(--display);color:var(--ink-3)}
.unlock-label{font:500 12px/1.5 var(--display);color:var(--ink-2)}
.unlock-code{width:min(220px,100%);padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);
  color:var(--ink);font:600 20px/1.2 var(--display);letter-spacing:.28em;text-align:center;font-variant-numeric:tabular-nums}
.unlock-code:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.unlock-code:disabled{color:var(--ink-3);background:var(--surface-2)}
.unlock-submit{min-width:136px;padding:9px 18px;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg);font-weight:600}
.unlock-submit:hover:not(:disabled){background:var(--accent-soft);color:var(--ink)}
.unlock-submit:disabled{color:var(--ink-3);cursor:default}
.unlock-error{margin:0;max-width:34ch;font:500 13px/1.5 var(--display);color:#9b2929}

/* Link-error page: a port of the marketing site's 404 for the failures that leave a
   recipient with nothing to look at. Split panel above 768px — photograph left, Foundry
   field right — stacked below it, matching the breakpoint and the proportions the 404 uses. */
.link-error{flex:1 0 auto;min-width:0;display:flex;flex-direction:column;background:var(--foundry);color:var(--canvas);overflow:hidden}
.link-error-art{position:relative;height:35vh;flex:0 0 auto;overflow:hidden}
.link-error-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* A light Foundry wash keeps the photograph in the page's palette and gives the mark
   something to sit against. */
.link-error-wash{position:absolute;inset:0;background:linear-gradient(to top,rgb(11 17 29/.7),rgb(11 17 29/.1) 55%,transparent)}
.link-error-mark{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);height:110px;color:var(--canvas);opacity:.25;pointer-events:none}
.link-error-copy{flex:1 0 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:32px 24px;text-align:center}
.link-error-inner{width:100%;max-width:36rem;display:flex;flex-direction:column;align-items:center}
.link-error-heading{margin:0 0 16px;font:500 2.25rem/1.15 var(--display);letter-spacing:-.02em;color:var(--canvas)}
.link-error-rule{width:64px;height:4px;margin-bottom:16px;background:var(--signal)}
.link-error-message{margin:0;font:300 1rem/1.6 var(--display);color:rgb(252 252 252/.7)}
.link-error-action{margin-top:32px;display:inline-flex;align-items:center;justify-content:center;gap:12px;
  padding:12px 24px;border-radius:4px;background:var(--canvas);color:var(--foundry);
  font:500 1rem/1 var(--display);letter-spacing:.1em;text-transform:uppercase;
  transition:transform .3s}
.link-error-action:hover{transform:scale(1.05)}
.link-error-action:focus-visible{outline:2px solid var(--signal);outline-offset:3px}
.link-error-icon{width:1.125rem;height:1.125rem;flex:0 0 auto}
@media(prefers-reduced-motion:reduce){.link-error-action{transition:none}.link-error-action:hover{transform:none}}
@media(min-width:769px){
  .link-error{flex-direction:row}
  .link-error-art{width:50%;height:auto;align-self:stretch}
  .link-error-mark{left:48px;bottom:48px;transform:none;height:200px}
  .link-error-copy{width:50%;align-items:flex-start;padding:48px clamp(48px,7vw,96px);text-align:left}
  .link-error-inner{align-items:flex-start}
  .link-error-heading{margin-bottom:32px;font-size:3.75rem}
  .link-error-rule{width:80px;margin-bottom:32px}
  .link-error-message{font-size:1.25rem}
  .link-error-action{margin-top:48px;padding:16px 32px}
}
