:root {
  color-scheme: light;
  --ink: #1b231e;
  --muted: #5f6e64;
  --paper: #f7f4ee;
  --paper-2: #f1ede4;
  --panel: #ffffff;
  --line: #e2e0d6;
  --line-strong: #d3d1c5;
  --green: #2f6d50;
  --green-deep: #234f3b;
  --soft-green: #e7efe8;
  --soft-blue: #e7eef4;
  --soft-plum: #efe8ee;
  --shadow-sm: 0 1px 2px rgba(27, 35, 30, 0.05);
  --shadow: 0 24px 60px -28px rgba(27, 35, 30, 0.35);
  --radius: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p { margin-top: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(247, 244, 238, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(14px);
}

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

.brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a { transition: color 0.15s ease; }
.site-header nav a:hover { color: var(--ink); }

.header-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
}
.header-cta:hover { background: var(--green-deep); }

/* ---------- Layout rhythm ---------- */

.hero,
.feature-band,
.split-section,
.ai-section,
.pricing-section,
.faq-section,
.cta-band,
.trust-strip {
  padding-left: clamp(18px, 6vw, 56px);
  padding-right: clamp(18px, 6vw, 56px);
}

.section-heading { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.05fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(48px, 9vw, 104px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.hero-copy { max-width: 620px; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.lede {
  max-width: 540px;
  color: #3c483f;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.primary-action { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.primary-action:hover { background: var(--green-deep); transform: translateY(-1px); }
.primary-action.large { min-height: 54px; padding: 0 32px; font-size: 1.05rem; }

.secondary-action { color: var(--ink); }
.secondary-action:hover { color: var(--green); }

.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- App preview ---------- */

.product-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f1f2ec;
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }

.app-preview { display: grid; grid-template-columns: 148px 1fr; min-height: 408px; }

.app-preview aside {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 14px;
  background: #edf1ea;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.app-preview aside strong { color: var(--ink); font-size: 0.96rem; }

.app-preview section {
  padding: clamp(20px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(47, 109, 80, 0.07), transparent 30%), var(--panel);
}

.prompt-line {
  max-width: 440px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  color: #2f3c34;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.answer-block {
  margin-top: 18px;
  max-width: 540px;
  padding: 18px;
  border-radius: 4px 12px 12px 12px;
  background: var(--soft-green);
}
.answer-block p { margin: 0 0 16px; }

.process-row { display: flex; flex-wrap: wrap; gap: 8px; }

.process-row span {
  flex: 1 1 auto;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #51604f;
  font-size: 0.8rem;
  font-weight: 600;
}

.memory-grid span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #51604f;
  font-size: 0.8rem;
  font-weight: 600;
}

.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }

/* ---------- Trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}

/* ---------- Sections ---------- */

.feature-band, .split-section, .ai-section, .pricing-section, .faq-section {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.feature-band { background: #fff; }

.feature-grid, .mode-grid, .pricing-grid {
  display: grid;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid article,
.mode-grid article,
.price-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.01em; }

.feature-grid article p, .mode-grid article p, .price-desc { color: var(--muted); margin: 0; }

.feature-grid article:nth-child(2) { background: var(--soft-blue); border-color: transparent; }
.feature-grid article:nth-child(3) { background: var(--soft-green); border-color: transparent; }
.feature-grid article:nth-child(4) { background: var(--soft-plum); border-color: transparent; }

/* Privacy split */
.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  background: transparent;
}
.split-section { background: var(--paper-2); border-radius: 0; }
.split-lead h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.split-lead .section-sub { margin-top: 12px; }

.promise-list { margin: 0; padding: 0; list-style: none; }
.promise-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 1.04rem;
}
.promise-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.promise-list strong { color: var(--ink); }

.ai-section { background: #fff; }
.mode-grid { grid-template-columns: repeat(3, 1fr); }
.mode-grid article:nth-child(2) { background: var(--soft-green); border-color: transparent; }

/* Section headings inside non-centered contexts */
.feature-band .section-heading h2,
.ai-section .section-heading h2,
.pricing-section .section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---------- Pricing ---------- */

.pricing-section { background: var(--paper-2); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-tag { font-weight: 700; font-size: 1.05rem; margin: 0; }
.price { margin: 0; }
.price-amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.price-unit { color: var(--muted); font-weight: 600; }
.price-card.featured {
  border-color: var(--green);
  background: var(--soft-green);
  box-shadow: 0 24px 60px -30px rgba(47, 109, 80, 0.55);
}
.pricing-foot { max-width: var(--maxw); margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq-section { background: var(--paper); }
.faq-list { max-width: 760px; margin: 0 auto; }

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 4px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 1.04rem;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-weight: 700; font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: linear-gradient(160deg, var(--green-deep), var(--green));
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }
.cta-band .primary-action { background: #fff; color: var(--green-deep); }
.cta-band .primary-action:hover { background: var(--paper); }

/* ---------- Footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px clamp(18px, 6vw, 56px);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { margin-left: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .site-header { gap: 14px; }
  .site-header nav { gap: 16px; font-size: 0.9rem; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .feature-grid, .mode-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .primary-action, .secondary-action { width: 100%; }
  .feature-grid, .mode-grid, .pricing-grid { grid-template-columns: 1fr; }
  .app-preview { grid-template-columns: 1fr; }
  .app-preview aside { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .memory-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { font-size: 0.85rem; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-fine { margin-left: 0; }
}
