/* ============================================================
   ring.cr — Communications Cloud brand stylesheet
   Single-typeface system: Sora. The Ring Node palette —
   RING navy + PING blue, with the product-color spectrum.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-tone:       #f7f8fa;
  --bg-section:    #eef1f6;
  --ink:           #0e2747;   /* RING navy — the brand base */
  --ink-2:         #0b1f3c;
  --ink-3:         #16335c;

  /* Text */
  --fg:            #0e2747;
  --fg-2:          #2c3a52;
  --fg-muted:      #4a5566;
  --fg-dim:        #6b7587;
  --fg-faint:      #97a0b2;
  --on-ink:        #f4f6fa;

  /* Lines */
  --line:          #e7eaf0;
  --line-2:        #d6dbe5;
  --line-strong:   #b8c0d0;

  /* Accents — the Ring Node palette */
  --blue:          #00a3ff;       /* PING blue — primary accent */
  --blue-2:        #0077c8;       /* deeper blue for hover / readable text */
  --blue-soft:     #e6f4ff;
  --cyan:          #00a3ff;       /* ring mark + accent moments */
  --cyan-soft:     #e6f6ff;
  --gold:          #ff7a00;       /* warm accent (eSIM orange) */
  --gold-soft:     #fff1e3;
  --success:       #00b388;       /* SIP green */
  --success-soft:  #e4f7f0;
  --tint-ink:      #f3f5f9;
  --tint-blue:     #e6f4ff;

  /* Product system — one color per product */
  --c-ring:        #0e2747;
  --c-sip:         #00b388;
  --c-smpp:        #7c4dff;
  --c-esim:        #ff7a00;
  --c-ping:        #00a3ff;
  --c-cf:          #ff3366;

  /* Layout */
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --container:     1240px;
  --container-tight: 1080px;

  /* Type */
  --font-sans: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Elevation — softer, more institutional */
  --shadow-sm:  0 1px 2px rgba(10,20,38,.04);
  --shadow:     0 1px 3px rgba(10,20,38,.05), 0 12px 28px -16px rgba(10,20,38,.14);
  --shadow-lg:  0 4px 14px rgba(10,20,38,.06), 0 32px 72px -28px rgba(10,20,38,.20);
}

/* Self-hosted Sora (variable, latin subset) — no third-party font connection */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv02","cv03","cv04","cv11","tnum";
  font-optical-sizing: auto;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--ink); color: #fff; }

/* ----- Layout ----- */
.container-x {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}
.container-t {
  width: 100%;
  max-width: var(--container-tight);
  margin-inline: auto;
  padding-inline: 32px;
}
@media (max-width: 640px) {
  .container-x, .container-t { padding-inline: 22px; }
}

.section    { padding: 128px 0; }
.section-sm { padding: 88px 0; }
@media (max-width: 900px) {
  .section    { padding: 88px 0; }
  .section-sm { padding: 56px 0; }
}

.section-dark {
  background: var(--ink);
  color: var(--on-ink);
}
.section-dark p, .section-dark .lead { color: rgba(244,246,250,.72); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #93c5fd; }

/* ============================================================
   TYPOGRAPHY — Sora, single typeface. Accent phrases in PING blue.
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 .5em;
  color: var(--fg);
  font-feature-settings: "ss01","cv02","cv11";
}
h1 {
  font-size: clamp(3rem, 7vw, 6.0rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .98;
}
h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 700;
}
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; }
h4 { font-size: .92rem; letter-spacing: 0; font-weight: 600; }

p  { color: var(--fg-muted); margin: 0 0 1em; }
.lead {
  font-size: clamp(1.15rem, 1.55vw, 1.32rem);
  color: var(--fg-2);
  max-width: 60ch;
  line-height: 1.5;
  font-weight: 400;
}

/* Accent phrases — the brand signature, now PING blue in one typeface */
.serif {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: var(--blue);
}
h1 .serif, h2 .serif {
  color: var(--blue);     /* the brand-blue accent, like the .cr in the logo */
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(21,128,61,.45);
  animation: pulse 2.4s infinite;
}
.eyebrow.blue .dot { background: var(--blue); animation: none; }
.eyebrow.gold .dot { background: var(--gold); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(21,128,61,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(21,128,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}

.text-ink     { color: var(--ink) !important; }
.text-muted-2 { color: var(--fg-muted) !important; }
.text-dim     { color: var(--fg-dim) !important; }
.text-brand   { color: var(--blue) !important; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container-x {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink);
  font-weight: 700; font-size: 1.18rem;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; color: var(--ink); }
.brand img { height: 33px; width: auto; max-width: none; flex-shrink: 0; display: block; }

.nav-main {
  display: flex; align-items: center; gap: 4px;
}
.nav-main > a, .nav-main > .has-menu > button {
  color: var(--fg-2);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-main > a:hover, .nav-main > .has-menu > button:hover {
  color: var(--ink); background: var(--tint-ink); text-decoration: none;
}
.nav-main .caret { width: 10px; height: 10px; opacity: .55; }

/* Mega menu */
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 680px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 60;
}
.has-menu:hover .mega,
.has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.mega-col h5 {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-dim); margin: 0 0 12px; font-weight: 600;
}
.mega-item {
  display: block;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  color: var(--ink);
}
.mega-item:hover { background: var(--bg-tone); text-decoration: none; color: var(--ink); }
.mega-item .title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.mega-item .title .ser { font-family: var(--font-sans); font-style: normal; color: var(--fg-dim); font-weight: 400; }
.mega-item .desc { font-size: 13px; color: var(--fg-muted); margin-top: 3px; line-height: 1.4; }
.mega-foot {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 13.5px; color: var(--fg-muted);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}
.lang-switch a {
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  color: var(--fg-muted); letter-spacing: .04em;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.signin {
  font-size: 14px; color: var(--fg-2); padding: 9px 12px;
  border-radius: 8px; text-decoration: none;
}
.signin:hover { color: var(--ink); background: var(--tint-ink); text-decoration: none; }

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-main {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px;
    flex-direction: column; align-items: stretch; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-main.is-open { display: flex; }
  .nav-main > a, .nav-main > .has-menu > button { padding: 12px 14px; }
  .mega { display: none; }
  .signin { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .12s;
  font-family: inherit;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px -10px rgba(10,20,38,.5);
}
.btn-primary:hover { background: #182542; color: #fff; border-color: #182542; }

.btn-secondary {
  background: #fff; color: var(--ink); border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--bg-tone); border-color: var(--ink); color: var(--ink); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-tone); color: var(--ink); }

.btn-on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-dark:hover { background: #e3e8f1; color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }

.btn-arrow::after { content: "→"; margin-left: 2px; transition: transform .15s; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; color: var(--blue); font-size: 14.5px;
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover { color: var(--blue-2); text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--ink);
  color: rgba(244,246,250,.72);
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
  letter-spacing: .01em;
}
.announce strong { color: #fff; font-weight: 600; }
.announce a {
  color: #93c5fd; font-weight: 600; margin-left: 6px;
}
.announce a:hover { color: #bfdbfe; }
.announce .sep { color: rgba(244,246,250,.32); margin: 0 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 80% 0%, var(--cyan-soft), transparent 70%),
    radial-gradient(45% 55% at 0% 30%, var(--tint-blue), transparent 70%);
  z-index: -1;
}
.hero::after {
  /* subtle bottom hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
}
@media (max-width: 900px) { .hero { padding: 72px 0 60px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.hero h1 { color: var(--ink); margin-bottom: .3em; }
.hero .lead { margin-top: 1.3rem; font-size: clamp(1.15rem, 1.55vw, 1.35rem); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  font-size: 13px; color: var(--fg-dim);
  align-items: center;
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta .sep { width: 1px; height: 14px; background: var(--line-2); }

/* ----- Hero panel (right side): network architecture card ----- */
.net-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.net-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px 14px;
}
.net-head .ttl {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  color: var(--fg-dim); text-transform: uppercase;
}
.net-head .ttl::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(21,128,61,.12);
}
.net-head .ttl-r {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-dim);
}
.net-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border-radius: 10px; overflow: hidden; margin: 0 8px;
}
.net-stats .cell { background: #fff; padding: 16px 18px; }
.net-stats .cell .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); font-weight: 600; }
.net-stats .cell .v {
  font-size: 1.65rem; font-weight: 700; color: var(--ink);
  margin-top: 6px; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.net-stats .cell .v small { font-size: .55em; font-weight: 600; color: var(--fg-dim); margin-left: 4px; letter-spacing: 0; }

.net-routes {
  margin: 8px;
  background: var(--bg-tone);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--fg-2);
}
.net-routes .r { display: flex; justify-content: space-between; padding: 4px 0; }
.net-routes .r + .r { border-top: 1px dashed var(--line); }
.net-routes .ok { color: var(--success); font-weight: 600; }
.net-routes .ok::before { content: "● "; }

.net-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 16px 10px;
  font-size: 12px; color: var(--fg-dim);
}
.net-foot code { font-family: var(--font-mono); color: var(--ink); font-size: 11.5px; }

/* ============================================================
   CREDENTIALS BAR
   ============================================================ */
.creds {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}
.creds-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 32px;
  font-size: 13px;
  color: var(--fg-muted);
  justify-content: center;
}
.creds-row b { color: var(--ink); font-weight: 600; }
.creds-row .x {
  display: inline-flex; align-items: center; gap: 8px;
}
.creds-row .x svg { width: 14px; height: 14px; color: var(--success); }
.creds-row .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: 96px 0 96px;
  background: var(--bg);
}
.manifesto-body {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-weight: 500;
  max-width: 30ch;
}
.manifesto-body .serif {
  font-size: 1.02em;
  color: var(--ink);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; gap: 36px; } }
.manifesto-meta {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  padding-top: 8px;
  max-width: 50ch;
}
.manifesto-meta p { color: var(--fg-muted); }
.manifesto-meta p + p { margin-top: 1em; }
.manifesto-signoff {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 17px;
  color: var(--fg-2);
}
.manifesto-signoff strong { color: var(--ink); font-weight: 400; }

/* ============================================================
   CHAPTERS — the narrative spine
   ============================================================ */
.chapter {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.chapter.alt { background: var(--bg-tone); }
.chapter.dark { background: var(--ink); color: var(--on-ink); border-top: 0; }
.chapter.dark h2, .chapter.dark h3 { color: #fff; }
.chapter.dark p, .chapter.dark .lead { color: rgba(244,246,250,.72); }

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
@media (max-width: 980px) { .chapter-grid { grid-template-columns: 1fr; gap: 56px; } }
.chapter-grid.flip > :first-child { order: 2; }
@media (max-width: 980px) { .chapter-grid.flip > :first-child { order: 0; } }

.chapter-num {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--fg-dim);
  letter-spacing: -.01em;
  margin-bottom: 28px;
  display: flex; align-items: baseline; gap: 14px;
}
.chapter-num .n {
  font-size: 1.55em; color: var(--blue);
  font-variant-numeric: lining-nums;
  letter-spacing: -.02em;
}
.chapter-num .label {
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11.5px; letter-spacing: .18em;
  font-weight: 600;
  color: var(--fg-dim);
}
.chapter.dark .chapter-num { color: rgba(244,246,250,.5); }
.chapter.dark .chapter-num .n { color: #93c5fd; }
.chapter.dark .chapter-num .label { color: rgba(244,246,250,.55); }

.chapter h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.chapter .lead { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 46ch; }
.chapter .actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- Chapter visuals ----- */

/* Architecture card */
.arch-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.arch-card.on-dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}
.arch-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.arch-card.on-dark .arch-head { border-color: rgba(255,255,255,.10); }
.arch-head .ttl {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 600;
}
.arch-card.on-dark .arch-head .ttl { color: rgba(244,246,250,.6); }
.arch-head .badge {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #c2e1cb;
  padding: 4px 10px; border-radius: 999px;
}
.arch-rows { display: grid; gap: 14px; }
.arch-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 12px 0;
}
.arch-row + .arch-row { border-top: 1px dashed var(--line); }
.arch-card.on-dark .arch-row + .arch-row { border-top-color: rgba(255,255,255,.10); }
.arch-row .k {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 600; padding-top: 4px;
}
.arch-card.on-dark .arch-row .k { color: rgba(244,246,250,.5); }
.arch-row .v {
  font-size: 14.5px; color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: -.005em;
}
.arch-card.on-dark .arch-row .v { color: rgba(244,246,250,.88); }

/* Map card (POPs) */
.map-card {
  background: linear-gradient(180deg, #fff, #f7f9fc);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Code card */
.code-card {
  background: var(--ink);
  border: 1px solid #1a2742;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #0d1830;
  border-bottom: 1px solid #1a2742;
}
.code-head .dot { width: 11px; height: 11px; border-radius: 50%; background: #344158; }
.code-head .dot-r { background: #ef4444; }
.code-head .dot-y { background: #f59e0b; }
.code-head .dot-g { background: #10b981; }
.code-head .file {
  margin-left: 10px;
  font-size: 12px;
  color: #9aa6c2;
}
.code-body {
  padding: 22px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e6ecf8;
  white-space: pre;
  overflow-x: auto;
}
.code-body .kw { color: #c4b5fd; }     /* keyword / verb */
.code-body .va { color: #67e8f9; }     /* value */
.code-body .st { color: #fcd34d; }     /* string */
.code-body .cm { color: #6b7587; font-style: italic; }
.code-body .pl { color: #f0abfc; }     /* placeholder */

/* Office card */
.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.office-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.office-head .ttl {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim); font-weight: 600;
}
.office-head .loc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.office-card h3 {
  font-size: 1.6rem; font-weight: 600;
  margin-bottom: 4px;
}
.office-card h3 .serif { color: var(--ink); }
.office-card > p { font-size: 14.5px; color: var(--fg-muted); margin-bottom: 22px; }
.kv {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.kv li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv li span { color: var(--fg-dim); }
.kv li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Compliance badge grid (used in chapter 04) */
.compliance-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.compliance-badge {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 18px 20px;
}
.compliance-badge .k {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #93c5fd; font-weight: 600;
}
.compliance-badge .v {
  margin-top: 8px; color: #fff; font-weight: 600; font-size: 1rem;
  font-family: var(--font-mono);
}
.compliance-badge .d {
  font-size: 12.5px; color: rgba(244,246,250,.62); margin-top: 6px;
  line-height: 1.5;
}

/* ============================================================
   PRODUCT PORTFOLIO — product-first cards
   Lead with the product name, "por Ring" subtitle,
   the dot-color tag tells you the audience at a glance.
   ============================================================ */
.products-section { background: var(--bg-tone); border-block: 1px solid var(--line); }
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1180px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products { grid-template-columns: 1fr; } }

.product {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
}

.product-tag {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.product-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-faint);
}
.product-tag.empresa::before   { background: var(--blue); }
.product-tag.negocios::before  { background: var(--success); }
.product-tag.mayorista::before { background: var(--gold); }

.product .product-name {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0 0 4px;
}
.product .by-ring {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-sans); font-style: normal;
  font-size: 14.5px;
  color: var(--fg-dim);
  margin-bottom: 18px;
  letter-spacing: -.005em;
}
.product .by-ring b { color: var(--ink); font-weight: 400; }

.product p {
  font-size: 14px; color: var(--fg-muted);
  margin-bottom: 16px; flex: 1; line-height: 1.55;
}
.product .more {
  font-weight: 600; color: var(--blue); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.product .more::after { content: "→"; transition: transform .15s; }
.product:hover .more::after { transform: translateX(3px); }

/* Per-product accent — one brand color per product */
.product { position: relative; overflow: hidden; --accent: var(--c-ring); }
.product::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.product:hover::before { transform: scaleX(1); }
.product:hover { border-color: var(--accent); }
.product .more { color: var(--accent); }
.product[data-product="sip"],
.product[data-product="numbering"]   { --accent: var(--c-sip); }
.product[data-product="smpp"]        { --accent: var(--c-smpp); }
.product[data-product="esim"]        { --accent: var(--c-esim); }
.product[data-product="ping"],
.product[data-product="private-5g"]  { --accent: var(--c-ping); }
.product[data-product="carrier"],
.product[data-product="whitelabel"]  { --accent: var(--c-ring); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries { grid-template-columns: 1fr; } }
.industry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .15s, transform .15s;
}
.industry:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.industry .ic {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--tint-blue);
  color: var(--blue);
  margin-bottom: 14px;
}
.industry .ic svg { width: 17px; height: 17px; }
.industry h4 { font-size: 1rem; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.industry p { font-size: 13.5px; color: var(--fg-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--ink);
  color: var(--on-ink);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat .v {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: .98;
  font-variant-numeric: tabular-nums;
}
.stat .v .serif { color: #67e8f9; font-size: .85em; letter-spacing: -.01em; }
.stat .v small { font-size: .45em; color: #93c5fd; margin-left: 4px; font-weight: 600; letter-spacing: 0; }
.stat .k { margin-top: 14px; font-size: 14.5px; color: rgba(244,246,250,.62); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote-block {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quote-block .mark {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 80px;
  line-height: .6;
  color: var(--line-strong);
  margin-bottom: 12px;
}
.quote-block blockquote {
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
}
.quote-block .attr {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--fg-muted);
}
.quote-block .attr b { color: var(--ink); font-weight: 600; }
.quote-block .attr .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--tint-ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); font-weight: 600; font-size: 13px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-band { background: var(--bg-tone); border-block: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .field { margin-bottom: 16px; }
.form label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--fg-2); margin-bottom: 6px;
}
.form input, .form select, .form textarea {
  width: 100%;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--fg-faint); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,20,38,.10);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .submit-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-top: 12px; flex-wrap: wrap;
}
.form .fineprint { font-size: 12.5px; color: var(--fg-dim); margin: 0; }
.form .status {
  font-size: 13.5px; padding: 12px 14px; border-radius: 8px;
  display: none; margin-top: 14px;
}
.form .status.ok { display: block; background: var(--success-soft); border: 1px solid #b7e0c4; color: #14532d; }
.form .status.err { display: block; background: #fdecea; border: 1px solid #f5c2c0; color: #7f1d1d; }

.contact-side h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-side .group { margin-bottom: 24px; }
.contact-side .group .k {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-dim);
}
.contact-side .group .v { color: var(--ink); margin-top: 4px; font-size: 14.5px; }
.contact-side .group .v a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.contact-side .group .v a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.contact-side .channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-side .channel {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px; color: var(--ink);
  text-decoration: none;
}
.contact-side .channel:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.contact-side .channel svg { width: 15px; height: 15px; color: var(--success); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 64px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(8,145,178,.18), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(30,64,175,.20), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; padding: 40px; } }
.cta-banner h2 { color: #fff; margin-bottom: 10px; max-width: 20ch; }
.cta-banner p { color: rgba(244,246,250,.72); margin: 0; max-width: 50ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 88px 0 32px;
  margin-top: 0;
}
.footer-pillars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding-bottom: 44px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-pillars .pillar {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 500; line-height: 1.25;
  letter-spacing: -.005em; color: var(--fg-2);
}
.footer-pillars .pillar svg {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--blue);
}
@media (max-width: 900px) { .footer-pillars { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }
@media (max-width: 520px) { .footer-pillars { grid-template-columns: repeat(2, 1fr); } }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--fg-dim); margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--fg-2); font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 32px; margin-top: 56px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-dim);
}
.footer-trademark {
  font-size: 12px;
  color: var(--fg-faint);
  margin: 14px 0 0;
  line-height: 1.5;
  max-width: 70ch;
}

/* Registered-trademark mark — display-friendly superscript */
sup {
  font-size: .55em;
  vertical-align: super;
  line-height: 0;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 1px;
}
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a {
  display: inline-flex; width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--fg-muted); background: #fff;
  transition: color .15s, border-color .15s;
}
.social a:hover { color: var(--ink); border-color: var(--ink); }
.social svg { width: 16px; height: 16px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.mx-auto { margin-inline: auto; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 12px;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px; z-index: 100;
  font-weight: 600; font-size: 13px;
}
.skip-link:focus { left: 12px; }

/* ============================================================
   PAGE HERO + PROSE — shared by content / legal pages
   ============================================================ */
.page-hero { padding: 96px 0 24px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 18px; }
.page-hero .updated {
  display: inline-block; margin-top: 18px;
  font-size: 13px; color: var(--fg-dim);
}

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: 1.5rem; margin: 1.8em 0 .2em; letter-spacing: -.02em;
  scroll-margin-top: 96px;
}
.prose h3 { font-size: 1.12rem; font-weight: 600; margin: 1.4em 0 .1em; color: var(--ink); }
.prose p, .prose li { color: var(--fg-muted); line-height: 1.65; }
.prose a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--blue); }
.prose ul, .prose ol { margin: .4em 0; padding-left: 1.3em; }
.prose li { margin-top: .4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .muted { color: var(--fg-dim); font-size: 14px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: .6em 0; }
.prose dt { font-weight: 600; color: var(--ink); }
.prose dd { margin: 0; color: var(--fg-muted); }
@media (max-width: 520px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }

/* ============================================================
   BLOG
   ============================================================ */
.breadcrumbs { font-size: 13px; color: var(--fg-dim); margin-bottom: 22px; }
.breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; color: var(--line-strong); }
.breadcrumbs .current { color: var(--fg-2); }

.post-meta { margin-top: 18px; font-size: 14px; color: var(--fg-dim); }

.post-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.post-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.post-card-topic {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 12px;
}
.post-card h2 {
  font-size: 1.32rem; line-height: 1.18; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 8px;
}
.post-card p { font-size: 14.5px; color: var(--fg-muted); margin: 0 0 16px; flex: 1; line-height: 1.55; }
.post-card time { font-size: 13px; color: var(--fg-dim); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag {
  font-size: 12px; color: var(--fg-2);
  background: var(--tint-ink); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}

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