/**
 * Interior pages in the Brickoodle kid theme.
 *
 * Loads on top of alternate.css, which owns the design tokens plus the shared
 * nav, logo, button and footer components — so sign-in, sign-up, the account
 * page and the quote page inherit exactly the homepage's chrome rather than a
 * lookalike. This file only adds what the homepage has no use for: a solid
 * page shell, form controls, and the quote table.
 */

/* The homepage nav sits over a hero image; interior pages have no hero, so the
   bar needs its own surface and the page needs room beneath it. */
body.kid-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(99,199,255,.35) 0%, transparent 60%),
    radial-gradient(680px 460px at 4% 6%, rgba(255,216,77,.34) 0%, transparent 58%),
    radial-gradient(700px 520px at 62% 108%, rgba(121,214,75,.24) 0%, transparent 62%),
    var(--kid-cream);
}
body.kid-page .kid-nav {
  background: rgba(255, 253, 246, .9);
  border-bottom-color: rgba(23, 50, 77, .13);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.kid-page-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(110px, 15vh, 150px) clamp(18px, 5vw, 40px) clamp(60px, 9vh, 96px);
}
.kid-page-main.is-narrow { max-width: 560px; }

/* --- headings ---------------------------------------------------------- */

.kid-page-head { margin-bottom: clamp(26px, 4vw, 40px); }
.kid-page-head h1,
.kid-page-head h2 {
  margin: 0;
  font-family: var(--kid-display);
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: .96;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.kid-page-head p {
  margin: 15px 0 0;
  max-width: 56ch;
  color: var(--kid-muted);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.5;
}

/* --- the chunky card every panel is built from ------------------------- */

.kid-card {
  position: relative;
  padding: clamp(22px, 3.4vw, 34px);
  border: 3px solid var(--kid-navy);
  border-radius: 26px;
  background: var(--kid-paper);
  box-shadow: 0 10px 0 var(--kid-navy);
}
.kid-card > h2,
.kid-card > h3 {
  margin: 0 0 10px;
  font-family: var(--kid-display);
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.1;
}
.kid-card p { margin: 0; color: var(--kid-muted); font-weight: 700; line-height: 1.55; }
.kid-card-navy { color: #fff; background: var(--kid-navy); box-shadow: 0 10px 0 #091b2b; }
.kid-card-navy p { color: rgba(255,255,255,.72); }
/* A rainbow cap that reads as a row of studs across the top of the card. */
.kid-card-top {
  position: absolute;
  inset: -3px -3px auto;
  height: 12px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg,
    var(--kid-coral) 0 25%, var(--kid-yellow) 25% 50%,
    var(--kid-lime) 50% 75%, var(--kid-sky) 75% 100%);
}

/* --- forms -------------------------------------------------------------- */

.kid-form { display: grid; gap: 17px; margin-top: 22px; }
.kid-field { display: grid; gap: 7px; }
.kid-field label {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.kid-field input,
.kid-field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 3px solid var(--kid-navy);
  border-radius: 15px;
  background: #fff;
  color: var(--kid-ink);
  font: inherit;
  font-size: 16px;          /* 16px keeps iOS from zooming on focus */
  font-weight: 700;
}
.kid-field input::placeholder { color: rgba(83,104,122,.62); font-weight: 600; }
.kid-field input:focus-visible,
.kid-field select:focus-visible { outline: 4px solid var(--kid-yellow); outline-offset: 2px; }
.kid-check {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.kid-check input { width: 22px; height: 22px; accent-color: var(--kid-coral); }
.kid-form .kid-button { width: 100%; margin-top: 4px; }
.kid-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.28);
  opacity: .58;
  transform: none;
  box-shadow: 0 3px 0 rgba(23, 50, 77, .35);
}
.kid-alt { margin: 20px 0 0; font-size: 14px; font-weight: 800; text-align: center; }
.kid-card p.kid-alt { margin-top: 20px; }
.kid-alt a { color: var(--kid-purple); text-decoration: underline; text-underline-offset: 3px; }
.auth-help .kid-nav { grid-template-columns: 1fr auto; }
.auth-help .kid-page-head h1 { font-size: clamp(36px, 4.5vw, 54px); }

/* --- notices ------------------------------------------------------------ */

.kid-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 3px solid var(--kid-navy);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.kid-notice-bad { background: #ffe2de; }
.kid-notice-warn { background: var(--kid-yellow); }

/* --- account grid ------------------------------------------------------- */

.kid-build-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.kid-build-grid .kid-card { padding-top: 30px; }
.kid-build-meta {
  margin: 0 0 18px;
  color: var(--kid-muted);
  font-size: 14px;
  font-weight: 800;
}
/* The hidden attribute must always win, even against class display rules —
   checkout-success toggles its download buttons with [hidden]. */
[hidden] { display: none !important; }

.kid-build-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.kid-build-actions .kid-button { min-height: 44px; padding: 10px 17px; font-size: 13px; }
.kid-empty { text-align: center; padding: clamp(38px, 6vw, 60px); }
.kid-empty .kid-button { margin-top: 20px; }

/* --- quote table -------------------------------------------------------- */

.kid-quote { width: 100%; border-collapse: collapse; }
.kid-quote td { padding: 13px 0; border-bottom: 2px dashed rgba(23,50,77,.2); vertical-align: top; }
.kid-quote .kid-quote-label b { display: block; font-size: 15px; font-weight: 900; }
.kid-quote .kid-quote-label span {
  display: block;
  margin-top: 3px;
  color: var(--kid-muted);
  font-size: 13px;
  font-weight: 700;
}
.kid-card-navy .kid-quote td { border-bottom-color: rgba(255,255,255,.22); }
.kid-card-navy .kid-quote .kid-quote-label span { color: rgba(255,255,255,.66); }
.kid-quote .kid-quote-amount {
  text-align: right;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.kid-quote .kid-quote-total td {
  padding-top: 17px;
  border-bottom: none;
  font-family: var(--kid-display);
  font-size: clamp(20px, 2.2vw, 25px);
}
.kid-split { display: grid; gap: 22px; grid-template-columns: 1.12fr .88fr; align-items: start; }
.kid-steps-list { margin: 14px 0 0; padding-left: 22px; color: var(--kid-muted); font-weight: 700; line-height: 1.75; }
.kid-steps-list b { color: var(--kid-ink); }
.kid-card-flag { border-left-width: 11px; border-left-color: var(--kid-coral); }

@media (max-width: 860px) {
  .kid-split { grid-template-columns: 1fr; }
}
