/* RootText LLC — shared styles.
   No build step, no dependencies, no external requests: a static site that loads nothing from
   anywhere else is the honest match for products that collect nothing.

   The palette mirrors the application itself — royal navy page, parchment surfaces, radiant
   gold — so the site reads as the same object as the product it supports. */

:root {
  --navy:        #101a33;
  --navy-deep:   #0a1224;
  --navy-soft:   #1a2747;
  --gold:        #c9a227;
  --gold-soft:   #e2c469;
  --gold-deep:   #8a6d10;
  --ink:         #1c1a17;
  --ink-muted:   #55504a;
  --paper:       #fdfbf6;
  --paper-alt:   #f4efe4;
  --parchment:   #f7f0dd;
  --rule:        #ddd5c4;
  --on-navy:     #e9e4d8;
  --on-navy-mut: #aab3c9;
  --max:         52rem;
  --max-text:    46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e8e3d9;
    --ink-muted: #a49d91;
    --paper:     #14161d;
    --paper-alt: #1b1e27;
    --parchment: #211f18;
    --rule:      #2c313d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.1rem; margin: 0 0 .35em; }
h2 { font-size: 1.4rem;  margin: 2.4em 0 .6em; }
h3 { font-size: 1.08rem; margin: 1.8em 0 .4em; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--gold-soft); } }
a:hover { text-decoration-thickness: 2px; }

/* Small-caps section eyebrow — "THE GAME", "OUR PROMISE" */
.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 3em 0 .2em;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--gold-soft); } }
.eyebrow + h2 { margin-top: 0; }

/* Accessibility: keyboard users get a way past the chrome */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #241d05; font-weight: 600;
  padding: .5rem 1rem; border-radius: 0 0 8px 0; z-index: 10;
}
.skip:focus { left: 0; }

/* ── Masthead ─────────────────────────────────────────────────────── */
.masthead {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  border-bottom: 3px solid var(--gold);
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: .01em;
}
.wordmark img {
  /* The RootText emblem medallion — fills its canvas, no padding to compensate for. */
  width: 32px; height: 32px;
}
.wordmark:hover { color: #fff; }
.masthead nav { margin-left: auto; display: flex; gap: 1.15rem; flex-wrap: wrap; }
.masthead nav a { color: #cfd6e6; text-decoration: none; font-size: .95rem; padding: .15rem 0; }
.masthead nav a:hover { color: var(--gold-soft); }
.masthead nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom: 2px solid var(--gold);
}

/* ── Hero band ────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(201, 162, 39, .16), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  text-align: center;
  padding: 3.2rem 1.25rem 3.4rem;
  border-bottom: 3px solid var(--gold);
}
.hero-inner { max-width: var(--max-text); margin: 0 auto; }
.hero img.emblem {
  width: 148px; height: 148px;
  margin-bottom: .8rem;
  filter: drop-shadow(0 0 24px rgba(226, 196, 105, .35));
}
/* The menorah art (Lampstand's own hero) carries adaptive-icon safe-zone padding;
   scale it up inside its box. The emblem medallion needs no compensation. */
.hero img.emblem.menorah { width: 132px; height: 132px; transform: scale(1.4); }
.hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: .3em; }
.hero .lede { color: var(--on-navy-mut); font-size: 1.18rem; max-width: 38rem; margin: 0 auto; }
.hero a { color: var(--gold-soft); }
.hero .pill { vertical-align: middle; }

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn.primary { background: var(--gold); color: #241d05; }
.btn.primary:hover { background: var(--gold-soft); }
.btn.ghost { border-color: var(--on-navy-mut); color: var(--on-navy); }
.btn.ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
main .btn.primary { border-color: var(--gold-deep); }

/* ── Cipher tiles — the game's own mechanic as the site's graphic ─── */
.cipher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem 1.4rem;
  margin: 2.2rem auto 0;
  max-width: 40rem;
}
.cipher .word { display: flex; gap: .3rem; }
.tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 2.35rem;
  border-radius: 6px;
  background: var(--parchment);
  border: 1px solid #cbbd97;
  box-shadow: 0 2px 4px rgba(6, 10, 24, .35);
  padding: .18rem 0 .22rem;
  user-select: none;
}
.tile i {
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-deep);
}
.tile b {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #241d05;
}
@media (prefers-color-scheme: dark) {
  .tile b { color: #f0e9d8; }
  .tile { border-color: #4c4530; }
}
.tile.blank {
  background: transparent;
  border: 1.5px dashed var(--gold);
  box-shadow: none;
}
.tile.blank i { color: var(--gold-soft); }
.tile.blank b { color: transparent; }
.hero .tile.blank i { color: var(--gold-soft); }
.cipher-caption {
  text-align: center;
  font-size: .92rem;
  margin: 1rem auto 0;
  max-width: 34rem;
}
.hero .cipher-caption { color: var(--on-navy-mut); }

/* ── Main column ──────────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
main.narrow { max-width: var(--max-text); }

.lede { font-size: 1.1rem; color: var(--ink-muted); margin-top: 0; }

.meta {
  color: var(--ink-muted);
  font-size: .9rem;
  border-left: 3px solid var(--gold);
  padding: .35rem 0 .35rem .8rem;
  margin: 0 0 2rem;
}

.card {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card.feature { border-left: 4px solid var(--gold); }

/* A highlighted plain-statement box — the privacy promise, the data-safety summary */
.callout {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.callout h3 { margin-top: 0; color: var(--gold-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--gold-soft); }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 44rem) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.grid .card { margin: 0; }

/* Numbered how-it-works steps */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.25rem 0; padding: 0; list-style: none; }
@media (min-width: 44rem) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.steps li {
  counter-increment: step;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-weight: 700;
  margin-bottom: .5rem;
}
.steps li strong { display: block; font-family: Georgia, serif; font-size: 1.05rem; margin-bottom: .25rem; }

/* Big stat strip on the product page */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
}
@media (min-width: 44rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--paper-alt); padding: 1rem .8rem; text-align: center; }
.stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold-deep);
}
@media (prefers-color-scheme: dark) { .stats strong { color: var(--gold-soft); } }
.stats span { font-size: .85rem; color: var(--ink-muted); }

table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-muted); font-weight: 600; }

ul { padding-left: 1.15rem; }
li { margin: .35em 0; }

.pill {
  display: inline-block;
  font-size: .8rem;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--gold);
  color: #241d05;
  font-weight: 600;
  white-space: nowrap;
}

.store-line { color: var(--ink-muted); font-size: .95rem; }
.hero .store-line { color: var(--on-navy-mut); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ── Legal pages ──────────────────────────────────────────────────── */
.toc {
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
  font-size: .95rem;
}
.toc strong { font-family: Georgia, serif; }
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
@media (max-width: 34rem) { .toc ol { columns: 1; } }
.toc li { margin: .25em 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

main h2[id] { scroll-margin-top: 1rem; }

/* ── Form ─────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; margin: 1.1rem 0 .3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: .6rem .7rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: inherit;
  font-weight: 600;
  margin-top: 1.4rem;
  padding: .7rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-soft);
  cursor: pointer;
}
button:hover { background: var(--navy-deep); }
button[disabled] { opacity: .6; cursor: default; }

.status { margin-top: 1rem; font-weight: 600; }
.status.ok { color: #1f7a48; }
.status.err { color: #a8321f; }
@media (prefers-color-scheme: dark) { .status.ok { color: #6cc48f; } .status.err { color: #f08a75; } }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  border-top: 3px solid var(--gold);
  color: var(--on-navy-mut);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 2.5rem;
  font-size: .92rem;
}
.footer-cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.8rem;
}
@media (min-width: 34rem) { .footer-cols { grid-template-columns: 1fr 1fr 1fr; } }
.footer-cols h4 {
  color: var(--gold-soft);
  font-size: .95rem;
  margin: 0 0 .5rem;
  letter-spacing: .04em;
}
.footer-cols nav { display: flex; flex-direction: column; gap: .35rem; }
.footer-cols a { color: var(--on-navy); text-decoration: none; }
.footer-cols a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--navy-soft);
  padding-top: 1.2rem;
  margin: 0;
  font-size: .85rem;
}

/* ── Print (people print policies) ────────────────────────────────── */
@media print {
  .masthead, footer, .skip, .hero-actions { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .callout { background: none; color: #000; border: 1px solid #999; }
  .callout h3 { color: #000; }
}
