/* goddo labs — hellogoddo.com
   monochrome + goddo green. space grotesk, self-hosted.
   desktop: full-width editorial layout, big type. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --text: #0a0a0a;
  --muted: #737373;
  --border: #e5e5e5;
  --accent: #10b981;
  --backdrop: rgba(0, 0, 0, 0.55);
}

.dark {
  --bg: #0a0a0a;
  --bg-2: #171717;
  --text: #fafafa;
  --muted: #a3a3a3;
  --border: #262626;
  --backdrop: rgba(0, 0, 0, 0.7);
}

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

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

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color 0.3s ease, color 0.3s ease;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

::selection { background-color: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}

/* subpages get a narrower reading column */
.wrap.narrow { max-width: 960px; }

/* ---------- theme toggle ---------- */

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); transform: scale(1.06); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

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

.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 72px;
}

.kicker {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
}

.hero h1 {
  font-size: clamp(2.875rem, 8.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 .dot { color: var(--accent); }

.hero .sub {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  line-height: 1.5;
  max-width: 36em;
}

.cta-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--text); border-color: var(--muted); }

/* real product hunt / foundrlist embeds, native size, no chrome */
.badges {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.badges a { display: block; line-height: 0; transition: transform 0.2s ease; }
.badges a:hover { transform: translateY(-2px); }
.badges img { display: block; }

/* ---------- sections: left rail + right body ---------- */

section { padding: clamp(72px, 10vh, 128px) 0; }

.grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .grid {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(48px, 6vw, 110px);
    align-items: start;
  }
}

.rail { position: relative; }

.sec-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.sec-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.prose { max-width: 44rem; }
.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose .pull { color: var(--text); font-weight: 500; }

/* ---------- product rows ---------- */

.product-list { border-top: 1px solid var(--border); }

.product {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 34px 16px;
  position: relative;
  transition: background-color 0.25s ease;
}
.product:hover { background: var(--bg-2); }

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.product-name {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.product-meta {
  font-size: 1rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.product-meta .arrow { transition: transform 0.2s ease; }
.product:hover .product-meta { color: var(--text); }
.product:hover .product-meta .arrow { transform: translateX(3px); }

.product-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 38em;
}
@media (min-width: 900px) { .product-desc { font-size: 1.125rem; } }

button.product {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
}

/* ---------- hover preview card (desktop) ---------- */

.preview-card {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 300px;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: opacity 0.3s ease;
  will-change: transform;
}
.preview-card.on { opacity: 1; }

.preview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(10px);
  transition: opacity 0.4s ease, transform 0.5s ease, filter 0.4s ease;
}
.preview-card img.active { opacity: 1; transform: scale(1); filter: none; }

/* ---------- two columns (for kids / for parents) ---------- */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
.cols h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cols p { color: var(--muted); }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

/* ---------- quotes ---------- */

.quote { border-top: 1px solid var(--border); padding: 30px 16px; }
.quote:last-child { border-bottom: 1px solid var(--border); }
.quote p {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.quote .who {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote .stars { color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; }

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

footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  font-size: 1rem;
  color: var(--muted);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.foot-logo {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.foot-logo .dot { color: var(--accent); }
.foot-note { margin-top: 10px; }
.foot-note a { color: var(--text); border-bottom: 1px solid var(--border); transition: border-color 0.2s ease; }
.foot-note a:hover { border-color: var(--accent); }

.foot-cols {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  flex-wrap: wrap;
}
.foot-cols > div { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.foot-h {
  font-size: 0.875rem;
  text-transform: lowercase;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.foot-cols a { transition: color 0.2s ease; }
.foot-cols a:hover { color: var(--text); }

.foot-fine { font-size: 0.9375rem; }
.foot-fine .heart { font-size: 1.1em; }

/* ---------- letter dialog ---------- */

dialog.letter {
  width: min(92vw, 42rem);
  max-height: 84vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: contain;
}
dialog.letter::backdrop { background: var(--backdrop); }

.letter-inner { padding: 48px 48px 40px; }
@media (max-width: 560px) { .letter-inner { padding: 34px 24px 28px; } }

.letter-kicker {
  font-size: 0.9375rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-weight: 500;
  margin-bottom: 20px;
}

.letter-body p { margin-bottom: 18px; }
.letter-body p:last-of-type { margin-bottom: 0; }

.letter-sig { margin-top: 30px; font-weight: 600; }
.letter-sig span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }
.letter-sig a { color: inherit; border-bottom: 1px solid var(--border); transition: border-color 0.2s ease; }
.letter-sig a:hover { border-color: var(--accent); }

.letter-ps {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.letter-ps a { color: var(--text); border-bottom: 1px solid var(--muted); transition: border-color 0.2s ease; }
.letter-ps a:hover { border-color: var(--accent); }

.letter-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.0625rem;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.letter-close:hover { color: var(--text); border-color: var(--muted); }

/* ---------- subpages (about / privacy / terms) ---------- */

.page-head { padding: 88px 0 8px; }
.page-head .back {
  font-size: 1rem;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
  transition: color 0.2s ease;
}
.page-head .back:hover { color: var(--text); }
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.page-head .updated { margin-top: 12px; color: var(--muted); font-size: 1rem; }

.legal { padding: 32px 0 96px; max-width: 46rem; }
.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 34px 0 10px;
}
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 20px; margin-bottom: 16px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--border); }
.legal a:hover { border-color: var(--accent); }

.letter-cta {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  background: var(--bg-2);
}
.letter-cta p { color: var(--muted); margin-bottom: 14px; }

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
