/* Stud Stacks marketing site — tokens mirror apps/mobile/src/theme.ts */
:root {
  --bg: #F4EFE3;
  --surface: #FBF7EC;
  --surface-muted: #EAE2D0;
  --border: #D6CBB2;
  --text: #2A2019;
  --text-muted: #6E5F4B;
  --text-faint: #9A8973;
  --primary: #264A34;
  --primary-fg: #F4EFE3;
  --accent: #B45B2A;
  --accent-soft: #F4D9C4;
  --positive: #3D7A46;
  --negative: #8A2E2E;
  --serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', 'JetBrains Mono', Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --shadow-sm: 0 1px 4px rgba(42, 32, 25, 0.06);
  --shadow-md: 0 4px 12px rgba(42, 32, 25, 0.14);
  --space: 4px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A140F;
    --surface: #241C15;
    --surface-muted: #2E251C;
    --border: #3E3225;
    --text: #EFE4D3;
    --text-muted: #B4A48B;
    --text-faint: #7A6C55;
    --primary: #5D9166;
    --primary-fg: #1A140F;
    --accent: #DA8A55;
    --accent-soft: #3F281A;
    --positive: #7EB287;
    --negative: #D96B6B;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55);
  }
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-word .tittle {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.site-nav .cta {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}
.site-nav .cta:hover { color: var(--primary-fg); background: var(--accent); }

/* Hero */
.hero {
  padding: 96px 0 72px;
}
.hero .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  margin-bottom: 20px;
  max-width: 780px;
}
.hero .sub {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--accent); color: var(--primary-fg); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.hero-visual {
  margin-top: 72px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 30%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.hero-visual .stat-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero-visual .stat-value {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}
.hero-visual .stat-delta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--positive);
  padding: 6px 12px;
  background: rgba(61, 122, 70, 0.12);
  border-radius: var(--radius-sm);
}

/* Features */
.features {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.section-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.features h2 { margin-bottom: 48px; max-width: 620px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* Pricing */
.pricing {
  padding: 96px 0;
  text-align: center;
}
.pricing h2 { margin: 0 auto 40px; max-width: 560px; }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  text-align: left;
}
.plan {
  padding: 32px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.plan.recommended {
  border-color: var(--primary);
}
.plan-tag {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.plan h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.plan .price {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  margin-left: 6px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.plan li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  background:
    linear-gradient(45deg, transparent 40%, var(--accent) 40% 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, var(--accent) 40% 60%, transparent 60%);
  background-size: 50% 30%;
  background-repeat: no-repeat;
  background-position: center 65%, center 55%;
  transform: rotate(-8deg);
}

/* FAQ */
.faq {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.faq h2 { margin-bottom: 40px; max-width: 620px; }
details {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  margin-bottom: 12px;
}
details[open] { border-color: var(--accent); }
summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  font-family: var(--serif);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
details[open] summary::after { content: '−'; }
details > p, details > div {
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--text); }
.disclaimer {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.55;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  .site-nav a:not(.cta) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-visual { padding: 24px; }
  .hero-visual .stat-value { font-size: 52px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* The wordmark replaces the old text-and-tittle treatment. Height-constrained
   rather than width-constrained so it sits on the header baseline at any
   viewport, and capped so it never dominates a narrow phone screen. */
.brand-mark {
  height: 34px;
  width: auto;
  max-width: 62vw;
  display: block;
}
