/* Clearly website. Same palette as the app (Clearly/Design/Theme.swift). */
:root {
  --cream: #D6E8F7; --paper: #FFFFFF; --sand: #C1D9EE; --line: #B5CEE5;
  --ink: #16202F; --ink-soft: #5A6B7F; --ink-faint: #8FA4B9;
  --clay: #D8613F; --clay-deep: #B74A2C; --clay-tint: #FCE0D4;
  --moss: #3E7E61; --moss-tint: #C8EEDA; --honey: #C4861C; --honey-tint: #FBE5B8;
  --sky: #4A86C5; --beige: #C9AD86; --rose: #B4405C; --rose-tint: #F9D3DE;
  --serif: "Source Serif 4", "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px; --radius-sm: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); line-height: 1.5; }
.soft { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.stack > * + * { margin-top: 14px; }

/* Buttons: the app's pills. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #22304a; }
.btn-clay { background: var(--clay); color: var(--paper); }
.btn-clay:hover { background: var(--clay-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.5); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #f1f7fd; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.textlink { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--clay-deep); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card.tint { background: var(--sand); border-color: transparent; }
.card.moss { background: var(--moss-tint); border-color: transparent; }
.card.honey { background: var(--honey-tint); border-color: transparent; }
.card.clay { background: var(--clay-tint); border-color: transparent; }
.card.ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.card.ink .eyebrow, .card.ink .soft { color: var(--line); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(214,232,247,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(181,206,229,.6); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; line-height: 1; display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links li a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(181,206,229,.5); }
  .nav-links.open { display: flex; }
  .menu-btn { display: flex; }
  .nav-cta .btn { display: none; }
}

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 46ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }
@media (max-width: 860px) { .hero { padding-top: 40px; } .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero h1 { max-width: none; } }

/* Phone frame around real screenshots (iPhone 17 Pro, 402 x 874 pt). */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 402 / 874; border-radius: 52px; background: var(--ink); padding: 9px; box-shadow: 0 30px 60px -30px rgba(22,32,47,.45), 0 1px 0 rgba(255,255,255,.35) inset; margin: 0 auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; background: var(--cream); }
.phone.sm { max-width: 250px; border-radius: 42px; padding: 7px; } .phone.sm img { border-radius: 36px; }
.phone-tilt { transform: rotate(-4deg); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 28px); }
.phones .phone { max-width: 260px; } .phones .phone:nth-child(2) { max-width: 300px; margin-bottom: 24px; }
@media (max-width: 700px) { .phones { flex-wrap: wrap; } .phones .phone { max-width: 42%; } .phones .phone:nth-child(2) { margin-bottom: 0; } }

/* Sections */
.section { padding: 64px 0; }
.section-head { max-width: 720px; }
.section-head h2 { margin-top: 10px; }
.section-head .lede { margin-top: 14px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step-num { width: 56px; height: 56px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; }
.step h3 { margin-bottom: 8px; }

/* Feature rows with screenshots */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 34px 0; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); margin-top: 10px; }
.feature p { margin-top: 12px; color: var(--ink-soft); }
.feature ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.feature li { padding: 8px 0; border-top: 1px solid var(--line); }
.feature li:first-child { border-top: 0; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature:nth-child(even) .feature-media { order: 0; } }

/* Status dots as in the app's panel board */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.dot.moss { background: var(--moss); } .dot.sky { background: var(--sky); } .dot.beige { background: var(--beige); } .dot.clay { background: var(--clay); } .dot.honey { background: var(--honey); }

/* Quote / callout */
.callout { border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.callout h2 { max-width: 20ch; }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
.checks.x li::before { border-color: var(--rose); width: 10px; height: 10px; border: 0; top: 18px; left: 6px; background: linear-gradient(var(--rose), var(--rose)) center/2px 100% no-repeat, linear-gradient(var(--rose), var(--rose)) center/100% 2px no-repeat; transform: rotate(45deg); }

/* Store buttons */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; line-height: 1.1; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store b { display: block; font-size: 18px; font-weight: 600; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store.soon { opacity: .55; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; font-size: 14px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(181,206,229,.6); font-size: 13px; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Long-form documents */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 0 72px; align-items: start; }
.doc-side { position: sticky; top: 92px; }
.doc-side ol { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; }
.doc-side li { padding: 5px 0; border-top: 1px solid rgba(181,206,229,.6); }
.doc-side li:first-child { border-top: 0; }
.doc-side a { text-decoration: none; color: var(--ink-soft); }
.doc-side a:hover { color: var(--ink); }
.doc-main { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 56px); }
.doc-main h1 { font-size: clamp(34px, 4.5vw, 52px); margin-top: 10px; }
.doc-intro { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.doc-note { margin-top: 14px; font-size: 14px; color: var(--ink-faint); background: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; }
.doc-main section { margin-top: 36px; }
.doc-main h2 { font-size: 26px; margin-bottom: 10px; }
.doc-main p { margin-top: 12px; }
.doc-main p a { color: var(--ink); }
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; color: var(--ink-faint); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .doc-side { position: static; } .doc-side ol { display: none; } }

/* Small helpers */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.stat { font-family: var(--serif); font-size: 44px; line-height: 1; }
.kicker { font-size: 15px; color: var(--ink-faint); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } .card { border-color: #ccc; } }
