@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #0d121b;
  --ink-muted: #51627a;
  --line: #d7dfeb;
  --brand: #6d9ed9;
  --brand-strong: #4778d3;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, #9ae8ce 0%, transparent 42%),
    radial-gradient(circle at 85% 25%, #92b2e5 0%, transparent 38%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand);
}

.bg-shapes {
  display: none;
}

/* Match top edge of glass header to bar so no separate white line */
.site-topbar {
  border-top: 1px solid rgba(243, 248, 255, 0.85);
}
html.dark .site-topbar {
  border-top-color: rgba(16, 22, 34, 0.9);
}

#mobile-menu {
    background-color: rgba(243, 248, 255, 0.95) !important; /* Higher opacity light mode */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(13, 18, 27, 0.05);
}

html.dark #mobile-menu {
    background-color: rgba(16, 22, 34, 0.98) !important;
}

.site-header,
.site-footer {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-top: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  background: rgba(243, 248, 255, 0.88);
  backdrop-filter: blur(10px);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #d9e8fb url("./assets/AppIcon1024x1024.png") center/cover no-repeat;
  border: 1px solid rgba(16, 24, 40, 0.08);
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 800;
}

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

.top-cta {
  border: 1px solid var(--brand-strong);
  border-bottom-width: 3px;
  padding: 9px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.top-cta:hover {
  background: var(--brand-strong);
}

.section {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.6vw, 44px);
  width: min(var(--maxw), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  margin-top: 8px;
}

.section + .section {
  margin-top: 14px;
}

.badge {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
}

h1,
h2,
h3 {
  font-family: "Nunito", "Segoe UI", sans-serif;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 18ch;
  margin-top: 8px;
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 3.1vw, 34px);
  font-weight: 800;
}

h3 {
  font-size: 22px;
  font-weight: 800;
}

.hero-copy,
.section-intro {
  color: var(--ink-muted);
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.72;
  white-space: pre-line;
}

.hero-actions,
.store-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand-strong);
  border-bottom-width: 3px;
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.grid-3,
.grid-2 {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(109, 158, 217, 0.12);
  border-color: rgba(109, 158, 217, 0.4);
}

.card p {
  margin: 8px 0 0;
  color: var(--ink-muted);
}

/* Trust pill: inline brand badge */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(109, 158, 217, 0.3);
  background: rgba(109, 158, 217, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.trust-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}

.steps {
  margin: 14px 0 0;
  padding-left: 0;
  color: var(--ink-muted);
  list-style: none;
  counter-reset: steps-counter;
}

.steps li {
  margin: 12px 0;
  padding-left: 2.4em;
  position: relative;
  counter-increment: steps-counter;
}

.steps li::before {
  content: counter(steps-counter);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.bullets,
.about-points {
  margin: 14px 0 0;
  padding-left: 0;
  color: var(--ink-muted);
  list-style: none;
}

.bullets li,
.about-points li {
  margin: 10px 0;
  padding-left: 1.5em;
  position: relative;
}

.bullets li::before,
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}

.proof-strip {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-muted);
  background: #fff;
}

.faq {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.faq-item h3 {
  font-size: 18px;
  font-family: "Nunito", sans-serif;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--ink-muted);
}

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: none;
}

.breadcrumbs {
  margin: 6px 0 14px;
  color: var(--ink-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.related-guides {
  margin-top: 16px;
}

.related-guides ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.cta-panel {
  background: linear-gradient(135deg, #deeeff 0%, #e6f0fb 60%, #d8ebff 100%);
  border-color: #b8d4f0;
}

.cta-panel p {
  color: #3d5572;
}

.cta-panel h2 {
  color: #183153;
}

.legal-content {
  margin-top: 12px;
  color: var(--ink-muted);
  max-width: 80ch;
}

.legal-content h2 {
  margin-top: 18px;
  font-size: 24px;
}

.site-footer {
  margin-top: 24px;
  margin-bottom: 26px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  background: rgba(243, 248, 255, 0.7);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  padding: 18px 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .site-header,
  .site-footer {
    width: min(var(--maxw), calc(100% - 20px));
  }

  h1 {
    font-size: clamp(30px, 8.2vw, 44px);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(24px, 5.6vw, 32px);
  }

  .section {
    padding: clamp(18px, 4.4vw, 28px);
    width: min(var(--maxw), calc(100% - 20px));
  }

  .hero-copy,
  .section-intro {
    font-size: 16px;
  }

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

  .table-wrap {
    margin-top: 12px;
  }

  th,
  td {
    padding: 10px;
    font-size: 14px;
  }
}

/* Homepage redesign pass (reference-inspired) */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 231, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.landing-header-inner,
.landing-main,
.landing-footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

.landing-brand {
  text-decoration: none;
  color: #0b1220;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 30px;
}

.landing-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #78a8df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-nav a,
.landing-login,
.landing-footer-links a {
  text-decoration: none;
  color: #23344d;
  font-weight: 700;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-start {
  text-decoration: none;
  color: #fff;
  background: #6d9ed9;
  border: 1px solid #4f82d1;
  border-bottom-width: 3px;
  border-radius: 14px;
  padding: 11px 20px;
  font-weight: 800;
}

.landing-main {
  padding: 26px 0 32px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
  background: #f8f3e5;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.landing-pill {
  margin: 0 0 14px;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #b8c6d6;
  background: #edf3fb;
  color: #3c64ad;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.landing-hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.landing-accent {
  color: #4878c9;
  text-decoration: underline;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 8px;
  text-underline-offset: 8px;
}

.landing-hero-copy p {
  margin-top: 20px;
  color: #2e445f;
  font-size: 30px;
  max-width: 620px;
}

.landing-store-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-store-btn {
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid #b8c6d6;
  background: #fff;
  color: #4878c9;
  padding: 14px 18px;
  font-weight: 800;
}

.landing-store-btn.primary {
  color: #fff;
  background: #6d9ed9;
  border-color: #4f82d1;
}

.landing-social {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334a65;
  font-size: 15px;
}

.landing-avatars {
  display: flex;
}

.landing-avatars span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #d7e5f7;
  border: 2px solid #f8f3e5;
  margin-right: -8px;
}

.landing-hero-visual {
  min-height: 420px;
  position: relative;
}

.phone {
  position: absolute;
  border-radius: 38px;
  background: #f6c9cd;
  border: 4px solid #0f223f;
  box-shadow: 0 18px 35px rgba(16, 24, 40, 0.22);
  padding: 18px;
}

.phone-front {
  width: 300px;
  height: 590px;
  right: 0;
  top: 0;
}

.phone-back {
  width: 230px;
  height: 460px;
  right: 230px;
  top: 52px;
}

.phone-screen {
  background: #fff;
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  border: 2px solid #ced8e6;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.streak-card {
  position: absolute;
  right: 150px;
  bottom: 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d7dfeb;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.15);
  padding: 12px 14px;
}

.streak-card p {
  margin: 0;
  font-size: 12px;
  color: #5f738d;
}

.streak-card strong {
  color: #11233e;
}

.landing-features {
  margin-top: 18px;
  background: #f5f7fb;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  padding: 34px 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-features article {
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  padding: 16px;
}

.landing-features h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  font-size: 26px;
}

.landing-features p {
  color: #4e627b;
  margin: 8px 0 0;
}

.landing-footer {
  margin-top: 20px;
  background: #f8f3e5;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

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

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

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

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

  .landing-hero-visual {
    min-height: 560px;
  }

  .phone-front {
    right: 8%;
  }

  .phone-back {
    right: calc(8% + 220px);
  }
}

@media (max-width: 760px) {
  .landing-header-inner,
  .landing-main,
  .landing-footer-inner {
    width: calc(100% - 20px);
  }

  .landing-brand {
    font-size: 22px;
  }

  .landing-store-row {
    flex-direction: column;
  }

  .landing-hero-visual {
    min-height: 460px;
  }

  .phone-front {
    width: 210px;
    height: 410px;
    right: 0;
  }

  .phone-back {
    width: 160px;
    height: 320px;
    right: 165px;
    top: 44px;
  }

  .streak-card {
    right: 56px;
    bottom: 0;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .section {
    margin-top: 14px;
    border-radius: 12px;
  }

  .breadcrumbs {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .steps,
  .bullets,
  .about-points,
  .related-guides ul {
    padding-left: 16px;
  }

  .site-footer {
    margin-top: 18px;
    margin-bottom: 16px;
  }
}

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

.platform-hero h1 {
  max-width: 25ch;
  margin-left: auto;
  margin-right: auto;
}

.platform-hero .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.platform-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(109, 158, 217, 0.15);
}

.platform-card h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.platform-phone-link {
  display: inline-flex;
}

.platform-phone {
  width: auto;
  height: 540px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.platform-phone-link:hover .platform-phone {
  transform: scale(1.02);
}

.platform-store-badge {
  display: inline-flex;
  margin-top: 24px;
}

.platform-store-badge img {
  height: 54px;
  width: auto;
}

@media (max-width: 900px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}
