:root {
  --bg: #f5f8f5;
  --surface: #ffffff;
  --surface-muted: #edf4ef;
  --text: #173327;
  --muted: #5b7367;
  --line: rgba(23, 51, 39, 0.10);
  --green: #2e9d6c;
  --green-deep: #1d6b53;
  --teal: #266a7c;
  --hero: linear-gradient(135deg, #1f6f77 0%, #2e9d6c 100%);
  --shadow: 0 18px 40px rgba(23, 51, 39, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  background: rgba(245, 248, 245, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(23, 51, 39, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--green-deep);
}

.nav {
  align-items: center;
}

.nav-item,
.nav-trigger {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.52);
  font: inherit;
  color: inherit;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.nav-item:hover,
.nav-trigger:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--green-deep);
}

.nav-item:hover,
.nav-trigger:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(29, 107, 83, 0.12);
}

.nav-item:active,
.nav-trigger:active {
  transform: translateY(0) scale(0.98);
}

.nav-group {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  appearance: none;
}

.nav-trigger::after {
  content: "▾";
  font-size: 0.8rem;
  color: rgba(23, 51, 39, 0.55);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 51, 39, 0.10);
  box-shadow: 0 18px 34px rgba(23, 51, 39, 0.10);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.nav-menu a:hover {
  background: rgba(46, 157, 108, 0.10);
  color: var(--green-deep);
}

.hero {
  padding: 38px 0 30px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-panel {
  display: block;
  padding: 54px;
  border-radius: 36px;
  background: var(--hero);
  color: #ffffff;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  margin: 20px 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: #ffffff;
  color: var(--green-deep);
}

.button-primary:hover {
  background: #f2fbf6;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.iphone-frame {
  width: min(100%, 220px);
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(180deg, #181818, #2a2a2a);
  box-shadow: 0 28px 55px rgba(10, 25, 21, 0.28);
  margin: 0 auto;
  position: relative;
}

.iphone-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 88px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #0f0f0f;
  z-index: 2;
}

.iphone-screen {
  display: block;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
}

.showcase-box {
  padding: 30px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.showcase-devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.showcase-captions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.showcase-caption strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}

.showcase-caption span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.guide-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(46, 157, 108, 0.14);
  color: var(--green-deep);
  font-size: 0.95rem;
}

.guide-step h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.guide-step p,
.guide-step li,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-step ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.guide-step li + li {
  margin-top: 8px;
}

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

.faq-item {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-item h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.support-form {
  display: grid;
  gap: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 51, 39, 0.12);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(46, 157, 108, 0.18);
  border-color: rgba(46, 157, 108, 0.35);
}

.field-hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  min-height: 24px;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: var(--green-deep);
}

.form-status[data-state="error"] {
  color: #a33429;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 15, 11, 0.22);
}

.app-store-badge:hover {
  transform: translateY(-1px);
}

.app-store-badge:active {
  transform: translateY(0) scale(0.99);
}

.app-store-mark {
  font-size: 1.9rem;
  line-height: 1;
}

.app-store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app-store-copy small {
  font-size: 0.72rem;
  opacity: 0.82;
}

.app-store-copy strong {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-stat,
.feature-card,
.page-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-stat {
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-stat h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.feature-card h2,
.page-card h1,
.page-card h2 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.hero-stat p,
.feature-card p,
.page-card p,
.page-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 22px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px 24px;
}

.page-layout {
  display: grid;
  gap: 18px;
  padding: 34px 0 28px;
}

.page-card {
  padding: 34px 34px 30px;
}

.story-grid {
  display: grid;
  gap: 18px;
}

.story-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-card.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.story-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-visual {
  display: flex;
  justify-content: center;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(180deg, #eef5f0, #f8fbf8);
  border: 1px solid rgba(23, 51, 39, 0.08);
}

.cta-band {
  margin-top: 10px;
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(38, 106, 124, 0.12), rgba(46, 157, 108, 0.16));
  border: 1px solid rgba(29, 107, 83, 0.10);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.cta-band p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.cta-band .actions {
  margin-top: 22px;
}

.button-tertiary {
  border: 1px solid rgba(31, 107, 84, 0.16);
  background: transparent;
  color: var(--green-deep);
}

.page-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.page-card li + li {
  margin-top: 8px;
}

.meta-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(46, 157, 108, 0.10);
  color: var(--green-deep);
}

.page-hero {
  padding: 34px 0 0;
}

.page-hero-box {
  padding: 36px 34px;
  border-radius: 30px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.page-hero-box .eyebrow {
  color: var(--green-deep);
}

.footer {
  margin-top: 26px;
  padding: 16px 0 30px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.text-link {
  color: var(--green-deep);
}

@media (max-width: 860px) {
  .hero-panel,
  .feature-grid,
  .story-card,
  .story-card.reverse,
  .showcase-devices,
  .showcase-captions,
  .guide-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .page-card {
    padding: 28px 22px;
  }

  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .iphone-frame {
    margin: 0 auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-start;
  }

  .nav {
    display: none;
    width: 100%;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-item,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-group {
    margin: 0;
    padding: 0;
  }

  .nav-group::after {
    display: none;
  }

  .nav-trigger {
    pointer-events: auto;
    background: rgba(237, 244, 239, 0.92);
    border-color: rgba(29, 107, 83, 0.08);
    cursor: pointer;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    margin-top: 0;
    padding: 0 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: hidden;
    transition: max-height 220ms ease, margin-top 220ms ease;
  }

  .nav-group.is-open .nav-menu {
    max-height: 220px;
    margin-top: 8px;
  }

  .nav-menu a {
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 51, 39, 0.08);
  }
}
