

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  /* Backgrounds — three levels */
  --bg-white:  #FFFFFF;
  --bg-light:  #F6F4F1;
  --bg-mid:    #EEEAE4;
  --bg-mid-2:  #E6E2DB;

  /* Borders */
  --border:    #D8D4CC;
  --border-strong: #C2BDB5;
  --border-card:   #E4E0D8;

  /* Text */
  --text:      #1A1917;
  --text-sec:  #4A4640;
  --text-mute: #7B7670;

  /* Brand / accent */
  --blue:      #3356E8;
  --blue-text: #FFFFFF;
  --blue-sub:  #DBE4FF;
  --blue-sub-text: #00115C;

  /* Interactions */
  --hover: rgba(26,25,23,.06);

  /* Radii */
  --r-md: 12px; --r-xl: 20px; --r-pill: 999px; --r-btn: 9px;

  /* Motion */
  --ease: cubic-bezier(.2,0,0,1);
  --ease-d: cubic-bezier(0,0,0,1);
  --t: 150ms;

  /* Fonts */
  --font-ui:    'Inter', system-ui, sans-serif;
  --font-serif: 'Literata', Georgia, serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); background: var(--bg-light); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }

/* ── LAYOUT ── */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 40px; }
.sec-header { margin-bottom: 40px; }
.sec-divider { border: none; border-top: 1px solid var(--border); }

/* ── SECTION BACKGROUNDS & PADDING ── */
:is(.roadmap-section, .about-section, .site-footer) { background: var(--bg-white); }
.features-section { background: var(--bg-light); }
.audience-section { background: var(--bg-mid); }
.support-section   { background: var(--bg-light); }
:is(.features-section, .roadmap-section, .audience-section, .about-section) { padding: 80px 0; }
.support-section { padding: 96px 0; }

/* ── TYPOGRAPHY ── */

/* Eyebrow — e.g. "A writing tool for people who think" */
:is(.hero-eyebrow, .support-right-label) {
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-mute);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; letter-spacing: .1em; font-weight: 500;
}
.hero-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--border-strong); }
.support-right-label { margin-bottom: 16px; display: block; }

/* H1 — hero headline only */
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 56px); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 20px;
}
.hero-headline em { font-style: italic; font-weight: 400; color: var(--text-sec); }

/* H2 — all section headings */
:is(.sec-title, .about-headline, .support-headline) {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}

/* H3 — card & donor amount titles */
:is(.feat-name, .road-title) {
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  color: var(--text); margin-bottom: 6px;
}

/* Body copy */
:is(.hero-sub, .aud-left-body, .support-body, .about-body) {
  font-size: 14.5px; line-height: 1.78; color: var(--text-sec);
}
.hero-sub { font-size: 15px; margin-bottom: 36px; max-width: 420px; }
.support-body { font-size: 14px; margin-bottom: 32px; }
.aud-left-body { margin-top: 8px; font-size: 14px; line-height: 1.75; }
.about-body { max-width: 560px; }
.about-body p + p { margin-top: 14px; }

/* Small body — card descriptions */
:is(.feat-desc, .road-desc) {
  font-size: 12.5px; font-weight: 400; line-height: 1.65; color: var(--text-sec);
}
.road-desc { margin-bottom: 16px; }

/* ── BUTTONS — shared rounded-rect base ── */
:is(.btn-cta, .btn-ghost, .hbtn-launch, .hbtn-support, .road-notify) {
  display: inline-flex; align-items: center;
  border-radius: var(--r-btn); font-family: var(--font-ui);
  letter-spacing: -.01em; text-decoration: none; border: none;
  cursor: pointer; position: relative; overflow: hidden; white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
/* Hover ripple overlay on tonal/ghost buttons */
:is(.btn-ghost, .hbtn-support, .footer-link)::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--hover); opacity: 0; transition: opacity var(--t) var(--ease);
}
:is(.btn-ghost, .hbtn-support, .footer-link):hover::before { opacity: 1; }

/* Primary — filled blue */
:is(.btn-cta, .road-notify) {
  background: var(--blue); color: var(--blue-text); font-weight: 600;
}
:is(.btn-cta, .road-notify):hover { background: #2645d4; transform: translateY(-2px); }
.btn-cta    { gap: 8px; padding: 0 20px; height: 44px; font-size: 13.5px; }
.road-notify { gap: 7px; padding: 0 16px; height: 38px; font-size: 12.5px; }
:is(.btn-cta, .road-notify) svg { width: 14px; height: 14px; flex-shrink: 0; position: relative; }

/* Tonal blue — header launch */
.hbtn-launch {
  background: var(--blue-sub); color: var(--blue-sub-text);
  gap: 6px; padding: 0 16px; height: 34px; font-size: 13px; font-weight: 600;
}
.hbtn-launch:hover { background: var(--blue); color: var(--blue-text); box-shadow: 0 2px 12px rgba(51,86,232,.28); }
:is(.hbtn-launch, .hbtn-support) svg, :is(.hbtn-launch, .hbtn-support) span { position: relative; }
:is(.hbtn-launch, .hbtn-support) svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Tonal grey — support + hero ghost */
:is(.hbtn-support, .btn-ghost) {
  background: var(--bg-mid); color: var(--text-sec); font-weight: 500;
}
:is(.hbtn-support, .btn-ghost):hover { color: var(--text); }
.hbtn-support { gap: 5px; padding: 0 14px; height: 34px; font-size: 13px; }
.btn-ghost    { gap: 6px; padding: 0 20px; height: 44px; font-size: 13.5px; }
.btn-ghost svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── HEADER ── */
#site-hdr {
  background: var(--bg-white); height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border-card);
}
.hdr-brand { display: flex; align-items: center; gap: 8px; }
.hdr-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.hdr-brand-sep  { width: 1px; height: 14px; background: var(--border-strong); flex-shrink: 0; }
.hdr-brand-sub  { font-size: 12px; font-weight: 500; color: var(--blue); opacity: .85; letter-spacing: .01em; }
.hdr-actions    { display: flex; align-items: center; gap: 6px; }

/* ── HERO ── */
.hero {
  max-width: 1000px; margin: 0 auto; padding: 80px 40px 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-right { min-width: 0; max-width: min(100%, 560px); }
.hero-actions { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }

/* ── APP SCREENSHOT MOCKUP ── */
.app-screenshot {
  border: 1px solid var(--border-card); border-radius: var(--r-xl);
  overflow: hidden; background: var(--bg-light); font-family: var(--font-ui);
  box-shadow: 0 0 0 1px rgba(26,25,23,.04), 0 4px 16px rgba(26,25,23,.08), 0 16px 48px rgba(26,25,23,.10);
  display: flex; flex-direction: column;
}
.ss-hdr {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  height: 48px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 8px 0 16px;
}
.ss-brand { display: flex; align-items: center; gap: 6px; }
.ss-brand-name { font-size: 13px; font-weight: 600; letter-spacing: -.025em; }
.ss-brand-sep  { width: 1px; height: 12px; background: var(--border-strong); flex-shrink: 0; }
.ss-brand-sub  { font-size: 10.5px; font-weight: 500; color: var(--blue); opacity: .85; }
.ss-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.ss-hbtn {
  height: 26px; padding: 0 7px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 500; color: var(--text-mute);
  display: flex; align-items: center; gap: 3px;
}
.ss-hbtn svg { width: 11px; height: 11px; }
.ss-hdiv { width: 1px; height: 15px; background: var(--border); margin: 0 2px; }
.ss-cta {
  height: 26px; padding: 0 9px 0 6px; border-radius: 7px;
  font-size: 10.5px; font-weight: 600; color: var(--blue-sub-text);
  background: var(--blue-sub); display: flex; align-items: center; gap: 4px; margin-left: 3px;
}
.ss-cta svg { width: 10px; height: 10px; }
.ss-body { display: flex; flex-direction: column; flex: 1; background: var(--bg-light); }
.ss-main { display: flex; flex-direction: column; min-height: 420px; position: relative; width: 100%; flex: 1; background: var(--bg-light); }
.ss-toolbar-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 5px 12px 5px; background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.ss-toolbar {
  background: transparent; border: none;
  border-radius: 0; padding: 0;
  display: flex; flex-direction: row; align-items: center; gap: 1px;
  box-shadow: none;
  flex-wrap: nowrap;
}
.ss-tbtn {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--text-mute);
  flex-shrink: 0;
}
.ss-tbtn.act { background: var(--blue-sub); color: var(--blue-sub-text); }
.ss-tbtn svg { width: 11px; height: 11px; }
.ss-tsep { width: 1px; height: 14px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.ss-editor {
  padding: 28px 32px 20px; font-family: var(--font-ui);
  font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg-light);
  flex: 1; width: 100%; max-width: 520px; margin: 0 auto;
}
.ss-h1  { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 16px; line-height: 1.2; }
.ss-h3  { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; line-height: 1; }
.ss-p   { color: var(--text); margin-bottom: 9px; font-size: 13.5px; line-height: 1.65; }
.ss-p.dim { color: var(--text); }
.ss-cursor {
  display: inline-block; width: 1.5px; height: 14px;
  background: var(--blue); vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ss-pill-placeholder { gap: 5px; }
.ss-pill-label { display: inline-block; height: 7px; border-radius: var(--r-pill); background: var(--border); width: 28px; flex-shrink: 0; }
.ss-pill-label--sm { width: 18px; }
.ss-pill-label--md { width: 34px; }
.ss-cta .ss-pill-label { background: rgba(0,17,92,.2); width: 36px; }
.ss-ftr {
  height: 32px; background: var(--bg-light); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 14px;
}
.ss-ftr-status { font-size: 10.5px; color: var(--text-mute); }
.ss-count-pill { display: flex; align-items: center; background: var(--bg-mid); border-radius: var(--r-pill); padding: 3px 10px; gap: 10px; }
.ss-cp-seg { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; color: var(--text-mute); }
.ss-cp-seg svg { width: 10px; height: 10px; }

:is(.features-grid, .roadmap-grid) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
:is(.feat-card, .road-card) {
  background: var(--bg-white); border: 1px solid var(--border-card);
  border-radius: var(--r-xl); padding: 24px 22px;
  position: relative; overflow: hidden;
}
:is(.feat-icon, .road-icon) {
  width: 36px; height: 36px; background: var(--blue-sub); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--blue-sub-text);
}
:is(.feat-icon, .road-icon) svg { width: 16px; height: 16px; }
.road-tag {
  display: inline-flex; align-items: center; background: var(--blue-sub);
  border-radius: var(--r-pill); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-sub-text);
  padding: 3px 10px; margin-bottom: 12px; opacity: .75;
}

/* ── AUDIENCE ── */
.audience-swiss { display: grid; grid-template-columns: 280px 1fr; }
.aud-left {
  padding-right: 48px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.aud-big-number {
  font-family: var(--font-serif); font-size: 96px; font-weight: 700;
  letter-spacing: -.05em; color: var(--blue); opacity: .12;
  line-height: 1; margin-bottom: 4px; user-select: none;
}
.aud-right { padding-left: 48px; }
.aud-row {
  display: grid; grid-template-columns: 32px 1fr; gap: 20px;
  align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border);
}
.aud-row:first-child { border-top: 1px solid var(--border); }
.aud-n { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--blue); opacity: .6; font-variant-numeric: tabular-nums; }
.aud-name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.aud-sub  { font-size: 12px; font-weight: 400; color: var(--text-mute); margin-top: 2px; }

/* ── DONATE ── */
.support-swiss { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: stretch; }
.support-momentum {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-white); border: 1px solid var(--border-card);
  border-radius: var(--r-xl); padding: 20px 22px;
}
.support-momentum-icon { flex-shrink: 0; color: var(--blue); opacity: .7; margin-top: 1px; }
.support-momentum-icon svg { width: 16px; height: 16px; }
.support-momentum-text { font-size: 13px; color: var(--text-mute); line-height: 1.65; }
.support-right { display: flex; flex-direction: column; }
.support-panel {
  flex: 1; display: flex; flex-direction: column;
  background: var(--bg-white); border: 1.5px solid var(--border-card);
  border-radius: var(--r-xl); overflow: hidden; margin-bottom: 14px;
}
.d-row {
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  text-decoration: none; border-bottom: 1px solid var(--border-card);
  transition: background var(--t) var(--ease); height: 80px;
}
.d-row:last-child { border-bottom: none; }
.d-row:hover { background: #EEF1FF; }
.d-row--featured { background: var(--blue-sub); }
.d-row--featured:hover { background: #D4DCFF; }
.d-row-price {
  font-family: var(--font-serif); font-size: 28px; font-weight: 600;
  letter-spacing: -.03em; line-height: 1; flex-shrink: 0; min-width: 64px;
}
.d-row--featured .d-row-price { color: var(--blue-sub-text); }
.d-row-body { flex: 1; min-width: 0; }
.d-row-give {
  font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--text-mute);
  transition: color var(--t) var(--ease);
}
.d-row:hover .d-row-give { color: var(--blue); }
.d-row--featured .d-row-give { color: var(--blue-sub-text); opacity: .6; }
.d-row--featured:hover .d-row-give { opacity: 1; }
.d-row-badge {
  display: inline-flex; align-items: center; background: var(--blue); color: var(--blue-text);
  border-radius: var(--r-pill); font-size: 8.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px;
  flex-shrink: 0; white-space: nowrap;
}
.d-row-arrow {
  flex-shrink: 0; color: var(--border-strong);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.d-row-arrow svg { width: 14px; height: 14px; display: block; }
.d-row:hover .d-row-arrow { color: var(--blue); transform: translateX(3px); }
.d-row--featured .d-row-arrow { color: var(--blue-sub-text); opacity: .4; }
.d-row--featured:hover .d-row-arrow { opacity: 1; }
.d-row-icon { flex-shrink: 0; min-width: 64px; display: flex; align-items: center; color: var(--text-mute); }
.d-row-icon svg { width: 15px; height: 15px; }
.support-note { font-size: 12px; font-style: italic; color: var(--text-mute); line-height: 1.6; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; }
.about-photo-col { display: flex; flex-direction: column; align-items: center; }
.about-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%;
  overflow: hidden; background: var(--blue-sub); margin-bottom: 14px; flex-shrink: 0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-photo-init {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 48px; font-weight: 600;
  color: var(--blue-sub-text); opacity: .4;
}
.about-caption { font-size: 12px; color: var(--text-mute); line-height: 1.5; text-align: center; }

/* ── FOOTER ── */
.site-footer { padding: 0; }
.footer-bottom { padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.footer-brand-name { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.footer-brand-sep  { width: 1px; height: 12px; background: var(--border-strong); flex-shrink: 0; }
.footer-brand-sub  { font-size: 12px; font-weight: 500; color: var(--blue); opacity: .85; }
.footer-maker      { font-size: 12px; color: var(--text-mute); }
.footer-links { display: flex; align-items: center; gap: 2px; }
.footer-link {
  font-size: 12px; font-weight: 500; color: var(--text-mute); text-decoration: none;
  padding: 5px 9px; border-radius: var(--r-pill); position: relative; overflow: hidden;
  transition: color var(--t) var(--ease); background: none; border: none;
  cursor: pointer; font-family: var(--font-ui);
}
.footer-link:hover { color: var(--text); }
.footer-sep { color: var(--border-strong); font-size: 11px; user-select: none; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(26,25,23,.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  background: var(--bg-white); border: 1px solid var(--border-card); border-radius: var(--r-xl);
  width: 100%; max-width: 640px; max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 8px 48px rgba(26,25,23,.18), 0 2px 8px rgba(26,25,23,.08);
  transform: translateY(12px); transition: transform 220ms var(--ease-d);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border-card); flex-shrink: 0;
}
.modal-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-pill); border: none;
  background: var(--bg-mid); cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--text-mute);
  transition: background var(--t), color var(--t); flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-mid-2); color: var(--text); }
.modal-close svg { width: 14px; height: 14px; }
.modal-body {
  overflow-y: auto; padding: 24px; font-size: 13.5px; line-height: 1.75;
  color: var(--text-sec); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.modal-body h2 { font-family: var(--font-serif); font-size: 15px; font-weight: 600; margin: 24px 0 8px; letter-spacing: -.01em; }
.modal-body h2:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 10px; }
.modal-body li { margin-bottom: 4px; }
.modal-body a { color: var(--blue); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-updated { font-size: 11.5px; color: var(--text-mute); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-card); }

/* ── RESPONSIVE ── */
@media (min-width: 1100px) {
  .hero { max-width: 1160px; grid-template-columns: 1fr minmax(0, 560px); }
}
@media (max-width: 820px) {
  .hdr-brand-sep, .hdr-brand-sub { display: none; }
  .ss-hide-mobile { display: none; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 36px 14px 52px; }
  .hero-sub { max-width: 100%; }
  .hero-right { order: -1; width: 100%; position: relative; max-width: 100%; }
  .app-screenshot { width: 100%; border-radius: var(--r-xl); }
  .ss-main { min-height: auto; }
  :is(.features-grid, .roadmap-grid) { grid-template-columns: 1fr 1fr; }
  .audience-swiss { grid-template-columns: 1fr; }
  .aud-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  .aud-right { padding-left: 0; padding-top: 8px; }
  .support-swiss { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 220px; }
  .about-photo-col { align-items: center; }
  .about-caption { text-align: center; }
  .about-content { order: 2; }
  .about-photo-col { order: 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Header: collapse text labels on the two secondary buttons at narrow widths */
@media (max-width: 600px) {
  .hdr-actions { gap: 4px; }
  .hbtn-support span { display: none; }
  .hbtn-support { padding: 0 9px; }
  .hbtn-launch-full { display: none; }
}
@media (min-width: 601px) {
  .hbtn-launch-short { display: none; }
}
@media (max-width: 520px) {
  :is(.features-grid, .roadmap-grid) { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px 44px; }
}

/* Scale the desktop screenshot uniformly on narrow screens.
   zoom participates in layout flow so no margin hacks needed.
   transform is kept as fallback for Firefox which doesn't support zoom. */
@media (max-width: 480px) {
  .app-screenshot { zoom: 0.82; transform: scale(0.82); transform-origin: top left; width: calc(100% / 0.82); }
}
@media (max-width: 400px) {
  .app-screenshot { zoom: 0.70; transform: scale(0.70); transform-origin: top left; width: calc(100% / 0.70); }
}
@media (max-width: 340px) {
  .app-screenshot { zoom: 0.60; transform: scale(0.60); transform-origin: top left; width: calc(100% / 0.60); }
}

/* ── LANGUAGE BANNER ── */
.lang-banner {
  background: var(--blue-sub); border-bottom: 1px solid rgba(51,86,232,.15);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; font-size: 13px; color: var(--blue-sub-text);
}
.lang-banner[hidden] { display: none !important; }
.lang-banner-msg { flex: 1; font-weight: 500; }
.lang-banner-cta {
  background: var(--blue); color: var(--blue-text); border: none;
  border-radius: var(--r-btn); padding: 6px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--font-ui); white-space: nowrap; flex-shrink: 0;
  transition: background var(--t) var(--ease);
}
.lang-banner-cta:hover { background: #2645d4; }
.lang-banner-dismiss {
  background: none; border: none; cursor: pointer; color: var(--blue-sub-text);
  opacity: .6; padding: 4px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 18px; line-height: 1; font-family: var(--font-ui);
}
.lang-banner-dismiss::after { content: '×'; }
.lang-banner-dismiss:hover { opacity: 1; }

/* ── LANGUAGE MENU IN FOOTER ── */
.footer-lang-wrap { position: relative; }
.footer-lang-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--text-mute);
  padding: 5px 9px; border-radius: var(--r-pill);
  background: none; border: none; cursor: pointer; font-family: var(--font-ui);
  transition: color var(--t) var(--ease);
}
.footer-lang-btn:hover { color: var(--text); }
.lang-menu {
  position: fixed; bottom: auto; right: auto;
  background: var(--bg-white); border: 1px solid var(--border-card);
  border-radius: var(--r-md); box-shadow: 0 4px 24px rgba(26,25,23,.12);
  min-width: 148px; overflow: hidden; z-index: 300;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: calc(100vw - 32px);
}
.lang-menu[hidden] { display: none; }
.lang-menu-item {
  font-size: 12.5px; font-weight: 500; color: var(--text-sec);
  padding: 9px 14px; text-decoration: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap;
}
.lang-menu-item:hover { background: var(--bg-light); color: var(--text); }
.lang-menu-item--active { color: var(--blue); font-weight: 600; }

/* ── RTL SUPPORT ── */
[dir="rtl"] .hdr-brand,
[dir="rtl"] .hdr-actions,
[dir="rtl"] .footer-links,
[dir="rtl"] .footer-brand-row { flex-direction: row-reverse; }
[dir="rtl"] .aud-left { padding-right: 0; padding-left: 48px; border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .aud-right { padding-left: 0; padding-right: 48px; }
[dir="rtl"] .d-row { flex-direction: row-reverse; }
[dir="rtl"] .modal-hdr { flex-direction: row-reverse; }
/* lang-menu position is set by JS to stay within viewport */
[dir="rtl"] .lang-banner { flex-direction: row-reverse; }

@media (max-width: 820px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
