/* ─────────────────────────────────────────
   Navve – Shared Stylesheet
   ───────────────────────────────────────── */

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;

  /* Brand */
  --green-light:  #aabf96;
  --green-mid:    #6a9058;
  --green-dark:   #4e7040;
  --green-deeper: #3d5c30;
  --green-tint:   #f2f7ee;
  --green-border: #d0e0c4;

  /* Neutrals */
  --color-text:           #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-bg:             #ffffff;
  --color-border:         #d2d2d7;
  --color-surface:        #f5f5f7;

  /* Accent = brand green */
  --color-accent:       var(--green-dark);
  --color-accent-hover: var(--green-deeper);

  --max-width:   980px;
  --prose-width: 800px;
  --nav-height:  52px;
  --radius-card: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-logo-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  white-space: normal;
}

.nav-links a:hover         { opacity: 1; }
.nav-links a[aria-current] { opacity: 1; font-weight: 500; color: var(--color-accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.lang-switch a {
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.lang-switch a:hover        { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; font-weight: 600; color: var(--color-accent); }
.lang-switch .sep           { opacity: 0.35; }

/* ── Page wrapper ── */
.page-body {
  padding-top: var(--nav-height);
}

/* ── Hero ── */
.hero {
  padding: 80px 24px 72px;
  background: var(--color-bg);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 4px 6px  rgba(0,0,0,0.10),
    0 12px 40px rgba(78,112,64,0.28),
    0 1px 3px  rgba(0,0,0,0.12);
}
.app-icon svg { width: 100%; height: 100%; display: block; }

.hero-text { text-align: left; }

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 23px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: -0.2px;
}

/* ── App Store badge (official Apple artwork; do not crop or recolor) ── */
.store-badge--apple-official {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: opacity 0.2s;
}
.store-badge--apple-official:hover { opacity: 0.88; }
.store-badge--apple-official img {
  display: block;
  height: 40px;
  width: auto;
}

/* ── Section wrapper ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.section + .section { padding-top: 0; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

/* ── Horizontal rule ── */
.hr {
  height: 1px;
  background: var(--color-border);
  max-width: var(--prose-width);
  margin: 0 auto;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--green-dark);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ── Privacy callout ── */
.privacy-callout {
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
}

.privacy-callout-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: white;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.privacy-callout-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--green-dark);
}

.privacy-callout h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.privacy-callout p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.privacy-callout a {
  color: var(--color-accent);
  text-decoration: none;
}

.privacy-callout a:hover { text-decoration: underline; }

/* ── Built differently / No-list manifesto ── */
.no-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 22px;
}

.no-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.1px;
}

.no-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  border-radius: 50%;
}

.no-list-footer {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-text);
  margin-top: 10px;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.plan-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
}

.plan-card.pro {
  border-color: var(--green-dark);
  background: var(--green-tint);
}

.plan-badge {
  display: inline-block;
  background: var(--green-dark);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.plan-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--green-dark);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9l3.5 3.5L14 6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100%;
}

/* ── Page hero (non-index pages) ── */
.page-hero {
  padding: 56px 24px 48px;
  max-width: var(--prose-width);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-hero .updated {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ── Markdown content ── */
.md-content {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.md-content h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.md-content h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.md-content p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}

.md-content strong { color: var(--color-text); font-weight: 600; }
.md-content em { font-style: italic; }

.md-content ul, .md-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.md-content li {
  color: var(--color-text-secondary);
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.65;
}

.md-content li strong { color: var(--color-text); }

.md-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

.md-content a { color: var(--color-accent); text-decoration: none; }
.md-content a:hover { text-decoration: underline; }

.md-loading { color: var(--color-text-secondary); font-size: 15px; padding: 24px 0; }
.md-error   { color: #ff3b30; font-size: 15px; padding: 24px 0; }

/* ── Support page ── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.support-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.support-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.support-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.support-card a.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--green-dark);
  color: white;
  transition: background 0.2s;
}

.support-card a.btn:hover { background: var(--green-deeper); }

.faq { margin-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}

.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-q {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.faq-a a { color: var(--color-accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

footer p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 680px) {
  .hero { padding: 64px 24px 56px; }
  .hero-inner { flex-direction: column; gap: 24px; text-align: center; }
  .hero-text { text-align: center; }
  .hero h1     { font-size: 38px; letter-spacing: -1px; margin-bottom: 6px; }
  .hero .tagline { font-size: 19px; }

  .app-icon { width: 96px; height: 96px; border-radius: 22px; }

  .section-title { font-size: 28px; }

  .feature-grid,
  .pricing-grid,
  .support-grid  { grid-template-columns: 1fr; }

  .privacy-callout { flex-direction: column; gap: 16px; padding: 28px 24px; }

  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }

  .page-hero h1  { font-size: 28px; }
  .section       { padding: 48px 20px; }
  .md-content    { padding: 0 20px 60px; }
}
