/* Monita site. Layout: one calm column of alternating "paper" bands, phone mocks drawn in HTML,
   colors taken from the app icon (clay + cream) and the app's own red. */
:root {
  --paper: #FBF8F5;      /* page ground, a touch of the icon's clay */
  --sheet: #FFFFFF;      /* cards, phone screen */
  --clay: #B79A8B;       /* icon gradient, mid */
  --clay-soft: #EFE5DE;  /* tinted band */
  --ink: #2A201C;        /* text */
  --ink-2: #6B5D56;      /* secondary text (5.9:1 on paper) */
  --line: #E7DDD6;
  --accent: #B82E0D;     /* the app's Done red */
  --accent-ink: #FFFFFF;
  --ok: #2F7D4F;
  --phone: #1E1916;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171310; --sheet: #241E1A; --clay: #A88B7C; --clay-soft: #2A221D;
    --ink: #F3ECE6; --ink-2: #BFAFA6; --line: #3A302A;
    --accent: #FF7A57; --accent-ink: #1A0F0A; --ok: #6CCB92; --phone: #0B0908;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171310; --sheet: #241E1A; --clay: #A88B7C; --clay-soft: #2A221D;
  --ink: #F3ECE6; --ink-2: #BFAFA6; --line: #3A302A;
  --accent: #FF7A57; --accent-ink: #1A0F0A; --ok: #6CCB92; --phone: #0B0908;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .site-head .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:hover { filter: brightness(1.12); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-block: 56px 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: 1.22rem; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 32px 56px; } }

/* Phone mock (drawn, not a screenshot) */
.phone { width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 19; max-width: 100%; background: var(--phone); border-radius: 46px; padding: 11px; box-shadow: 0 30px 60px -20px rgba(60, 35, 20, 0.35); }
.screen { height: 100%; border-radius: 36px; background: #F2F2F7; color: #1C1C1E; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; font-family: -apple-system, "SF Pro Text", var(--font-body); font-size: 14px; line-height: 1.35; }
:root[data-theme="dark"] .screen { background: #000; color: #F2F2F7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .screen { background: #000; color: #F2F2F7; } }
.screen .status { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; padding: 0 10px; }
.screen .date { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; padding: 4px 4px 0; }
.screen .sub { font-size: 12px; opacity: 0.6; padding: 0 4px; margin-top: -10px; }
.card { background: #fff; border-radius: 14px; padding: 10px 12px; }
:root[data-theme="dark"] .card { background: #1C1C1E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card { background: #1C1C1E; } }
.input { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.mic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #B82E0D; display: grid; place-items: center; }
.mic svg { width: 14px; height: 14px; fill: #fff; }
.typed { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: #B82E0D; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.parsed { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #B82E0D; font-weight: 600; padding: 2px 4px 0 40px; min-height: 18px; transition: opacity 0.3s; }
.parsed svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.list-label { font-size: 12px; font-weight: 600; opacity: 0.55; padding: 4px 6px 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.row + .row { border-top: 0.5px solid rgba(128, 128, 128, 0.25); }
.ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B82E0D; }
.ring.done { background: #B82E0D; display: grid; place-items: center; }
.ring.done::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.row .t { flex: 1; min-width: 0; }
.row .t small { display: block; font-size: 11px; opacity: 0.55; }
.row .time { font-size: 13px; font-variant-numeric: tabular-nums; opacity: 0.75; }
.row.struck .t span { text-decoration: line-through; opacity: 0.5; }

/* Bands */
.band { padding-block: 88px; }
.band.tint { background: var(--clay-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } .band { padding-block: 64px; } }
.section-copy { display: flex; flex-direction: column; gap: 18px; }
.section-copy > p { color: var(--ink-2); font-size: 1.1rem; max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
:root[data-theme="dark"] .ticks li::before { background-color: var(--accent); }

/* Group mock */
.thread { background: var(--sheet); border-radius: var(--radius); padding: 22px; display: grid; gap: 4px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(60, 35, 20, 0.35); max-width: 440px; width: 100%; margin: 0 auto; }
.thread .head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 0.95rem; }
.thread .head b { display: block; font-size: 1.05rem; }
.thread .head span { font-size: 0.85rem; color: var(--ink-2); }
.msg { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; }
.msg + .msg { border-top: 1px solid var(--line); }
.msg b { font-weight: 600; }
.msg .meta { grid-column: 1; font-size: 0.85rem; color: var(--ink-2); }
.msg .when { grid-row: 1; grid-column: 2; font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--ink-2); }
.msg .status { grid-column: 2; font-size: 0.85rem; font-weight: 600; text-align: right; }
.status.ok { color: var(--ok); }
.status.wait { color: var(--ink-2); font-weight: 500; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 48px; }
.grid > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.grid p { color: var(--ink-2); }
.grid .k { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.center-head { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.center-head p { color: var(--ink-2); font-size: 1.1rem; }

/* Privacy */
.privacy-lines { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.privacy-lines li { padding: 26px 28px 0 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.privacy-lines li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.privacy-lines b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.01em; }
.privacy-lines span { color: var(--ink-2); }
@media (max-width: 760px) { .privacy-lines { grid-template-columns: 1fr; } .privacy-lines li, .privacy-lines li + li { padding: 22px 0; border-left: 0; } .privacy-lines li + li { border-top: 1px solid var(--line); } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; max-width: 860px; }
.plan { background: var(--sheet); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.plan.main { box-shadow: inset 0 0 0 2px var(--accent); }
.plan .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan p { color: var(--ink-2); }
.plan .ticks { font-size: 0.98rem; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }
.trial-note { margin-top: 22px; color: var(--ink-2); max-width: 46em; }

/* FAQ */
.faq { margin-top: 36px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--font-display); color: var(--ink-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* Closing CTA */
.closing { text-align: left; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { max-width: 16em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 0.92rem; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; align-content: start; }
.site-foot nav a { color: var(--ink-2); }
.latin { max-width: 30em; }
.latin i { font-family: var(--font-display); font-style: normal; font-weight: 700; color: var(--ink); }
@media (max-width: 680px) { .site-foot .wrap { grid-template-columns: 1fr; } .site-foot nav { justify-content: flex-start; } }

/* Text pages (privacy, support) */
.doc { max-width: 720px; padding-block: 48px 80px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 22px; }
.doc h3 { font-size: 1.1rem; margin-top: 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.doc .summary { background: var(--clay-soft); border-radius: 16px; padding: 18px 20px; color: var(--ink); }
.doc .updated { font-size: 0.9rem; }
.contact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 600; color: var(--ink); width: fit-content; max-width: 100%; }
