/* 4-Square — shared site styles */
:root {
  --ink: #0E1320;
  --ink-soft: #1a2236;
  --ink-2: #2a3247;
  --paper: #FAF8F4;
  --paper-soft: #F2EEE6;
  --paper-deep: #E8E2D5;
  --rule: rgba(14,19,32,0.10);
  --rule-strong: rgba(14,19,32,0.18);
  --muted: rgba(14,19,32,0.58);
  --muted-2: rgba(14,19,32,0.42);
  --accent: #E5563A;
  --accent-deep: #B8401E;
  --accent-soft: rgba(229,86,58,0.10);
  --green: #1d8b5a;
  --green-soft: rgba(29,139,90,0.10);
  --red: #B8401E;
  --display: 'Inter Tight', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', serif;
  --r: 6px;
  --r-lg: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); }
a.link:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ─── layout ─── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
}
@media (max-width: 420px) {
  .container, .container-narrow { padding: 0 16px; }
}
/* Prevent horizontal scroll anywhere */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* ─── nav ─── */
.nav-shell { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; line-height: 1; }
.nav-brand .tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; font-size: 13.5px; color: var(--ink); border-radius: var(--r); transition: background 0.12s; }
.nav-links a:hover { background: var(--paper-soft); }
.nav-links a.active { background: var(--paper-soft); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-login { background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: var(--r); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; border: none; transition: background 0.12s; }
.btn-login:hover { background: var(--ink-soft); }
.btn-login .small { display: block; font-family: var(--mono); font-size: 8.5px; opacity: 0.7; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 1px; }
.nav-mobile-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-mobile-toggle .bars { display:flex; flex-direction:column; gap: 4px; }
.nav-mobile-toggle .bars span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-mobile-open .nav-mobile-toggle .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-open .nav-mobile-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-mobile-toggle .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 14px 20px 22px; gap: 2px;
    max-height: calc(100vh - 64px); overflow-y: auto;
    box-shadow: 0 18px 40px -16px rgba(14,19,32,0.22);
  }
  .nav-mobile-open .nav-links a { padding: 14px 12px; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
  .nav-mobile-open .nav-links a::after { display: none; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; padding: 10px 0; }
  .nav-brand .name { font-size: 18px; }
  .nav-brand .tag { display: none; }
  .btn-login .small { display: none; }
  .btn-login { padding: 10px 14px; font-size: 12.5px; }
}

/* ─── buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; border: 1px solid transparent; transition: all 0.12s; cursor: pointer; min-height: 44px; }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--paper-soft); }
.btn-lg { padding: 15px 26px; font-size: 15px; }

/* ─── headings ─── */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.h-display { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6.5vw, 78px); letter-spacing: -0.045em; line-height: 0.96; margin: 0; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.h4 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--muted); line-height: 1.45; margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ─── sections ─── */
section.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
section.section:first-of-type { border-top: 0; }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline; margin-bottom: 48px; }
.section-head .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 8px; }
}

/* ─── cards ─── */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; }
.card.soft { background: var(--paper-soft); border-color: transparent; }
.card.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.card.accent { background: var(--accent); color: var(--paper); border-color: transparent; }
.card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ─── grid helpers ─── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── footer ─── */
.footer { background: var(--ink); color: var(--paper); padding: 72px 0 36px; margin-top: 0; }
.footer .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(250,248,244,0.12); }
@media (max-width: 980px) { .footer .row { grid-template-columns: 1fr 1fr; gap: 28px; } .footer .row > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer { padding: 56px 0 28px; } .footer .row { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; } .footer .row > div:first-child { grid-column: auto; } }
.footer h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,248,244,0.55); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13px; color: rgba(250,248,244,0.85); }
.footer ul a:hover { color: var(--paper); text-decoration: underline; }
.footer .legal { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,248,244,0.45); flex-wrap: wrap; }
@media (max-width: 540px) { .footer .legal { flex-direction: column; gap: 8px; } }

/* ─── form ─── */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.form-row .hint { font-size: 11.5px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.form-row input, .form-row textarea, .form-row select {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row.error input, .form-row.error textarea { border-color: var(--red); }
.form-row.success input { border-color: var(--green); }
.form-row .msg { font-size: 11.5px; font-family: var(--mono); margin-top: 2px; }
.form-row.error .msg { color: var(--red); }
.form-row.success .msg { color: var(--green); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ─── pills, tags ─── */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--paper-soft); color: var(--ink); border: 1px solid var(--rule); }
.pill.accent { background: var(--accent); color: var(--paper); border-color: transparent; }
.pill.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.warn { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }

/* ─── auth pages (login/register/forgot) ─── */
.auth-shell { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .auth-shell { grid-template-columns: 1fr; min-height: 0; } .auth-side { display: none; } }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 64px 32px; }
@media (max-width: 540px) { .auth-form-wrap { padding: 36px 20px; } }
.auth-form { width: 100%; max-width: 420px; }
.auth-side { background: var(--ink); color: var(--paper); padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .pinwheel-bg { position: absolute; right: -120px; bottom: -120px; opacity: 0.12; }
@media (max-width: 1100px) { .auth-side { padding: 48px 36px; } }

/* ─── visual accents ─── */
.dot-rule { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.dot-rule::before, .dot-rule::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ─── price card ─── */
.price-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
@media (max-width: 600px) { .price-card { padding: 22px; } }
.price-card.featured { background: var(--ink); color: var(--paper); border-color: transparent; transform: scale(1.02); box-shadow: 0 18px 42px rgba(14,19,32,0.18); }
@media (max-width: 880px) { .price-card.featured { transform: none; } .price-card.featured:hover { transform: translateY(-3px); } }
.price-card .price { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.price-card .price .currency { font-size: 24px; vertical-align: top; margin-right: 2px; opacity: 0.7; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.price-card ul li::before { content: '✓'; color: var(--accent); margin-right: 8px; font-weight: 700; }
.price-card.featured ul li::before { color: var(--accent); }

/* ─── product card ─── */
.product-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.product-card .icon-tile { width: 48px; height: 48px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }

/* ─── stat ─── */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -0.04em; line-height: 1; }
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ─── tabular legal pages ─── */
.legal-page h2 { margin-top: 36px; }
.legal-page h3 { margin-top: 24px; font-size: 16px; }
.legal-page p, .legal-page li { font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.legal-page ul { padding-left: 22px; }
.legal-page .toc { background: var(--paper-soft); border-radius: var(--r); padding: 20px 24px; margin-bottom: 36px; }
.legal-page .toc ol { margin: 0; padding-left: 22px; }
.legal-page .toc li { font-size: 13px; padding: 3px 0; }
.legal-page .toc a:hover { color: var(--accent); }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--muted); transition: transform 0.2s; font-weight: 300; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .body { padding: 0 0 24px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 700px; }

/* ─── tutorial card ─── */
.video-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,19,32,0.08); }
.video-card .thumb { aspect-ratio: 16 / 9; background: var(--ink); position: relative; display: flex; align-items: center; justify-content: center; color: var(--paper); }
.video-card .thumb .play { width: 48px; height: 48px; border-radius: 50%; background: rgba(229,86,58,0.95); display: flex; align-items: center; justify-content: center; }
.video-card .body { padding: 16px 18px 18px; }

/* ─── live indicator ─── */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(29,139,90,0.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(29,139,90,0.45); } 100% { box-shadow: 0 0 0 10px rgba(29,139,90,0); } }

/* ──────────────────────────────────────────────────────
   PREMIUM POLISH — restrained motion + refined surfaces
   ────────────────────────────────────────────────────── */

/* Smoother card surfaces with soft elevation on hover */
.card, .price-card, .product-card, .video-card, .prod, .feat {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1), border-color .25s;
}
.card:hover, .product-card:hover, .prod:hover, .feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(14,19,32,0.18), 0 4px 10px -4px rgba(14,19,32,0.06);
  border-color: var(--rule-strong);
}
.price-card:not(.featured):hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(14,19,32,0.18);
}
.price-card.featured:hover { transform: scale(1.02) translateY(-3px); box-shadow: 0 26px 56px -18px rgba(14,19,32,0.32); }

/* Buttons get a subtle press + glow */
.btn { position: relative; transition: transform .18s cubic-bezier(.2,.7,.2,1), background .18s, box-shadow .25s, color .18s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { box-shadow: 0 6px 18px -8px rgba(229,86,58,0.55); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(229,86,58,0.7); }
.btn-dark { box-shadow: 0 6px 18px -8px rgba(14,19,32,0.5); }

/* Animated underline on inline links */
a.link, .prod-cta { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px; transition: background-size .35s cubic-bezier(.2,.7,.2,1); }
a.link:hover, .prod-cta:hover { background-size: 100% 1px; text-decoration: none; }

/* Nav link active sliding indicator */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { background: transparent; }

/* Brand pinwheel: gentle continuous rotation, paused on hover for taste */
.nav-brand svg { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.nav-brand:hover svg { transform: rotate(90deg); }

/* Product badge: subtle floating + spin-on-hover */
.prod-badge { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .35s; box-shadow: 0 8px 22px -10px rgba(14,19,32,0.35); }
.prod:hover .prod-badge, .prod-head:hover .prod-badge { transform: rotate(-6deg) translateY(-2px); }
.prod-badge svg { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.prod:hover .prod-badge svg, .prod-head:hover .prod-badge svg { transform: rotate(90deg); }

/* Form fields gain a calmer focus ring */
.form-row input, .form-row textarea, .form-row select { transition: border-color .2s, box-shadow .25s, background .2s; }
.form-row input:hover:not(:focus), .form-row textarea:hover:not(:focus) { border-color: rgba(14,19,32,0.28); }

/* Reveal-on-scroll utility — JS toggles .is-in */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* Hero word stagger */
.h-display .word { display: inline-block; opacity: 0; transform: translateY(.4em); animation: wordIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.h-display .word:nth-child(1) { animation-delay: .05s; }
.h-display .word:nth-child(2) { animation-delay: .18s; }
.h-display .word:nth-child(3) { animation-delay: .31s; }
.h-display .word:nth-child(4) { animation-delay: .44s; }
.h-display .word:nth-child(5) { animation-delay: .57s; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* Stat count-up gets a soft fade as it animates */
.stat .v.counting { color: var(--accent); }

/* Subtle paper grain on hero areas — adds expensive feel */
.has-grain { position: relative; }
.has-grain::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:.035; mix-blend-mode:multiply;
  background-image: radial-gradient(rgba(14,19,32,.6) 1px, transparent 1px);
  background-size: 3px 3px; }

/* Faint top fade on the page so nav blur transition feels softer */
body::before { content:''; position: fixed; left:0; right:0; top:0; height: 80px; pointer-events:none; z-index: 49;
  background: linear-gradient(to bottom, rgba(250,248,244,0.6), transparent); opacity: 0; transition: opacity .3s; }
body.scrolled::before { opacity: 1; }
.nav-shell { transition: box-shadow .3s, background .3s; }
body.scrolled .nav-shell { box-shadow: 0 1px 0 var(--rule), 0 8px 24px -16px rgba(14,19,32,0.18); }

/* Footer link hover slide */
.footer ul a { display:inline-block; transition: transform .2s, color .2s; }
.footer ul a:hover { transform: translateX(3px); }

/* Pinwheel idle bg in auth side: very slow drift */
.auth-side .pinwheel-bg { animation: drift 24s linear infinite; }
@keyframes drift { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────────
   GLOBAL RESPONSIVE HARDENING
   ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  section.section { padding: clamp(48px, 12vw, 80px) 0; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 22px; }
  .product-card { padding: 22px; min-height: 0; }
  .stat .v { font-size: 32px; }
  .price-card .price { font-size: 38px; }
  .faq-item summary { padding: 18px 0; font-size: 16px; }
  .faq-item .body { font-size: 14px; }
  .lede { font-size: 17px; }
  /* Tables and any wide content scroll horizontally rather than overflow */
  table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 540px) {
  body { font-size: 14.5px; }
  .auth-form-wrap { padding: 32px 18px; }
  .form-grid-2 { gap: 0; }
  .btn-lg { padding: 13px 20px; font-size: 14px; }
  .h-display { letter-spacing: -0.035em; }
  .pill { font-size: 9.5px; padding: 4px 8px; }
}
/* All input controls comfortable on touch */
@media (max-width: 720px) {
  .form-row input, .form-row textarea, .form-row select { padding: 12px 14px; font-size: 15px; min-height: 44px; }
  .form-row textarea { min-height: 96px; }
  .nav-links a { min-height: 44px; }
}
/* Stop iOS zoom on focus by ensuring inputs ≥ 16px */
@media (max-width: 540px) {
  input, textarea, select { font-size: 16px !important; }
}
/* Generic safety: any element with a fixed pixel width inside content stays bounded */
.content-safe * { max-width: 100%; }
