:root {
  --bg: #f4fbf7;
  --surface: #ffffff;
  --surface-alt: #ecfdf3;
  --text: #10221b;
  --muted: #4a635a;
  --primary: #0f766e;
  --primary-dark: #0b5f58;
  --accent: #22c55e;
  --border: #d2e9dd;
  --success: #16a34a;
  --shadow: 0 18px 42px rgba(15, 118, 110, 0.1);
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(180deg, #f4fbf7 0%, #edf8f2 100%);
  line-height: 1.65;
  overflow-y: auto;
}

a { color: #0b5f58; text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

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

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  background: rgba(248, 253, 250, 0.78);
  border-bottom: 1px solid rgba(176, 210, 193, 0.5);
  backdrop-filter: blur(14px) saturate(130%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #113127;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-image: url('assets/app-icon-1024.png');
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(176, 210, 193, 0.55);
  border-radius: 999px;
  padding: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-links a {
  color: #2a4138;
  font-weight: 650;
  font-size: 0.94rem;
  padding: 8px 11px;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-links a:hover {
  background: #effcf4;
  color: #0f5e53;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: #ffffff;
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

@media (min-width: 1024px) {
  .nav-wrap {
    min-height: 78px;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .nav-actions .btn {
    min-height: 42px;
  }

  .hero {
    padding: 104px 0 78px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #0f766e);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: #17392f;
  border-color: #d2e9dd;
}

.btn-secondary:hover {
  background: #f0fdf4;
  text-decoration: none;
}

.btn-link { color: var(--muted); }

.hero {
  padding: 94px 0 72px;
}

.hero-grid, .grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.hero-grid, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid #bbf7d0;
}

.hero h1, h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.04;
  margin: 16px 0;
  color: #10221b;
  letter-spacing: -0.02em;
}

.hero p, .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 760px;
}

.metrics, .feature-list, .faq-list, .pricing-grid, .footer-grid, .legal-list { display: grid; gap: 18px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.metric { padding: 20px; }
.metric strong { display: block; font-size: 1.7rem; margin-bottom: 6px; color: #0f766e; }
.panel { padding: 28px; }
.checklist { padding-left: 22px; }
.checklist li { margin-bottom: 10px; }

.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card { padding: 28px; position: relative; overflow: hidden; }

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #0b5f58;
  color: white;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.price { font-size: 2.8rem; line-height: 1; margin: 18px 0 8px; font-weight: 900; color: #0f766e; }
.kicker { color: #166534; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 900; }
.note, .micro { color: var(--muted); font-size: 0.95rem; }

.highlight {
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
}

.btn-appstore {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.btn-appstore:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.cta-band {
  background: linear-gradient(135deg, #0b5f58, #064e3b);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius);
}

.cta-band p, .cta-band a { color: rgba(255,255,255,0.94); }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #ecfdf3; color: #166534; }

.faq-item { padding: 22px; }
.faq-item h3 { margin-top: 0; }

.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { margin-top: 34px; font-size: 1.45rem; }
.legal h3 { margin-top: 24px; font-size: 1.1rem; }
.legal p, .legal li { color: #334155; }

.panel,
.price-card,
.faq-item {
  position: relative;
}

.panel::before,
.price-card::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.site-footer {
  background: #0f172a;
  color: #dbe4f5;
  padding: 52px 0 28px;
  margin-top: 52px;
}

.site-footer a { color: #93c5fd; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(219, 228, 245, 0.18); color: #97a4bc; }
.small { font-size: 0.92rem; }
.center { text-align: center; }

.notice {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.warning {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

@media (max-width: 920px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .pricing-grid, .footer-grid, .metrics { grid-template-columns: 1fr; }
  .site-header {
    background: rgba(248, 253, 250, 0.96);
  }

  .nav-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 10px 0 14px;
    min-height: auto;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-links {
    width: 100%;
    border-radius: 14px;
    justify-content: center;
    padding: 6px;
    gap: 6px;
  }

  .nav-links a {
    flex: 0 1 auto;
    text-align: center;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-actions .btn {
    min-width: 168px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 22px));
  }

  .section {
    padding: 54px 0;
  }

  .section-tight {
    padding: 36px 0;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-links {
    width: 100%;
    border-radius: 12px;
    padding: 6px;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 8px);
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
    max-width: 360px;
  }

  .hero h1, h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .hero p, .lead {
    font-size: 1rem;
  }
}
