:root {
  --primary: #30d5c8;
  --primary-hover: #24b8ae;
  --primary-soft: #eefcf9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #dbe2ea;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1140px;
  --link: #0b8a80;
  --link-hover: #087269;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

main {
  flex: 1 0 auto;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1f2937;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid rgba(48, 213, 200, 0.4);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #042b29;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 52px;
  padding: 64px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0c7e77;
  background: var(--primary-soft);
  border: 1px solid #c7f3ed;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.hero-grid h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 18ch;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  color: #64748b;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
}

.hero-ring {
  position: absolute;
  inset: auto -20px -18px auto;
  width: 150px;
  height: 150px;
  background: linear-gradient(160deg, rgba(48, 213, 200, 0.24), rgba(48, 213, 200, 0.04));
  border-radius: 50%;
  z-index: -1;
}

.phone-shot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(219, 226, 234, 0.8);
}

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0d6f69;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  max-width: 68ch;
  margin: 0 auto 42px;
  text-align: center;
  color: var(--text-muted);
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-weight: 800;
  color: #0c7e77;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

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

.shot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.shot-card img {
  border-radius: 16px;
  border: 1px solid rgba(219, 226, 234, 0.9);
}

.shot-card h4 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.shot-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.step {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0b6762;
  background: var(--primary-soft);
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 840px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  color: var(--text-muted);
  margin-top: 8px;
}

.cta {
  background: linear-gradient(165deg, #ffffff 0%, #f0fffd 100%);
  border: 1px solid #c7f3ed;
  border-radius: 28px;
  padding: 44px 26px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

footer {
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.app-ads-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.app-ads-link:hover {
  color: var(--text-main);
}

.copyright {
  color: #64748b;
  font-size: 0.86rem;
}

/* —— Subpages: legal and support —— */
.page-main {
  padding: 40px 0 72px;
  background: var(--bg-alt);
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 36px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.legal-doc h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  max-width: none;
}

.legal-doc .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.legal-doc .doc-meta,
.legal-doc .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.legal-nav {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1rem 0 0.75rem;
  line-height: 1.5;
  flex-wrap: wrap;
  display: flex;
  gap: 4px 8px;
  align-items: center;
}

.legal-nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.legal-nav a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.legal-nav-sep {
  color: var(--border);
  user-select: none;
}

.legal-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0 1.5rem;
}

.legal-doc h2 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  margin: 0.5rem 0;
  color: var(--text-main);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.35rem;
}

.legal-doc li {
  margin: 0.2rem 0;
}

.legal-doc a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.legal-doc a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

/* Support */
.support-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.support-hero h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}

.support-hero p {
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0;
  font-size: 1.02rem;
}

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

.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.support-card h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.support-card p {
  color: var(--text-muted);
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.support-card a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.support-card a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.support-faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 26px;
  margin-bottom: 12px;
}

.support-faq h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

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

.qa {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}

.qa h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
  font-weight: 700;
}

.qa p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

.support-footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 4px;
}

/* Download chooser page */
.download-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.download-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  margin-bottom: 18px;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.download-hero p {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto;
}

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

.store-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px 22px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.store-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42ch;
}

.store-badge-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 14px;
  }

  .hero-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
    padding-top: 40px;
  }

  .hero-visual {
    width: min(380px, 84vw);
  }

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

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

  .store-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), 94vw);
  }

  .header-inner {
    min-height: 64px;
    padding: 8px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 320px);
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 24px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-y: auto;
    padding: 72px 14px 18px;
  }

  .site-nav a {
    font-size: 0.98rem;
    padding: 12px 10px;
    border-radius: 10px;
    white-space: normal;
  }

  .site-nav .btn {
    margin-top: 8px;
    width: 100%;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 40;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-nav {
    transform: translateX(0);
  }

  nav {
    gap: 14px;
  }

  .page-main {
    padding: 26px 0 56px;
  }

  .legal-doc {
    padding: 22px 16px 26px;
    border-radius: 16px;
  }

  .legal-doc h1 {
    font-size: 1.5rem;
  }

  .legal-doc h2 {
    font-size: 1.08rem;
  }

  .support-hero,
  .support-faq,
  .download-hero {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .support-card,
  .store-card {
    padding: 18px 16px;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-grid h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta {
    padding: 28px 16px;
    border-radius: 20px;
  }
}
