:root {
  --bg-page: #f7f7f7;
  --bg-page-deep: #f0f1ee;
  --bg-surface: #ffffff;
  --text-primary: #111111;
  --text-secondary: #6e6e73;
  --text-muted: #8e8e93;
  --border-subtle: #e5e5e7;
  --brand: #abc67b;
  --brand-light: #bdd297;
  --brand-tint: #eaf2dd;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.02), 0 6px 16px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 1px 2px rgba(0, 0, 0, 0.025), 0 10px 24px rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --container-width: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  background: #eef0ec;
  border: 1px solid #dde3d2;
  border-radius: 8px;
  padding: 2px 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 247, 247, 0.84);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 220ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  flex: 0 0 24px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.nav-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 4px 0;
}

.nav-list a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding: 52px 0 72px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.button:focus-visible,
.link-chip:focus-visible,
.text-link:focus-visible,
.nav-list a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: #759a6b;
  color: #ffffff;
}

.button-primary:hover {
  background: #6b8f61;
}

.button-secondary {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: #d6d6d9;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  background: var(--bg-surface);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.landing-page {
  background: linear-gradient(180deg, #f6f7f4 0%, #f4f5f2 20%, #f7f7f7 65%, #f7f7f7 100%);
}

.hero-stage {
  position: relative;
  overflow: clip;
  padding: 56px 0 48px;
}

.hero-stage-ambient {
  position: absolute;
  inset: -140px -120px auto -120px;
  height: 580px;
  pointer-events: none;
  background:
    radial-gradient(42% 44% at 76% 22%, rgba(171, 198, 123, 0.35) 0%, rgba(171, 198, 123, 0.02) 74%),
    radial-gradient(46% 58% at 22% 18%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 75%);
}

.hero-stage-inner {
  position: relative;
  text-align: center;
}

.hero-kicker {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-stage h1 {
  margin: 14px auto 0;
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  letter-spacing: -0.03em;
  line-height: 0.97;
  max-width: 12ch;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 5.4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: none;
}

.hero-subtitle {
  margin: 18px auto 0;
  font-size: clamp(1.03rem, 2.5vw, 1.34rem);
  color: var(--text-secondary);
  max-width: 56ch;
}

.page-lead {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero-stage .hero-actions {
  justify-content: center;
}

.device-mock {
  position: relative;
  aspect-ratio: 1380 / 2880;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.device-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/iPhone-Air-Portrait.png") center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

.device-screen {
  position: absolute;
  inset: 2.5% 4.3478%;
  border-radius: 0;
  overflow-x: visible;
  overflow-y: visible;
  border: 0;
  background: #000;
  z-index: 1;
}

.device-screen img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: auto;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: top center;
  transform: translateX(-50%);
}

.story-rack {
  padding: 22px 0 48px;
}

.story-header {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 760px;
}

.story-header h2,
.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.story-header p,
.section .section-intro {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

.story-section {
  margin: 0 0 22px;
}

.story-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  height: 600px;
  overflow: hidden;
}

.story-panel.is-reverse {
  flex-direction: row-reverse;
}

.story-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  overflow: visible;
}

.device-mock-feature {
  width: auto;
  height: 100%;
  max-height: 540px;
  max-width: 360px;
}

.device-mock-feature .device-screen {
  border-radius: 42px;
}

.story-copy {
  flex: 1;
  max-width: 46ch;
}

.device-screen.align-bottom img {
  top: auto;
  bottom: 0;
  transform: translateX(-50%);
}

.device-screen.align-bottom {
  border-radius: 0;
  overflow-x: visible;
  overflow-y: visible;
  border: 0;
}

.story-kicker {
  margin: 0;
  color: #405420;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.story-copy p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.proof-band {
  padding: 20px 0 12px;
}

.proof-band-inner {
  border: 1px solid #dae7c8;
  background: linear-gradient(130deg, #f7fbe8 0%, #fdfefb 74%);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.proof-band-inner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.proof-band-inner p {
  margin: 10px auto 18px;
  max-width: 62ch;
  color: var(--text-secondary);
}

.section {
  margin-bottom: 56px;
}

.faq-wrap {
  padding-top: 16px;
}

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

.faq-item {
  padding: 0;
}

.faq-item h3 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin-top: 6px;
  color: var(--text-secondary);
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
}

.panel.stack-card {
  padding: 0;
}

.stack-card {
  overflow: hidden;
}

.stack-item {
  padding: 22px;
}

.stack-item + .stack-item {
  border-top: 1px solid var(--border-subtle);
}

.stack-item h2,
.stack-item h3 {
  margin-top: 0;
}

.panel h2,
.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.panel p,
.panel li {
  color: var(--text-secondary);
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.text-link {
  color: #274208;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.small-note {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.legal-section {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
  margin-top: 10px;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 22px 20px 40px;
  display: grid;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero-stage {
    padding-top: 34px;
  }

  .story-panel,
  .story-panel.is-reverse {
    flex-direction: column;
    gap: 20px;
    padding: 22px;
    height: auto;
    overflow: visible;
  }

  .story-media {
    width: 100%;
    height: auto;
    align-items: center;
  }

  .story-copy {
    max-width: none;
  }

  .device-mock-feature {
    max-height: 460px;
  }

  .page {
    padding-top: 32px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-list {
    gap: 16px;
    flex-wrap: wrap;
  }
}
