/* Upside Account — shared design system.
   Tokens + nav + footer + buttons + forms, so every page renders the same chrome.
   The server-injected header/footer partials rely on these class names. New pages
   should <link> this and add only page-specific styles. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --font-body: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'Spline Sans Mono', monospace;
  --paper: #F7F3EA;
  --card: #FFFDF8;
  --ink: #0C1B2A;
  --sky: #33B4FC;
  --blue: #0d6ea3;
  --muted: #33404f;
  --dim: #5c6672;
  --green: #0b7040;
  --red: #c0392b;
  --ice: #DDF2FE;
  --rule: 1.5px solid var(--ink);
  --gutter: clamp(20px, 4vw, 48px);
  --shell: 1320px;
}

html { scroll-behavior: smooth; }
html, body { background: var(--paper); }
body { font-family: var(--font-body); color: var(--ink); min-height: 100vh; overflow-x: clip; line-height: 1.6; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.shell { max-width: var(--shell); margin: 0 auto; }
.eyebrow { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.hl { position: relative; display: inline-block; isolation: isolate; color: var(--blue); }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: var(--sky); opacity: 0.35; z-index: -1; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { left: 16px; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--gutter); background: var(--paper); border-bottom: var(--rule); }
.nav-logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; display: block; }
.nav-wordmark { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-cta { background: var(--ink); color: var(--paper); padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--sky); color: var(--ink); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: var(--rule); border-radius: 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 1100px) { .nav-links { gap: 24px; } .nav-link--account { display: none; } }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-right { gap: 12px; min-width: 0; }
  .nav-cta { padding: 10px 18px; font-size: 14px; }
  .nav-wordmark { font-size: 18px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: var(--rule); padding: 8px var(--gutter) 20px; }
  .nav-links[data-open='true'] { display: flex; }
  .nav-links .nav-link { display: block; padding: 14px 0; border-bottom: 1px solid rgba(12, 27, 42, 0.12); font-size: 17px; }
  .nav-link--account { display: block; }
}

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--sky); color: var(--ink); padding: 15px 30px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; border: var(--rule); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; font-family: inherit; }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); padding: 15px 30px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; border: var(--rule); box-shadow: 4px 4px 0 var(--sky); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sky); }
.btn-text { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; border-bottom: 2px solid var(--sky); padding-bottom: 2px; transition: color 0.2s; }
.btn-text:hover { color: var(--blue); }

/* ── FORMS ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > span.field-label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; }
.field input, .field select, .field textarea { background: #fff; border: 1.5px solid rgba(12,27,42,0.22); border-radius: 10px; color: var(--ink); padding: 0.7rem 0.9rem; font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,180,252,0.28); }
.field input::placeholder, .field textarea::placeholder { color: rgba(12,27,42,0.35); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field-error { font-size: 13px; color: var(--red); font-weight: 600; min-height: 1em; }
.field-error:empty { display: none; }
/* Honeypot: reachable by a naive bot, invisible + unfocusable for a human. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── FOOTER ── */
.footer { border-top: var(--rule); background: var(--paper); }
.footer-inner { max-width: var(--shell); margin: 0 auto; padding: 48px var(--gutter) 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.footer-brand img { width: 30px; height: 30px; display: block; }
.footer-note { font-family: var(--font-mono); font-size: 13px; color: var(--dim); flex: 1; min-width: 220px; }
.footer-email { color: var(--blue); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--sky); padding-bottom: 1px; }
.footer-email:hover { color: var(--ink); }
.footer-legal { max-width: var(--shell); margin: 0 auto; padding: 20px var(--gutter) 40px; border-top: 1px solid rgba(12, 27, 42, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: var(--shell); margin: 0 auto; padding: 96px var(--gutter) 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.breadcrumb a { color: var(--dim); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

/* ── CONTENT SECTIONS (marketing / industry pages) ── */
.page-hero { max-width: var(--shell); margin: 0 auto; padding: 32px var(--gutter) 40px; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow-line::before { content: ''; width: 34px; height: 1.5px; background: var(--blue); }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 20px; text-wrap: balance; max-width: 16ch; }
.page-hero .sub { font-size: 20px; color: var(--muted); line-height: 1.55; max-width: 640px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }

.section { max-width: var(--shell); margin: 0 auto; padding: 48px var(--gutter); }
.section h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 16px; text-wrap: balance; max-width: 22ch; }
.section .section-sub { font-size: 18px; color: var(--muted); max-width: 660px; line-height: 1.6; margin-bottom: 32px; text-wrap: pretty; }
.section p.lead { font-size: 18px; color: var(--muted); max-width: 700px; line-height: 1.7; }

.card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.card-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-card { background: var(--card); border: var(--rule); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 24px; }
.info-card .ic-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--ice); border: var(--rule); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.info-card .ic-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: var(--card); border: var(--rule); border-radius: 16px; box-shadow: 5px 5px 0 var(--sky); padding: 24px; }
.step-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.faq { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter); }
.faq h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 20px; }
.faq-item { border-top: 1.5px solid rgba(12,27,42,0.12); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1.5px solid rgba(12,27,42,0.12); }
.faq-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { color: var(--muted); line-height: 1.65; }

.cta-band { padding: 40px var(--gutter) 80px; }
.cta-band-inner { max-width: var(--shell); margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 48px; text-align: center; }
.cta-band-inner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--paper); }
.cta-band-inner p { color: rgba(247,243,234,0.82); max-width: 520px; margin: 0 auto 24px; font-size: 17px; }

.crosslinks { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) 64px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.crosslinks a { color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 1px; }
.crosslinks a:hover { color: var(--ink); }

@media (max-width: 900px) { .card-row, .card-row.cols-3, .step-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-row, .card-row.cols-3, .step-row { grid-template-columns: 1fr; } .cta-band-inner { padding: 32px 24px; } }
