/* Just Network Meter — follows the Arah Labs brand (arahlabs.com). */
:root {
  --ink: #151515;
  --cream: #f4efe6;
  --card: #fbf8f2;
  --line: #e3dccf;
  --muted: #4a463f;
  --label: #6b655a;
  --soft: #cfc8bb;
  --gold: #d4a94e;
  --gold2: #e1bb6a;
  --bar: #1b1b1f;
  --pad: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .8; }
img { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; }
.sec { padding: 0 var(--pad) clamp(72px, 9vw, 120px); }
.sora { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.h2 { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; margin: 0; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 620px; margin: 0; text-wrap: pretty; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }

.btn { background: var(--ink); color: var(--cream); border-radius: 999px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 15px; }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header { padding: 0 var(--pad); }
.site-header .row { min-height: 84px; padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.logo { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo img { border-radius: 9px; }
.logo span { font-size: 20px; letter-spacing: -0.03em; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: 15px; font-weight: 600; }
.site-header nav .links { display: flex; gap: 20px; }
.site-header nav .links a { color: var(--muted); white-space: nowrap; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) var(--pad) clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; margin: 0; }
.hero p { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--muted); max-width: 560px; text-wrap: pretty; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.facts { font-size: 15px; font-weight: 600; color: var(--label); }

/* Phone mock */
.phone { justify-self: center; width: min(100%, 360px); background: var(--ink); border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(21, 21, 21, .45); }
.screen { background: #f7f3ec; border-radius: 34px; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.screen .statusbar { border-radius: 0; padding: 14px 22px 12px; }
.screen-body { flex: 1; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.screen-body .ghost { height: 14px; border-radius: 7px; background: #e6dfd2; }
.screen-body .ghost.w60 { width: 60%; }
.screen-body .ghost.w80 { width: 80%; }
.screen-body .ghost.tall { height: 120px; border-radius: 18px; margin-top: 8px; }

/* Status bar and meter (mimics the app's status bar icon) */
.statusbar { background: var(--bar); color: #fff; border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.statusbar .time { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.statusbar .sys { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.statusbar .sys svg { width: 18px; height: 18px; fill: #fff; }
.meter { font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; font-weight: 700; line-height: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 42px; font-variant-numeric: tabular-nums; }
.meter.stacked .num { font-size: 22px; letter-spacing: -0.02em; }
.meter.stacked .unit { font-size: 9.5px; margin-top: 2px; letter-spacing: .02em; }
.meter.dual { align-items: flex-end; gap: 2px; font-size: 13px; }
.meter.dual span::after { font-size: 8px; margin-left: 2px; position: relative; top: -1px; }
.meter.dual .up::after { content: '▲'; }
.meter.dual .down::after { content: '▼'; }
.meter.compact { font-size: 20px; letter-spacing: -0.02em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; margin: 6px 0 0; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; margin: 0; }

/* Dark band */
.dark { background: var(--ink); color: var(--cream); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 36px; }
.dark .label { color: var(--gold2); }
.dark .lead { color: var(--soft); }
.grid { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 1.5px solid var(--muted); padding-top: 18px; }
.step .num { font-size: 15px; color: var(--gold2); }
.step h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--soft); text-wrap: pretty; margin: 0; }

/* Detail list */
.item { display: flex; flex-direction: column; gap: 8px; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.item h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0; }
.item p { font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; margin: 0; }

/* Call to action */
.cta { background: var(--gold2); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cta h2 { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; margin: 0; }
.cta p { font-size: 18px; line-height: 1.5; color: #2a2620; margin: 0; text-wrap: pretty; }

/* Footer */
.site-footer { padding: 0 var(--pad); }
.site-footer .row { border-top: 1px solid var(--line); padding: 28px 0 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--label); }
.site-footer .brand { display: flex; align-items: center; gap: 10px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .links a { color: var(--muted); font-weight: 600; }

/* Policy page */
.doc { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(72px, 9vw, 120px); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.08; margin: 14px 0 10px; text-wrap: balance; }
.doc .updated { color: var(--label); font-size: 15px; font-weight: 600; margin: 0 0 28px; }
.doc h2 { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: 23px; letter-spacing: -0.025em; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc a { border-bottom: 1.5px solid #c9c1b2; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 16px; padding: 22px 24px; margin: 0 0 28px; }
.summary p { margin: 0; color: var(--ink); }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 0 0 8px; }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.toc li { font-size: 15.5px; margin-bottom: 4px; break-inside: avoid; }
.toc a { border: 0; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--ink); font-weight: 700; background: #f1ebe0; }
tr:last-child td { border-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--muted); }

/* Not found */
.nf { min-height: 60vh; display: flex; align-items: center; padding: 64px var(--pad); }
.nf .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(100%, 320px); }
  .screen { min-height: 300px; }
}
@media (max-width: 480px) {
  .site-header nav .links, .site-header nav .btn { display: none; }
  .statusbar { padding: 12px 14px; gap: 10px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
