/* Advoca website: shared styles. Tokens follow the Advoca design canvas (Glass Pin v2). */
:root {
  --ink: #0F2A20;
  --ink-hover: #072318;
  --ground: #F2F6F4;
  --white: #FFFFFF;
  --mint: #97E6B4;
  --mint-pale: #DDFBE6;
  --green: #2E7D52;
  --green-deep: #1F5A3C;
  --muted: #4A6457;
  --body: #2F4A3D;
  --line: #D5E2DA;
  --line-soft: #E4EBE7;
  --night-text: #E8F3ED;
  --night-muted: #9DB5A8;
  --font-display: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-hover); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; }
.display { font-family: var(--font-display); font-weight: 700; }

/* Header */
.site-header { padding: 1rem 1.5rem; }
.site-nav { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; margin-right: auto; min-height: 48px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; }
.nav-link { min-height: 48px; display: flex; align-items: center; padding: 0 .75rem; font-weight: 500; text-decoration: none; }
.nav-link[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.5rem; border-radius: 18px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; }
.btn-sm { min-height: 48px; padding: 0 1.25rem; border-radius: 16px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-hover); color: var(--white); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #86DCA6; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 500; }
.btn-outline:hover { background: rgba(15, 42, 32, .06); }
.btn-wide { min-width: 200px; }

/* Footer */
.site-footer { padding: 3rem 1.5rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.footer-id { display: flex; flex-direction: column; gap: .5rem; }
.footer-id .display { font-size: 1.375rem; }
.footer-id .small { font-size: .9375rem; color: var(--muted); }
.footer-id .fine { font-size: .875rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-nav a { min-height: 44px; display: flex; align-items: center; }

/* ---------- Landing ---------- */
.lp { overflow: hidden; }
.lp-sec { padding: 5rem 1.5rem; }
.lp-sec.white { background: var(--white); }
.lp-sec.night { background: var(--ink); color: var(--night-text); }
.lp-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.lp-kick { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 .75rem; }
.night .lp-kick { color: var(--mint); }
.lp-p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); margin: 0; }
.lp-card { background: var(--ground); border-radius: 28px; padding: 1.75rem; flex: 1 1 260px; display: flex; flex-direction: column; gap: .75rem; }
.lp-card h3 { margin: 0; font-size: 1.25rem; }
.lp-card h3.display { font-size: 1.375rem; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: .5rem; padding: .375rem .875rem; border-radius: 999px; background: var(--mint-pale); font-size: .875rem; font-weight: 700; margin: 0; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.pill.soon { font-size: .9375rem; color: var(--green-deep); }

.hero { padding-top: 3rem; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; }
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-lede { font-size: 1.25rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Phone mockups */
.phones { flex: 1 1 520px; min-width: 0; display: flex; justify-content: center; align-items: center; min-height: 600px; position: relative; }
.ph { width: 250px; height: 520px; border-radius: 40px; background: var(--ground); border: 8px solid var(--ink); box-shadow: 0 30px 60px rgba(15, 42, 32, .22); overflow: hidden; position: relative; flex-shrink: 0; }
.ph-left { transform: rotate(-8deg) translate(40px, 30px); z-index: 1; }
.ph-mid { z-index: 3; transform: translateY(-10px); width: 270px; height: 560px; }
.ph-right { transform: rotate(8deg) translate(-40px, 40px); z-index: 2; background: #0B1612; }
.ph-tb { position: absolute; left: 8px; right: 8px; top: 10px; height: 48px; border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 16px rgba(15, 42, 32, .12); display: flex; align-items: center; gap: 6px; padding: 0 6px 0 8px; z-index: 2; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 7px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.img-cover { background-size: cover; background-position: center; }
.img-field { background-image: url(img/field.jpg); }
.img-gig { background-image: url(img/gig.jpg); }
.img-sunrise { background-image: url(img/sunrise.jpg); }
.img-stall { background-image: url(img/stall.jpg); }
.img-steps { background-image: url(img/steps.jpg); }

@media (max-width: 640px) {
  .phones { min-height: 480px; }
  .ph-left, .ph-right { display: none; }
}

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.step-num { width: 48px; height: 48px; border-radius: 16px; background: var(--mint); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

.idea-row { display: flex; gap: 1rem; align-items: flex-start; }
.idea-row h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.idea-row p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--night-muted); }

/* Campus map illustration */
.map { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 32px; overflow: hidden; background: #E4EBE7; }
.map .road { position: absolute; background: #F7FAF8; }
.map .tag { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .94); border-radius: 16px; padding: .375rem .625rem .375rem .375rem; box-shadow: 0 8px 20px rgba(15, 42, 32, .14); max-width: 46%; }
.map .thumb { width: 34px; height: 42px; border-radius: 10px; flex-shrink: 0; display: block; }
.map .tag-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; font-size: .875rem; }
.map .tag-text b { font-weight: 700; }
.map .tag-text span { color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.checks li { background: var(--white); border-radius: 20px; padding: 1.25rem; display: flex; gap: .75rem; align-items: flex-start; font-size: 1.0625rem; line-height: 1.5; }

.faq details { background: var(--ground); border-radius: 20px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1.0625rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--green); flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 1.25rem; }

.cta-band { background: var(--mint); border-radius: 36px; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }

/* ---------- Legal pages ---------- */
.lg-sec { padding: 0 1.5rem; }
.lg-intro { padding-top: 3rem; padding-bottom: 2.5rem; }
.lg-intro .wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.lg-intro h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; }
.lg-lede { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 44rem; }
.lg-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; color: var(--muted); }
.lg-num { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0; }

.lg-body { padding-bottom: 4rem; }
.lg-body > .wrap { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.lg-toc { flex: 1 1 240px; display: flex; flex-direction: column; gap: .125rem; background: var(--white); border-radius: 20px; padding: 1rem .5rem; }
@media (min-width: 900px) { .lg-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; } }
.lg-toc-title { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .25rem .75rem .5rem; }
.lg-toc a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 12px; text-decoration: none; font-size: .9375rem; color: var(--body); }
.lg-toc a:hover { background: var(--line-soft); color: var(--ink); }

.lg-art { flex: 999 1 560px; min-width: 0; max-width: 46rem; display: flex; flex-direction: column; }
.lg-art h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
.lg-art h3 { font-size: 1.0625rem; font-weight: 700; margin: 0; }
.lg-art p, .lg-art li { font-size: 1.0625rem; line-height: 1.65; color: var(--body); }
.lg-art p { margin: 0; }
.lg-art ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.lg-block { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.lg-block.first { border-top: 0; padding-top: 0; }
.lg-block.highlight { background: var(--white); border-radius: 24px; padding: 2rem; border-top: 0; margin: 1rem 0; }
.lg-block .note { font-size: .9375rem; color: var(--muted); }
.lg-card { background: var(--white); border-radius: 20px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.lg-card p { font-size: .9375rem; }
.lg-contact { max-width: 30rem; }
.lg-contact p { font-size: 1.0625rem; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.tbl-scroll { overflow-x: auto; }
.lg-tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--white); border-radius: 16px; overflow: hidden; }
.lg-tbl th, .lg-tbl td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; color: var(--body); }
.lg-tbl th { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #F7FAF8; }
.lg-tbl tr:last-child td { border-bottom: 0; }
.lg-art ul.lg-no { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.lg-art .lg-no li { background: var(--white); border-radius: 16px; padding: 1rem 1.125rem; display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; line-height: 1.5; }
.lg-no svg { flex-shrink: 0; margin-top: 2px; }

@media print {
  .site-header, .lg-toc, .site-footer, .skip-link { display: none; }
  body { background: #fff; }
  .lg-block.highlight { padding: 0; }
}
