/* GridWatchdog — single stylesheet, no framework, no build step */

:root {
  --bg:      #0b0d12;
  --surface: #14171f;
  --border:  #232733;
  --text:    #e8e9ed;
  --muted:   #8b90a0;
  --accent:  #22c55e;
  --accent2: #3b82f6;
  --danger:  #ef4444;
  --radius:  14px;
  --wrap:    1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,18,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.3px; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.navlinks { display: flex; gap: 26px; align-items: center; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.navlinks a:hover { color: var(--text); }
.navlinks a.btn { color: #04140a; font-weight: 650; }
@media (max-width: 700px) { .navlinks a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 9px;
  font-weight: 650; font-size: 15px; text-decoration: none; border: none;
  cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04140a; }
.btn-primary:hover { background: #16a34a; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.22);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 20px;
}
h1 {
  font-size: clamp(34px, 5.5vw, 54px); line-height: 1.08;
  letter-spacing: -1.6px; font-weight: 800; margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 50ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- photo frames ---------- */
.frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder shown until a real photo exists */
.ph {
  aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); text-align: center; padding: 26px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px,
      rgba(255,255,255,.018) 11px, rgba(255,255,255,.018) 22px);
}
.ph-icon { font-size: 40px; opacity: .5; }
.ph-label { font-size: 13px; font-weight: 600; }
.ph-hint { font-size: 11px; opacity: .65; font-family: ui-monospace, Menlo, monospace; }

/* ---------- sections ---------- */
section { padding: 74px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.9px; font-weight: 750; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 16px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
section.alt .card { background: var(--bg); }
.card .ico { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 7px; font-weight: 650; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step .frame { margin-bottom: 15px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.gal-item .frame { cursor: zoom-in; }
.gal-item .cap { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* lightbox */
.lb {
  position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lb-x {
  position: absolute; top: 18px; right: 22px; font-size: 30px;
  color: #fff; background: none; border: none; cursor: pointer; opacity: .75;
}

/* ---------- comparison ---------- */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; }
td.us { color: var(--accent); font-weight: 650; }
tr.hl { background: rgba(34,197,94,.05); }
tr.hl td:first-child { font-weight: 650; }

/* ---------- pricing ---------- */
.price-box {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px 32px;
}
section.alt .price-box { background: var(--bg); }
.price { font-size: 56px; font-weight: 800; letter-spacing: -2.5px; line-height: 1; }
.price-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 24px; }
.incl { text-align: left; margin: 24px 0; display: grid; gap: 10px; }
.incl li { list-style: none; font-size: 14.5px; display: flex; gap: 10px; }
.incl li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- faq ---------- */
.faq { max-width: 740px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--border); padding: 17px 0;
}
summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 21px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 15px; margin-top: 11px; }

/* ---------- signup ---------- */
.signup { max-width: 460px; margin: 0 auto; }
.signup form { display: flex; gap: 9px; margin-top: 20px; }
@media (max-width: 520px) { .signup form { flex-direction: column; } }
.signup input {
  flex: 1; padding: 13px 15px; border-radius: 9px; font-size: 15px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
section.alt .signup input { background: var(--surface); }
.signup input:focus { outline: none; border-color: var(--accent2); }
.form-msg { font-size: 14px; margin-top: 13px; min-height: 20px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--danger); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 38px 0; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; font-size: 14px; margin-right: 20px; }
.foot a:hover { color: var(--text); }
.foot small { color: var(--muted); font-size: 13px; }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 34px; }
