/* Northpoint Fiber — demo site stylesheet */

:root {
  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --surface-2: #eef1f5;
  --ink:       #0f1720;
  --text:      #253141;
  --muted:     #64748b;
  --border:    #dde3ea;
  --brand:     #0d5c63;
  --brand-ink: #0a4a50;
  --accent:    #14b8a6;
  --signal:    #f59e0b;
  --ok:        #16a34a;
  --danger:    #dc2626;
  --shadow:    0 1px 2px rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.06);
  --radius:    10px;
  --wrap:      1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0c1116;
    --surface:   #131b22;
    --surface-2: #1a242d;
    --ink:       #f1f5f9;
    --text:      #cbd5e1;
    --muted:     #8496a9;
    --border:    #26333f;
    --brand:     #2dd4bf;
    --brand-ink: #5eead4;
    --accent:    #2dd4bf;
    --signal:    #fbbf24;
    --ok:        #4ade80;
    --danger:    #f87171;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.021em; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); font-weight: 650; }
h3 { font-size: 1.0625rem; font-weight: 650; }
p  { margin: 0; }
a  { color: var(--brand); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font: 600 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px; height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); text-decoration: none;
  font-size: 1.0625rem; letter-spacing: -.02em; white-space: nowrap;
}
.logo svg { display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .9375rem/1 inherit; text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .06s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06231f; } }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 15px; font-size: .875rem; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 64px; }
.hero .lede { margin-top: 16px; font-size: 1.1875rem; }
.hero h1 { max-width: 17ch; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-art {
  aspect-ratio: 1 / 1; width: 100%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%);
  display: grid; place-items: center;
}
.hero-art svg { width: 100%; height: auto; max-width: 360px; }

/* availability checker */
.checker { margin-top: 30px; max-width: 460px; }
.checker form { display: flex; gap: 8px; }
.checker input {
  flex: 1; min-width: 0;
  font: 1rem/1 inherit; color: var(--ink);
  padding: 13px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
}
.checker input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.checker .hint { font-size: .8125rem; color: var(--muted); margin-top: 9px; }
.checker .result {
  margin-top: 12px; font-size: .9375rem; font-weight: 500;
  padding: 11px 14px; border-radius: 8px; display: none;
}
.checker .result.show { display: block; }
.checker .result.yes { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.checker .result.no  { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal); }

/* ---------- stat bar ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats div { padding: 26px 24px; border-right: 1px solid var(--border); }
.stats div:last-child { border-right: 0; }
.stats .n {
  display: block; color: var(--ink); font-weight: 700; letter-spacing: -.03em;
  font-size: 1.75rem; font-variant-numeric: tabular-nums;
}
.stats .l { font-size: .8125rem; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }

/* ---------- plan cards ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -11px; left: 26px;
  background: var(--accent); color: #06231f;
  font: 700 .6875rem/1 ui-monospace, Menlo, monospace; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 5px;
}
.plan .name { font-weight: 650; color: var(--ink); font-size: 1.0625rem; }
.plan .speed {
  margin: 14px 0 4px; color: var(--ink);
  font-weight: 700; font-size: 2.5rem; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.plan .speed span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sym { font-size: .875rem; color: var(--muted); }
.plan .price {
  margin: 18px 0; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--ink); font-weight: 650; font-size: 1.375rem;
}
.plan .price span { font-size: .875rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: .9375rem; }
.plan li { display: flex; gap: 9px; padding: 6px 0; }
.plan li svg { flex: none; margin-top: 5px; color: var(--accent); }
.plan .btn { width: 100%; }

/* ---------- feature grid ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.feature .ico {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 14px;
  display: grid; place-items: center; color: var(--brand);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: .9375rem; color: var(--muted); }

/* ---------- band / cta ---------- */

.band { background: var(--surface); border-block: 1px solid var(--border); }
.cta { background: var(--ink); color: #fff; border-radius: 14px; padding: 52px 44px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.72); margin: 12px auto 26px; max-width: 52ch; }
.cta .btn-primary { background: var(--accent); color: #06231f; }
@media (prefers-color-scheme: dark) { .cta { background: var(--surface-2); border: 1px solid var(--border); } }

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .9375rem; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); }
thead th { color: var(--ink); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.y { color: var(--ok); font-weight: 600; }
td.n { color: var(--muted); }
th[scope="row"] { font-weight: 500; color: var(--text); }

/* ---------- details / faq ---------- */

.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
details { border-bottom: 1px solid var(--border); }
details:last-child { border-bottom: 0; }
summary {
  cursor: pointer; padding: 17px 22px; font-weight: 550; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { padding: 0 22px 19px; color: var(--muted); font-size: .9375rem; max-width: 72ch; }

/* ---------- support page ---------- */

.status-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent);
  border-radius: var(--radius); padding: 15px 20px; font-size: .9375rem;
}
.status-banner .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
}
.status-banner strong { color: var(--ink); }
.status-banner .when { margin-left: auto; color: var(--muted); font-size: .8125rem; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { flex: none; color: var(--brand); margin-top: 2px; }
.contact-list .k { display: block; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.contact-list .v { font-size: .9375rem; color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

form.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: 1rem/1.5 inherit; color: var(--ink);
  padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.form-note { font-size: .8125rem; color: var(--muted); margin-top: 14px; }
.form-sent {
  display: none; margin-top: 16px; padding: 13px 16px; border-radius: 8px; font-size: .9375rem;
  background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok);
}
.form-sent.show { display: block; }

/* ---------- footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 52px 0 30px; margin-top: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid p { font-size: .875rem; color: var(--muted); margin-top: 12px; max-width: 34ch; }
.foot-grid h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.foot-grid a:hover { color: var(--brand); }
.legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--muted);
}
.legal .demo {
  font: 600 .75rem/1 ui-monospace, Menlo, monospace;
  color: var(--signal); border: 1px solid var(--signal);
  border-radius: 4px; padding: 5px 9px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 300px; margin-inline: auto; }
  .plans, .features { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 620px) {
  .site-header .wrap { height: 60px; gap: 14px; }
  .nav { gap: 16px; }
  .nav a { font-size: .875rem; }
  .hero { padding: 52px 0 44px; }
  section { padding: 52px 0; }
  .cta { padding: 38px 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .checker form { flex-direction: column; }
}
