/* Glow colors (from glowledlighting.com) */
:root {
  --navy: #1E2D3B;
  --navy-2: #3D5975;
  --yellow: #EDCD1F;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 8vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 600px; }
.center { text-align: center; }
.sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.fine { color: var(--muted); font-size: .9rem; }
.accent { color: var(--navy-2); }
section { padding: 72px 0; scroll-margin-top: 64px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar img { height: 36px; width: auto; }
.topbar-link { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.hero h1 .accent { box-shadow: inset 0 -.22em 0 var(--yellow); color: inherit; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 1.25rem 0 2rem; }
.actions { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }
@media (min-width: 560px) {
  .actions { flex-direction: row; max-width: none; justify-content: center; }
}

/* Trust */
.trust { background: var(--bg-soft); }
.trust-logo { margin: 0 auto 1.5rem; width: 220px; }
.trust-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.endorse { margin: 1.5rem 0 0; padding: 0; }
.endorse p { font-size: 1.15rem; margin-bottom: .25rem; }
.endorse cite { color: var(--muted); font-style: normal; font-size: .95rem; }

/* Products */
.products h2, .products .sub { text-align: center; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.card h3, .card p { padding: 0 16px; }
.card h3 { margin-top: 14px; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.card img, .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: #e8e8ed; color: #a1a1a6; font-size: .85rem; }

/* Panels & forms */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; display: grid; gap: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (min-width: 560px) { .panel { padding: 32px; } }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
label, legend { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ink); background: #fff;
  border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(61,89,117,.2); }
.invalid { border-color: #d70015; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 6px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #d2d2d7; border-radius: 999px; padding: 10px 16px; min-height: 44px;
  font-weight: 500; cursor: pointer;
}
.pill input { width: auto; min-height: 0; margin: 0; accent-color: var(--navy); }
.pill:has(input:checked) { border-color: var(--navy); background: var(--bg-soft); }
.form-error { color: #d70015; font-size: .95rem; margin: 0; }
.thanks { text-align: center; }
.thanks:focus { outline: none; }

/* Calculator */
.calc { background: var(--bg-soft); }
.calc h2 { margin-bottom: 1.5rem; }
.result {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.result span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.result strong { font-size: 2rem; letter-spacing: -0.02em; color: var(--navy); }
.calc-card .fine { margin: 0; }

/* About */
.avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 1.25rem;
  object-fit: cover; background: var(--navy); color: var(--yellow);
  display: grid; place-items: center; font-size: 2.4rem; font-weight: 700;
}
.about p { color: #424245; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9rem; color: var(--muted); }
.footer strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
