/* Huishoud.AI - landing site. Tokens mirror the app's "Klei & Salie" theme
   (app/constants/theme.ts): warm clay background, burnt-terracotta accent, the
   yellow/orange/white NannyOrb gradient as the one signature. Font is Figtree,
   icons are Material Symbols Rounded, matching the app. Light-only, like v1. */

:root {
  /* base palette (theme.ts colors) */
  --bg: #F6EFE6;
  --bg2: #EBE0D2;
  --surface: #FFFDFA;
  --surface-alt: #F3EBDE;
  --border: #E5D9C9;
  --text: #33291F;
  --text-muted: #7A6A58;
  --text-faint: #AC9C87;
  --accent: #C6552F;
  --accent-text: #FFF6F0;
  --accent-soft: #F2DCCF;
  --success: #5C9E57;
  --danger: #B24A38;

  /* priority (theme.ts priorityColors) */
  --pri-high: #C6552F;
  --pri-med: #D6982A;
  --pri-low: #5C9E57;

  /* assistant tint (theme.ts FRANNY_COLOR) */
  --franny: #9B6A7D;
  --franny-soft: #EFE1E8;
  --franny-ink: #7C5266;

  /* radii + shadow (theme.ts radius / shadow.soft) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-soft: 0 2px 8px rgba(60, 45, 30, 0.06);
  --shadow-card: 0 6px 20px -8px rgba(60, 45, 30, 0.14);
  --shadow-float: 0 22px 50px -18px rgba(50, 38, 25, 0.35);

  /* the signature NannyOrb gradient (theme.ts NANNY_HUES_FEMININE + tail) */
  --grad-orb: linear-gradient(135deg, #FFC83A 0%, #FF7A1A 55%, #FFFFFF 100%);

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(26px, 4vw, 38px); }
.section-lead {
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #b44a27; text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-alt); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 64px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 200, 58, 0.30), rgba(255, 122, 26, 0.10) 42%, transparent 72%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

.hero-copy { max-width: 560px; }
.hero-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-mark .wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.hero-pitch { margin-top: 22px; font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 48ch; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* orb (launcher-ish mark, no face) - clipped rotating gradient, like NannyOrb */
.orb {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  flex: none;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.orb .orb-grad {
  position: absolute;
  inset: -30%;
  background: var(--grad-orb);
  animation: orbspin 9s linear infinite;
}
@keyframes orbspin { to { transform: rotate(360deg); } }
.orb-sm { width: 44px; height: 44px; }
.orb-md { width: 34px; height: 34px; }

/* animated title: [naam] / de huishoud / [rol], like the login SpinningName */
.spinner {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.spinner .clip { overflow: hidden; height: 1.18em; }
.spinner .word { display: block; line-height: 1.18em; will-change: transform, opacity; }
.spinner .name { text-align: left; }
.spinner .role { text-align: right; }
.spinner .mid { text-align: center; line-height: 1.18em; font-weight: 400; color: var(--text-muted); }

/* ---------- demo app panel ---------- */
/* The demo should feel like poking an app, not reading a web page: nothing is
   selectable/copyable and the cursor stays the plain arrow everywhere. The chat
   input is the one exception so you can still type and edit in it. */
#demo, #demo * { -webkit-user-select: none; user-select: none; cursor: default; }
#demo .chat-input input { -webkit-user-select: text; user-select: text; cursor: text; }

.demo-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
}
.demo-col { display: flex; flex-direction: column; min-width: 0; }
.demo-col.chat { border-right: 1px solid var(--border); }

.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.demo-head .title { font-size: 14px; font-weight: 700; }
.demo-head .sub { font-size: 11px; color: var(--text-faint); }
.demo-head .spacer { flex: 1; }
.demo-head .tab-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint);
}

/* chat stream */
.chat-stream {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  background: var(--bg);
  min-height: 360px;
  max-height: 460px;
}
.msg { display: flex; gap: 8px; max-width: 88%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar { flex: none; }
.msg .stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg .name-label { font-size: 11px; font-weight: 700; padding-left: 2px; }
.bubble {
  padding: 9px 12px;
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.36;
  word-wrap: break-word;
}
.msg.mine .bubble { background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 4px; }
.msg.theirs .bubble { border-top-left-radius: 4px; color: var(--text); }
.bubble .cta-inline {
  display: inline-flex; margin-top: 8px; font-size: 13px; font-weight: 700;
  color: var(--accent); cursor: pointer; text-decoration: underline;
}

/* typing indicator */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 12px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* input bar */
.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input input {
  flex: 1;
  border: none;
  background: var(--bg2);
  border-radius: 999px;
  padding: 11px 15px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}
.chat-input input:focus { outline: 2px solid var(--accent-soft); }
.chat-send {
  flex: none;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  cursor: pointer;
  display: grid; place-items: center;
}
.chat-send:disabled { opacity: 0.5; cursor: default; }

/* taken list */
.taken-list { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; background: var(--surface); max-height: 500px; }
.task-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 11px 12px;
}
.task-row.fresh { animation: pop 0.5s ease; }
@keyframes pop { 0% { transform: scale(0.96); box-shadow: 0 0 0 3px var(--accent-soft); } 100% { transform: scale(1); } }
.task-check {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--border); background: var(--surface);
}
.task-check.done { background: var(--accent); border-color: var(--accent); display: grid; place-items: center; color: #fff; }
.task-check.done .material-symbols-rounded { font-size: 16px; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 600; color: var(--text); }
.task-row.done .task-title { text-decoration: line-through; opacity: 0.55; }
.task-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.task-meta .m { display: inline-flex; align-items: center; gap: 3px; }
.task-meta .material-symbols-rounded { font-size: 14px; color: var(--text-faint); }
.prio-dot { width: 7px; height: 7px; border-radius: 4px; flex: none; }
.assignee {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.assignee.none { background: var(--bg2); color: var(--text-faint); border: 1px dashed var(--border); }

/* generic square/round avatar with initial */
.avatar {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700;
}
.avatar.round { border-radius: 50%; }

/* ---------- probleem ---------- */
.probleem { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.probleem-inner { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.probleem-copy .section-title { max-width: 20ch; }
.probleem-visual { display: flex; justify-content: center; }
.orb-xl { width: clamp(190px, 26vw, 300px); height: clamp(190px, 26vw, 300px); }
.pull { margin-top: 24px; font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.pull .hl { color: var(--accent); }

/* ---------- hoe het werkt ---------- */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-card); }
.step .num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* ---------- kernvoordelen ---------- */
.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-card);
}
.feature .ficon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.feature .ficon .material-symbols-rounded { font-size: 26px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 7px; color: var(--text-muted); font-size: 14.5px; }
.badge-soon {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--bg2); color: var(--text-muted);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- held presets ---------- */
.held { background: var(--surface); border-top: 1px solid var(--border); }
.held-grid { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.held-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 12px 18px;
  font-size: clamp(16px, 2vw, 19px); font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.held-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.held-chip .mid { font-weight: 400; color: var(--text-muted); }
.held-chip .role { color: var(--accent); }
.held-note { margin-top: 22px; color: var(--text-muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0 120px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; }
.footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .links a { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.footer .copy { width: 100%; color: var(--text-faint); font-size: 13px; margin-top: 6px; }

/* ---------- floating CTA ---------- */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  box-shadow: var(--shadow-float);
  padding: 15px 26px;
  font-size: 16px;
}
.floating-cta.pulse { animation: pulse 1.4s ease 2; }
@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-float); }
  50% { box-shadow: 0 22px 50px -18px rgba(50, 38, 25, 0.35), 0 0 0 6px var(--accent-soft); }
}

/* ---------- dialog ---------- */
dialog.modal {
  border: none;
  border-radius: 22px;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
dialog.modal::backdrop { background: rgba(40, 30, 22, 0.42); backdrop-filter: blur(2px); }
/* Keep the dialog hidden when closed on engines that lack native <dialog> and so
   provide no UA rule for it (the JS uses the [open] attribute as a fallback). */
dialog.modal:not([open]) { display: none; }
.modal-body { padding: 28px; }
.modal-body h3 { font-size: 22px; }
.modal-body .lead { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; border: 1px solid var(--border); background: var(--surface);
  border-radius: 13px; padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.modal-actions .btn-primary:disabled { opacity: 0.5; cursor: default; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  border: none; background: var(--bg2); color: var(--text-muted);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.form-error { margin-top: 12px; color: var(--danger); font-size: 13.5px; min-height: 1em; }
.confirm { text-align: center; padding: 12px 0; }
.confirm .big { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.confirm .big .material-symbols-rounded { font-size: 36px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 120px; }
.legal .back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); }
.concept-note {
  margin: 18px 0 30px; padding: 14px 16px;
  background: var(--accent-soft); color: #7a3418;
  border-radius: 12px; font-size: 14px; font-weight: 600;
}
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal .updated { margin-top: 40px; color: var(--text-faint); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .demo-frame { grid-template-columns: 1fr; }
  .demo-col.chat { border-right: none; border-bottom: 1px solid var(--border); }
  .steps, .features { grid-template-columns: 1fr; }
  .chat-stream { max-height: 360px; }
  .probleem-inner { grid-template-columns: 1fr; gap: 28px; }
  .probleem-visual { order: -1; }
  .orb-xl { width: clamp(150px, 44vw, 220px); height: clamp(150px, 44vw, 220px); }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .hero { padding: 60px 0 44px; }
  .floating-cta { width: calc(100% - 32px); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
  .orb .orb-grad { animation: none; }
}
