/* ringlightapp.com. The brand's colors and font are custom properties on :root, and everything below reads only those.
   The app's App.xaml and the shop's buy/shop.css repeat them, so a change to the brand is made in all three. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --gutter: 20px;
  --width: 1120px;
  --radius: 14px;

  --bg: #0f0e17;
  --bg-raised: #15141f;
  --surface: #1a1826;
  --ink: #f4f2ec;
  --muted: #aba8bc;
  --line: #2d2a3c;
  --accent: #ffc45c;
  --accent-soft: #fff1d0;
  --accent-ink: #241600;
  --glow: rgba(255, 190, 90, .28);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(15, 14, 23, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
}
.site-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.nav-cta {
  margin-left: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.site-nav a.nav-cta:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1rem var(--font);
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 6px 26px var(--glow); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); border-color: var(--muted); color: var(--ink); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; }

/* ---------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 40em; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.narrow { max-width: 780px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 72px 0 80px;
  background: radial-gradient(70% 90% at 78% 40%, rgba(255, 190, 90, .13), transparent 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}
.hero h1 span { color: var(--accent); }
.hero-note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------------------------------------------------------------- layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 80px; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px var(--glow); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 22px 24px 24px; flex: 1; }
.card .body p { margin: 0; color: var(--muted); font-size: 1rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 36px 40px;
}
.feature svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 196, 92, .12);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: .95rem;
}
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 196, 92, .14);
  color: var(--accent);
  margin: 0 6px 10px 0;
}
.tag.soft { background: var(--line); color: var(--ink); }

/* ---------------------------------------------------------------- pricing */

.price-card {
  max-width: 480px;
  margin: 40px auto 0;
  padding: 36px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -40px var(--glow);
}
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.price strong { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--muted); }
.ticks { list-style: none; margin: 0 0 8px; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 30px; font-size: 1rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--accent);
}

/* Questions and answers */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq summary:hover { color: var(--accent-soft); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Long text: terms, policies */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: .7em; }
.prose h2 { font-size: 1.3rem; letter-spacing: -.01em; margin-top: 2em; }

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: .92rem;
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------------------------------------------------------------- buying tips */

.tips-list { margin: 8px 0 36px; }
.tips-note { margin-top: 28px; }
.picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.pick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pick img { width: 100%; background: #fff; border-radius: 10px; aspect-ratio: 1; object-fit: contain; padding: 10px; margin-bottom: 14px; }
.pick h3 { font-size: 1rem; }
.pick p { color: var(--muted); font-size: .95rem; }
.pick .btn { margin-top: auto; padding: 8px 18px; font-size: .94rem; }

/* ---------------------------------------------------------------- coming soon */

.soon { padding: 88px 0; text-align: center; }

/* ---------------------------------------------------------------- phones */

@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split + .split { margin-top: 48px; }
  .split.flip > :first-child { order: 0; }
  .site-head { position: static; }
  .site-head .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .site-nav a.nav-cta { margin-left: 0; }
  .price-card { padding: 28px 24px; }
}

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