/* === Theme — matches the app (warm dark + amber) === */
:root {
  --bg: #1a1a1a;
  --surface: #262626;
  --text-primary: #f0f0f0;
  --text-secondary: #a8a8a8;
  --text-tertiary: #6e6e6e;
  --accent: #f5b454;
  --accent-hover: #e0a23c;
  --border: #353535;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Consolas", "Courier New", monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: 720px; }
.container.center { text-align: center; }

/* === Brand mark === */
.brand-mark {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -0.05em;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 1.6rem;
  line-height: 1;
}
.brand-mark.big {
  font-size: 5.5rem;
  padding: 16px 32px;
  border-radius: 14px;
}
.brand-mark.small {
  font-size: 1.3rem;
  padding: 3px 9px;
  border-radius: 5px;
}

/* === Nav logo === */
.nav-logo {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  mix-blend-mode: lighten;
}
.footer-logo {
  height: 30px;
  width: 30px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  mix-blend-mode: lighten;
  margin-bottom: 6px;
}
body.light-page .nav-logo,
body.light-page .footer-logo {
  mix-blend-mode: normal;
}

/* === Nav === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px 24px 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.nav-links a.btn-pill {
  color: #1a1a1a;
}

/* === Button === */
.btn-pill {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-family: var(--sans);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-pill:hover {
  background: var(--accent-hover);
  color: #1a1a1a;
}
.btn-pill.big {
  padding: 18px 40px;
  font-size: 1.15rem;
}
.btn-pill.full {
  display: block;
  text-align: center;
  width: 100%;
}

/* === Hero === */
.hero {
  padding: 60px 32px 120px;
}
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-bullets li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  line-height: 1.3;
}
.hero-bullets strong {
  display: block;
  color: var(--text-primary);
  font-size: 2rem;
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 2px;
}
.hero-text h1 .muted { color: var(--text-secondary); }
.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-meta {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* === Product preview window === */
.preview-window {
  background: #1a1a1a;
  border-radius: 14px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(245, 180, 84, 0.06);
  overflow: hidden;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
}
.tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}
.tb-title {
  margin-left: 14px;
  color: #777;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.preview-body {
  position: relative;
  height: 380px;
  background: var(--bg);
}

.scene {
  position: absolute;
  inset: 0;
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

/* 16s cycle — 4 scenes × 4s each */
.scene-input     { animation: sc1 16s infinite ease-in-out; }
.scene-timer     { animation: sc2 16s infinite ease-in-out; }
.scene-decisions { animation: sc3 16s infinite ease-in-out; }
.scene-done      { animation: sc4 16s infinite ease-in-out; }

@keyframes sc1 {
  0%, 22%   { opacity: 1; }
  28%, 100% { opacity: 0; }
}
@keyframes sc2 {
  0%, 22%   { opacity: 0; }
  28%, 47%  { opacity: 1; }
  53%, 100% { opacity: 0; }
}
@keyframes sc3 {
  0%, 47%   { opacity: 0; }
  53%, 72%  { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes sc4 {
  0%, 72%   { opacity: 0; }
  78%, 97%  { opacity: 1; }
  100%      { opacity: 0; }
}

/* ── Scene 1: task input ── */
.scene-input {
  justify-content: center;
  gap: 0;
}
.si-session {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.si-tagline {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.si-box {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  min-height: 70px;
}
.si-text {
  font-size: 1rem;
  color: var(--text-primary);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.si-start {
  align-self: flex-start;
  background: var(--accent);
  color: #1a1a1a;
  padding: 11px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ── Scene 2: timer ── */
.scene-timer {
  justify-content: center;
}
.st-session {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.st-task {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.st-clock {
  font-family: var(--sans);
  font-size: 6.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.st-sep {
  animation: blink 1.1s steps(1) infinite;
}
.st-secs {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  vertical-align: top;
  line-height: 1;
}
.st-sec-roller {
  line-height: 1;
  animation: sec-tick 16s infinite;
}
@keyframes sec-tick {
  0%, 37%   { transform: translateY(0); }
  40%, 100% { transform: translateY(-1em); }
}

/* ── Scene 3: decisions feed ── */
.scene-decisions {
  justify-content: flex-start;
  gap: 0;
}
.sd-head {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.sd-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}
.sd-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(5px);
  animation: row-appear 16s infinite ease-out;
}
.sd-row.r1 { animation-delay: 8.2s; }
.sd-row.r2 { animation-delay: 8.7s; }
.sd-row.r3 { animation-delay: 9.2s; }
.sd-row.r4 { animation-delay: 9.7s; }
.sd-row.r5 { animation-delay: 10.2s; }
.sd-row.r6 { animation-delay: 10.7s; }

@keyframes row-appear {
  0%        { opacity: 0; transform: translateY(5px); }
  5%, 85%   { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(0); }
}
.sdr-dot      { font-weight: 700; }
.sdr-dot.ok   { color: var(--accent); }
.sdr-dot.no   { color: #dc2626; }
.sdr-domain   { color: var(--text-primary); }
.sdr-tag      { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px; }
.sdr-tag.allowed { background: rgba(245,180,84,0.12); color: var(--accent); }
.sdr-tag.blocked { background: rgba(220,38,38,0.12); color: #f87171; }

/* ── Scene 4: done for today ── */
.scene-done {
  justify-content: center;
  text-align: center;
}
.sdn-session {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.sdn-big {
  font-family: var(--sans);
  font-size: 6.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
.sdn-label {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* === Sections === */
section { padding: 80px 0; }
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
}
h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* === Features grid === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.feature {
  padding: 24px 0;
}
.feature-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature p { color: var(--text-secondary); font-size: 1rem; }

/* === Philosophy === */
.philosophy { background: #161616; }
.philosophy p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.philosophy p:last-child {
  color: var(--text-primary);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.4rem;
}

/* === How === */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.step {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* === Teams === */
.teams { background: #161616; }
.teams-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.teams-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 26px 28px;
}
.teams-card h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.teams-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.teams-card .mono {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text-primary);
  background: rgba(245, 180, 84, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}
.teams-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.teams-meta { color: var(--text-tertiary); font-size: 0.88rem; }

/* === Privacy === */
.privacy-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.privacy-list {
  list-style: none;
  padding: 0;
}
.privacy-list li {
  border-left: 3px solid var(--accent);
  padding: 16px 0 16px 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}
.privacy-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.privacy-list .mono {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(245, 180, 84, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-primary);
}

/* === Pricing === */
.center-text { text-align: center; }
.pricing-title { text-align: center; margin-bottom: 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.price-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.featured .price-tag { color: var(--accent); }
.price-card.featured {
  background: var(--surface);
  border: 1px solid rgba(245, 180, 84, 0.3);
}
.price-amount {
  font-family: var(--serif);
  font-size: 3rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.price-amount .per {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 4px;
}
.btn-pill.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-pill.outline:hover {
  background: var(--accent);
  color: #1a1a1a;
}
.price-card {
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.price-list {
  list-style: none;
  margin: 24px 0 28px;
  flex: 1;
}
.price-list li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  margin-top: 32px;
}
.price-note a { color: var(--accent); }

/* === FAQ === */
.faq details {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

/* === CTA === */
.cta {
  padding: 120px 32px;
  background: var(--surface);
  text-align: center;
}
.cta h2 {
  font-family: var(--serif);
  font-size: 3.2rem;
  margin-bottom: 16px;
}
.cta p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-note {
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-family: var(--mono);
}

/* === Footer === */
footer {
  padding: 56px 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-text {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* === Light theme (blog + article pages) === */
body.light-page {
  --bg: #f8f7f4;
  --surface: #efecea;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #8a8a8a;
  --border: #d6d4cf;
  background: var(--bg);
  color: var(--text-primary);
}
body.light-page .nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
body.light-page .nav-links a {
  color: var(--text-secondary);
}
body.light-page .nav-links a:hover { color: var(--accent); }
body.light-page footer {
  background: var(--bg);
}
body.light-page .btn-pill {
  background: var(--accent);
  color: #1a1a1a;
}

/* === Responsive === */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 3.6rem; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-cta { align-items: center; }
  .preview-window { margin: 0 auto; }
}
@media (max-width: 800px) {
  .hero-text h1 { font-size: 2.8rem; }
  .hero-sub { font-size: 1.1rem; }
  .preview-body { height: 340px; }
  .teams-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-bullets { gap: 16px; justify-content: center; }
  h2 { font-size: 2rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .how-steps { grid-template-columns: 1fr; gap: 16px; }
  .nav { padding: 18px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn-pill) { display: none; }
  .price-card { padding: 32px 24px; }
  .price-card h2 { font-size: 3rem; }
  .cta h2 { font-size: 2.2rem; }
}
