/* Homescreen landing page
   Palette: warm paper + ink, with the dashboard's rainbow as the one accent. */

:root {
  --paper:   #faf6ef;
  --paper-2: #f2ebdf;
  --card:    #fffdf9;
  --ink:     #1c1a17;
  --ink-2:   #3d3832;
  --muted:   #6b645a;
  --line:    #e4dbcc;
  --accent:  #d9542b;
  --accent-ink: #ffffff;
  --night:   #0b0f1c;
  --night-2: #141a2c;
  --night-text: #e9ebf3;
  --night-muted: #9aa1b8;
  --rainbow: linear-gradient(90deg, #f87171, #fb923c, #fbbf24, #4ade80, #60a5fa, #c084fc);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --gutter: 16px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 650; }
p  { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 720px; }

.eyebrow {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9em;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--ink);
  color: var(--paper);
  font: 800 1rem/1 var(--body);
  padding: 1em 1.5em;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { padding: 0.7em 1.1em; font-size: 0.9rem; }

.link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.link:hover { text-decoration-color: var(--accent); }

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  text-decoration: none;
}
.brand-mark {
  display: inline-block;
  width: 26px;
  height: 18px;
  border-radius: 5px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--rainbow);
}

/* ── Hero ────────────────────────────────────────────── */

.hero { padding: 48px 0 32px; text-align: center; }
@media (min-width: 720px) { .hero { padding: 80px 0 48px; } }
.hero h1 { max-width: 15ch; margin-left: auto; margin-right: auto; }
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-2);
  max-width: 40em;
  margin: 0 auto 1.8em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: center;
}

/* Device stack: a TV with a phone leaning on its lower-right corner */
.showcase { margin-top: 56px; }
.stack {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-right: 6%;
}
.tv { margin: 0; }
.tv-screen {
  background: #050608;
  padding: clamp(5px, 1.1vw, 14px);
  border-radius: clamp(10px, 1.6vw, 18px);
  box-shadow:
    0 2px 0 #2a2a2e inset,
    0 30px 60px -20px rgba(40, 28, 10, 0.45),
    0 12px 24px -12px rgba(40, 28, 10, 0.3);
}
.tv-screen img {
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.tv-stand {
  width: 22%;
  height: clamp(10px, 2vw, 22px);
  margin: 0 auto;
  background: linear-gradient(#2b2b30, #141417);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.phone {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: 22%;
  margin: 0;
}
.phone-screen {
  background: #050608;
  padding: clamp(3px, 0.7vw, 8px);
  border-radius: clamp(14px, 3vw, 32px);
  box-shadow: 0 24px 48px -16px rgba(40, 28, 10, 0.55);
}
.phone-screen img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(11px, 2.4vw, 25px);
}
.phone-solo {
  position: static;
  width: min(280px, 70%);
  margin: 0 auto;
}

.caption {
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Sections ────────────────────────────────────────── */

.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 104px 0; } }
.section-tint { background: var(--paper-2); }
.section-dark {
  background: var(--night);
  color: var(--night-text);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(96,165,250,0.12), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(192,132,252,0.12), transparent 55%);
}
.section-dark .eyebrow { color: #fbbf24; }
.section-dark strong { color: #fff; }

.split {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .split-reverse > :first-child { order: 2; }
}

.aside {
  border-left: 4px solid;
  border-image: var(--rainbow) 1;
  padding-left: 16px;
  color: var(--ink-2);
  font-style: italic;
}

/* A day with ours */
.section-head { max-width: 680px; margin-bottom: 24px; }
.section-head p:last-child { color: var(--ink-2); }

.moment {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .moment { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; padding: 64px 0; }
}
.moment-text p { color: var(--ink-2); }
.moment-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.moment-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink) !important;
  margin-bottom: 0.6em;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c);
  flex-shrink: 0;
}
.moment-media { padding-bottom: 6%; }
.moment-media-phone { padding-bottom: 0; }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-2);
}
.chips li:nth-child(6n+1) { box-shadow: inset 4px 0 0 #f87171; }
.chips li:nth-child(6n+2) { box-shadow: inset 4px 0 0 #fb923c; }
.chips li:nth-child(6n+3) { box-shadow: inset 4px 0 0 #eab308; }
.chips li:nth-child(6n+4) { box-shadow: inset 4px 0 0 #22c55e; }
.chips li:nth-child(6n+5) { box-shadow: inset 4px 0 0 #3b82f6; }
.chips li:nth-child(6n+6) { box-shadow: inset 4px 0 0 #a855f7; }

#ours .aside { margin: 8px 0 0; max-width: 640px; font-size: 1.1rem; }

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 40px -28px rgba(40, 28, 10, 0.35);
}
@media (min-width: 720px) { .chat { padding: 28px; } }
.bubble {
  margin: 0;
  align-self: flex-end;
  max-width: 88%;
  background: var(--paper-2);
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  font-weight: 600;
  color: var(--ink-2);
}
.bubble.reply {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px 18px 18px 4px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 800 1.05rem/1 var(--body);
  margin-bottom: 16px;
}

/* Private */
.private-points p {
  color: var(--night-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.private-points p:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.private-points strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }

/* Note */
#note p { color: var(--ink-2); font-size: 1.1rem; }
.signature {
  font-family: var(--display);
  font-size: 1.5rem !important;
  color: var(--ink) !important;
}

/* ── Offer ───────────────────────────────────────────── */

.offer {
  display: grid;
  gap: 16px;
  margin: 32px 0 48px;
}
@media (min-width: 860px) { .offer { grid-template-columns: repeat(3, 1fr); } }
.offer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 12px;
  position: relative;
  overflow: hidden;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--rainbow);
}
.offer-card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.offer-card li { margin-bottom: 0.6em; }

/* ── Form ────────────────────────────────────────────── */

.apply-form, .thanks {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px var(--gutter);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -40px rgba(40, 28, 10, 0.45);
}
@media (min-width: 720px) { .apply-form, .thanks { padding: 40px; } }

.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field {
  display: block;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field > span, .field > legend {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  padding: 0;
}
.field em {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
textarea { resize: vertical; min-height: 3.2em; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b645a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-pitch textarea { background: #fff8ee; border-color: #efc9a8; }

.is-invalid input, .is-invalid select, .is-invalid textarea,
input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--accent);
}

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  background: var(--paper);
}
.choices label:has(input:checked) { border-color: var(--ink); background: #fff; }
.choices input, .check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 28px;
  font-weight: 600;
  cursor: pointer;
}
.check input { margin-top: 4px; flex-shrink: 0; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.form-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.form-status { margin: 16px 0 0; font-weight: 700; color: var(--accent); }
.form-status:empty { display: none; }

.hidden-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.thanks { text-align: center; }
.thanks h3 { font-size: 1.8rem; }
.thanks p { color: var(--ink-2); max-width: 32em; margin: 0 auto; }

/* ── FAQ ─────────────────────────────────────────────── */

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 16px 36px 16px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
}
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); padding-right: 24px; }

/* ── Footer ──────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner p { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer .fine { font-size: 0.82rem; }
