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

:root {
  color-scheme: light;
  --bg: #f7f6fb;
  --text: #101828;
  --muted: #667085;
  --primary: #e5484d;
  --primary-dark: #c02d2f;
  --card: #ffffff;
  --border: #e4e7ec;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
}

body.dark-mode {
  color-scheme: dark;
  --bg: #1a1f29;
  --text: #f4f4f8;
  --muted: #a0a7b4;
  --card: #232836;
  --border: #2f3746;
  --shadow: 0 20px 60px rgba(10, 12, 20, 0.45);
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.nav {
  position: sticky;
  top: 0;
  background: rgba(247, 246, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

body.dark-mode .nav {
  background: rgba(20, 24, 34, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

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

.logo {
  font-weight: 700;
  font-size: 1.6rem;
}

body.dark-mode .logo {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 40px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #0b0b0f;
}

body.dark-mode .nav-links {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: #f2f4f7;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle .icon-sun {
  display: none;
  color: #f59e0b;
}

.theme-toggle .icon-moon {
  display: inline;
  color: #64748b;
}

body.dark-mode .theme-toggle .icon-sun {
  display: inline;
  color: #fbbf24;
}

body.dark-mode .theme-toggle .icon-moon {
  display: none;
}

body.dark-mode .button-secondary,
body.dark-mode .button-ghost,
body.dark-mode .theme-toggle {
  background: #121826;
  color: var(--text);
  border-color: var(--border);
}

.hero {
  padding: 80px 0 60px;
}

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

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stats h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stats p {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-left: 48px;
}

.hero-device {
  width: min(260px, 42vw);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(16, 24, 40, 0.2));
}

.hero-device-secondary {
  margin-top: 40px;
}

.phone-stack {
  position: relative;
  width: min(420px, 90vw);
  height: 420px;
}

.phone-card {
  position: absolute;
  border-radius: 24px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  width: 70%;
}

.phone-primary {
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #e5484d, #ff8a8f);
  color: #fff;
}

.phone-secondary {
  bottom: 30px;
  left: 0;
  background: #38bdf8;
}

.phone-tertiary {
  bottom: 0;
  right: 50px;
  width: 55%;
  background: #facc15;
  color: #111827;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 10px;
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 70%;
  background: #fff;
}

.card-foot {
  font-size: 0.85rem;
  opacity: 0.85;
}

.phone-secondary ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.phone-tertiary .chip,
.panel-card .chip {
  border-radius: 999px;
  border: 0;
  padding: 8px 16px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  margin-top: 14px;
}

.widget-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.widget-card {
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.widget-primary {
  background: linear-gradient(135deg, #e5484d, #ff8a8f);
  color: #fff;
}

.widget-secondary {
  background: #38bdf8;
  color: #0b1220;
}

.widget-tertiary {
  background: #facc15;
  color: #111827;
}

.widget-card ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: inherit;
}

.widget-card .progress {
  background: rgba(255, 255, 255, 0.3);
}

.widget-card .progress-bar {
  background: #fff;
}

.widget-card .chip {
  border-radius: 999px;
  border: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-weight: 600;
  margin-top: 12px;
}

.section {
  padding: 80px 0;
}

.section-muted {
  background: #f0eff8;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.section-title p,
.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.features-visual {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-left: 24px;
}

.features-device {
  width: min(220px, 30vw);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(16, 24, 40, 0.18));
  border-radius: 28px;
}

.features-device-offset {
  margin-top: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--muted);
}

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

.workflow-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.workflow-list h4 {
  margin-bottom: 4px;
}

.workflow-list p {
  color: var(--muted);
}

.workflow-cards {
  display: grid;
  gap: 18px;
}

.panel-card {
  background: #111827;
  color: #fff;
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.panel-card-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.pill-row span {
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.panel-card-light .pill-row span {
  background: #f2f4f7;
}

.chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  height: 120px;
}

.chart span {
  background: #ff7a80;
  border-radius: 10px;
}

.chart span:nth-child(1) {
  height: 40%;
}

.chart span:nth-child(2) {
  height: 70%;
}

.chart span:nth-child(3) {
  height: 55%;
}

.chart span:nth-child(4) {
  height: 85%;
}

.chart span:nth-child(5) {
  height: 65%;
}

.coach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 12px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--border);
}

.testimonial-card p {
  margin-bottom: 22px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.testimonial-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.faq {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.faq-list details {
  background: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-list p {
  margin-top: 12px;
  color: var(--muted);
}

.cta {
  padding-bottom: 100px;
}

.cta-card {
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
  color: #fff;
  padding: 46px;
  border-radius: 28px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.formkit-form[data-uid="f596b012c2"] .formkit-alert-success:not(:empty)~.formkit-fields {
  display: none;
}

.formkit-form[data-uid="f596b012c2"] .formkit-alert-success:not(:empty)~.formkit-powered-by-convertkit-container {
  display: none;
}

.formkit-form[data-uid="f596b012c2"] .formkit-alert {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  display: none !important;
}

.formkit-form[data-uid="f596b012c2"] .formkit-alert-success,
.formkit-form[data-uid="f596b012c2"] .formkit-alert-error {
  display: block !important;
  height: auto !important;
  margin: 12px 0 0 !important;
  padding: 12px !important;
  border: 1px solid transparent !important;
}

.formkit-form[data-uid="f596b012c2"] .formkit-alert:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
}

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

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

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

.footer-note {
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .footer-note {
    text-align: left;
  }

  .phone-stack {
    height: 360px;
  }

  .phone-card {
    width: 80%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 60px;
  }

  .cta-card {
    padding: 32px;
  }

  .phone-tertiary {
    display: none;
  }
}