/* Uptime Guard — shared site styles
   Used by index.html, privacy-policy.html and support.html. */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f7fa;
  --fg:        #10151c;
  --muted:     #59626f;
  --line:      #e3e8ef;
  --card:      #ffffff;
  --card-soft: #f7f9fc;
  --accent:    #0b5fd6;
  --accent-2:  #0a4fb3;
  --accent-fg: #ffffff;
  --tint:      rgba(11, 95, 214, .08);
  --ok:        #0f7a43;
  --warn:      #a35a00;
  --shadow-sm: 0 1px 2px rgba(16, 21, 28, .06), 0 1px 3px rgba(16, 21, 28, .05);
  --shadow-md: 0 4px 12px rgba(16, 21, 28, .07), 0 12px 32px rgba(16, 21, 28, .06);
  --radius:    14px;
  --maxw:      1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0f14;
    --bg-soft:   #0f151c;
    --fg:        #e7ebf0;
    --muted:     #97a2b1;
    --line:      #1e262f;
    --card:      #111820;
    --card-soft: #141c25;
    --accent:    #5c9bff;
    --accent-2:  #7db0ff;
    --accent-fg: #08111f;
    --tint:      rgba(92, 155, 255, .12);
    --ok:        #3ddc84;
    --warn:      #f0b23c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
               Helvetica, Arial, "Apple Color Emoji", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.18; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; }
h2 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }

p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.lead { font-size: 18.5px; color: var(--muted); }
.center { text-align: center; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16.5px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover { color: var(--accent-fg); }

/* The nav is short enough to stay visible on phones — tighten it instead of hiding it. */
@media (max-width: 700px) {
  .site-header .container { gap: 10px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14.5px; }
  .site-nav .btn-sm { padding: 8px 12px; }
}
@media (max-width: 560px) {
  .site-header .brand-name { display: none; }
  .site-nav { gap: 14px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 15px; font-size: 14.5px; border-radius: 10px; }

/* Store button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 13px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  transition: transform .12s ease, opacity .15s ease;
}
.store-btn:hover { text-decoration: none; transform: translateY(-1px); opacity: .9; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .store-txt { display: grid; line-height: 1.15; text-align: left; }
.store-btn .store-txt small { font-size: 11px; opacity: .75; letter-spacing: .06em; text-transform: uppercase; }
.store-btn .store-txt strong { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.store-btn.is-disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
  pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Pills / badges ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

/* ---------- Sections ---------- */

section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-head p { margin: 0; }
.band { background: var(--bg-soft); border-block: 1px solid var(--line); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto;
  height: 620px;
  background:
    radial-gradient(620px 320px at 22% 0%, var(--tint), transparent 70%),
    radial-gradient(520px 300px at 82% 12%, color-mix(in srgb, var(--ok) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .pill { margin-bottom: 20px; }
.hero-copy .lead { max-width: 30em; }
.hero-copy .btn-row { margin: 26px 0 14px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 12% 12% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint), transparent);
  filter: blur(28px);
  z-index: -1;
}
.phone {
  width: min(300px, 74vw);
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .hero { padding-top: 52px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-copy .btn-row { justify-content: center; }
}

/* ---------- Trust strip ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -34px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.trust > div { background: var(--card); padding: 18px 20px; }
.trust strong { display: block; font-size: 15.5px; }
.trust span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature grid ---------- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--tint);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature .ico svg { width: 21px; height: 21px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Gallery ---------- */

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.gallery-head h2 { margin-bottom: 8px; }
.gallery-head .lead { margin: 0; max-width: 34em; }

.gallery-nav { display: flex; gap: 10px; flex: none; }
.gnav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.gnav svg { width: 20px; height: 20px; }
.gnav:hover { border-color: var(--accent); color: var(--accent); }
.gnav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gnav[disabled] { opacity: .35; cursor: default; }
.gnav[disabled]:hover { border-color: var(--line); color: var(--fg); }

@media (max-width: 760px) {
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .gallery-nav { display: none; }
}

.gallery {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  /* Align the first card with the container gutter, but bleed off the right edge. */
  --gutter: max(22px, calc((100vw - var(--maxw)) / 2 + 22px));
  padding: 6px 22px 8px var(--gutter);
  scroll-padding-left: var(--gutter);
  margin-inline: calc(50% - 50vw);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shot {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 250px;
  text-align: center;
}
.shot img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}
.shot h3 { font-size: 16px; margin-bottom: 2px; }
.shot p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

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

.card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}
.card :last-child { margin-bottom: 0; }
.card-accent { border-left: 3px solid var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 15.5px;
}
.check-list li strong { color: var(--fg); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: .72em;
  width: 5px; height: 8px;
  border: solid var(--ok);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(42deg);
}

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

.cta {
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 0%, var(--tint), transparent 70%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}
.cta .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- Prose (policy / support pages) ---------- */

.page-head {
  padding: 54px 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.page-head .pill { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); }
.page-head p { margin: 0; color: var(--muted); font-size: 15.5px; }

.prose { padding: 40px 0 72px; }
.prose h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  padding-top: 4px;
  scroll-margin-top: 84px;
}
.prose h3 { font-size: 17.5px; margin: 26px 0 6px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 7px 0; }
.prose > p:first-child { margin-top: 0; }

.toc {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 34px;
}
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 15px;
}
.toc li { margin: 5px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 18px 0;
}
.table-wrap table { margin: 0; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; }

code {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 88%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 20px;
  margin: 12px 0;
  background: var(--card);
}
details[open] { padding-bottom: 14px; }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p:last-child, details ul:last-child { margin-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 40px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--fg); }
.footer-about p { margin: 12px 0 0; max-width: 34em; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13.5px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html, .gallery { scroll-behavior: auto; }
  .btn:hover, .store-btn:hover { transform: none; }
}
