/* SideEye marketing — editorial dark theme, high contrast accents */

:root {
  --bg: #0c0c0e;
  --bgElevated: #141418;
  --surface: #1a1a20;
  --text: #f2f0eb;
  --textMuted: #9a9690;
  --accent: #e8a54b;
  --accentSoft: rgba(232, 165, 75, 0.14);
  --border: rgba(242, 240, 235, 0.08);
  --danger: #c75c5c;
  --headerBg: rgba(12, 12, 14, 0.82);
  --onAccent: #1a1208;
  --fontDisplay: "Fraunces", Georgia, serif;
  --fontBody: "Figtree", system-ui, sans-serif;
  --radius: 14px;
  --max: 1120px;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html[data-theme="light"] {
  --bg: #f4f2ec;
  --bgElevated: #ebe6dc;
  --surface: #ffffff;
  --text: #161512;
  --textMuted: #5e5950;
  --accent: #c47a16;
  --accentSoft: rgba(196, 122, 22, 0.12);
  --border: rgba(22, 21, 18, 0.1);
  --headerBg: rgba(244, 242, 236, 0.88);
  --onAccent: #1a1208;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fontBody);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--noise);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--headerBg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.siteHeader-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
}

.themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--textMuted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.themeToggle:hover {
  color: var(--text);
  border-color: rgba(232, 165, 75, 0.45);
}

html[data-theme="light"] .themeToggle:hover {
  border-color: rgba(196, 122, 22, 0.45);
}

.themeToggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.themeToggle-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.themeToggle .themeToggle-sun {
  display: block;
}

.themeToggle .themeToggle-moon {
  display: none;
}

html[data-theme="light"] .themeToggle .themeToggle-sun {
  display: none;
}

html[data-theme="light"] .themeToggle .themeToggle-moon {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brandIcon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav a {
  color: var(--textMuted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.navCta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--onAccent) !important;
  font-weight: 700;
  font-size: 0.88rem;
}

.navCta:hover {
  filter: brightness(1.08);
  text-decoration: none;
  color: var(--onAccent) !important;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 85%;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--accentSoft), transparent 65%);
  pointer-events: none;
}

.heroInner {
  position: relative;
  text-align: center;
}

.heroEyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--textMuted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--fontDisplay);
  font-size: clamp(2.35rem, 6.5vw, 3.85rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 40, "WONK" 0.9;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.heroLead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--textMuted);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.btnPrimary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--onAccent);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btnPrimary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--onAccent);
}

.btnGhost {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.btnGhost:hover {
  border-color: var(--textMuted);
  text-decoration: none;
  color: var(--text);
}

.heroMeta {
  font-size: 0.85rem;
  color: var(--textMuted);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.sectionAlt {
  background: var(--bgElevated);
  border-block: 1px solid var(--border);
}

.sectionHead {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.sectionHead h2 {
  margin: 0 0 0.65rem;
  font-family: var(--fontDisplay);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sectionHead p {
  margin: 0;
  color: var(--textMuted);
  font-size: 1.05rem;
}

/* Match full content width so subheads don’t wrap early while wider cards sit below (e.g. How it works steps) */
.sectionHeadWide {
  max-width: none;
}

/* Fixed 3×2 on desktop; `auto-fit` + minmax was packing four narrow columns on wide viewports */
.featureGrid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .featureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .featureGrid {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(232, 165, 75, 0.35);
}

.cardIcon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--textMuted);
}

.splitFeatures {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.splitBlock {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .splitBlock {
    grid-template-columns: 1fr 1.15fr;
  }

  .splitBlock.reverse {
    direction: rtl;
  }

  .splitBlock.reverse > * {
    direction: ltr;
  }
}

.splitLabel {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.splitBlock h3 {
  margin: 0 0 0.75rem;
  font-family: var(--fontDisplay);
  font-size: 1.65rem;
  font-weight: 700;
}

.splitBlock ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--textMuted);
}

.splitBlock li {
  margin-bottom: 0.45rem;
}

.splitVisual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), var(--bg));
  min-height: 180px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.95;
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--accentSoft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--textMuted);
}

.privacyBox {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.privacyBox p {
  margin: 0 0 1rem;
  color: var(--textMuted);
}

.privacyBox p:last-child {
  margin-bottom: 0;
}

.downloadBand {
  padding: clamp(2.75rem, 6vw, 4rem) 1.25rem clamp(3rem, 7vw, 4.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
}

.buyInner {
  width: 100%;
  max-width: min(36rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.downloadBand h2 {
  margin: 0 0 0.5rem;
  font-family: var(--fontDisplay);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
}

.buyInner .buyPricing {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.buyInner .buyAmount {
  font-family: var(--fontDisplay);
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.buyInner .buyPriceSub {
  font-family: var(--fontBody);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--textMuted);
  line-height: 1.35;
}

.buyInner .buyLead {
  margin: 0 0 1.75rem;
  color: var(--textMuted);
  font-size: 1rem;
  line-height: 1.6;
}

.buyActions {
  margin-bottom: 1.25rem;
}

.buyInner .buyMeta {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--textMuted);
  text-wrap: balance;
}

.buyInner .buyFinePrint {
  margin: 0;
  padding-bottom: 0.15rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--textMuted);
  opacity: 0.9;
}

.sectionHeadCenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.sectionFaq .faqList {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.footerFine {
  margin-top: 0.75rem !important;
  font-size: 0.82rem;
  opacity: 0.85;
}

.faqList {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faqList details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.faqList summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faqList summary::-webkit-details-marker {
  display: none;
}

.faqList summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faqList details[open] summary::after {
  content: "−";
}

.faqList .faqBody {
  padding: 0 1.25rem 1.15rem;
  color: var(--textMuted);
  font-size: 0.95rem;
}

.faqList .faqBody p {
  margin: 0 0 0.75rem;
}

.faqList .faqBody p:last-child {
  margin-bottom: 0;
}

.faqList .faqBody ul {
  margin: 0;
  padding-left: 1.2rem;
}

.faqList .faqBody li {
  margin-bottom: 0.45rem;
}

.faqList .faqBody li:last-child {
  margin-bottom: 0;
}

.tableWrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  color: var(--textMuted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  background: var(--bg);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.preBlock {
  margin: 0.75rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--textMuted);
}

.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--textMuted);
  font-size: 0.88rem;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footerLinks a {
  color: var(--textMuted);
  font-weight: 600;
}

.footerLinks a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .siteHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .siteHeader-end {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    justify-content: center;
  }
}
