/* ============================================================
   Quizsearcher — account area (landing, auth, profile, billing)
   Page-specific layout for Phase 2. Shared primitives (.panel,
   .btn, .kv, .badge, .toggle-row/.switch, .alert, utilities)
   live in base.css — use those, don't fork them here.
   ============================================================ */

/* ---- Landing hero ------------------------------------------------ */
.hero { background: var(--parchment); border: 1px solid #b9b3a7; border-top: 4px solid var(--red); box-shadow: inset 0 0 30px rgba(91,68,35,.05); padding: 34px 26px; text-align: center; margin-bottom: 22px; }
.hero h1 { font-size: 38px; margin-bottom: 8px; }
.hero p { max-width: 640px; margin: 0 auto 18px; color: var(--ink-2); font-size: 15px; }
.hero-search { display: flex; max-width: 600px; margin: 0 auto; position: relative; text-align: left; }
.hero-search input { flex: 1; min-width: 0; border: 1px solid var(--red-dark); border-right: 0; padding: 11px 13px; font-size: 15px; outline: none; }
.hero-search button { border: 1px solid var(--red-dark); background: var(--red); color: #fff; font-weight: 700; padding: 0 22px; cursor: pointer; }
.hero-search button:hover { background: var(--red-dark); }
.hero-stats { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: #6b6459; }

/* ---- Landing feature grid ---------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.feat { border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; padding: 15px; }
.feat h3 { margin: 0 0 5px; }
.feat p { font-size: 13px; color: var(--muted); margin: 0; }
.feat .k { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 7px; }

/* ---- Pricing tiers (landing + signup) ---------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border: 1px solid var(--line); border-top: 4px solid var(--line-strong); background: #fff; display: flex; flex-direction: column; }
.tier.premium { border-top-color: #14338e; }
.tier.elite { border-top-color: var(--red); }
.tier-h { padding: 15px; border-bottom: 1px solid var(--line); }
.tier-h h3 { font-size: 20px; margin: 0; }
.tier-price { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 30px; }
.tier-price b { font-size: 22px; color: var(--ink); font-family: var(--serif); font-weight: 400; }
.tier-feats { list-style: none; margin: 0; padding: 15px; flex: 1; font-size: 13px; }
.tier-feats li { padding: 5px 0 5px 20px; position: relative; color: var(--ink-2); }
.tier-feats li::before { content: "+"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.tier-feats li.inherit { color: var(--muted); }
.tier-feats li.inherit::before { content: "\2713"; color: var(--faint); }
/* One height for all three feet, whatever is in them. `.tier-feats` grows to
   push the foot down, so the cards already ended level — but a foot holding a
   36px button was taller than one holding a badge or a line of small text, so
   the rules above them landed at three different heights. Centring keeps the
   badge and the note optically on the button's line. 66px = the button's 36px
   plus this padding. */
.tier-foot { padding: 15px; border-top: 1px solid var(--line); min-height: 66px; display: flex; align-items: center; }
.tier-foot .btn { width: 100%; }
.tier.sel { box-shadow: 0 0 0 2px var(--red) inset; }

/* Signup: the whole tier card is a radio label. Reset the bold + block that
   base.css gives <label>, which would otherwise bleed into the card text. */
.tier-pick { cursor: pointer; font-weight: 400; margin-bottom: 0; }
.tier-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tier-pick:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
/* Selected card: replace the top border colour rather than layering a ring
   inside it, so the two don't read as a doubled edge. */
.tier-pick.sel { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }

/* ---- Account page ------------------------------------------------ */
.acct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.acct-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.acct-head h1 { margin: 0; }
/* Baseline is right for the "member since" text beside a 27px heading, but
   wrong for the badge: aligning a bordered box on ITS text baseline hangs the
   box below the heading's. Centre this one item against the heading instead. */
.acct-head .badge { align-self: center; }
.tokenbox { font-family: var(--mono); font-size: 12px; background: var(--soft); border: 1px solid var(--line); padding: 8px 10px; word-break: break-all; }

@media (max-width: 900px) {
  .feat-grid, .tiers { grid-template-columns: 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
  .hero { padding: 26px 18px; }
  .hero h1 { font-size: 30px; }
}
