:root {
  --bg: #f6f5f2;
  --paper: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #52514e;
  --muted: #7a7873;
  --line: #e3e1da;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-soft: #e6f0fc;
  --good: #0c8f3c;
  --amber: #b86e00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(20, 30, 50, 0.1);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.06), 0 30px 80px rgba(20, 40, 80, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 999px; padding: 10px 20px; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(42, 120, 214, 0.35); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfccc3; }
.btn-light { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 242, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; }
.nav-links { display: flex; gap: 28px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; background:
  radial-gradient(900px 400px at 15% -10%, rgba(42, 120, 214, 0.16), transparent 60%),
  radial-gradient(700px 360px at 90% 0%, rgba(12, 163, 12, 0.1), transparent 60%); }
.hero-inner { text-align: center; max-width: 940px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #0ca30c; box-shadow: 0 0 0 4px rgba(12, 163, 12, 0.18); }
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em; margin: 24px 0 20px; font-weight: 800; }
h1 em { font-style: normal; }
.hl { background: linear-gradient(100deg, var(--accent) 10%, #1aa37a 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.cta-row.center { margin-top: 28px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.fine.light { color: rgba(255, 255, 255, 0.75); }

.hero-shot { position: relative; margin-top: 56px; padding-bottom: 20px; }
.window { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.window.glow { box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #efeee9; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d6cd; }
.window-bar i:nth-child(1) { background: #ee6a5f; }
.window-bar i:nth-child(2) { background: #f5bd4f; }
.window-bar i:nth-child(3) { background: #61c454; }
.window-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float { position: absolute; }
.float-memo { right: -10px; bottom: -22px; width: 36%; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; transform: rotate(1.5deg); }
.float-memo { aspect-ratio: 0.85; }
.float-memo img { width: 227%; max-width: none; margin-left: -81.7%; margin-top: -17%; }
.float-chip { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow); line-height: 1.25; }
.float-chip b { font-size: 18px; }
.float-chip span { font-size: 13px; color: var(--muted); }
.chip-a { left: -14px; top: 28%; }
.chip-b { left: 8%; bottom: -14px; }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 26px 0; gap: 12px; }
.strip-inner b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.strip-inner span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; font-size: 12.5px; color: var(--accent-ink); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-blue { background: var(--accent-soft); color: var(--accent-ink); }
.i-green { background: #e3f6e8; color: var(--good); }
.i-amber { background: #fff1d6; color: var(--amber); }
.mini { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.mini h4 { font-size: 16px; margin-bottom: 6px; }
.mini p { font-size: 15px; color: var(--ink-2); }

/* Features */
.feature { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 48px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse { grid-template-columns: 1.5fr 0.8fr; }
.feature.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 16.5px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #e3f6e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c8f3c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.500 4.500L19 7.500'/%3E%3C/svg%3E") center / 13px no-repeat; }
.feature-shot .window { box-shadow: var(--shadow-lg); }

/* Compare */
.table-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--paper); }
.compare th.us, .compare td.us { background: var(--accent-soft); }
.compare thead th.us { color: var(--accent-ink); font-weight: 800; }
.compare td.yes { color: var(--good); font-weight: 600; }
.compare td.no { color: var(--muted); }

/* Roadmap */
.soon { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, #fff, #f1f6fd); border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow); }
.soon h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.soon p { color: var(--ink-2); }
.soon-cards { display: grid; gap: 14px; }
.soon-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; position: relative; }
.soon-card h4 { font-size: 16px; margin-bottom: 4px; }
.soon-card p { font-size: 14.5px; }
.tag { position: absolute; right: 14px; top: 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }

/* Download */
.download { background: linear-gradient(135deg, #1c5cab, #2a78d6 55%, #1aa37a); color: #fff; padding: 88px 0; text-align: center; }
.download h2 { color: #fff; }
.download p { color: rgba(255, 255, 255, 0.88); margin-top: 12px; }
.install { max-width: 520px; margin: 28px auto 0; text-align: left; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; padding: 14px 18px; }
.install summary { cursor: pointer; font-weight: 600; }
.install p { margin: 10px 0 8px; font-size: 15px; }
.install ul { padding-left: 20px; font-size: 15px; display: grid; gap: 4px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--accent); font-weight: 400; transition: transform 0.15s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding: 0 0 18px; max-width: 680px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--paper); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .muted { margin-top: 10px; font-size: 15px; }
.suite { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.suite b { color: var(--ink); margin-bottom: 4px; }
.suite em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.suite a em { color: var(--good); background: #e3f6e8; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature.reverse .feature-text { order: 0; }
  .soon { grid-template-columns: 1fr; padding: 28px; }
  .float-memo { display: none; }
  .chip-a { left: 8px; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Tool cards */
.card { position: relative; }
a.card.tool { display: block; transition: transform 0.12s ease, box-shadow 0.12s ease; }
a.card.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tag-live { color: var(--good); background: #e3f6e8; }
#exam-builder .cta-row { margin-top: 40px; }
.download a:not(.btn) { color: #fff; text-decoration: underline; }

/* Text pages (privacy, 404) */
.prose h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 0 0 8px; }
.prose h2 { font-size: 24px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.prose p, .prose ul { color: var(--ink-2); margin: 0 0 14px; max-width: 680px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--accent-ink); text-decoration: underline; }
.prose code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
@media (max-width: 560px) { .wrap, .narrow { width: calc(100% - 32px); } }
