/* =============================================================
   Kid.ai — www.kid.ai holder page
   Calm parchment palette. Lora + Inter. Single-screen on desktop.
   ============================================================= */

:root {
  --paper:        #F5EFE4;
  --paper-warm:   #FBF7EE;
  --paper-soft:   #EDE4D2;
  --ink:          #1F2A33;
  --ink-soft:     #4A5860;
  --ink-mute:     #7B8893;
  --rule:         #E1D6BD;

  --sage:         #6B8E7F;
  --sage-deep:    #4F6E61;
  --amber:        #C9A66B;
  --amber-deep:   #A07F46;

  --font-display: "Lora", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 0 rgba(31, 42, 51, 0.04), 0 2px 8px rgba(31, 42, 51, 0.04);
  --shadow:    0 1px 0 rgba(31, 42, 51, 0.05), 0 12px 32px -12px rgba(31, 42, 51, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* subtle paper texture, matches LARRY brand */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0 0.08 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

main, footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 6px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ----------------------------------- shell layout */
.shell {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) max(20px, 5vw) clamp(48px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 64px);
}

/* ----------------------------------- hero / lockup */
.lockup {
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
  margin-bottom: clamp(24px, 4vh, 36px);
}
.tile {
  flex: 0 0 auto;
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  border-radius: 16px;
  background: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow-sm);
  margin-top: 6px;
  position: relative;
}
.tile::after {
  content: "";
  width: 32%; height: 32%;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(201, 166, 107, 0.22);
}
.lockup-stack { display: flex; flex-direction: column; gap: 8px; }
.word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: -0.022em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.word .dot { color: var(--sage); }
.tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}
.tagline em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.tagline sup {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 1px;
  color: var(--ink-mute);
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  max-width: 38ch;
}
.lede strong {
  font-weight: 600;
}

/* ----------------------------------- signup */
.signup {
  border-top: 1px solid var(--rule);
  padding-top: clamp(32px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.signup-head { display: flex; flex-direction: column; gap: 8px; }
.signup-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.2vw + 0.9rem, 1.7rem);
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.signup-sub {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
  max-width: 56ch;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: stretch;
}
.signup-form input[type="email"],
.signup-form select {
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.signup-form input[type="email"]:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(107, 142, 127, 0.18);
  background: #fff;
}
.signup-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231F2A33' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 42px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper-warm);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); background: #0f1820; box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }

.form-status {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: var(--sage-deep); }
.form-status[data-state="error"]   { color: #B0533B; }
.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fine {
  color: var(--ink-mute);
  font-size: 0.85rem;
  margin: 0;
}

/* ----------------------------------- footer */
.foot {
  border-top: 1px solid var(--rule);
  padding: clamp(28px, 4vh, 40px) max(20px, 5vw);
  background: var(--paper);
}
.foot-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-mark { display: inline-flex; align-items: center; gap: 10px; }
.tile--sm {
  width: 28px; height: 28px;
  border-radius: 8px;
  margin-top: 0;
}
.tile--sm::after {
  width: 32%; height: 32%;
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.22);
}
.foot-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.foot-word .dot { color: var(--sage); }

.foot-line {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}
.foot-line em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.foot-line sup {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 1px;
  color: var(--ink-mute);
}
.foot-fine {
  color: var(--ink-mute);
  font-size: 0.8rem;
  margin: 0;
}

/* ----------------------------------- responsive */
@media (max-width: 640px) {
  .signup-form {
    grid-template-columns: 1fr;
  }
  .signup-form .btn { width: 100%; }
  .lockup { gap: 12px; }
}
