/* The gift page, its card and the family page (with /legal/legal.css). */
main { max-width: 560px; }
.lead { margin: 0 0 28px; color: var(--muted); }
.form { display: grid; gap: 10px; margin: 0 0 20px; }
.form label { font-size: 14px; font-weight: 600; }
.form input[type="text"], .form input[type="password"], .form input:not([type]) { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.form input:focus-visible, button:focus-visible, .plan:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.tick { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.primary { justify-self: start; padding: 10px 22px; border: 0; border-radius: 999px; background: #ff5a36; color: #fff; font-weight: 600; font-size: 15px; }
.quiet { justify-self: start; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; }
.link { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; font-size: 14px; }
.danger { color: #b3261e; }
.note { margin: 0; min-height: 1.4em; color: var(--muted); font-size: 14px; }
.note.is-wrong { color: #b3261e; }
.small { margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.small li { margin: 4px 0; }
[hidden] { display: none !important; }

/* The two gifts to choose from. */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 8px; }
.plan { position: relative; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan:has(input:disabled) { opacity: .5; cursor: default; }
.plan b { font-size: 17px; }
.plan .cost { font: 700 28px/1.2 "Inter Tight", system-ui, sans-serif; letter-spacing: -0.02em; }
.plan small { color: var(--muted); }
@media (max-width: 460px) { .plans { grid-template-columns: 1fr; } }

/* The family page's profiles. */
.profiles { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.profile { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.profile header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.profile header b { font-size: 17px; }
.profile header span { color: var(--muted); font-size: 14px; }
.profile .row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.profile .form { margin: 4px 0 0; }
.choices { display: grid; gap: 6px; margin: 4px 0; }
.ai-choice { display: grid; gap: 8px; margin: 6px 0 2px; padding: 0; border: 0; }
.ai-choice legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.ai-option { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400 !important; cursor: pointer; }
.ai-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ai-option small { grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.4; }
.ai-later { color: var(--muted); font-size: 13px; }
section + section { margin-top: 36px; }

/* The card: line art only, so it prints the same without colour, and narrow enough for A5. */
.card { position: relative; width: 128mm; max-width: 100%; margin: 28px auto; padding: 33mm 12mm 10mm; border: 1.2pt solid var(--ink); border-radius: 5mm; background: #fff; color: var(--ink); text-align: center; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 2.2mm; border: .5pt solid var(--ink); border-radius: 3.4mm; pointer-events: none; }
.card .bow { position: absolute; top: 0; left: 50%; width: 60mm; height: 30mm; transform: translateX(-50%); fill: #fff; stroke: #ff5a36; stroke-width: 1.4; stroke-linejoin: round; }
.card .for { margin: 0; font-size: 9pt; letter-spacing: .22em; text-transform: uppercase; }
.card .name { margin: 2mm 0 5mm; font: 700 30pt/1.1 "Inter Tight", system-ui, sans-serif; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.card .what { margin: 0; font: 700 15pt/1.3 "Inter Tight", system-ui, sans-serif; }
.card .about { margin: 3mm auto 0; max-width: 92mm; font-size: 10.5pt; line-height: 1.45; }
.card .code { margin: 7mm auto 2mm; padding: 4mm 2mm; border: 1pt dashed var(--ink); border-radius: 3mm; font: 600 15pt/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; white-space: nowrap; }
.card .where { margin: 0; font-size: 10.5pt; }
.card .where b { font-size: 12pt; }
.card .fine { margin: 5mm auto 0; max-width: 96mm; font-size: 8pt; line-height: 1.4; }
.card .brand { margin-top: 6mm; font-size: 13pt; }
.card .brand img { width: 6mm; height: 6mm; }
.card-actions { display: grid; gap: 8px; justify-items: center; text-align: center; }
.card-actions .primary { justify-self: center; }
.profile .note:empty { display: none; }
@page { margin: 10mm; }
@media print {
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  main > :not(.card) { display: none !important; }
  .card { margin: 0 auto; break-inside: avoid; }
  .card .bow { stroke: #000; }
}
