/* Tadpole Technologies — v10
   Concept: the page runs from night (Mood-Play, the party) to morning (Recall, the memory). */

:root {
  --night: #050d1a;          /* Tadpole brand navy */
  --night-2: #0c1830;
  --night-line: #1f2d48;
  --violet: #a58bff;         /* Mood-Play */
  --mint: #4fd8a8;           /* Mood-Play */
  --amber: #e3a13b;          /* Recall, decorative */
  --amber-text: #8f5309;     /* Recall, text-safe on light */
  --morning: #f3f6fb;
  --paper: #ffffff;
  --ink: #0e1a2b;
  --ink-soft: #46566c;
  --on-night: #eef2f8;
  --on-night-soft: #a3b2c8;
  --line-light: #d8e0ec;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--morning);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--night);
  color: var(--on-night);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }

.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-nav a {
  text-decoration: none;
  color: var(--on-night-soft);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--on-night); }

/* ---------- Hero: one night, two apps ---------- */

.hero {
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(165, 139, 255, 0.14), transparent 60%),
    var(--night);
  color: var(--on-night);
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 112px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 800;
  max-width: 12ch;
}
.hero-lede {
  margin-top: 24px;
  color: var(--on-night-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--body);
}
.button-violet { background: var(--violet); color: var(--night); }
.button-violet:hover { background: #b9a4ff; }
.button-amber { background: var(--amber); color: var(--night); }
.button-amber:hover { background: #efb65b; }
.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { background: #1d2d44; }

/* Timeline */
.night {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.night::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--mint) 55%, var(--amber));
  opacity: 0.55;
}
.night li {
  position: relative;
  padding: 0 0 26px 40px;
}
.night li:last-child { padding-bottom: 0; }
.night li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--night);
  border: 3px solid var(--dot, var(--violet));
}
.night .moodplay { --dot: var(--violet); }
.night .recall { --dot: var(--amber); }
.night .neutral { --dot: var(--on-night-soft); }

.night time {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.night p { color: var(--on-night-soft); max-width: 40ch; }
.night .app {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dot);
}

@media (prefers-reduced-motion: no-preference) {
  .night li {
    opacity: 0;
    transform: translateY(8px);
    animation: arrive 0.6s ease-out forwards;
  }
  .night li:nth-child(1) { animation-delay: 0.15s; }
  .night li:nth-child(2) { animation-delay: 0.45s; }
  .night li:nth-child(3) { animation-delay: 0.75s; }
  .night li:nth-child(4) { animation-delay: 1.05s; }
  .night li:nth-child(5) { animation-delay: 1.35s; }
}
@keyframes arrive {
  to { opacity: 1; transform: none; }
}

/* ---------- Product sections ---------- */

.product { padding: clamp(64px, 9vw, 120px) 0; }
.product .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 900px) {
  .product .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
}

.product-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.product-head img {
  width: 76px; height: 76px;
  border-radius: 18px;
  object-fit: cover;
  flex: none;
}
.product h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.product .tagline {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 500;
}
.product .summary {
  margin-top: 24px;
  max-width: 50ch;
  font-size: 1.1rem;
}
.product .pricing {
  margin-top: 16px;
  max-width: 50ch;
  font-size: 0.98rem;
}

.badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badges a {
  display: inline-block;
  border-radius: 10px;
}
.badges img { height: 50px; width: auto; }

.site-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.moodplay-section .site-link { color: var(--violet); }
.recall-section .site-link { color: var(--amber-text); }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.features li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.features li:last-child { border-bottom: 1px solid var(--rule); }
.features svg { width: 22px; height: 22px; margin-top: 2px; }
.features strong { display: block; font-weight: 600; }

/* Mood-Play: still night */
.moodplay-section {
  background: var(--night-2);
  color: var(--on-night);
  --rule: var(--night-line);
}
.moodplay-section .tagline { color: var(--violet); }
.moodplay-section .summary,
.moodplay-section .pricing,
.moodplay-section .features span { color: var(--on-night-soft); }
.moodplay-section .features svg { color: var(--mint); }

/* Dawn band: the turn from night to morning */
.dawn {
  height: clamp(90px, 14vw, 180px);
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(227, 161, 59, 0.35), transparent 70%),
    linear-gradient(var(--night-2), #2b3554 45%, #b9b7c6 82%, var(--morning));
}

/* Recall: morning */
.recall-section {
  background: var(--morning);
  color: var(--ink);
  --rule: var(--line-light);
  padding-top: clamp(32px, 5vw, 64px);
}
.recall-section .tagline { color: var(--amber-text); }
.recall-section .summary,
.recall-section .pricing,
.recall-section .features span { color: var(--ink-soft); }
.recall-section .features svg { color: var(--amber-text); }

/* ---------- Studio ---------- */

.studio {
  background: var(--paper);
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-light);
}
.studio .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 64px;
}
@media (min-width: 900px) {
  .studio .wrap { grid-template-columns: 0.8fr 1.2fr; }
}
.studio h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 14ch; }
.studio-body p + p { margin-top: 16px; }
.studio-body p { color: var(--ink-soft); max-width: 60ch; }

.facts {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.facts div { border-left: 3px solid var(--line-light); padding-left: 14px; }
.facts dt { font-size: 0.9rem; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- Contact ---------- */

.contact {
  background: var(--morning);
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-light);
}
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 64px;
}
@media (min-width: 900px) {
  .contact .wrap { grid-template-columns: 0.8fr 1.2fr; }
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.contact-intro p { margin-top: 16px; color: var(--ink-soft); max-width: 40ch; }

form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
label .optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #b9c5d6;
  border-radius: 10px;
  padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(79, 216, 168, 0.45);
}
.form-note { font-size: 0.92rem; color: var(--ink-soft); }
.form-note a { color: var(--ink); }
.honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--on-night-soft);
  padding: 48px 0 40px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .brand { color: var(--on-night); }
.site-footer p { margin-top: 12px; max-width: 36ch; }
.site-footer h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-night);
  letter-spacing: 0;
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; }
.legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--night-line);
  padding-top: 20px;
  font-size: 0.88rem;
  max-width: none;
}

/* ---------- Simple pages (privacy, thanks, 404) ---------- */

.page {
  background: var(--paper);
  padding: clamp(48px, 8vw, 96px) 0;
  min-height: 60vh;
}
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.4rem; margin-top: 40px; }
.page p, .page li { color: var(--ink-soft); max-width: 66ch; }
.page p { margin-top: 14px; }
.page ul { padding-left: 1.2em; margin: 12px 0 0; }
.page li + li { margin-top: 6px; }
.page .updated { font-size: 0.92rem; }
.page .button { margin-top: 28px; }
.page-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-links .button { margin-top: 0; }
