/* Sumhouse — static site. No external fonts, no third-party scripts, no trackers. */
:root {
  --bg:          hsl(216 60% 6%);
  --bg-2:        hsl(215 52% 8%);
  --surface:     hsl(215 32% 11%);
  --surface-2:   hsl(215 28% 15%);
  --border:      hsl(215 22% 22%);
  --border-soft: hsl(215 22% 18%);
  --text:        hsl(210 30% 96%);
  --muted:       hsl(214 16% 70%);
  --faint:       hsl(214 14% 56%);
  --accent:      hsl(168 84% 48%);
  --accent-2:    hsl(192 90% 56%);
  --accent-dim:  hsl(168 52% 40%);
  --ink:         hsl(216 60% 6%);
  --glow:        hsl(170 90% 50% / 0.30);
  --radius:      14px;
  --maxw:        1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keyboard focus — visible on every interactive surface (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, nav.site a.nav-cta:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient aurora background, fixed so it parallaxes subtly under content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 620px at 72% -8%,  hsl(192 85% 32% / 0.22), transparent 60%),
    radial-gradient(1000px 560px at 8% 6%,    hsl(168 90% 45% / 0.14), transparent 58%),
    radial-gradient(900px 700px at 50% 108%,  hsl(210 80% 30% / 0.16), transparent 60%),
    var(--bg);
}

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

a { color: inherit; }

/* ---------- Header / sticky nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  transition: padding .25s ease, background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  padding: 11px 24px;
  background: hsl(216 55% 7% / 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-soft);
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px -4px var(--glow);
  display: grid; place-items: center;
  color: var(--ink); font-size: 15px; font-weight: 800;
}
.brand .dot { color: var(--accent); }
nav.site { display: flex; align-items: center; gap: 4px; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; transition: color .15s ease, background .15s ease; }
nav.site a:hover { color: var(--text); background: hsl(215 30% 18% / 0.6); }
nav.site a.nav-cta {
  color: var(--ink); font-weight: 600; margin-left: 8px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -8px var(--glow);
}
nav.site a.nav-cta:hover { filter: brightness(1.06); background: linear-gradient(150deg, var(--accent), var(--accent-2)); }
@media (max-width: 720px) { nav.site .nav-link { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 11px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}
.btn.primary {
  color: var(--ink); border-color: transparent;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -12px var(--glow), inset 0 1px 0 hsl(0 0% 100% / 0.25);
}
.btn.primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 40px -14px var(--glow), inset 0 1px 0 hsl(0 0% 100% / 0.25); }
.btn.ghost { color: var(--text); background: hsl(215 30% 14% / 0.5); }
.btn.ghost:hover { transform: translateY(-2px); border-color: var(--accent-dim); background: hsl(215 30% 16% / 0.7); }
.btn.lg { padding: 16px 30px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 34px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: hsl(168 70% 45% / 0.10);
  border: 1px solid hsl(168 70% 45% / 0.28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 hsl(170 90% 50% / 0.5); } 70% { box-shadow: 0 0 0 9px hsl(170 90% 50% / 0); } 100% { box-shadow: 0 0 0 0 hsl(170 90% 50% / 0); } }
.hero h1 {
  font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  padding: 0; margin: 26px 0 0; font-size: 13.5px; color: var(--faint);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dim); }

/* Hero product shot in a Mac window with depth + glow */
.hero-stage { position: relative; margin: 56px auto 0; max-width: 1000px; }
.hero-stage::before {
  content: ""; position: absolute; inset: -8% 6% 18%;
  background: radial-gradient(60% 60% at 50% 30%, var(--glow), transparent 70%);
  filter: blur(36px); z-index: -1;
}
.hero-stage .behind {
  position: absolute; top: 34px; right: -4%; width: 52%;
  border-radius: 12px; border: 1px solid var(--border-soft);
  opacity: 0.32; filter: blur(2px) saturate(0.9); transform: rotate(2.4deg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); z-index: -1;
}
@media (max-width: 760px) { .hero-stage .behind { display: none; } }

.mac-window {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 50px 130px -40px var(--glow), 0 40px 80px -40px rgba(0,0,0,0.75);
}
.mac-window .titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px;
  background: linear-gradient(180deg, hsl(215 28% 17%), hsl(215 30% 13%));
  border-bottom: 1px solid var(--border-soft);
}
.mac-window .titlebar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mac-window .titlebar i:nth-child(1) { background: #ff5f57; }
.mac-window .titlebar i:nth-child(2) { background: #febc2e; }
.mac-window .titlebar i:nth-child(3) { background: #28c840; }
.mac-window .titlebar .tt {
  margin-left: 12px; font-size: 12.5px; color: var(--faint);
  letter-spacing: 0.01em;
}
.mac-window picture { display: block; line-height: 0; }
.mac-window img { display: block; width: 100%; height: auto; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  padding: 30px 0 6px; border: none;
}
@media (max-width: 1040px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust .pill {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 18px 12px; border-radius: 12px;
  background: hsl(215 30% 11% / 0.55); border: 1px solid var(--border-soft);
}
.trust .pill svg { width: 24px; height: 24px; color: var(--accent); }
.trust .pill b { font-size: 14px; font-weight: 600; color: var(--text); }
.trust .pill span { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--border-soft); }
section.flush { border-top: none; }
#pricing, .cta-band { padding: 88px 0; }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
section h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.025em; margin: 0 0 10px; font-weight: 800; }
section p.sub { color: var(--muted); margin: 0 0 36px; font-size: 17px; }
.section-head.center p.sub { margin-left: auto; margin-right: auto; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: hsl(168 50% 38% / 0.5); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: hsl(168 70% 45% / 0.12); border: 1px solid hsl(168 70% 45% / 0.24); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 9px; font-size: 17.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.58; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 26px 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 11px; background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: var(--ink); font-weight: 800; font-size: 17px; margin-bottom: 16px;
  box-shadow: 0 8px 20px -10px var(--glow);
}
.step h3 { margin: 0 0 7px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Screenshots gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots figure {
  margin: 0; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shots figure:hover { transform: translateY(-3px); border-color: hsl(168 50% 38% / 0.45); box-shadow: 0 26px 54px -30px rgba(0,0,0,0.7); }
.shots figure.wide { grid-column: 1 / -1; }
.shots a { display: block; line-height: 0; position: relative; cursor: zoom-in; }
.shots picture { display: block; line-height: 0; }
.shots a::after {
  content: "⤢" / ""; position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: hsl(216 50% 8% / 0.7); color: var(--text); font-size: 15px;
  opacity: 0; transition: opacity .15s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.shots a:hover::after { opacity: 1; }
.shots img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border-soft); }
.shots figcaption { padding: 14px 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Privacy highlight callout ---------- */
.callout {
  margin: 0 0 30px; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(120deg, hsl(168 70% 45% / 0.10), hsl(192 80% 50% / 0.06));
  border: 1px solid hsl(168 60% 45% / 0.28);
  box-shadow: 0 30px 80px -52px var(--glow);
  display: flex; align-items: center; gap: 16px;
}
.callout svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.callout p { margin: 0; font-size: 16px; color: var(--text); }
.callout b { color: var(--accent); }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; place-items: center; }
.price-card {
  position: relative; max-width: 460px; width: 100%; text-align: center;
  background: linear-gradient(180deg, hsl(215 32% 13%), hsl(215 34% 10%));
  border: 1px solid hsl(168 55% 42% / 0.4); border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 40px 100px -50px var(--glow);
}
.price-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px var(--glow);
}
.price-card .amount { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 8px; }
.price-card .amount span { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0; text-align: left; }
.price-card li { padding: 9px 0 9px 30px; position: relative; color: var(--muted); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: hsl(168 70% 45% / 0.16); color: var(--accent); font-size: 12px; font-weight: 800;
}
.price-card .btn { width: 100%; justify-content: center; }
.price-card .note { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq .faq-list { max-width: 760px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 4px 22px; margin-bottom: 10px;
  transition: border-color .18s ease, background .18s ease;
}
.faq details[open] { border-color: hsl(168 50% 38% / 0.4); background: hsl(215 32% 12%); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+" / ""; font-size: 22px; font-weight: 400; color: var(--accent);
  transition: transform .2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 660px; }
.faq code { background: hsl(215 30% 18%); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; }

/* ---------- Final CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(120deg, hsl(168 70% 45% / 0.12), hsl(210 80% 40% / 0.10));
  border: 1px solid hsl(168 55% 45% / 0.3); border-radius: 20px; padding: 52px 28px;
  box-shadow: 0 40px 100px -55px var(--glow);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 28px; font-size: 17px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border-soft); padding: 40px 0 56px; margin-top: 24px;
  color: var(--faint); font-size: 14px;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
footer.site .maker { color: var(--muted); max-width: 680px; margin-bottom: 10px; }

/* ---------- Legal pages ---------- */
article.legal { max-width: 720px; margin: 0 auto; padding: 48px 0 90px; }
article.legal a.back { color: var(--accent); text-decoration: none; font-size: 14px; }
article.legal h1 { font-size: clamp(30px, 5vw, 38px); letter-spacing: -0.025em; }
article.legal h2 { font-size: 22px; margin-top: 38px; }
article.legal p, article.legal li { color: var(--muted); }
article.legal strong { color: var(--text); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .07s; }
html.js .reveal.d2 { transition-delay: .14s; }
html.js .reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .eyebrow .pulse { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, .card:hover, .shots figure:hover, .step:hover { transform: none !important; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: hsl(216 60% 4% / 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8); }
.lightbox .close {
  position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 11px;
  background: hsl(215 30% 16% / 0.8); border: 1px solid var(--border); color: var(--text);
  font-size: 22px; cursor: pointer; display: grid; place-items: center;
}
.lightbox .close:hover { background: hsl(215 30% 22% / 0.9); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 48px 0 24px; }
  .hero-stage { margin-top: 40px; }
  section { padding: 52px 0; }
  #pricing, .cta-band { padding: 60px 0; }
  /* Comfortable touch targets (Apple HIG 44pt) */
  nav.site a { padding: 11px 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
