/* erlangly.com: the app's tokens and type (planning/08_Visual_Design.md), plain CSS, no build step. */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --surface-page: #fafafa; --surface: #ffffff; --surface-muted: #f5f5f5;
  --border: #e5e5e5; --text: #0a0a0a; --text-secondary: #525252; --text-tertiary: #6b6b6b;
  --accent: #0a0a0a; --accent-contrast: #ffffff;
  --success: #067647; --success-tint: #ecfdf3; --warning: #a15c07; --warning-tint: #fffaeb; --info: #175cd3; --info-tint: #eff8ff;
  --radius: 6px; --radius-lg: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
  --width: 68rem; --gutter: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: #0a0a0a; --surface: #141414; --surface-muted: #1f1f1f;
    --border: #2a2a2a; --text: #fafafa; --text-secondary: #a3a3a3; --text-tertiary: #8f8f8f;
    --accent: #fafafa; --accent-contrast: #0a0a0a;
    --success: #47cd89; --success-tint: #0b2a1c; --warning: #fdb022; --warning-tint: #2b1d05; --info: #84caff; --info-tint: #0b1f3a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-feature-settings: "cv11"; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--surface-page); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }
pre { background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; line-height: 1.5; }
:not(pre) > code { background: var(--surface-muted); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.muted { color: var(--text-secondary); }
.small { font-size: .875rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: var(--accent-contrast); display: grid; place-items: center; font-size: 14px; }
.site-nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; font-size: .9375rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--text-secondary); white-space: nowrap; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 5rem; padding: 2.5rem 0; font-size: .875rem; color: var(--text-secondary); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { text-decoration: none; }
/* Phones: the brand on its own row, the links and Install below it */
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-block: .625rem; row-gap: .5rem; }
  .site-nav { width: 100%; margin-left: 0; gap: 1rem; }
  .site-nav .btn { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: .9375rem; text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn--primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn--small { padding: .375rem .75rem; font-size: .875rem; }

/* Sections */
.hero { padding: 5rem 0 3rem; }
.hero .wrap { display: flex; flex-direction: column; gap: 1.5rem; max-width: 52rem; margin-left: max(0px, calc((100% - var(--width)) / 2)); }
.hero p.lead { font-size: 1.25rem; color: var(--text-secondary); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.section { padding: 3.5rem 0; }
.section__head { max-width: 40rem; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.card p { color: var(--text-secondary); font-size: .9375rem; }
.shot { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.feature { display: grid; gap: 2rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; padding-block: 2.5rem; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature ul { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: .35rem; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }
.note { border-left: 3px solid var(--warning); background: var(--warning-tint); padding: .75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .9375rem; }

/* Pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.plan--featured { border-color: var(--accent); }
.plan__price { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
.plan__price small { display: block; margin-top: .25rem; font-size: .9375rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); font-size: .9375rem; }
.region-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; background: var(--surface); }
.region-toggle a { padding: .375rem .875rem; border-radius: 4px; text-decoration: none; font-size: .875rem; font-weight: 500; color: var(--text-secondary); }
.region-toggle a[aria-current="page"] { background: var(--accent); color: var(--accent-contrast); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: .625rem .75rem; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-weight: 500; }
.faq { display: flex; flex-direction: column; gap: 1.5rem; max-width: 46rem; }
.faq h3 { margin-bottom: .35rem; }

/* Docs */
.docs { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; padding-block: 3rem; }
.docs__nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: .25rem; font-size: .9375rem; }
.docs__nav a { text-decoration: none; color: var(--text-secondary); padding: .25rem 0; }
.docs__nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.prose { max-width: 44rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; overflow-wrap: break-word; }
.prose :not(pre) > code { overflow-wrap: anywhere; } /* long API paths wrap instead of widening the page */
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.375rem; margin-top: 1.5rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.prose ol { gap: .875rem; } /* numbered steps read better with room between them */
@media (max-width: 800px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .docs__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: .75rem; } }

