/* DownNote website. One stylesheet for every page. */
:root {
  --bg: #F4F6F5; --surface: #FFFFFF; --ink: #15211E; --muted: #5A6B67; --line: #D8E0DD;
  --accent: #1F6F62; --accent-2: #27907C; --accent-ink: #FFFFFF; --accent-soft: #E1EFEB; --gold: #E9B949;
  --shadow: 0 1px 2px rgba(20,40,35,.06), 0 10px 30px rgba(20,40,35,.08);
  --display: "Avenir Next", "SF Pro Display", -apple-system, "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1513; --surface: #17211E; --ink: #E6EEEB; --muted: #96A8A3; --line: #27352F;
    --accent: #5CC3B0; --accent-2: #4FB09E; --accent-ink: #0B1412; --accent-soft: #1C3530;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); 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(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--accent); }
img, svg { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #27907C, #1A6656); display: grid; place-items: center; flex: 0 0 auto; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 720px) { .nav { display: none; } .site-head .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 800; max-width: 15ch; margin: 0 auto; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; margin: 18px auto 0; text-wrap: pretty; }
.signup { display: flex; gap: 8px; max-width: 460px; margin: 28px auto 0; }
.signup input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; }
.signup input:focus { outline: none; border-color: var(--accent); }
.signup .btn { padding: 12px 18px; font-size: 16px; }
.form-msg { min-height: 24px; margin: 10px auto 0; font-size: 15px; color: var(--muted); }
.form-msg.ok { color: var(--accent); font-weight: 600; }
.form-msg.err { color: #B3402F; }
.fine { font-size: 14px; color: var(--muted); }
@media (max-width: 480px) { .signup { flex-direction: column; } }

/* The "what you see vs. what they see" picture */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 44px 0 10px; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.frame-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; display: flex; align-items: center; gap: 8px; }
.frame-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.frame-label .dot.red { background: #D2553F; }
.screen { position: relative; aspect-ratio: 16 / 10.5; border-radius: 14px; overflow: hidden; background: #1B2230; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.25); }
.slide { position: absolute; inset: 0; padding: 7% 7%; background: linear-gradient(140deg, #F6F1E7, #EEE6D6); color: #2A2620; }
.slide h4 { margin: 0 0 4%; font: 800 clamp(13px, 2vw, 21px)/1.15 var(--display); letter-spacing: -.01em; color: #2A2620; }
.bars { display: flex; align-items: flex-end; gap: 6%; height: 52%; padding: 0 2%; border-bottom: 2px solid #CDBFA6; }
.bars i { flex: 1; background: #C9773C; border-radius: 4px 4px 0 0; }
.bars i:nth-child(2) { background: #2F7A68; } .bars i:nth-child(4) { background: #2F7A68; }
.slide p { margin: 4% 0 0; font-size: clamp(9px, 1.25vw, 13px); color: #6C6253; }
.callbar { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(20,24,30,.85); padding: 5px 8px; border-radius: 999px; }
.callbar span { width: 18px; height: 18px; border-radius: 50%; background: #3A4250; }
.callbar span.end { background: #D2553F; width: 28px; border-radius: 9px; }
.faces { position: absolute; right: 3%; top: 4%; display: flex; flex-direction: column; gap: 5px; }
.faces span { width: clamp(30px, 6vw, 52px); aspect-ratio: 4/3; border-radius: 6px; background: linear-gradient(160deg, #56657A, #39445A); border: 1.5px solid rgba(255,255,255,.25); }
.faces span:first-child { background: linear-gradient(160deg, #7D6A5A, #4E4036); }
.glass { position: absolute; right: 12%; top: 9%; width: 46%; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.6); border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.22); padding: 7px 9px 9px; color: #15211E; text-shadow: 0 0 5px rgba(255,255,255,.9); font-size: clamp(8px, 1.15vw, 12px); line-height: 1.4; }
.glass .g-bar { display: flex; align-items: center; gap: 5px; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.7); margin-bottom: 5px; color: #5A6B67; }
.glass .g-bar b { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #27907C, #1A6656); flex: 0 0 auto; }
.glass strong { display: block; font-size: 1.1em; margin-bottom: 2px; }
.glass ul { margin: 2px 0 0; padding-left: 1.1em; }
.hidden-note { position: absolute; left: 4%; bottom: 13%; background: rgba(20,24,30,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 7px; }
.caption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Sections */
section.block { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; text-wrap: balance; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 12px auto 0; text-wrap: pretty; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .who { grid-template-columns: minmax(0, 1fr); } }
.who div { border-top: 3px solid var(--accent); padding-top: 14px; }
.who h3 { font-size: 20px; margin-bottom: 6px; }
.who p { margin: 0; color: var(--muted); }
.who q { display: block; margin-top: 10px; font-style: italic; color: var(--ink); quotes: "“" "”"; }

/* Pricing */
.bill { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; margin: 0 auto 26px; }
.bill button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.bill button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bill small { font-size: 12px; opacity: .85; margin-left: 4px; }
.center { text-align: center; }
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.price.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.price .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; }
.price h3 { font-size: 21px; }
.amount { font-family: var(--display); font-weight: 800; font-size: 36px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.amount small { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.per { font-size: 14px; color: var(--muted); margin-top: -8px; min-height: 22px; }
.founding { font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 9px; padding: 7px 10px; }
.price ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.price li { padding-left: 24px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta { background: linear-gradient(160deg, #1F6F62, #154D44); color: #fff; border-radius: 24px; padding: 48px 24px; text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; }
.cta p { color: rgba(255,255,255,.8); margin: 10px auto 0; max-width: 46ch; }
.cta .signup input { background: rgba(255,255,255,.95); color: #15211E; border-color: transparent; }
.cta .btn { background: #fff; color: #154D44; }
.cta .form-msg { color: rgba(255,255,255,.85); }
.cta .form-msg.ok { color: #fff; }
.cta .form-msg.err { color: #FFD6CC; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 48px 0 24px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 8px 0 28px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.legal .summary p { margin: 0; }
