/* SpringUp website — shared styles. No external fonts, no JS. */

:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card-2: #F7F7FA;
  --text: #000000;
  --text-2: #6E6E73;          /* secondary text, AA on white and on --bg */
  --line: #D8D8DE;
  --primary: #007AFF;
  --primary-dark: #0056B3;
  --primary-light: #E3F0FF;
  --link: #0056B3;
  --btn: #0071E3;             /* white text passes AA */
  --btn-hover: #0056B3;
  --success: #34C759;
  --success-ink: #1F7A35;
  --warning: #FF9500;
  --warning-bg: #FFF4E5;
  --warning-ink: #7A4600;
  --error: #FF3B30;
  --logo-base: #1E3A8A;
  --header-bg: rgba(242, 242, 247, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --card-2: #2C2C2E;
    --text: #FFFFFF;
    --text-2: #AEAEB2;
    --line: #38383A;
    --primary: #0A84FF;
    --primary-light: #0B2A4A;
    --link: #6AB0FF;
    --success-ink: #30D158;
    --warning-bg: #2E2008;
    --warning-ink: #FFB340;
    --logo-base: #8FB4FF;
    --header-bg: rgba(0, 0, 0, 0.8);
    --shadow: none;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--btn); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 8px; }

.muted { color: var(--text-2); }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 40em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: 4px 12px;
  padding-top: 10px; padding-bottom: 6px;
}

.brand {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-style: italic; font-size: 1.25rem; letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .up { color: var(--primary); }

.logo-base { stroke: var(--logo-base); }
.logo-mark { stroke: var(--primary); }

.nav { grid-area: nav; display: flex; gap: 4px; margin-left: -10px; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  padding: 6px 10px; border-radius: 999px;
}
.nav a:hover { background: var(--card-2); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-light); }

.lang {
  grid-area: lang;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  color: var(--text); border: 1px solid var(--line); background: var(--card);
  padding: 4px 10px; border-radius: 999px;
}
.lang:hover { border-color: var(--primary); color: var(--primary); }

@media (min-width: 720px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    padding-top: 12px; padding-bottom: 12px;
  }
  .nav { justify-content: flex-end; margin-left: 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 0.93rem; color: var(--text-2);
}
.footer-inner { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); text-decoration: underline; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { margin: 0; }

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-inner .copy { grid-column: 1 / -1; }
}

/* ---------- Sections and layout ---------- */

.section { padding: 48px 0 0; }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--text-2); margin: 0; }

.page-head { padding: 40px 0 8px; }
.page-head .lead { margin-bottom: 0; }

.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
@media (prefers-color-scheme: dark) { .card { border-color: var(--line); } }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--text-2); margin: 0; }
.card p + p { margin-top: 0.6em; }

a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease; }
a.card:hover { transform: translateY(-2px); }
a.card:hover h3 { color: var(--primary); }

.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary);
  margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }
.icon-green { background: rgba(52, 199, 89, 0.15); color: var(--success-ink); }

/* ---------- Hero ---------- */

.hero { padding: 44px 0 8px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { max-width: 16em; }
.hero .lead { margin-bottom: 26px; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  background: var(--btn); color: #fff; border: 1px solid var(--btn);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--card-2); border-color: var(--primary); }

.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; min-height: 52px; padding: 8px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.15;
}
.store small { font-size: 0.72rem; opacity: 0.85; }
.store span { font-size: 1.12rem; font-weight: 650; }
.store:hover { opacity: 0.88; }
.store-web { background: var(--card); color: var(--text); border: 1.5px solid var(--text); }

/* ---------- Highlights band ---------- */

.band {
  background: var(--card); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow);
  display: grid; gap: 18px; align-items: center;
}
@media (prefers-color-scheme: dark) { .band { border: 1px solid var(--line); } }
.band h2 { margin-bottom: 0.25em; }
.band p { margin: 0; color: var(--text-2); }
@media (min-width: 760px) { .band { grid-template-columns: 1fr auto; padding: 32px 36px; } }

/* ---------- Lists ---------- */

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success-ink); font-weight: 800;
}

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan { display: flex; flex-direction: column; gap: 14px; }
.plan-for { font-size: 0.9rem; color: var(--text-2); margin: 0; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.price { margin: 0; }
.price .from { display: block; font-size: 0.85rem; color: var(--text-2); }
.price .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.price .per { color: var(--text-2); font-weight: 500; }
.members {
  margin: 0; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--card-2); font-size: 0.93rem;
}
.members strong { display: block; font-size: 1.05rem; }

.features-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.features-list li { position: relative; padding-left: 26px; }
.features-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.features-list .yes::before { content: "✓"; color: var(--success-ink); }
.features-list .no { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--line); }
.features-list .no::before { content: "–"; color: var(--text-2); }

/* ---------- Callouts ---------- */

.callout {
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 1.2em;
  background: var(--primary-light); border-left: 4px solid var(--primary);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-warn { background: var(--warning-bg); border-left-color: var(--warning); }
.callout-warn strong { color: var(--warning-ink); }

/* ---------- Prose (legal pages) ---------- */

.prose {
  background: var(--card); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .prose { border: 1px solid var(--line); } }
@media (min-width: 720px) { .prose { padding: 36px 40px; } }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--text-2); }

.updated { color: var(--text-2); margin: 0; }

.toc { margin: 0 0 1.5em; padding: 16px 18px; background: var(--card-2); border-radius: var(--radius-sm); }
.toc p { font-weight: 650; margin-bottom: 0.4em; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 0.2em; break-inside: avoid; }

/* Tables that stack on phones */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.85rem; color: var(--text-2); font-weight: 650; }
.table td:first-child { font-weight: 600; }

@media (max-width: 639px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 2px 0; }
  .table td[data-label]:not(:first-child)::before {
    content: attr(data-label) ": "; color: var(--text-2); font-weight: 600; font-size: 0.85rem;
  }
}

/* ---------- Steps ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; min-height: 30px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn); color: #fff; font-weight: 700; font-size: 0.9rem;
}

.path { font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  border: 1px solid transparent;
}
@media (prefers-color-scheme: dark) { .faq details { border-color: var(--line); } }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--primary); }
.faq .answer { padding: 0 18px 18px; color: var(--text-2); }
.faq .answer p:last-child, .faq .answer ul:last-child, .faq .answer ol:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--text); }
.faq .answer ul, .faq .answer ol { padding-left: 1.3em; margin: 0 0 1em; }

/* ---------- Contact ---------- */

.contact { display: flex; gap: 16px; align-items: flex-start; }
.contact .icon { margin: 0; flex: none; }
.contact .value { color: var(--link); font-weight: 600; margin-top: 4px; word-break: break-all; }

/* ---------- Role split on feature page ---------- */

.role-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.note { font-size: 0.93rem; color: var(--text-2); margin-top: 16px; }
.section-gap { margin-top: 14px; }

/* ---------- Screenshots (ready for when they exist) ---------- */

.screens { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.phone {
  flex: none; width: 220px; scroll-snap-align: start;
  border-radius: 34px; padding: 10px; background: #1C1C1E; box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }

/* ---------- 404 ---------- */

.center { text-align: center; padding: 72px 0 24px; }
.center .actions { justify-content: center; }
