/* CoNotes website — light & dark, phone to desktop. */
:root {
  --bg: #FAFBFD; --surface: #FFFFFF; --ink: #14181F; --muted: #5B6573; --line: #E6EAF0;
  --blue: #1D4ED8; --blue-2: #38BDF8; --orange: #EA580C; --orange-2: #FDBA74;
  --tint: #EEF4FF; --warm: #FFF6EC; --shadow: 0 20px 60px rgba(20, 40, 90, .10);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0D1015; --surface: #151A21; --ink: #ECEFF4; --muted: #A2ABB7; --line: #252C36;
    --blue: #7DB3FF; --tint: #142036; --warm: #2A1E14; --shadow: 0 20px 60px rgba(0, 0, 0, .45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--blue); }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.ink { background: linear-gradient(120deg, var(--blue-2), #1D4ED8 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar ---------- */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
header.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
header.top .brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 8px rgba(29, 78, 216, .15); }
header.top .brand b { font-size: 19px; letter-spacing: -.01em; }
header.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover { color: var(--ink); }
header.top nav a.pill { color: var(--ink); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px rgba(20, 24, 31, .18); }
.btn.dark small { display: block; font-weight: 400; font-size: 11.5px; opacity: .75; line-height: 1.1; }
.btn.dark span { line-height: 1.2; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn.kofi { background: linear-gradient(120deg, #FF7A59, #EA580C); color: #fff; box-shadow: 0 10px 28px rgba(234, 88, 12, .30); }
.btn.apk { background: linear-gradient(120deg, var(--blue-2), #1D4ED8); color: #fff; box-shadow: 0 10px 26px rgba(29, 78, 216, .28); }
.btn.apk small { display: block; font-weight: 400; font-size: 11.5px; opacity: .85; line-height: 1.1; }
.btn.apk span { line-height: 1.2; }
.apkhelp { margin-top: 18px; max-width: 34em; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; font-size: 15px; }
.apkhelp summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.apkhelp ol { margin: 0 0 10px; padding-left: 20px; }
.apkhelp li { margin: 4px 0; }
.apkhelp p { margin: 0 0 12px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; }
.soon { display: inline-block; font-size: 14px; color: var(--muted); }
.soonpill { color: var(--muted); font-weight: 600; cursor: default; }
.soonpill:hover { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle, #BFDBFE, transparent 70%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, #FED7AA, transparent 70%); }
@media (prefers-color-scheme: dark) { .hero::before { background: radial-gradient(circle, #1E3A8A, transparent 70%); } .hero::after { background: radial-gradient(circle, #7C2D12, transparent 70%); } }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue); background: var(--tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.03em; }
.hero p.lead { font-size: 19.5px; color: var(--muted); margin: 0 0 30px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.device { width: 100%; max-width: 540px; justify-self: center; filter: drop-shadow(var(--shadow)); }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 18px 20px; font-size: 15px; color: var(--muted); }
.strip span::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 8px; }

/* ---------- sections ---------- */
section.block { padding: 84px 0 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.head p { margin: 0; color: var(--muted); font-size: 18px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.row.flip .art { order: 2; }
.row .art { background: var(--tint); border-radius: 28px; padding: 28px; }
.row .art svg { display: block; width: 100%; height: auto; }
.row h3 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.row p { color: var(--muted); margin: 0 0 14px; }
.row ul { margin: 0; padding-left: 0; list-style: none; }
.row li { padding-left: 28px; position: relative; margin: 6px 0; }
.row li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); border-radius: 1px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); margin-bottom: 14px; font-size: 22px; }
.card h4 { margin: 0 0 6px; font-size: 17.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- privacy ---------- */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.promise div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.promise b { display: block; margin-bottom: 6px; font-size: 17px; }
.promise span { color: var(--muted); font-size: 15px; }

/* ---------- support ---------- */
.support { margin-top: 84px; background: var(--warm); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.support svg { width: 120px; height: 120px; }
.support h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.02em; }
.support p { margin: 0; color: var(--muted); max-width: 36em; }
.support .note { font-size: 13.5px; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- final CTA + footer ---------- */
.final { text-align: center; padding: 96px 0 80px; }
.final h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; letter-spacing: -.02em; }
.final p { color: var(--muted); margin: 0 0 26px; }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 30px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; margin-right: auto; }
footer .brand img { width: 24px; height: 24px; border-radius: 7px; }
footer a { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .art { order: 0; }
  .row { margin-bottom: 56px; }
  .support { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; justify-items: center; }
  header.top nav a.hide-sm { display: none; }
}
