/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  /* Brand colors — mirrors the iOS app's design tokens */
  --green:     #3A7D5D;
  --green-l:   #E8F3ED;
  --green-d:   #2C644A;
  --cream:     #F6F5F3;
  --surface:   #FBF9F6;
  --surface-2: #F1ECE7;
  --text:      #2B2621;
  --muted:     #877A72;
  --border:    #E4DDD7;
  --gold:      #C8AD7F;
  --gold-l:    #FBF5E6;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad-y: clamp(64px, 10vw, 120px);
  --container-max: 1060px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;

  /* Radii */
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* Transitions */
  --t-fast: 0.16s ease;
  --t-base: 0.22s ease;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Accessibility ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── Section base ─────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-pad-y);
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
/* Applied only when JS has loaded (html.js class added by main.js) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ── Typography helpers ───────────────────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
}

.section-body {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  line-height: 1.72;
  max-width: 500px;
}

/* ── App Store button ─────────────────────────────────────────────────────── */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: 1.5px solid var(--text);
  transition: opacity var(--t-base);
  white-space: nowrap;
}

.btn-store:hover,
.btn-store:focus-visible {
  opacity: 0.84;
}

.btn-store-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-store-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* CTA section variant — dark green */
.btn-store-green {
  background: var(--green-d);
  border-color: var(--green-d);
  color: #fff;
}

/* Hero outlined variant (Google Play) */
.btn-store-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-store-outline:hover,
.btn-store-outline:focus-visible {
  background: var(--surface-2);
  opacity: 1;
}

/* CTA outlined variant (Google Play in green section) */
.btn-store-green-outline {
  background: transparent;
  border-color: rgba(44, 100, 74, 0.35);
  color: var(--green-d);
}

.btn-store-green-outline:hover,
.btn-store-green-outline:focus-visible {
  background: rgba(44, 100, 74, 0.08);
  opacity: 1;
}

/* Store button pair */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 245, 243, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}

/* Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-svg {
  width: 48px;
  height: 24px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

/* Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.lang-btn.is-active {
  color: var(--green);
  background: var(--green-l);
  border-color: rgba(58, 125, 93, 0.2);
}

/* Nav CTA ── */
.nav-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--surface-2);
}

@media (max-width: 500px) {
  .nav-cta { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.section-hero {
  padding-block: clamp(80px, 13vw, 150px);
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%,
      rgba(232, 243, 237, 0.72),
      rgba(232, 243, 237, 0) 70%),
    var(--cream);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  color: var(--text);
  max-width: 740px;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 40px;
}

/* ── Problem ──────────────────────────────────────────────────────────────── */
.section-problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(48px, 8vw, 96px);
}

.problem-list {
  display: flex;
  flex-direction: column;
}

.problem-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(17px, 2.8vw, 22px);
  color: var(--text);
  line-height: 1.45;
}

.problem-item:last-child {
  border-bottom: none;
}

.problem-item::before {
  content: '';
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: var(--border);
  position: relative;
  top: -2px;
}

/* ── Solution ─────────────────────────────────────────────────────────────── */
.section-solution {
  background: var(--cream);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
}

@media (min-width: 760px) {
  .solution-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

/* Mock card ── */
.solution-visual {
  display: flex;
  justify-content: center;
}

.mock-card {
  width: 100%;
  max-width: 300px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  /* Subtle tilt for visual interest */
  transform: rotate(1.5deg);
  box-shadow:
    0 2px 0 var(--border),
    0 8px 32px rgba(43, 38, 33, 0.06);
}

.mock-card-inner {
  padding: 24px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}

.mock-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-task-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.mock-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Action buttons (decorative, pointer-events: none) */
.mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--sans);
  pointer-events: none;
  user-select: none;
  line-height: 1.2;
  text-align: center;
  padding: 0 10px;
}

.mock-btn-sun {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
}

.mock-btn-check {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.mock-btn-skip {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.section-features {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--t-base);
}

.feature-card:hover {
  border-color: rgba(58, 125, 93, 0.28);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-l);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 5px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.62;
}

/* ── Target Users ─────────────────────────────────────────────────────────── */
.section-users {
  background: var(--cream);
}

.users-inner {
  max-width: 680px;
}

.users-list {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.user-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--text);
  line-height: 1.55;
}

.user-item:last-child {
  border-bottom: none;
}

.user-item::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  top: -1px;
}

/* ── Trust ────────────────────────────────────────────────────────────────── */
.section-trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-l);
  color: var(--green-d);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.trust-privacy-link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}

.trust-privacy-link:hover {
  color: var(--green);
}

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.section-cta {
  background:
    radial-gradient(ellipse 100% 100% at 50% 100%,
      rgba(44, 100, 74, 0.07),
      rgba(44, 100, 74, 0) 70%),
    var(--green-l);
  border-top: 1px solid rgba(58, 125, 93, 0.16);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  color: var(--green-d);
  line-height: 1.06;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--green-d);
  opacity: 0.68;
  margin-bottom: 36px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: 44px 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--t-fast);
}

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

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--muted);
}

.footer-dot {
  color: var(--border);
}

.footer-email {
  color: var(--green-d);
  font-weight: 500;
  transition: color var(--t-fast);
}

.footer-email:hover {
  color: var(--green);
  text-decoration: underline;
}
