/* Screen Time Tracker — black / white minimal site (same system as Claude Enhancer) */
:root {
  --ink: #000000;
  --ink-soft: #111111;
  --ink-panel: #161616;
  --line: #2a2a2a;
  --muted: #737373;
  --white: #ffffff;
  --soft: #f5f5f5;
  --border: #e5e5e5;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #0a0a0a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  object-fit: cover;
  flex-shrink: 0;
}
img.brand-mark {
  padding: 0;
  border: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 14px; }

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 750;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.hero-panel h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.price-row strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.price-row span { color: var(--muted); font-size: 13px; }
.price-note { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* ── Sections ── */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); font-size: 15px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--ink-soft);
  min-height: 160px;
  transition: transform 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #404040;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.feature-anim {
  animation: featureRise 560ms ease-out both;
  animation-delay: calc(var(--d, 0) * 70ms);
}

.feature-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  animation: icoPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 120ms);
}

@keyframes featureRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .feature,
  .feature-anim,
  .feature-ico {
    animation: none !important;
    transition: none !important;
  }
  .feature:hover { transform: none; }
}

.feature h3 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan.featured {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.plan.featured .muted,
.plan.featured .plan-list li { color: #525252; }

.plan.featured .plan-list li::before { color: var(--ink); }

.plan-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-price {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price small {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.55;
}

.muted { color: var(--muted); font-size: 13px; }

.plan-list {
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan-list li {
  font-size: 13px;
  color: #d4d4d4;
  padding-left: 18px;
  position: relative;
}

.plan-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  left: 0;
  top: 7px;
}

.plan.featured .btn-white {
  background: var(--ink);
  color: var(--white);
}

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }

/* ── FAQ ── */
.faq {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

.faq details:last-child { border-bottom: 0; }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
}

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

.faq details p {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--muted);
  max-width: 62em;
}

/* ── Legal pages ── */
.legal-page {
  background: var(--ink);
  color: var(--white);
  min-height: 100vh;
}

.legal-card {
  max-width: 760px;
  margin: 40px auto 80px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 36px;
}

.legal-card h1 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-card .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.legal-card h2 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.legal-card p, .legal-card li {
  font-size: 14px;
  color: #d4d4d4;
  margin-bottom: 10px;
}

.legal-card ul { padding-left: 18px; }

/* ── Footer ── */
.site-footer {
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-grid a, .footer-grid p {
  display: block;
  font-size: 13px;
  color: #d4d4d4;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.pay-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pay-logos svg { height: 18px; width: auto; }

/* ── Light band (white minimal) ── */
.band-light {
  background: var(--white);
  color: var(--ink);
}

.band-light .section-head p,
.band-light .muted,
.band-light .compare td:first-child { color: #525252; }

.band-light .section { border-bottom-color: var(--border); }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare th, .compare td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.compare th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #737373; }

@media (max-width: 1100px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .pricing-grid,
  .pricing-grid-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 40px; }
}
