/* Shared public-site language. Loaded after page-specific layout styles. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap');

:root:root {
  --paper: #f6f4ee;
  --surface: #fffef9;
  --ink: #252923;
  --muted: #60635b;
  --rule: #d3d5c9;
  --accent: #244dcc;
  --font-body: 'Manrope', sans-serif;
  --font-display: 'Newsreader', Georgia, serif;
  --font: var(--font-body);
  --nero: var(--ink);
  --antracite: var(--ink);
  --grafite: var(--muted);
  --pietra: var(--muted);
  --crema: var(--paper);
  --avorio: #ecece3;
  --sabbia: var(--rule);
  --terracotta: var(--accent);
  --terracotta-dark: #163792;
  --terracotta-soft: #e9edfa;
  --brand-blue: var(--accent);
  --bg-main: var(--paper);
  --bg-card: var(--surface);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --border: var(--rule);
  --line: var(--rule);
  --lime: #e6ebc0;
  --lime-dark: #435632;
  --shadow: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before { content: none; }
*, *::before, *::after { box-sizing: border-box; }
::selection { background: #dce4ff; color: #13296c; }
body :is(h1, h2) {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
body h1 { font-size: clamp(3rem, 6.3vw, 6rem); }
body h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); }
body h3 { font-family: var(--font-body); letter-spacing: -.025em; line-height: 1.35; font-weight: 600; }
body :is(p, li, .subtitle, .feature-value, .faq-answer-content) { color: var(--muted); }
body p { text-wrap: pretty; }
body a { color: var(--accent); text-underline-offset: 4px; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
body :is(.page-header, .article-hero) { padding-top: 68px; padding-bottom: 42px; }
body :is(.page-header h1, .article-hero h1) { max-width: 19ch; margin-inline: auto; }
body .article-hero h1 { margin-inline: 0; }
body :is(.kicker, .eyebrow, .section-eyebrow, .section-kicker, .badge, .pill, .tag) {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font: 600 .72rem/1.5 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: none;
}
body :is(.pulse, .badge::before, .eyebrow::before) { display: none; }
body :is(.hero-card, .card, .mini-card, .answer-box, .article-card, .topic, .framework-card,
  .feature-row, .faq-section, .guide-section, .box, .faq-box, .related-box, .decision-card,
  .comparison-item, .comparison-section, .iap-card, .profile-card, .test-block,
  .guide-featured a, .guide-cluster a, .city-grid a) {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body :is(.article-card, .guide-featured a, .guide-cluster a, .city-grid a):hover {
  transform: none;
  box-shadow: none;
  background: #eceee4;
  border-color: var(--rule);
}
body :is(.card, .guide-section, .framework-card) { padding: 28px 0; }
body :is(.faq-section, .faq-box, .related-box) { padding: 32px 0; }
body :is(.faq-item, details) { background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
body :is(.faq-question, summary) { color: var(--ink); font-weight: 600; }
body .faq-question { padding-left: 0; }
body .faq-answer-content { padding-left: 0; }
body :is(.box, .highlight, .important, .info-box, .answer-box) {
  border-radius: 0;
  background: #eceee5;
  border: 0;
  border-left: 2px solid var(--accent);
  box-shadow: none;
}
body .important { border-left-color: #946632; background: #f0ebde; }
body :is(.button, .btn, .btn-primary, .btn-secondary, .primary-button, .secondary-button, .header-cta) {
  border-radius: 3px;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 600;
  transform: none;
}
body :is(.button-primary, .btn-primary, .primary-button, .button.primary, .header-cta) { background: var(--accent); border-color: var(--accent); color: white; }
body :is(.button-secondary, .btn-secondary, .secondary-button, .button.secondary) { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
body :is(.cta-box, .conversion-box, .newsletter-box) {
  background: #e9ecd9;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}
body :is(.cta-box, .conversion-box, .newsletter-box) :is(h2, h3, p) { color: var(--ink); }
body .conversion-primary { background: var(--accent); color: white; border-radius: 3px; }
body .conversion-secondary { color: var(--ink); border-color: var(--ink); border-radius: 3px; }
body .trust-strip span { border: 0; color: var(--muted); }
body :is(.breadcrumbs, .meta, .date) { font-size: .77rem; letter-spacing: .015em; }
body .meta { padding-top: 18px; border-top: 1px solid var(--rule); }
body footer { border-top: 1px solid var(--rule); background: #eeeee6; color: var(--muted); padding: 36px 0; }
body footer a { color: var(--ink); }
body footer strong { color: var(--ink); }
body footer .service-disclosure { width: min(1180px, calc(100% - 40px)); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--rule); text-align: left; }
body footer .service-disclosure p { max-width: 100ch; margin: 0; color: var(--muted); font: 400 .9rem/1.8 var(--font-body); }
body footer .service-disclosure p + p { margin-top: 16px; }
body footer .service-disclosure a, body .pricing-disclosure a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body .pricing-disclosure { border-block: 1px solid var(--rule); margin: 0 0 42px; padding: 20px 0; text-align: left; }
body .pricing-disclosure p { max-width: 100ch; margin: 0; font-size: .9rem; line-height: 1.75; }
body .pricing-disclosure p + p { margin-top: 10px; }
body :is(input:not([type='checkbox']), select, textarea) { border-radius: 2px; border-color: #aeb3a4; background: var(--surface); color: var(--ink); }
body .content { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body .content h2 { font-size: 1.8rem; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--rule); }
body .content h3 { font-size: 1rem; }

/* Navigation is independent of each page's old header selectors. */
.site-nav { position: sticky; top: 0; z-index: 5000; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0 32px; }
.site-nav__inner { display: flex; align-items: center; gap: 28px; max-width: 1220px; min-height: 78px; margin: auto; }
.site-nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font: 700 1rem var(--font-body); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.site-nav__brand img { width: 29px; height: 29px; border-radius: 6px; box-shadow: none; }
.site-nav__links { display: flex; align-items: center; gap: 25px; }
.site-nav__link { color: var(--muted); font: 500 .78rem var(--font-body); text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.site-nav__link:is(:hover, .is-active) { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 20px; border-radius: 3px; background: var(--ink); color: var(--surface); text-decoration: none; font: 600 .8rem var(--font-body); }
.site-nav__cta:hover { background: var(--accent); }
.site-nav__toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.site-nav__menu-label { font-size: .8rem; }
.site-nav__toggle > span:first-child { width: 18px; height: 8px; border-block: 1px solid currentColor; }
.site-nav.is-open .site-nav__toggle > span:first-child { height: 1px; transform: rotate(-45deg); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 6000; background: var(--ink); color: white; padding: 12px 18px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Reading pages keep a quiet measure instead of a stack of floating panels. */
body[data-page='article'] main.container { max-width: 850px; }
body[data-page='article'] article { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding-inline: 0; }
body[data-page='article'] article :is(p, li) { font-size: 1rem; line-height: 1.85; }
body[data-page='article'] article h2 { font-size: 2rem; margin-top: 42px; }
body[data-page='article'] .article-hero { padding-top: 64px; }
body[data-page='article'] .hero { padding: 64px 0 36px; }
body[data-page='article'] .conversion-box { margin-top: 48px; padding: 36px; }
body[data-page='article'] :is(.answer, .caution, .profile) { border-radius: 0; box-shadow: none; background: #eceee5; }
body[data-page='article'] .cta { background: #e9ecd9; border-radius: 0; box-shadow: none; }
body[data-page='article'] .cta :is(h2, p) { color: var(--ink); }
body :is(.ticket-form, .info-card) { border: 1px solid var(--rule); border-radius: 0; background: var(--surface); box-shadow: none; }

/* Pricing: aligned columns, visible limits, no elevated 'winning' card. */
body[data-page='pricing'] .pricing-grid { gap: 0; align-items: stretch; }
body[data-page='pricing'] .pricing-card { border: 1px solid var(--rule); border-right-width: 0; border-radius: 0; background: var(--surface); box-shadow: none; transform: none; padding: 30px 24px; }
body[data-page='pricing'] .pricing-card:last-child { border-right-width: 1px; }
body[data-page='pricing'] .pricing-card.popular { border: 1px solid var(--accent); background: #ecf0fd; box-shadow: none; transform: none; }
body[data-page='pricing'] .pricing-card.popular::before { border-radius: 0; background: var(--accent); font-size: .7rem; }
body[data-page='pricing'] .pricing-card h3 { color: var(--ink); font: 600 1.2rem var(--font-body); }
body[data-page='pricing'] .pricing-card.popular :is(.subtitle, .price-period, .price-note, .features-list li, .plan-note) { color: var(--muted); }
body[data-page='pricing'] .price-amount { color: var(--ink); font-family: var(--font-display); font-weight: 400; }
body[data-page='pricing'] .duration-toggle { border-radius: 3px; background: #e8eae0; padding: 4px; }
body[data-page='pricing'] .duration-btn { border-radius: 2px; font-family: var(--font-body); }
body[data-page='pricing'] .duration-btn.active { background: var(--ink); color: white; box-shadow: none; }
body[data-page='pricing'] .iap-card.pack { background: #e9ecd9; border: 1px solid var(--rule); color: var(--ink); box-shadow: none; }
body[data-page='pricing'] .iap-card.pack :is(h4, p, .iap-price, .once) { color: var(--ink); }
body[data-page='pricing'] .iap-save { border-radius: 0; background: var(--ink); color: white; }
body[data-page='pricing'] .comparison-section { overflow-x: auto; }
body[data-page='pricing'] .iap-section { margin-inline: 0; background: #eceee5; }
body[data-page='pricing'] .faq-section { margin-inline: 0; padding-inline: 24px; }
body .table-scroll { overflow-x: auto; }
body[data-page='pricing'] .plan-icon { display: none; }

/* Journal: lead article and ruled entries, not an interchangeable card grid. */
body[data-page='blog'] .hero { padding: 64px 0 48px; }
body[data-page='blog'] .hero-grid { grid-template-columns: 1.45fr .55fr; gap: 70px; align-items: end; }
body[data-page='blog'] .hero h1 { max-width: 17ch; font-size: clamp(3.2rem, 5.8vw, 5.8rem); }
body[data-page='blog'] .hero-copy { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body[data-page='blog'] .hero-panel::before, body[data-page='blog'] .hero-panel::after { content: none; }
body[data-page='blog'] .panel-list li { background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; padding: 16px 0; }
body[data-page='blog'] .hero-panel { background: transparent; color: var(--ink); border: 0; border-left: 1px solid var(--rule); border-radius: 0; padding: 0 0 0 28px; box-shadow: none; }
body[data-page='blog'] .hero-panel :is(h3, p, li, strong, small) { color: var(--muted); }
body[data-page='blog'] .section { padding: 48px 0; }
body[data-page='blog'] .featured-article { background: #e9ecd9; border: 0; border-radius: 0; padding: 42px; box-shadow: none; }
body[data-page='blog'] .articles-grid { display: block; margin-top: 40px; }
body[data-page='blog'] .article-card { display: grid; grid-template-columns: 160px 1.25fr 1fr; column-gap: 30px; align-items: start; min-height: 0; padding: 30px 0; }
body[data-page='blog'] .article-card h3 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 400; margin: 0; }
body[data-page='blog'] .article-card .article-meta { display: block; grid-row: span 2; }
body[data-page='blog'] .article-card .article-meta span { display: block; margin-bottom: 8px; }
body[data-page='blog'] .article-card p { margin: 0; }
body[data-page='blog'] .article-card .article-footer { grid-column: 2 / -1; border: 0; margin-top: 16px; padding: 0; }
body[data-page='blog'] .newsletter-box { margin-block: 48px; }

/* Beta: a field-test brief, with a readable form and no pretend phone UI. */
body[data-page='android'] .hero { padding: 64px 0; background: transparent; }
body[data-page='android'] .hero::before { content: none; }
body[data-page='android'] .hero h1 { max-width: 13ch; font-size: clamp(3.5rem, 6vw, 6rem); }
body[data-page='android'] .hero h1 em { color: var(--accent); font-weight: 400; }
body[data-page='android'] .device { border: 1px solid var(--rule); border-radius: 0; background: #e9ecd9; padding: 26px; width: 100%; max-width: 370px; transform: none; box-shadow: 12px 12px 0 #e7e7dd; }
body[data-page='android'] .device-screen { background: transparent; border-radius: 0; padding: 0; }
body[data-page='android'] .device-bar { display: none; }
body[data-page='android'] .test-card { background: transparent; border: 0; border-top: 1px solid #c6cdb5; border-radius: 0; padding: 18px 0; }
body[data-page='android'] .test-status { background: transparent; color: #465533; padding: 0; border-radius: 0; }
body[data-page='android'] .section-dark { background: #e9ecd9; color: var(--ink); }
body[data-page='android'] .section-dark :is(h2, h3, p, .number, .index, strong) { color: var(--ink); }
body[data-page='android'] .test-block { border-color: #c6cdb5; }
body[data-page='android'] .warning { background: transparent; border-radius: 0; border-color: #b4bba3; }
body[data-page='android'] .warning p { color: var(--muted); }
body[data-page='android'] .profile-card b { margin-bottom: 20px; }
body[data-page='android'] .section { padding: 64px 0; }
body[data-page='android'] .beta-form { background: var(--surface); border-radius: 0; box-shadow: none; padding: 32px; }
body[data-page='android'] .section-heading .index { color: var(--accent); }

body[data-page='guides-index'] .hero { padding: 64px 0 32px; }
body[data-page='guides-index'] .guide-map { background: #e9ecd9; color: var(--ink); border-radius: 0; box-shadow: none; }
body[data-page='guides-index'] .guide-map::after { content: none; }
body[data-page='guides-index'] .guide-map :is(p, strong, span, em) { color: var(--ink); }
body[data-page='guides-index'] .guide-quick a { border: 1px solid #c6cdb5; border-radius: 0; background: transparent; backdrop-filter: none; }
body[data-page='guides-index'] .guide-quick a:hover { transform: none; background: #f3f4e8; }
body[data-page='legal'] article { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
body[data-page='legal'] h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
body[data-page='legal'] h2 { font-size: 1.8rem; }
body .faq-question { width: 100%; text-align: left; border: 0; background: transparent; font-family: var(--font-body); }
body .faq-question:hover { background: #eceee5; }
body .faq-question::after { border-radius: 0; background: transparent; color: var(--accent); }
body .faq-item:not(.open) .faq-answer { visibility: hidden; }
body .faq-item.open .faq-answer { visibility: visible; }

/* A usable fallback remains if the shared navigation script cannot load. */
body > header .topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 20px 32px; }
body > header .brand { display: flex; align-items: center; gap: 10px; }
body > header .brand img { width: 32px; height: 32px; }
body > header .nav { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 960px) {
  .site-nav { padding-inline: 20px; }
  .site-nav__inner { min-height: 66px; gap: 12px; flex-wrap: wrap; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__links { display: none; order: 4; flex: 1 0 100%; padding-bottom: 16px; }
  .site-nav.is-open .site-nav__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .site-nav__link { border-bottom: 1px solid var(--rule); padding: 14px 0; }
  body[data-page='blog'] .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  body[data-page='blog'] .article-card { grid-template-columns: 120px 1fr; }
  body[data-page='blog'] .article-card p { grid-column: 2; margin-top: 12px; }
  body[data-page='pricing'] .pricing-grid { gap: 18px; }
  body[data-page='pricing'] .pricing-card { border-right-width: 1px; }
}
@media (max-width: 600px) {
  body h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  body h2 { font-size: 2.15rem; }
  .site-nav__brand { font-size: .9rem; }
  .site-nav__cta { min-height: 38px; padding: 9px 12px; font-size: .75rem; }
  .site-nav__brand img { width: 25px; height: 25px; }
  body :is(.page-header, .article-hero) { padding-top: 42px; }
  body[data-page='article'] .conversion-box { padding: 24px; }
  body[data-page='blog'] .article-card { display: block; }
  body[data-page='blog'] .article-card .article-meta { display: flex; gap: 16px; }
  body[data-page='blog'] .featured-article { padding: 26px; }
  body[data-page='blog'] .hero-panel { border-left: 0; border-top: 1px solid var(--rule); padding: 20px 0 0; }
  body[data-page='android'] .hero h1 { font-size: 3.5rem; }
  body[data-page='android'] .beta-form { padding: 22px; }
  body[data-page='android'] .field-grid { grid-template-columns: 1fr; gap: 0; }
  body[data-page='android'] .status-item { padding: 18px 12px; }
  body[data-page='android'] .device { box-shadow: 6px 6px 0 #e7e7dd; }
  body :is(.footer-row, .footer-inner) { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
