/* Shared public-site standards. See ../bairrio-internal/design-principles.md.
   Load after section styles; new sections consume these tokens directly. */
@font-face {
  font-family: Inter;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #1B3A6B;
  --blue-lt: #EEF3FA;
  --blue-dk: #122748;
  --terracota: #C8563A;
  --terra-dk: #A5402A;
  --gold: #C8A84B;
  --green: #22633D;
  --text: #122748;
  --color-muted: #5F6975;
  --muted: var(--color-muted);
  --border: #DCE1E7;
  --surface-soft: #F7F7F5;
  --cream: var(--surface-soft);
  --white: #FFFFFF;
  --content-width: 1200px;
  --gutter: 24px;
  --section-space: 72px;
  --font-section: 40px;
  --radius-control: 10px;
  --radius-panel: 20px;
  --shadow-card: var(--shadow-md);
  --shadow-hover: var(--shadow-lg);
  --shadow-sm: 0 2px 6px #12274808;
  --shadow-md: 0 12px 36px #1227480A;
  --shadow-lg: 0 16px 40px #12274812;
}
body { font-family: Inter, Arial, sans-serif; color: var(--text); font-size: 16px; line-height: 1.65; }
[hidden] { display: none !important; }
a, button, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--terra-dk); outline-offset: 4px; }
section, [id] { scroll-margin-top: 100px; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-150%); z-index: 500; padding: 12px 20px; background: white; color: var(--blue); border-radius: var(--radius-control); }
.skip-link:focus { transform: none; }

/* The homepage and journal share one header and footer. */
.site-header { position: sticky; top: 0; height: 80px; padding: 0 max(var(--gutter), calc((100% - var(--content-width)) / 2)); background: #FFFFFFF5; }
.site-header .nav-left { gap: 32px; }
.site-header .nav-right { gap: 16px; }
.site-header .logo { font-size: 24px; gap: 9px; }
.site-header .logo svg { width: 30px; height: 30px; }
.site-header .nav-link { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header .nav-cta { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: var(--radius-control); background: var(--blue); color: white; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header .nav-cta:hover { background: var(--blue-dk); }
.site-header .lang-globe-btn { min-height: 44px; min-width: 44px; font-size: 13px; border: 0; }
.site-header .lang-drop-opt { min-height: 44px; }
.site-header .menu-btn { width: 44px; height: 44px; }
.mobile-menu { top: 80px; }
.mobile-menu a { min-height: 44px; display: flex; align-items: center; }
.wrap, .section-inner, .hero-inner, .footer-inner, .savings-inner,
#how .how-shell, #benefits .benefits-shell {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  max-width: var(--content-width);
  margin-inline: auto;
}
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--border); background: white; text-align: left; color: var(--muted); }
.site-footer .footer-inner { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer .footer-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 800; letter-spacing: -.04em; color: var(--blue); text-decoration: none; margin-bottom: 5px; }
.site-footer .footer-logo svg { display: block; flex-shrink: 0; }
.site-footer .footer-logo b { font-weight: inherit; }
.site-footer .footer-logo span { color: var(--terracota); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer .footer-tagline { font-size: 14px; }
.site-footer .footer-contact { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .footer-social-title { font-size: 13px; }
.site-footer .footer-legal { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); max-width: var(--content-width); margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.7; color: var(--muted); opacity: 1; }

/* One hierarchy, with deliberately quieter explanatory copy. */
#how .how-title, #benefits .benefits-title, .section-title, .questions h2,
.waitlist .section-title, .calc-title {
  font-size: var(--font-section); font-weight: 700; line-height: 1.15;
  letter-spacing: -.035em; color: var(--blue-dk);
}
#how .eyebrow, #benefits .eyebrow, .eyebrow, .section-tag, .calc-eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .1em;
  color: var(--terra-dk); line-height: 1.5; margin-bottom: 16px;
}
.btn-primary, .btn-secondary { padding: 14px 22px; min-height: 52px; font-size: 15px; border-radius: var(--radius-control); display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary { border: 0; text-decoration: underline; text-underline-offset: 5px; padding-inline: 8px; }
.hero { padding: 64px 0 var(--section-space); border: 0; }
.hero-inner { gap: 64px; grid-template-columns: 1fr 1.05fr; }
.hero h1 { font-size: clamp(40px, 4.25vw, 60px); font-weight: 750; line-height: 1.07; letter-spacing: -.045em; color: var(--blue-dk); margin: 0 0 24px; }
.hero h1 em { color: var(--blue); }
.hero-badge { font-size: 12px; letter-spacing: .1em; color: var(--terra-dk); margin-bottom: 24px; }
.hero-badge::before { display: none; }
.hero p { font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 28px; max-width: 490px; }
.hero .hero-reassurance { font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.vision-cover { border-radius: var(--radius-panel); box-shadow: var(--shadow-lg); }
.hero .vision-caption { font-size: 13px; text-align: center; max-width: none; margin: 14px 0 0; }
.vision-cover-title { font-size: 26px; }
.vision-cover-sub { font-size: 14px; }
#how, #benefits, .savings-section, .questions, .waitlist, .blog { padding: var(--section-space) 0; }
#how, .questions, .blog { background: var(--surface-soft); }
#benefits, .savings-section, .waitlist { background: white; }
#how .subtitle, #benefits .intro, .calc-intro-copy { font-size: 16px; line-height: 1.65; color: var(--muted); }
#how .audience button, #benefits .audience button { min-height: 44px; font-size: 14px; }
#how .step-heading, #benefits .benefit-label { font-size: 16px; line-height: 1.4; }
#how .step-summary, #benefits .benefit-summary { font-size: 13px; line-height: 1.65; color: var(--muted); }
#how .journey-label, #benefits .navigation-hint { font-size: 12px; color: var(--muted); }
#how .detail-description { font-size: 15px; line-height: 1.65; }
#how .caption, #benefits .benefits-disclaimer, #benefits .product-caption { font-size: 13px; line-height: 1.6; color: var(--muted); }
#how .scene-eyebrow, #benefits .sample-label { font-size: 11px; color: var(--muted); }
#benefits .benefits-title br { display: none; }
#benefits .service-choice { font-size: 13px; min-height: 44px; }

/* Calculator behavior is retained; assumptions stay legible beside the result. */
.calc-intro { gap: 64px; }
.calc-price-field, .calc-presets button, .calc-rates, .calc-cta { border-radius: var(--radius-control); }
.calc-calculator { border-radius: var(--radius-panel); border-color: var(--border); box-shadow: var(--shadow-md); }
.calc-range-labels, .calc-presets button, .calc-commission legend small,
.calc-input-note, .calc-cta-note, .calc-assumptions, .calc-benefit p,
.calc-included-title, #calc-value-error { font-size: 13px; line-height: 1.6; }
.calc-breakdown .calc-flat { font-size: 12px; }
.calc-cta { min-height: 52px; font-size: 15px; }
.calc-rate span { min-height: 44px; }
/* Preserve the 6px visual track while making the slider touch target 44px. */
#calc-value-slider { height: 44px; margin: 0; background-size: 100% 6px; background-repeat: no-repeat; background-position: center; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.questions h2 { white-space: pre-line; margin-bottom: 20px; }
.muted { font-size: 16px; color: var(--muted); line-height: 1.7; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--blue); margin-top: 20px; text-underline-offset: 5px; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { position: relative; font-size: 16px; font-weight: 600; line-height: 1.5; cursor: pointer; min-height: 44px; padding: 10px 28px 10px 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 8px; font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { font-size: 15px; line-height: 1.75; color: var(--muted); padding: 0 32px 8px 0; }

.waitlist .section-inner { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); max-width: var(--content-width); grid-template-columns: 1fr 1fr; gap: 64px; }
.waitlist .section-title { margin-bottom: 24px; }
.waitlist .section-sub { font-size: 17px; line-height: 1.7; max-width: 470px; }
.waitlist .form-wrapper { padding: 32px; box-shadow: var(--shadow-md); border-radius: var(--radius-panel); }
.signup-form-heading { font-size: 28px; }
.signup-form-intro { font-size: 15px; }
.signup-photo { aspect-ratio: 1.8; border-radius: var(--radius-panel); }
.waitlist .role-label { min-height: 72px; }
.waitlist .role-title { font-size: 13px; }
.waitlist .role-icon { width: 20px; height: 20px; }
.waitlist .form-group label { font-size: 14px; }
.waitlist .form-note { font-size: 13px; line-height: 1.65; }
.waitlist .consent-row { font-size: 14px; }
.signup-optional-label { font-size: 12px; }
.signup-details summary small { font-size: 13px; }
.waitlist .form-group input, .waitlist .form-group select { min-height: 52px; font-size: 16px; border-radius: var(--radius-control); }
.waitlist .submit-btn { min-height: 52px; border-radius: var(--radius-control); }
.field-error { color: var(--terra-dk); font-size: 13px; margin-top: 6px; }
.form-errors { margin: 20px 0; padding: 16px; color: var(--terra-dk); background: #FFF4F0; border: 1px solid var(--terra-dk); border-radius: var(--radius-control); font-size: 14px; }
.form-errors ul { padding-left: 20px; margin-top: 8px; }
.form-errors a { color: inherit; text-underline-offset: 3px; }
[aria-invalid="true"] { border-color: var(--terra-dk) !important; }

.news-head { align-items: center; }
.news-head .section-sub { font-size: 16px; line-height: 1.65; margin-top: 16px; }
.news-head .section-title { max-width: 680px; white-space: pre-line; }
.news-home { grid-template-columns: 1.1fr 1fr; gap: 32px; }
.news-lead, .news-list { box-shadow: none; border: 1px solid var(--border); border-radius: var(--radius-panel); }
.news-lead { padding: 28px; gap: 16px; }
.news-figure { font-size: 44px; }
.news-lead-summary { display: none; }
.news-lead-title { font-size: 22px; }
.news-item { padding: 24px 0; }
.news-item-fig { width: 88px; }
.news-item-fig span, .news-figure-label { font-size: 13px; }
.news-item-title { font-size: 16px; }

/* Journal keeps its archive and sourcing; the surrounding system is shared. */
.blog-header { padding: var(--section-space) 0 32px; background: var(--surface-soft); border-color: var(--border); }
.blog-header-inner, .news-layout { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.blog-header h1 { font-size: var(--font-section); color: var(--text); line-height: 1.15; letter-spacing: -.035em; }
.blog-header p { font-size: 16px; line-height: 1.65; }
.blog-header .blog-header-label { font-size: 12px; color: var(--terra-dk); }
.news-layout { padding: 40px 0 var(--section-space); column-gap: 48px; }
.story-text p { color: var(--muted); text-align: left; hyphens: manual; }
.story-sources { display: block; }
.story-toggle { width: 44px; height: 44px; top: 14px; justify-content: center; }
.story-tagrow { min-height: 44px; padding-right: 48px; }
.story-more { display: inline-flex; align-items: center; min-height: 44px; }
.source-link, .share-buttons a, .share-buttons button { min-height: 44px; }

@media (min-width: 901px) {
  #how .scene { min-height: 375px; }
  #how .journey { gap: 40px; }
  #how .detail-copy { padding-top: 24px; }
}
@media (max-width: 1000px) {
  .hero-inner, .waitlist .section-inner { gap: 32px; }
  .faq-grid, .calc-intro { gap: 40px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner, .faq-grid, .waitlist .section-inner, .news-home { grid-template-columns: 1fr; }
  .hero p { max-width: 620px; }
  .hero-visual { max-width: 680px; }
  .hero h1 { max-width: 650px; }
  .faq-grid, .waitlist .section-inner { gap: 32px; }
  .signup-photo { display: none; }
  .waitlist .section-inner { max-width: 660px; }
  #how .intro, #benefits .section-heading { align-items: flex-start; }
  #how .scene { min-height: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section-space: 48px; --font-section: 32px; }
  .site-header { height: 72px; }
  .site-header .nav-right { gap: 4px; }
  .site-header .nav-cta { min-height: 44px; font-size: 12px; padding: 10px 12px; }
  .site-header .logo { font-size: 21px; gap: 6px; }
  .site-header .logo svg { width: 24px; height: 24px; }
  .site-header .lang-globe-btn { padding: 4px; }
  .site-header .lang-globe-btn svg { display: none; }
  .mobile-menu { top: 72px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .hero-actions { gap: 8px; }
  .btn-primary, .btn-secondary { font-size: 14px; padding: 12px 16px; }
  .vision-cover-title { font-size: 23px; }
  .vision-cover-sub { font-size: 13px; }
  .vision-cover-copy { left: 22px; bottom: 30px; }
  .vision-kicker { left: 22px; top: 22px; }
  .vision-cover { aspect-ratio: 1.2; }
  #how .audience button, #benefits .audience button { font-size: 13px; }
  #how .step-heading, #benefits .benefit-label { font-size: 15px; }
  .waitlist .form-wrapper { padding: 24px 20px; }
  .waitlist .role-title { font-size: 12px; }
  .signup-expectation { margin-bottom: 0; }
  .news-head { align-items: flex-start; flex-direction: column; }
  .news-lead { padding: 24px; }
  .news-list { padding: 0 24px; }
  .news-all { font-size: 14px; }
  .site-footer { padding: 36px 0 24px; }
  .site-footer .footer-inner { flex-direction: column; }
  .news-layout { padding-top: 32px; }
}
@media (max-width: 360px) {
  .site-header .logo { font-size: 18px; gap: 4px; }
  .site-header .logo svg { width: 21px; height: 21px; }
  .site-header .nav-cta { padding-inline: 8px; }
  .site-header .nav-right { gap: 0; }
  .calc-inputs, .calc-result { padding: 24px 18px; }
  .calc-commission legend { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print { .site-header { position: static; } }
