/* RingKeeper website — tokens mirror app/src/main/java/com/callleads/app/ui/Theme.kt */

:root {
  --primary:      #2F6FED;
  --primary-dark: #17458C;
  --primary-soft: #EAF0FE;
  --bg:           #F7F8FA;
  --surface:      #FFFFFF;
  --text:         #111B21;
  --text-2:       #667781;
  --divider:      #E9EDEF;
  --wa:           #25D366;
  --warn-bg:      #FFF8E6;
  --warn-line:    #E0B44A;
  --warn-ink:     #7A5410;

  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(17, 27, 33, .05), 0 8px 24px rgba(17, 27, 33, .05);
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary:      #6C9BFF;
    --primary-dark: #9DBBFF;
    --primary-soft: #16283F;
    --bg:           #0B141A;
    --surface:      #1F2C34;
    --text:         #E9EDEF;
    --text-2:       #8B98A1;
    --divider:      #2A3942;
    --warn-bg:      #2A2416;
    --warn-line:    #7A6430;
    --warn-ink:     #E0C583;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

img { max-width: 100%; display: block; }

/* ---------- shell ---------- */

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
header.site .bar {
  max-width: 1060px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.015em; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
header.site nav { margin-left: auto; display: flex; gap: 22px; font-size: 14.5px; }
header.site nav a { color: var(--text-2); }
header.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- install CTA ---------- */

/* The one action the whole page exists to produce. Appears in the header (persistent, so intent
   can be acted on at any scroll depth) and twice in the body: hero and closer. */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  padding: 13px 24px; border-radius: 10px;
  font-size: 16px; font-weight: 650; letter-spacing: -.01em;
  box-shadow: var(--shadow);
}
.cta:hover { background: var(--primary-dark); text-decoration: none; }
.cta-note { color: var(--text-2); font-size: 14px; }

/* Compact header variant. Hidden on narrow screens - the hero CTA is a thumb-scroll away there,
   and the nav has no room for it without crowding out Privacy/Support. */
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }
@media (max-width: 560px) { .nav-cta { display: none; } }

.closer {
  margin-top: 72px; padding: 40px 0 8px;
  border-top: 1px solid var(--divider);
  display: flex; flex-direction: column; gap: 14px;
}

footer.site {
  border-top: 1px solid var(--divider);
  margin-top: 72px; padding: 34px 0 56px;
  color: var(--text-2); font-size: 14px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer.site .cols nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site .built { margin-top: 14px; font-size: 13px; }

/* ---------- type ---------- */

h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 750; }
h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -.012em; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 30px; }

.eyebrow {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--primary); font-weight: 600;
}

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

.hero { padding: 68px 0 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .shot { justify-self: center; width: 100%; max-width: 300px; border-radius: 20px; border: 1px solid var(--divider); box-shadow: var(--shadow); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 13px; padding: 5px 11px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--divider); color: var(--text-2);
}
.badge.wa { color: var(--wa); border-color: color-mix(in srgb, var(--wa) 40%, var(--divider)); }

/* ---------- sections & cards ---------- */

section.band { padding: 52px 0; }
section.band + section.band { border-top: 1px solid var(--divider); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 12px;
  padding: 22px; display: flex; flex-direction: column; gap: 9px;
}
.card p { font-size: 14.5px; color: var(--text-2); max-width: none; }
.card .n {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center;
}

ul.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
ul.ticks li strong { color: var(--text); font-weight: 650; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots img { border-radius: 16px; border: 1px solid var(--divider); box-shadow: var(--shadow); }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shots figcaption { font-size: 13.5px; color: var(--text-2); text-align: center; }

/* ---------- legal document ---------- */

.doc { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 52px; padding: 44px 0 0; align-items: start; }

.toc { position: sticky; top: 84px; font-size: 13.5px; }
.toc .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--text-2); border-left: 2px solid transparent; }
.toc a::before { content: counter(toc) ". "; font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2); }
.toc a:hover { background: var(--surface); color: var(--text); text-decoration: none; }

.doc-body { min-width: 0; }
.doc-body h2 {
  font-size: 20px; margin: 42px 0 12px; padding-top: 4px;
  display: flex; align-items: baseline; gap: 11px;
}
.doc-body h2 .num { font-family: var(--f-mono); font-size: 13px; color: var(--primary); font-weight: 600; flex: none; }
.doc-body h3 { margin: 26px 0 8px; color: var(--text); }
.doc-body > p, .doc-body li { color: var(--text-2); }
.doc-body p { margin: 0 0 12px; }
.doc-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.doc-body ul li { position: relative; padding-left: 20px; }
.doc-body ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--divider); box-shadow: inset 0 0 0 3px var(--text-2); }
.doc-body strong { color: var(--text); font-weight: 650; }
.doc-body a { text-decoration: underline; }

.doc-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--divider); }
.updated { font-family: var(--f-mono); font-size: 13px; color: var(--text-2); }

.note {
  background: var(--surface); border: 1px solid var(--divider); border-left: 3px solid var(--primary);
  border-radius: 3px 10px 10px 3px; padding: 16px 18px; margin: 0 0 16px;
}
.note p { margin: 0; }
.note.flag { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--warn-line); }
.note.flag p { color: var(--warn-ink); }
.note .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: 6px; font-weight: 600; }
.note.flag .t { color: var(--warn-ink); }

.contact-box {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 12px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 6px;
}
.contact-box .email { font-size: 17px; font-weight: 650; }

.tw { overflow-x: auto; border: 1px solid var(--divider); border-radius: 10px; margin: 0 0 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--divider); vertical-align: top; color: var(--text-2); }
thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--text); }

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

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .toc { position: static; border: 1px solid var(--divider); background: var(--surface); border-radius: 12px; padding: 16px; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .hero .shot { max-width: 260px; }
  .grid-2, .grid-3, .grid-4, .shots { grid-template-columns: 1fr; }
  header.site nav { gap: 16px; font-size: 14px; }
  header.site nav a.hide-sm { display: none; }
}

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

@media print {
  header.site, footer.site, .toc, .note.flag { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { grid-template-columns: 1fr; padding: 0; }
  a { color: #000; text-decoration: none; }
}
