@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #f6efe3;
  --bg-soft: #efe5d4;
  --card: #fffaf2;
  --text: #2b2118;
  --text-soft: #6b5d4f;
  --rule: #e2d5c0;
  --accent: #c8741c;
  --accent-ink: #ffffff;
  --accent-soft: #f5e1c6;
  --dark: #2b2118;
  --dark-ink: #f6efe3;
  --shadow: 0 18px 50px rgba(60, 40, 20, .18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --bg-soft: #1f1914;
    --card: #231c16;
    --text: #f1e8da;
    --text-soft: #b9aa96;
    --rule: #3a3027;
    --accent: #e39a45;
    --accent-ink: #1b140d;
    --accent-soft: #3a2a19;
    --dark: #0f0c09;
    --dark-ink: #f1e8da;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header { 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 var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 19px; white-space: nowrap; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink) !important; text-decoration: none; font-weight: 600; border-radius: 12px; padding: 12px 20px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200, 116, 28, .3); }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-store { padding: 12px 22px 12px 18px; min-width: 200px; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 19px; text-align: left; }
.btn-store small { font-size: 12px; font-weight: 500; opacity: .85; }
.btn-alt { background: var(--dark); color: var(--dark-ink) !important; }
.btn-alt:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
@media (prefers-color-scheme: dark) { .btn-alt { background: var(--text); color: var(--bg) !important; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.center .cta-row { justify-content: center; }
.fine { color: var(--text-soft); font-size: 14px; margin: 0; }

/* Hero */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); }
.lede { font-size: 19px; color: var(--text-soft); margin: 0; }
.lede strong { color: var(--text); }
.hero-shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(.6deg); }

/* Strip */
.strip { background: var(--dark); color: var(--dark-ink); padding: 26px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip p { margin: 0; font-size: 14px; opacity: .8; }
.strip strong { display: block; font-family: var(--font-display); font-size: 19px; opacity: 1; margin-bottom: 2px; }

/* Sections */
section { scroll-margin-top: 72px; }
.section-title { font-size: clamp(30px, 3.6vw, 42px); }
.section-sub { color: var(--text-soft); max-width: 62ch; margin: 0 0 8px; }
.center .section-sub { margin: 0 auto 8px; }

.features { padding: 88px 0 40px; }
.features > .wrap > .section-title, .features > .wrap > .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; margin: 72px 0; }
.feature.flip figure { order: 2; }
.feature figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.feature h3 { font-size: 30px; }
.feature p { color: var(--text-soft); margin: 0 0 12px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent) !important; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px !important; }
.note { font-size: 14px; font-weight: 600; color: var(--text) !important; }

.private { background: var(--bg-soft); padding: 88px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.private-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.private p { color: var(--text-soft); }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px 20px 72px; position: relative; color: var(--text-soft); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 18px/34px var(--font-display); text-align: center; }
.steps strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 2px; }

.pricing { padding: 88px 0; }
.pricing .section-title { text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 32px auto 20px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 28px 30px; }
.plan h3 { font-size: 26px; margin-bottom: 4px; }
.plan-pro { border: 2px solid var(--accent); }

.download { background: var(--dark); color: var(--dark-ink); padding: 80px 0; }
.download .section-sub, .download .fine { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }
.download a:not(.btn) { color: var(--dark-ink); }
.download .btn-alt { background: var(--dark-ink); color: var(--dark) !important; }

.faq { padding: 88px 0; }
.faq .section-title { text-align: center; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); margin: 0 0 18px; }

/* Article pages (privacy, 404) */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article h1 { font-size: clamp(32px, 4vw, 44px); }
.article h2 { font-size: 26px; margin-top: 44px; }
.article h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 26px 0 6px; }
.article .meta { color: var(--text-soft); font-size: 14px; margin: 0 0 28px; }
.article .callout { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; margin: 0 0 8px; }
.article .callout p { margin: 0; }
.article .callout p + p { margin-top: 10px; }
.article table { margin: 14px 0; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.article th { font-weight: 700; }
.article code { font-size: 14px; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }
.table-scroll { overflow-x: auto; }

/* Prices */
.price { font-family: var(--font-display); font-size: 34px; font-weight: 650; margin: 0 0 6px; }
.price span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-soft); }

/* Research models */
.research { padding: 88px 0 0; }
.research .section-title, .research .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
table.models, .article table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.models { max-width: 900px; margin: 28px auto 0; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
table.models th, table.models td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
table.models tr:last-child td { border-bottom: 0; }
table.models th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }

/* Guides list on the homepage */
.guides { padding: 88px 0 0; }
.guides .section-title { text-align: center; }
.guide-list { list-style: none; padding: 0; margin: 28px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.guide-list a { display: block; height: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 650; line-height: 1.2; margin-bottom: 6px; }
.guide-list span { color: var(--text-soft); font-size: 15px; }

/* Guide pages */
.crumbs { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; }
.crumbs a { color: var(--text-soft); }
.article .answer { font-size: 19px; color: var(--text); border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 28px; }
.article li { margin: 6px 0; }
.article th { background: var(--bg-soft); }
.article figure { margin: 24px 0; }
.article figure img { border-radius: 12px; box-shadow: var(--shadow); }
.article figcaption { font-size: 14px; color: var(--text-soft); margin-top: 10px; }
.guide-cta { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; margin: 36px 0; }
.guide-cta h2 { margin-top: 0 !important; font-size: 22px !important; }
.guide-cta .cta-row { margin: 14px 0 0; }
.sources { font-size: 14px; color: var(--text-soft); }
.related { list-style: none; padding: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 32px; color: var(--text-soft); font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.foot-brand { max-width: 40ch; margin: 0; }
.foot-brand strong { font-family: var(--font-display); color: var(--text); font-size: 18px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 20px; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid, .feature, .private-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip figure { order: 0; }
  .feature { margin: 48px 0; }
  .hero-shot { transform: none; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-nav a:not(.btn) { display: none; }
  .brand { font-size: 17px; }
  .lede { font-size: 17px; }
  .btn-store { flex: 1 1 100%; justify-content: center; }
  .plans { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
  .features, .private, .pricing, .faq { padding: 64px 0; }
  .research, .guides { padding-top: 64px; }
  .article .answer { font-size: 17px; }
  .article { padding: 40px 16px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
