/* AfterRep — brand site
   Palette sampled directly from the AfterRep logo: blue on near-black with
   silver/white type. Dark-committed on purpose — the mark is built for it.
   Self-contained: no CDN, no webfonts, no external requests. */

:root {
  color-scheme: dark;

  --ink:      #04060A;   /* page — the logo's own black */
  --ink-2:    #0B0F16;   /* cards */
  --ink-3:    #141A24;   /* raised / hover */
  --line:     #1E2634;

  --text:     #E8ECF2;
  --text-2:   #9BA6B6;
  --text-3:   #6B7688;

  --blue:     #3A95E4;   /* primary brand blue */
  --blue-br:  #60BCFB;   /* highlight */
  --blue-dp:  #1B6FD0;   /* deep */
  --silver:   #C8C7C9;

  --radius: 16px;
  --maxw: 780px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  padding: 0 20px;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; position: relative; }

/* ---------- Header ---------- */

header { padding: 28px 0 20px; }

/* Header lockup: the AR symbol + a type-set wordmark. The stacked logo art is
   unreadable below ~90px tall, so the header sets "AfterRep" as live text. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.brand img { display: block; height: 34px; width: auto; }

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
}

.brand-word em {
  font-style: normal;
  color: var(--blue);
}

nav { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

nav a:hover { color: var(--text); border-color: #2B3648; background: var(--ink-2); }

nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dp), var(--blue));
  border-color: transparent;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 44px 0 8px;
}

/* Brand glow behind the mark. Decorative only — must not eat clicks. */
/* width is capped to the container: a fixed 620px here widened the layout
   viewport on a 390px phone (Chrome reported innerWidth 505). */
.hero::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  width: min(620px, 100%); height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(58,149,228,.20), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero img.mark {
  width: min(320px, 78vw);
  height: auto;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(58,149,228,.28));
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 14px;
  font-weight: 700;
}

h1 .accent {
  background: linear-gradient(135deg, var(--blue-br), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-2);
  font-size: 18px;
  max-width: 58ch;
  margin: 0 0 26px;      /* left-aligned by default (legal pages) */
}

/* Only the hero centres its lede. */
.hero .lede { margin: 0 auto 26px; }

/* Pulse divider — echoes the heartbeat line in the mark. */
.pulse {
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--blue) 50%, var(--line) 80%, transparent);
  opacity: .8;
  border: 0;
}

/* ---------- Buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dp));
  color: #fff;
  box-shadow: 0 6px 24px rgba(58,149,228,.30);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(58,149,228,.42); }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--ink-2); border-color: #2B3648; }

/* ---------- Type ---------- */

main { padding: 12px 0 8px; }

h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 44px 0 12px;
  font-weight: 650;
}

h3 { font-size: 17px; margin: 24px 0 6px; font-weight: 600; }

.updated { color: var(--text-3); font-size: 14px; margin: 0 0 10px; }

p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--blue); }

a { color: var(--blue-br); text-decoration-color: rgba(96,188,251,.4); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--blue-br); }

strong { font-weight: 650; color: #fff; }

/* Legal pages: give the h1 a calmer treatment than the hero. */
.page-title { font-size: clamp(28px, 5vw, 36px); text-align: left; margin-bottom: 6px; }

/* ---------- Callout ---------- */

.callout {
  background: linear-gradient(180deg, rgba(58,149,228,.07), rgba(58,149,228,.02));
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 14px; margin: 26px 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s ease, transform .15s ease;
}

.card:hover { border-color: #2B3648; transform: translateY(-2px); }
.card h3 { margin-top: 0; color: #fff; }
.card p { margin-bottom: 0; color: var(--text-2); font-size: 15px; }

.card-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(58,149,228,.12);
  border: 1px solid rgba(58,149,228,.22);
  margin-bottom: 12px;
}

.card-icon svg { width: 18px; height: 18px; stroke: var(--blue-br); fill: none; stroke-width: 1.9; }

/* ---------- Source apps ---------- */

.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }

.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* Our own app leads the list and is the only one that links out. */
a.source-own {
  color: var(--text);
  border-color: rgba(58,149,228,.45);
  background: linear-gradient(135deg, rgba(58,149,228,.14), rgba(58,149,228,.04));
  transition: border-color .2s ease, transform .12s ease;
}

a.source-own:hover { border-color: var(--blue-br); transform: translateY(-1px); }

.source-name { font-weight: 600; }

.source-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dp));
  color: #fff;
}

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.plan.featured { border-color: rgba(58,149,228,.5); background: linear-gradient(180deg, rgba(58,149,228,.08), var(--ink-2)); }

.plan .tag {
  position: absolute; top: -10px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dp)); color: #fff;
}

.plan .name { font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -1px; margin: 6px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan .note { font-size: 14px; color: var(--text-3); margin: 0; }

/* ---------- Table ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }

th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

th {
  font-weight: 600; color: var(--text-3); font-size: 12px;
  text-transform: uppercase; letter-spacing: .6px;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 56px;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
