:root {
  --background: #f7f8fc;
  --surface: #ffffff;
  --border: #e3e7ee;
  --text: #0f172a;
  --muted: #475569;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --good: #16a34a;
  --caution: #f59e0b;
  --over: #ef4444;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

a:hover {
  color: var(--accent);
}

.container {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: block;
  height: 32px;
  width: auto;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links .app-store-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
}

.nav-links .app-store-link img {
  display: block;
  height: 38px;
  width: auto;
  vertical-align: middle;
}

.nav-links .app-store-link:hover {
  opacity: 0.9;
}

.hero {
  padding: 88px 0 64px;
  background: linear-gradient(135deg, #f6f9ff 0%, #f1f5ff 38%, #ffffff 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.subheading {
  max-width: 620px;
  font-size: 1rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.cta-group .app-store-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.cta-group .app-store-link img {
  display: block;
  height: 48px;
  width: auto;
}

.platform-note {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.cta-hint {
  color: var(--muted);
  font-weight: 600;
}

.hero-visual {
  background: linear-gradient(145deg, #eef2ff, #e0e7ff, #f4f4ff);
  border-radius: 28px;
  padding: 22px;
  border: 1px solid #e0e7ff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-visual img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.dots {
  letter-spacing: 6px;
  color: var(--muted);
  font-weight: 700;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #e4e9fa;
}

.label {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
}

.metric {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bar {
  background: #e7ebf5;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 999px;
}

.visual-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e4e9fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: grid;
  gap: 12px;
}

.card-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2ff;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.rating {
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.rating.good {
  background: rgba(22, 163, 74, 0.12);
  color: var(--good);
}

.rating.caution {
  background: rgba(245, 158, 11, 0.12);
  color: var(--caution);
}

.rating.over {
  background: rgba(239, 68, 68, 0.12);
  color: var(--over);
}

.muted {
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.section {
  padding: clamp(56px, 10vw, 80px) 0;
}

.section.alt {
  background: #f2f4fb;
}

.social-proof {
  background: #f8f9fd;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.social-proof-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.section-header {
  margin-bottom: 28px;
}

.section-header p {
  max-width: 720px;
}

.improvements {
  background: #f9fafc;
}

.improvements-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

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

.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#how-it-works .card-grid.three-cols {
  grid-template-columns: 1fr;
}

#how-it-works .how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}

#how-it-works .how-layout-left .card-grid.three-cols {
  grid-template-columns: 1fr;
}

#how-it-works .how-layout-right {
  display: flex;
  justify-content: center;
}

#how-it-works .how-layout-right .how-device {
  max-width: 360px;
  width: 100%;
}

#how-it-works .how-device {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

#how-it-works .how-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

#how-it-works .device-frame {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

#how-it-works .device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px; /* keep nice corners on the bezel image */
  box-shadow: none;     /* remove inner shadow if present */
}

.device-frame {
  background: linear-gradient(145deg, #eef2ff, #e0e7ff, #f4f4ff);
  border-radius: 28px;
  padding: 16px;
  border: 1px solid #e0e7ff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-frame img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-button {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  font: inherit;
  padding: 18px;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-button.selected {
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.18);
  background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}

.card-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.card h3 {
  margin-bottom: 10px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.bullet-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.demo-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tag {
  background: #e2e8f0;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.tag.accent {
  background: rgba(79, 70, 229, 0.12);
  color: var(--accent);
}

.demo-bars {
  display: grid;
  gap: 8px;
}

.demo-bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.demo-bar.alt-bar {
  background: #e9d5ff;
}

.demo-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a855f7);
}

.demo-list {
  display: grid;
  gap: 12px;
}

.demo-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 10px;
}

.trend-day {
  border-radius: 10px;
  padding: 10px 0;
  text-align: center;
  font-weight: 800;
  color: var(--text);
  background: #e2e8f0;
}

.trend-day.on { background: rgba(22, 163, 74, 0.15); }
.trend-day.almost { background: rgba(245, 158, 11, 0.18); }
.trend-day.over { background: rgba(239, 68, 68, 0.18); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  border-radius: 18px;
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-soft, 0 18px 45px rgba(15, 23, 42, 0.06));
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text, #0f172a);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent, #4f46e5);
  outline-offset: 2px;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--muted, #64748b);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #64748b);
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer ul {
  padding-left: 20px;
  margin: 0 0 8px;
}

.final-cta {
  text-align: center;
}

.final-cta .app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 14px;
}

.final-cta .app-store-link img {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 20px 0;
}

.footer-logo {
  display: block;
  height: 28px;
  width: auto;
}

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

.footer-links {
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.footer-separator {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
}

.footer-bottom {
  padding-top: 12px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Privacy / legal pages */
.legal-page {
  padding: 72px 0 64px;
}

.legal-page .container {
  /* Narrower reading width than main landing page */
  width: min(900px, 100% - 32px);
}

/* Desktop: shift content slightly to the left like a legal doc */
@media (min-width: 1024px) {
  .legal-page .container {
    margin-left: 80px;
    margin-right: auto;
  }
}

/* Mobile / tablet: keep centered with standard padding */
@media (max-width: 1023px) {
  .legal-page .container {
    margin: 0 auto;
    padding: 0 16px;
  }
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.97rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  #how-it-works .how-layout {
    grid-template-columns: 1fr;
  }

  #how-it-works .how-layout-right {
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 48px;
  }

  .cta-group {
    align-items: flex-start;
  }

  .card-line {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar info"
      "avatar rating";
  }

  .card-line .avatar { grid-area: avatar; }
  .card-line .rating { grid-area: rating; justify-self: start; }
}
