/* Caring Voice — design system. Playful, youthful, caring. Light + dark. */

:root {
  color-scheme: light;
  --bg: #fff8f1;
  --bg-2: #ffffff;
  --fg: #1f1b2e;
  --muted: rgba(31, 27, 46, 0.64);
  --line: rgba(31, 27, 46, 0.12);
  --line-strong: rgba(31, 27, 46, 0.22);
  --accent: #ff6b57;
  --accent-ink: #ffffff;
  --accent-soft: #ffe9e3;
  --teal: #22b3a3;
  --teal-soft: #dff6f3;
  --sun: #ffd166;
  --sun-soft: #fff3cf;
  --lav: #8f7dff;
  --lav-soft: #ebe7ff;
  --ok: #1f9d6a;
  --ok-bg: rgba(31, 157, 106, 0.12);
  --danger: #d6453a;
  --danger-bg: rgba(214, 69, 58, 0.1);
  --field-bg: #ffffff;
  --shadow: 0 10px 30px rgba(31, 27, 46, 0.08);
  --shadow-sm: 0 3px 10px rgba(31, 27, 46, 0.07);
  --radius: 20px;
  --radius-sm: 14px;
  --sans: "Nunito", "Segoe UI", Arial, sans-serif;
  --display: "Fredoka", "Nunito", Arial, sans-serif;
  --logo-heart: #ffffff;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161325;
  --bg-2: #201c35;
  --fg: #f3eff9;
  --muted: rgba(243, 239, 249, 0.66);
  --line: rgba(243, 239, 249, 0.13);
  --line-strong: rgba(243, 239, 249, 0.26);
  --accent: #ff7f6d;
  --accent-ink: #1a1226;
  --accent-soft: rgba(255, 127, 109, 0.16);
  --teal: #4fd6c6;
  --teal-soft: rgba(79, 214, 198, 0.16);
  --sun: #ffd978;
  --sun-soft: rgba(255, 217, 120, 0.16);
  --lav: #b3a7ff;
  --lav-soft: rgba(179, 167, 255, 0.16);
  --ok: #6fd6a8;
  --ok-bg: rgba(111, 214, 168, 0.14);
  --danger: #ff8a7d;
  --danger-bg: rgba(255, 138, 125, 0.14);
  --field-bg: rgba(255, 255, 255, 0.05);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.3);
  --logo-heart: #1a1226;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.warn { color: var(--danger); font-weight: 700; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.text-link { font-weight: 800; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Background blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob-a { width: 42vw; height: 42vw; left: -12vw; top: -10vw; background: var(--accent-soft); }
.blob-b { width: 38vw; height: 38vw; right: -10vw; top: 20vh; background: var(--teal-soft); }
.blob-c { width: 34vw; height: 34vw; left: 30vw; bottom: -14vw; background: var(--lav-soft); }
[data-theme="dark"] .blob { opacity: 0.8; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-minimal { padding: 8px 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 38px; height: 38px; }
.brand-mark.small { width: 24px; height: 24px; display: inline-grid; vertical-align: middle; }
.brand-mark.small svg { width: 24px; height: 24px; }
.brand-accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a, .site-nav .link-btn { padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; }
.site-nav a:hover, .site-nav .link-btn:hover { background: var(--accent-soft); }
.site-nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.site-nav a.button { color: var(--accent-ink); }
.site-nav a.button:hover { background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.today { min-height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; cursor: pointer; }
.today.is-other { color: var(--accent-ink); background: var(--accent); }
.theme-toggle, .menu-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; line-height: 0; -webkit-appearance: none; appearance: none; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.mobile-nav { display: grid; gap: 4px; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a, .mobile-nav .link-btn { padding: 12px 10px; border-radius: 12px; font-weight: 800; text-decoration: none; text-align: left; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-weight: 800; }
.inline-form { display: inline; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
}
.is-care .site-header { position: static; backdrop-filter: none; }
.is-care .mobile-nav { display: none; }

/* Layout */
.site-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; }
.is-wide .site-main { max-width: 1180px; }
.is-narrow .site-main { max-width: 560px; }
.is-care .site-main { max-width: 640px; padding: 12px 12px calc(96px + env(safe-area-inset-bottom)); }
.page-head { margin-bottom: 22px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.stack { display: grid; gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 22px; margin-bottom: 10px; }
.center-card { text-align: center; padding: 40px 28px; }
.empty-card { text-align: center; padding: 48px 28px; }
.big-emoji { font-size: 48px; margin: 0 0 6px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-fields .text { flex: 1 1 160px; }

/* Flash */
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); word-break: break-word; }
.flash-success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.flash-error { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.flash-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 2px; }
.verify-nudge { margin-bottom: 18px; justify-content: flex-start; }
.verify-nudge .link-btn { color: var(--accent); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.button:active { transform: translateY(1px) scale(0.99); }
.button-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.button-primary:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.button-ghost { background: var(--bg-2); border-color: var(--line-strong); }
.button-ghost:hover { border-color: var(--fg); }
.button-danger { color: #fff; background: var(--danger); }
.button-small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.button-big { min-height: 56px; padding: 12px 28px; font-size: 18px; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.chip-btn { min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 800; cursor: pointer; }
.chip-btn:hover { border-color: var(--fg); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); font-size: 16px; font-weight: 800; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--fg); border-color: var(--fg); }
.text-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 800; cursor: pointer; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 15px; }
.field > span small { font-weight: 600; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.text, textarea.text, select.text {
  width: 100%; min-height: 48px; margin: 0; padding: 11px 14px;
  color: var(--fg); background: var(--field-bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.text.small { min-height: 40px; padding: 7px 12px; font-size: 15px; }
textarea.text { min-height: 100px; resize: vertical; }
.text:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
select.text { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
[data-theme="dark"] select.text option { background: var(--bg-2); color: var(--fg); }
.hint { color: var(--muted); font-size: 14px; font-weight: 600; }
.form-error { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-weight: 800; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check.small { font-size: 14px; align-items: center; }
.check.small input { margin: 0; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 30%, transparent); }
fieldset.field { border: 0; padding: 0; margin: 0; }
legend { padding: 0; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.auth-card { padding: 32px; }
.auth-card h1 { font-size: 32px; }

/* Template picker */
.template-pick { display: grid; gap: 10px; }
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--field-bg); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick input { margin-top: 4px; accent-color: var(--accent); }
.pick-body { display: grid; gap: 2px; }
.pick-body span { font-size: 14px; color: var(--muted); }

/* Dashboard */
.child-grid { display: grid; gap: 14px; }
.child-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.child-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.child-card-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.child-card-body b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.chev-right { font-size: 28px; color: var(--muted); }
.avatar { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--lav)); color: #fff; font-family: var(--display); font-size: 22px; font-weight: 600; }
.avatar.big { width: 64px; height: 64px; font-size: 30px; border-radius: 20px; }
.avatar.small { width: 36px; height: 36px; font-size: 16px; border-radius: 12px; }
.avatar.muted-bg { background: var(--line-strong); }
.child-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.child-title { display: flex; align-items: center; gap: 16px; }
.child-title h1 { margin: 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 22px; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.tabs a:hover { color: var(--fg); background: var(--bg-2); border-color: var(--line); }
.tabs a.is-active { color: var(--accent); background: var(--accent-soft); }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stat-list li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stat-list li a { color: var(--accent); font-weight: 800; text-decoration: none; }
.tip-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tip-card { background: linear-gradient(135deg, var(--sun-soft), var(--bg-2)); }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.report-list a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; border: 1px solid var(--line); background: var(--field-bg); }
.report-list a:hover { border-color: var(--accent); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--teal-soft); color: var(--teal); vertical-align: middle; }
.badge-alert { background: var(--danger-bg); color: var(--danger); }
.badge-you { background: var(--lav-soft); color: var(--lav); }
.badge-plan { background: var(--sun-soft); color: #9a6b00; font-size: 14px; padding: 6px 14px; }
[data-theme="dark"] .badge-plan { color: var(--sun); }
.day-heading { margin: 18px 0 8px; font-size: 17px; color: var(--muted); }
.people { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.people li { display: flex; align-items: center; gap: 12px; }
.person-body { flex: 1; display: grid; gap: 1px; min-width: 0; }
.danger-card { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.danger-card h2 { color: var(--danger); }
.sub { padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.sub summary { cursor: pointer; font-weight: 800; }
.sub > :not(summary) { margin-top: 10px; }
.danger-sub { margin-top: 20px; }

/* QR / PIN */
.qr-card { text-align: center; }
.qr-card h2, .qr-card .muted { text-align: left; }
.qr-wrap { display: inline-block; padding: 14px; background: #fff; border-radius: 18px; border: 1px solid var(--line); margin: 6px 0 10px; }
.qr svg { display: block; width: 220px; height: 220px; }
.code-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-weight: 800; word-break: break-all; }
.pin-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); text-align: left; flex-wrap: wrap; }
.pin { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: 0.22em; font-weight: 600; }
.qr-card .sub { text-align: left; margin-bottom: 14px; }

/* Items editor */
.editor { display: grid; gap: 16px; }
.editor-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.editor-intro h2 { margin-bottom: 6px; }
.editor-intro p { margin: 0; max-width: 60ch; }
#sections { display: grid; gap: 16px; }
.ed-section { padding: 18px; }
.ed-section:has(> .ed-sec-head .switch input:not(:checked)) { opacity: 0.6; }
.ed-sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sec-title { flex: 1 1 200px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.type-badge { padding: 4px 10px; border-radius: 999px; background: var(--lav-soft); color: var(--lav); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.ed-tools { display: flex; gap: 6px; margin-left: auto; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 12px; font-size: 15px; }
.ed-items { display: grid; gap: 8px; margin: 8px 0 12px; }
.ed-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--field-bg); }
.ed-item:has(> .ed-item-main .switch input:not(:checked)) { opacity: 0.55; }
.ed-item-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-item-main .text:not(.type-select) { flex: 1 1 220px; }
.type-select { flex: 0 1 230px; }
.ed-more { margin-top: 8px; }
.ed-more summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--muted); }
.ed-more-body { display: grid; gap: 12px; padding: 12px 0 4px; }
.label-line { margin: 0 0 6px; font-weight: 800; font-size: 14px; }
.opt-list { display: grid; gap: 6px; margin-bottom: 8px; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-row .text { flex: 1; }
.mini-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap; }
.mini-check input { accent-color: var(--accent); margin: 0; }
.ed-item[data-type="rating"] [data-for]:not([data-for~="rating"]),
.ed-item[data-type="tile"] [data-for]:not([data-for~="tile"]),
.ed-item[data-type="text"] [data-for]:not([data-for~="text"]),
.ed-item[data-type="one"] [data-for]:not([data-for~="one"]),
.ed-item[data-type="any"] [data-for]:not([data-for~="any"]) { display: none; }
.add-section h3 { margin-bottom: 8px; }
.editor-save { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.editor-save .button { min-height: 44px; }
.editor-save.is-dirty { border-color: var(--accent); }
.editor-save { justify-content: flex-end; }
.editor-hint { margin-right: auto; font-weight: 800; color: var(--muted); }
.editor-hint[hidden] { display: none; }
.button.editor-submit.is-clean { opacity: 0.45; cursor: default; box-shadow: none; }

/* Roles */
.role-list { display: grid; gap: 8px; }
.role-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--field-bg); }
.role-name { flex: 1; font-weight: 800; }

/* Report view */
.report-view .report-body { padding: 8px 0; }
.report-body h1 { font-size: 26px; }
.report-body h2 { font-size: 20px; margin-top: 18px; }
.report-body h3 { font-size: 16px; margin: 14px 0 4px; }
.report-body ul { margin: 0 0 8px; padding-left: 20px; }
.report-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.report-text { white-space: pre-wrap; font-size: 14px; line-height: 1.45; }

/* Marketing: hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 24px 0 48px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 700; margin-bottom: 18px; }
.squiggle { position: relative; color: var(--accent); white-space: nowrap; }
.squiggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q 12 0 25 6 T 50 6 T 75 6 T 100 6' fill='none' stroke='%23ffd166' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x; background-size: 100px 10px; }
.hero .lead { font-size: 20px; margin-bottom: 24px; }
.hero .lead em { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { color: var(--muted); font-weight: 700; font-size: 15px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone { width: 300px; padding: 18px 16px; border-radius: 34px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-3deg); display: grid; gap: 12px; }
.phone-bar { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; }
.phone-brand b { color: var(--accent); }
.phone-who { font-family: var(--display); font-size: 17px; }
.phone-section { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; }
.phone-section > span { font-weight: 800; font-size: 14px; }
.phone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-chips i, .phone-faces i { font-style: normal; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 800; }
.phone-chips i.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.phone-faces { display: flex; gap: 6px; }
.phone-faces i { flex: 1; text-align: center; padding: 6px 0; border-radius: 12px; font-size: 18px; }
.phone-faces i.on { background: var(--ok-bg); border-color: var(--ok); }
.phone-save { padding: 12px; text-align: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.float-card { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; }
.float-card b { font-size: 13px; color: var(--accent); }
.float-a { right: 0; top: 40px; transform: rotate(4deg); background: var(--sun-soft); }
.float-b { left: -10px; bottom: 40px; transform: rotate(-5deg); background: var(--teal-soft); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 420px; }
  .float-a { right: 0; }
  .float-b { left: 0; }
}

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 8px 0 48px; }
.strip-item { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.strip-item b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.strip-item span { color: var(--muted); font-size: 15px; }
.strip-item:nth-child(1) { border-top: 5px solid var(--accent); }
.strip-item:nth-child(2) { border-top: 5px solid var(--teal); }
.strip-item:nth-child(3) { border-top: 5px solid var(--sun); }
.strip-item:nth-child(4) { border-top: 5px solid var(--lav); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 32px 0; }
.feature-right .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); font-size: 17px; }
.feature-copy p b { color: var(--fg); }
.tiles-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(2deg); }
.tile-demo { display: grid; place-items: center; gap: 4px; aspect-ratio: 1; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 800; font-size: 14px; text-align: center; box-shadow: var(--shadow-sm); }
.tile-ico { font-size: 28px; }
.tile-demo small { font-size: 11px; color: var(--muted); }
.tile-demo.on { border-color: var(--fg); }
.tile-demo.freq { background: var(--fg); color: var(--bg); }
.tile-demo.freq small { color: inherit; }
.report-demo { padding: 24px 26px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-2deg); font-size: 15px; }
.report-kicker { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.report-demo h3 { margin: 2px 0 0; font-size: 24px; }
.report-date { color: var(--muted); margin-bottom: 10px; }
.report-demo h4 { font-size: 16px; margin: 10px 0 6px; }
.report-demo p { margin: 8px 0 2px; }
.report-demo ul { margin: 0; padding-left: 18px; }
.report-sig { margin-top: 12px !important; color: var(--muted); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature-right .feature-copy { order: 0; }
}

.who { padding: 32px 0; }
.who h2 { text-align: center; margin-bottom: 20px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.who-card { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.who-emoji { font-size: 32px; }
.who-card b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.who-card span:last-child { color: var(--muted); font-size: 15px; }

.cta-band { margin: 32px 0 0; padding: 48px 28px; text-align: center; border-radius: 28px; background: linear-gradient(135deg, var(--accent), var(--lav)); color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-band p { color: rgba(255,255,255,0.88); font-weight: 700; }
.cta-band .button-primary { background: #fff; color: var(--accent); box-shadow: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 32px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 20px; margin-bottom: 10px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 800; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.template-card { padding: 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.template-card h3 { margin-bottom: 6px; }
.template-card p { font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.plan { padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-name { margin: 0; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.plan-price { margin: 0; font-family: var(--display); font-size: 36px; font-weight: 700; }
.plan-price span { font-size: 16px; color: var(--muted); font-family: var(--sans); font-weight: 700; }
.faq details { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; margin-top: 28px; }
.prose ul { padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 20px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-brand { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-nav a { font-weight: 800; font-size: 14px; text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--fg); }
.footer-copy { margin: 0; width: 100%; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
