/* Shared styles for guide.cetris.cloud (index.html, features.html, faq.html).
   Pages link it as /guide.css?v=<date>; bump the query when this file changes, because Caddy only
   sends no-cache for HTML and a stale stylesheet would otherwise outlive a republish. */
:root {
  --ground: #0b0c0b;
  --panel: #141613;
  --panel-2: #1b1e18;
  --line: #262a22;
  --line-2: #33382d;
  --text: #e8ebe6;
  --muted: #98a091;
  --faint: #6c7365;
  --accent: #b6f24a;
  --accent-dim: #7f9c3a;
  --warm: #d8c9a0;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ground); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.page { background: var(--ground); color: var(--text); font-family: var(--sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
.wide { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 76px; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
b { font-weight: 600; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11,12,11,.84);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(38,42,34,.7); }
.nav .wide { display: flex; align-items: center; gap: 22px; height: 58px; }
.brandlink { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px 1px rgba(182,242,74,.5); flex: 0 0 auto; }
.brand { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; font-size: 15px; }
.brand .os { color: var(--accent); }
.nav .links { display: flex; gap: 20px; margin-left: auto; }
.nav .links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); }
.nav .links a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.nav .cta { margin-left: 6px; padding: 7px 14px; border-radius: 8px; background: var(--accent); color: #0b0c0b;
  font-weight: 650; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.nav .cta:hover { background: #c4ff5a; }
@media (max-width: 760px) {
  .nav .wide { gap: 14px; }
  .nav .links { gap: 14px; }
  .nav .links a.hide-sm { display: none; }
}
@media (max-width: 340px) { .nav .brand { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 10px;
  background: var(--accent); color: #0b0c0b; font-weight: 680; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 28px -10px rgba(182,242,74,.55); }
.btn:hover { background: #c4ff5a; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; font-weight: 600; }
.btn.ghost:hover { background: var(--panel); }
.textlink { color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--accent-dim); }
.textlink:hover { border-bottom-color: var(--accent); }

/* hero (landing) */
.hero { position: relative; padding: 72px 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto 0; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 50% 30%, rgba(182,242,74,.10), transparent 70%); }
.kicker { position: relative; display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dim);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(20,22,19,.7); }
.kicker .dot { width: 7px; height: 7px; }
h1 { position: relative; font-size: clamp(36px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 680; margin: 24px auto 0; max-width: 15ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { position: relative; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); margin: 22px auto 0;
  max-width: 62ch; text-wrap: pretty; }
.lede b { color: var(--text); }
.actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px 0 0; }
.meta { position: relative; margin: 16px 0 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.gate { position: relative; margin: 6px auto 0; font-size: 13.5px; color: var(--faint); max-width: 60ch; }

/* screenshot frames */
.shot { position: relative; margin: 0; border-radius: 12px; border: 1px solid var(--line-2); background: #0d0e0d;
  overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset; }
.shot .bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  background: #151714; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3128; display: block; }
.shot .bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { position: relative; margin: 56px auto 0; max-width: 1120px; }
.hero-shot::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 80px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(182,242,74,.16), transparent 70%); filter: blur(10px); }
.caption { margin: 14px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.shot-cap { margin: 10px 2px 0; font-size: 12.5px; color: var(--faint); }
.narrow-shot { max-width: 520px; margin-left: auto; }

/* value strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 88px 0 0; text-align: left; }
.value { padding: 22px 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.value h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.value p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.value .ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; margin-bottom: 14px;
  background: rgba(182,242,74,.10); border: 1px solid rgba(182,242,74,.22); color: var(--accent); font-family: var(--mono); font-size: 13px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* section heads */
.eyebrow { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-dim); margin: 0; }
.section-head { margin: 120px 0 0; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 12px auto 0;
  max-width: 22ch; text-wrap: balance; font-weight: 660; }
.section-head p { color: var(--muted); margin: 14px auto 0; max-width: 58ch; font-size: 16.5px; }

/* landing feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin: 88px 0 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.feature .copy h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 0; font-weight: 650; }
.feature .copy p { color: var(--muted); font-size: 15.5px; margin: 14px 0 0; }
.feature .copy p b { color: var(--text); }
.feature .copy ul, .ticks { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature .copy li, .ticks li { color: var(--muted); font-size: 14.5px; padding-left: 20px; position: relative; }
.feature .copy li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent-dim); }
.ticks li b { color: var(--text); }
.feature.stack { grid-template-columns: 1fr; gap: 28px; }
.feature.stack .copy { max-width: 720px; margin: 0 auto; text-align: center; }
.feature.stack .copy p { margin-left: auto; margin-right: auto; max-width: 60ch; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; margin-top: 72px; }
  .feature.flip .copy { order: 0; }
  .narrow-shot { margin: 0 auto; }
}
.more { margin: 64px 0 0; text-align: center; }

/* cards */
.also { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 72px 0 0; }
.card { padding: 22px 24px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.card h4 { margin: 0; font-size: 16.5px; letter-spacing: -0.01em; }
.card .tag { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.card a.textlink { font-size: 14px; }
@media (max-width: 760px) { .also { grid-template-columns: 1fr; } }

/* not a doctor */
.notdoc { margin: 96px 0 0; padding: 26px 28px; border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(216,201,160,.06), rgba(216,201,160,.015)); display: flex; gap: 18px; align-items: flex-start; }
.notdoc .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--warm); border: 1px solid rgba(216,201,160,.28); font-family: var(--mono); font-weight: 700; }
.notdoc p { margin: 0; color: var(--muted); font-size: 15.5px; }
.notdoc b { color: var(--text); }

/* setup guide */
.guide-head { margin: 128px 0 0; text-align: center; }
.guide-head h2 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.025em; margin: 12px 0 0; font-weight: 660; line-height: 1.1; }
.guide-head p { color: var(--muted); margin: 14px auto 0; max-width: 56ch; font-size: 16px; }
.dl { margin: 36px 0 0; padding: 26px; background: linear-gradient(180deg, rgba(182,242,74,.09), rgba(182,242,74,.02));
  border: 1px solid rgba(182,242,74,.24); border-radius: 14px; }
.dl h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.dl p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.dl .btn { margin: 18px 0 0; }
.dl .meta { text-align: left; margin-top: 12px; }
.time { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin: 22px 0 0; letter-spacing: .01em; }
.sub-eyebrow { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-dim); margin: 48px 0 0; }
.req { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.req li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.req li b { color: var(--text); }
.req .tick { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.steps { margin: 36px 0 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; padding: 22px 22px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.step .num { grid-row: 1 / span 2; font-family: var(--mono); font-size: 22px; font-weight: 600;
  color: var(--accent); line-height: 1; padding-top: 3px; }
.step h3 { margin: 0; font-size: 19px; font-weight: 640; letter-spacing: -0.01em; }
.step .sub { color: var(--faint); font-weight: 500; font-size: 14px; }
.step .body { grid-column: 2; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.step .body p { margin: 0 0 12px; }
.step .body p:last-child { margin-bottom: 0; }
.step .body b { color: var(--text); }
.step .body ol, .step .body ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.step .body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.step .body a:hover { border-bottom-color: var(--accent); }
.step .body .shot { margin: 4px 0 14px; }
@media (max-width: 520px) { .step { grid-template-columns: 1fr; padding: 20px 18px; } .step .num { grid-row: auto; } .step .body { grid-column: 1; } }
.callout { margin: 12px 0 0; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line);
  border-left: 2px solid var(--warm); border-radius: 8px; font-size: 14px; color: var(--muted); }
.callout b { color: var(--warm); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; color: var(--warm); overflow-wrap: anywhere; }
.kbd { white-space: nowrap; }
.done { margin: 44px 0 0; padding: 24px 26px; border: 1px solid rgba(182,242,74,.22); border-radius: 12px; }
.done h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.done .lead { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.where { margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.where div { color: var(--muted); font-size: 14.5px; }
.where b { color: var(--text); }

/* summary band (landing privacy) */
.band { margin: 96px 0 0; padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.band h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; margin: 10px 0 0; font-weight: 650; line-height: 1.15; }
.band p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; gap: 12px; } }

/* page head (features, faq) */
.page-head { position: relative; padding-top: 64px; }
.page-head::before { content: ""; position: absolute; inset: -100px 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 30% 20%, rgba(182,242,74,.08), transparent 70%); }
.page-head h1 { margin: 16px 0 0; max-width: 18ch; font-size: clamp(34px, 6vw, 58px); }
.page-head .lede { margin: 18px 0 0; max-width: 64ch; }
.legend { position: relative; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 0; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--panel); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip.free::before { background: var(--accent); }
.chip.key::before { background: var(--warm); }
.chip.sends::before { background: #e58b5c; }

/* features layout */
.fx-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; margin-top: 56px; align-items: start; }
.toc { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 2px; }
.toc .grp { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  margin: 16px 0 6px; }
.toc .grp:first-child { margin-top: 0; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--accent-dim); }
@media (max-width: 960px) {
  .fx-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .toc .grp { display: none; }
  .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
}
.fx-group { margin: 0 0 24px; }
.fx-group + .fx-group { margin-top: 80px; }
.fx-group > .eyebrow { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fx { padding: 40px 0 8px; }
.fx + .fx { border-top: 1px dashed var(--line); margin-top: 32px; }
.fx h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; line-height: 1.12; font-weight: 660; }
.fx .lead { color: var(--muted); font-size: 16.5px; margin: 12px 0 0; max-width: 66ch; }
.fx .lead b { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 22px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { background: var(--panel); padding: 12px 14px; }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-size: 13.5px; color: var(--text); line-height: 1.45; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin: 22px 0 0; }
.cols h4 { margin: 0 0 4px; font-size: 14.5px; color: var(--text); }
.cols p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.cols p b { color: var(--text); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.fx .shot { margin: 26px 0 0; }
.fx .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 0; align-items: start; }
.fx .pair .shot { margin: 0; }
@media (max-width: 760px) { .fx .pair { grid-template-columns: 1fr; } }
.note { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2);
  font-size: 14px; color: var(--muted); }
.note b { color: var(--warm); }

/* faq */
.faq-layout { margin: 48px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.jump a { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--text); border-color: var(--accent-dim); }
.help { margin: 72px 0 0; }
.help h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; margin: 10px 0 0; font-weight: 650; }
.help .intro { color: var(--muted); font-size: 15px; margin: 12px 0 18px; }
.qa { padding: 18px 0; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa .q { color: var(--text); font-weight: 600; font-size: 15.5px; margin: 0; }
.qa .a { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.qa .a b { color: var(--text); }

/* footer */
.foot { margin: 96px 0 0; padding: 28px 0 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px;
  font-family: var(--mono); letter-spacing: .01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.foot .dot { width: 6px; height: 6px; box-shadow: none; }
.foot a { color: var(--faint); }
.foot a:hover { color: var(--text); }

.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }
