/* Public pages (sign-up, messages, privacy, terms, HQ), on top of style.css */
.site-top { display: block; padding-bottom: 40px; }
.brand { text-decoration: none; }
.hero-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero { max-width: 640px; }
.hero h1 { font-size: 48px; line-height: 1.08; margin: 6px 0 12px; text-wrap: balance; }

/* The example list beside the sign-up box */
.preview {
  background: var(--surface); color: var(--ink); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); border-top: 4px solid var(--red);
}
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.preview-title { font-family: var(--serif); font-size: 22px; color: var(--green); }
.preview-days { font-size: 12px; color: var(--muted); white-space: nowrap; }
.preview-money { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin: 12px 0 6px; }
.preview-money strong { color: var(--green); }
.preview-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.preview-bar div { width: 68%; height: 100%; background: var(--green); border-radius: 999px; }
.preview-list { list-style: none; padding: 0; margin: 14px 0 0; }
.preview-list li {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.preview-list li:last-child { border-bottom: 0; }
.preview-list .who { font-weight: 600; }
.preview-list .what { color: var(--ink-2); }
.preview-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.lede { font-size: 18px; color: var(--band-muted); margin: 0 0 22px; }
.fine { font-size: 13px; color: var(--band-muted); margin: 10px 0 0; }
.signin { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.signin input {
  flex: 1; min-width: 220px; font: inherit; font-size: 16px; padding: 11px 16px;
  border-radius: 999px; border: 1px solid var(--band-line); background: var(--surface); color: var(--ink);
}
.signin input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.signin .btn { padding: 11px 22px; font-size: 15px; }
.form-error.on-band { color: #ffd9dd; margin-top: 10px; }
.on-band { color: var(--band-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site { gap: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: var(--red-ink); font-weight: 600; margin-bottom: 10px;
}
.step h2 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.features ul { padding-left: 18px; margin: 10px 0 0; color: var(--ink-2); }
.features li { margin-bottom: 6px; }
.features p { color: var(--ink-2); }

.message { max-width: 560px; margin: 0 auto; }
.message h1 { font-size: 30px; color: var(--green); margin-bottom: 10px; }
.message .btn { display: inline-block; text-decoration: none; }
.message .signin input { border-color: var(--line); }
.message { text-align: center; padding: 32px 28px; }
.message .signin { margin: 0 auto 12px; }
.envelope {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-size: 26px;
}
.message-actions { display: grid; gap: 10px; justify-items: center; margin-top: 18px; font-size: 14px; }
.message-actions .linkish { font-size: 14px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 34px; color: var(--green); }
.prose h2 { margin-top: 24px; font-size: 19px; }
.prose p, .prose li { color: var(--ink-2); }
.prose .muted { color: var(--muted); font-size: 13px; }

.site-foot a { color: var(--muted); }
.site-foot { padding: 0 16px 40px; }

/* Dashboard additions */
.address-box { display: grid; gap: 6px; justify-items: start; }
.address-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.address-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.address {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; color: var(--band-ink);
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--band-line); padding: 6px 12px; border-radius: 8px;
  overflow-wrap: anywhere;
}
.band .btn.small { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.linkish.on-band { color: var(--band-ink); text-decoration: underline; }
.start-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.start-steps li { display: flex; gap: 12px; align-items: flex-start; }
.start-steps .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--bar-gray); color: var(--green-ink); font-size: 13px;
}
.start-steps li.done .tick { background: var(--green); border-color: var(--green); }
.start-steps li.done strong { color: var(--muted); text-decoration: line-through; }
.forward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.forward-grid h3 { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--green); margin: 0 0 8px; }
.forward-grid ol { padding-left: 20px; margin: 0 0 8px; color: var(--ink-2); }
.forward-grid li { margin-bottom: 6px; }
.forward-grid code, .copy-line code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--surface-2);
  padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}
.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.gmail-code {
  background: var(--evergreen-soft, var(--pill-shipped-bg)); border: 1px solid var(--green); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-weight: 600; color: var(--green);
}
.gmail-code code { font-size: 18px; letter-spacing: 0.08em; }
.add-person { display: flex; gap: 8px; margin-top: 12px; max-width: 420px; }
.add-person input {
  flex: 1; font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.add-person input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.budget-total { padding: 2px 8px; font-family: var(--serif); }
.budget-total input { width: 110px; font-family: var(--serif); font-size: 24px; color: var(--green); text-align: left; }
.account-foot { display: grid; gap: 6px; justify-items: center; }
.account-foot p { margin: 0; }
.foot-links a { color: var(--muted); }
.foot-links .linkish { color: var(--muted); font-size: 13px; }
.delete-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 620px; }
.delete-form p { width: 100%; text-align: center; color: var(--red); }
.delete-form input { font: inherit; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--red); }
@media (max-width: 760px) { .forward-grid { grid-template-columns: 1fr; } }

/* Getting started: the setup happens right in the list */
.start-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; flex: 1; min-width: 0; }
.start-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.start-inline input[type="text"]:not([data-total-budget]) {
  font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; width: 240px; max-width: 100%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.start-inline input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.start-inline .money-input input { width: 90px; }
.start-address {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--surface-2);
  padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere;
}
.start-body > .linkish { justify-self: start; }
.people:has(tbody:empty) thead { display: none; }
@media (max-width: 600px) {
  .start-inline { flex-wrap: nowrap; }
  .start-inline input[type="text"]:not([data-total-budget]) { flex: 1; min-width: 0; width: auto; }
  .start-address { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.start-steps li.done .start-body > strong { color: var(--muted); text-decoration: line-through; }
.start-steps li.done strong { text-decoration: none; }

/* Until the first order arrives */
.orders-empty { display: none; color: var(--ink-2); margin: 4px 0 8px; }
body.no-orders .needs-orders { display: none !important; }
body.no-orders .orders-empty { display: block; }

/* Renaming items, tags, quieter remove links */
.item-name { cursor: text; }
.item-name:hover { text-decoration: underline dotted var(--muted); }
.rename-input {
  font: inherit; font-size: 14px; width: 100%; min-width: 200px; padding: 5px 8px; border-radius: 8px;
  border: 1px solid var(--gold); background: var(--surface); color: var(--ink);
}
.rename-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.tag-hand { background: var(--pill-shipped-bg); color: var(--pill-shipped); }
.people .row-actions .linkish { color: var(--muted); font-weight: 400; }
.people .row-actions .linkish:hover, .linkish[data-armed] { color: var(--red); }

/* Every gift has arrived or is wrapped */
.magic {
  text-align: center; padding: 26px 22px;
  border-color: color-mix(in srgb, var(--gold) 60%, var(--line));
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}
.magic-stars { margin: 0; color: var(--gold); font-size: 15px; letter-spacing: 0.5em; padding-left: 0.5em; }
.magic h2 { text-wrap: balance; margin: 6px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--green); }
.magic p:last-child { margin: 0; color: var(--ink-2); }

/* Paying once for the season */
.unlock {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-color: color-mix(in srgb, var(--red) 40%, var(--line)); border-top: 4px solid var(--red);
}
.unlock h2 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--green); }
.unlock p { margin: 0 0 6px; color: var(--ink-2); }
.unlock p.hint { margin: 0; color: var(--muted); font-size: 13px; }
.unlock .btn { flex: none; }
.plan-line { margin: -6px 0 12px; }
.plan-line .linkish { font-size: inherit; }
@media (max-width: 600px) {
  .unlock { flex-direction: column; align-items: stretch; gap: 14px; }
  .unlock .btn { width: 100%; }
}

/* Phones: cards instead of wide tables, and a shorter top */
@media (max-width: 600px) {
  .top { padding: 18px 16px 16px; gap: 14px; }
  .top h1 { font-size: 28px; }
  .countdown { margin-top: 4px; font-size: 14px; }
  .address-box { width: 100%; gap: 4px; }
  .address-row { flex-wrap: nowrap; width: 100%; }
  .address {
    flex: 1; min-width: 0; font-size: 12.5px; padding: 6px 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .people thead, .orders thead, .sort-hint { display: none; }
  .table-scroll { overflow: visible; margin: 0; padding: 0; }
  .people, .people tbody, .orders, .orders tbody { display: block; width: 100%; }
  .people tr, .orders tr:not(.split-row) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
    background: var(--surface);
  }
  .people td, .orders td { display: block; border: 0; padding: 0; text-align: left; min-width: 0; }
  .people td.num, .orders td.num { text-align: left; }
  td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  }
  .people td.name, .people td.ideas, .orders td.store, .orders td.items { grid-column: 1 / -1; }
  .people td.name { font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
  .people td.name .row-actions { margin: 0; }
  .people td.ideas { width: auto; min-width: 0; padding: 0; }
  .people td.ideas textarea { margin-left: 0; width: 100%; }
  .people td.center, .orders td.center { text-align: left; }
  .orders td.store { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .orders td.store .ordnum { display: inline; }
  .orders td.items { min-width: 0; }
  .orders tr.is-split td { background: transparent; }
  .orders tr.split-row { display: block; }
  .orders tr.split-row td { display: block; border-radius: 12px; margin-bottom: 10px; }
  .split-panel { width: auto; position: static; }
  .for-select { max-width: 100%; width: 100%; }
}

/* HQ */
.hq-hero h1 { font-size: 38px; }
.hq-table { width: 100%; }
.free-form { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.free-form input {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.free-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.free-list li { grid-template-columns: 1fr auto; align-items: center; }
.tag-free { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); }
.tag-paid { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.hq-table td, .hq-table th { padding: 8px 10px; }
.hq-sub { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--green); margin: 16px 0 4px; }

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 32px; }
  .preview { max-width: 460px; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 36px; }
  .steps, .features { grid-template-columns: 1fr; }
  .signin .btn { flex: 1 1 100%; }
}
