/* styles.css */

/* CSS variables for themes */
:root {
  --fp-color-lime: #99cc33;
  --fp-color-green: #339966;
  --fp-color-mint: #97d2b6;
  --fp-color-sand: #f2f2e4;
  --fp-color-purple: #25263b;
  --fp-color-teal: #003e4a;
  --fp-color-white: #ffffff;
  --fp-radius-lg: 18px;
  --fp-radius-md: 14px;
  --fp-radius-sm: 10px;
  --fp-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.14);
  --fp-shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.08);
  --fp-spacing: 8px;
  --fp-border-soft: 1px solid rgba(0, 0, 0, 0.04);
  --fp-transition-fast: 150ms ease-out;
}

/* Light theme */
html[data-theme="light"] {
  --fp-bg: var(--fp-color-white);
  --fp-bg-soft: #f7f8fb;
  --fp-bg-card: var(--fp-color-white);
  --fp-bg-accent: #f5ffe6;
  --fp-text-main: #1d2130;
  --fp-text-muted: #5e6375;
  --fp-border-subtle: rgba(0, 0, 0, 0.06);
  --fp-pill-bg: #eef4ff;
}

/* Dark theme */
html[data-theme="dark"] {
  --fp-bg: var(--fp-color-purple);
  --fp-bg-soft: #2e3046;
  --fp-bg-card: #2b3140;
  --fp-bg-accent: #263b2a;
  --fp-text-main: #f7f7fb;
  --fp-text-muted: #a5abc4;
  --fp-border-subtle: rgba(255, 255, 255, 0.07);
  --fp-pill-bg: rgba(151, 210, 182, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(
      circle at top left,
      rgba(151, 210, 182, 0.2),
      transparent 55%
    ),
    var(--fp-bg);
  color: var(--fp-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */
main {
  padding-top: 80px;
}

.fp-section {
  padding: 72px 20px;
}
.fp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto 40px auto;
}
.fp-section-header-centered {
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.fp-section-header h2 {
  font-family: "Space Grotesk", "Roc Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px 0;
}
.fp-section-header p {
  margin: 0;
  color: var(--fp-text-muted);
  max-width: 540px;
  font-size: 16px;
}

/* Header */
.fp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(247, 248, 251, 0.92),
    rgba(247, 248, 251, 0.82)
  );
}
html[data-theme="dark"] .fp-header {
  background: linear-gradient(
    to bottom,
    rgba(37, 38, 59, 0.96),
    rgba(37, 38, 59, 0.88)
  );
}
.fp-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 18px;
}
.fp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.fp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--fp-color-lime),
    var(--fp-color-teal)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-color-white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.fp-logo-text {
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--fp-text-main);
}
.fp-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.fp-nav a {
  text-decoration: none;
  color: var(--fp-text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color var(--fp-transition-fast),
    color var(--fp-transition-fast);
}
.fp-nav a:hover {
  color: var(--fp-text-main);
  background-color: rgba(0, 0, 0, 0.04);
}
html[data-theme="dark"] .fp-nav a:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.fp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header buttons */
.fp-link-ghost {
  text-decoration: none;
  font-size: 14px;
  color: var(--fp-text-muted);
}
.fp-link-ghost:hover {
  color: var(--fp-text-main);
}

.fp-btn-primary,
.fp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--fp-transition-fast),
    box-shadow var(--fp-transition-fast),
    background-color var(--fp-transition-fast), color var(--fp-transition-fast);
}
.fp-btn-lg {
  padding: 11px 22px;
  font-size: 15px;
}

.fp-btn-primary {
  background: linear-gradient(
    135deg,
    var(--fp-color-lime),
    var(--fp-color-green)
  );
  color: #142013;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.fp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}
.fp-btn-secondary {
  background: transparent;
  border: 1px solid var(--fp-border-subtle);
  color: var(--fp-text-main);
}
.fp-btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
html[data-theme="dark"] .fp-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Theme toggle */
.fp-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--fp-border-subtle);
  background-color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 12px;
  color: var(--fp-text-muted);
}
html[data-theme="dark"] .fp-theme-toggle {
  background-color: rgba(0, 0, 0, 0.3);
}
.fp-theme-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--fp-color-lime),
    var(--fp-color-teal)
  );
}

/* Mobile nav toggle */
.fp-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.fp-mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--fp-text-main);
}

/* Hero */
.fp-hero {
  padding: 96px 20px 64px 20px;
}
.fp-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.fp-hero-copy h1 {
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-size: 40px;
  line-height: 1.1;
  margin: 10px 0 12px 0;
}
.fp-hero-copy p {
  margin: 0 0 16px 0;
  color: var(--fp-text-muted);
  font-size: 16px;
}
.fp-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--fp-pill-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--fp-color-teal);
}
html[data-theme="dark"] .fp-pill {
  color: var(--fp-color-mint);
}
.fp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.fp-hero-meta {
  font-size: 13px;
  color: var(--fp-text-muted);
}
.fp-hero-visual {
  display: flex;
  justify-content: flex-end;
}
.fp-hero-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(
      circle at top,
      var(--fp-color-mint),
      transparent 60%
    ),
    var(--fp-bg-card);
  border-radius: 24px;
  padding: 18px 18px 16px 18px;
  box-shadow: var(--fp-shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
html[data-theme="dark"] .fp-hero-card {
  border: 1px solid rgba(151, 210, 182, 0.2);
}
.fp-hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.fp-hero-card-title {
  font-size: 14px;
  font-weight: 600;
}
.fp-hero-card-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.12);
  color: var(--fp-color-white);
}
.fp-hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.fp-hero-card-metric {
  padding: 8px 10px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
html[data-theme="dark"] .fp-hero-card-metric {
  background-color: rgba(37, 38, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.fp-hero-card-label {
  font-size: 11px;
  color: var(--fp-text-muted);
}
.fp-hero-card-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}
.fp-hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fp-hero-card-avatars {
  display: flex;
  align-items: center;
}
.fp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--fp-color-teal),
    var(--fp-color-lime)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-color-white);
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--fp-bg-card);
  margin-left: -6px;
}
.fp-avatar-main {
  margin-left: 0;
}
.fp-hero-card-note {
  font-size: 12px;
  color: var(--fp-text-muted);
}

/* Plans */
.fp-section-plans {
  background: linear-gradient(to bottom, var(--fp-bg-soft), var(--fp-bg));
}
.fp-billing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.fp-billing-label {
  color: var(--fp-text-muted);
}
.fp-billing-label-active {
  color: var(--fp-text-main);
  font-weight: 600;
}
.fp-billing-save {
  font-weight: 600;
  color: var(--fp-color-green);
}
.fp-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.12);
  padding: 0;
}
html[data-theme="dark"] .fp-toggle {
  background-color: rgba(255, 255, 255, 0.16);
}
.fp-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--fp-color-lime),
    var(--fp-color-teal)
  );
  transition: transform var(--fp-transition-fast);
}
html[data-billing="yearly"] .fp-toggle-knob {
  transform: translateX(18px);
}

.fp-plan-tabs {
  max-width: 1120px;
  margin: 0 auto 20px auto;
  display: inline-flex;
  gap: 4px;
  border-radius: 999px;
  padding: 4px;
  background-color: rgba(0, 0, 0, 0.03);
}
html[data-theme="dark"] .fp-plan-tabs {
  background-color: rgba(255, 255, 255, 0.06);
}
.fp-plan-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--fp-text-muted);
}
.fp-plan-tab-active {
  background-color: var(--fp-bg-card);
  color: var(--fp-text-main);
  box-shadow: var(--fp-shadow-subtle);
}

.fp-plan-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.fp-plan-grid-hidden {
  display: none;
}

.fp-plan-card {
  position: relative;
  background-color: var(--fp-bg-card);
  border-radius: var(--fp-radius-lg);
  padding: 18px 18px 16px 18px;
  box-shadow: var(--fp-shadow-subtle);
  border: 1px solid var(--fp-border-subtle);
}
.fp-plan-card[data-badge]:before {
  content: attr(data-badge);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(153, 204, 51, 0.14);
  color: var(--fp-color-teal);
}
html[data-theme="dark"] .fp-plan-card[data-badge]:before {
  background-color: rgba(151, 210, 182, 0.16);
}
.fp-plan-card-accent {
  background: radial-gradient(
      circle at top,
      var(--fp-color-mint),
      transparent 60%
    ),
    var(--fp-bg-card);
}
.fp-plan-card-head h3 {
  margin: 0 0 4px 0;
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-size: 20px;
}
.fp-plan-card-head p {
  margin: 0 0 14px 0;
  font-size: 14px;
  color: var(--fp-text-muted);
}
.fp-plan-price-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}
.fp-plan-price {
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 600;
}
.fp-plan-price-suffix {
  font-size: 13px;
  color: var(--fp-text-muted);
}
.fp-plan-billing-note {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--fp-text-muted);
}
.fp-plan-billing-amount {
  font-weight: 600;
}
.fp-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--fp-text-main);
}
.fp-plan-features li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}
.fp-plan-features li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--fp-color-lime),
    var(--fp-color-green)
  );
}
.fp-plan-cta {
  width: 100%;
  text-align: center;
  margin-bottom: 6px;
}
.fp-plan-guarantee {
  font-size: 11px;
  color: var(--fp-text-muted);
}

/* Product grid */
.fp-section-product {
  background: var(--fp-bg);
}
.fp-product-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.fp-product-card {
  background-color: var(--fp-bg-card);
  border-radius: var(--fp-radius-md);
  padding: 16px 16px 14px 16px;
  border: 1px solid var(--fp-border-subtle);
  box-shadow: var(--fp-shadow-subtle);
}
.fp-product-card h3 {
  margin: 0 0 6px 0;
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-size: 18px;
}
.fp-product-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fp-text-muted);
}

/* Split sections */
.fp-section-split {
  background: var(--fp-bg-soft);
}
.fp-split {
  max-width: 1120px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.fp-split-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.fp-split-copy h2 {
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-size: 26px;
  margin: 0 0 10px 0;
}
.fp-split-copy p {
  margin: 0 0 12px 0;
  color: var(--fp-text-muted);
  font-size: 15px;
}
.fp-bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.fp-bullet-list li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.fp-bullet-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--fp-color-lime);
}

/* Split visuals */
.fp-split-visual {
  display: flex;
  justify-content: center;
}
.fp-split-chart-card,
.fp-split-list-card,
.fp-lock-card {
  background-color: var(--fp-bg-card);
  border-radius: var(--fp-radius-lg);
  padding: 16px 16px 14px 16px;
  box-shadow: var(--fp-shadow-subtle);
  border: 1px solid var(--fp-border-subtle);
}
.fp-split-chart-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}
.fp-split-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-bottom: 8px;
}
.fp-split-chart-bar {
  flex: 1;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    var(--fp-color-lime),
    var(--fp-color-green)
  );
}
.fp-split-chart-bar-1 {
  height: 40%;
}
.fp-split-chart-bar-2 {
  height: 70%;
}
.fp-split-chart-bar-3 {
  height: 100%;
}
.fp-split-chart-caption {
  margin: 0;
  font-size: 12px;
  color: var(--fp-text-muted);
}

.fp-split-list-card .fp-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(153, 204, 51, 0.15);
  color: var(--fp-color-teal);
}
.fp-split-list-card p {
  margin: 6px 0 8px 0;
  font-size: 14px;
}
.fp-split-list-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.fp-split-list-row-sub {
  font-size: 12px;
  color: var(--fp-text-muted);
}
.fp-split-list-value {
  font-weight: 600;
}
.fp-lock-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}
.fp-lock-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fp-text-muted);
}
.fp-lock-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--fp-color-teal),
    var(--fp-color-lime)
  );
  margin-bottom: 8px;
}

/* Value section */
.fp-section-value {
  background: var(--fp-bg);
}
.fp-value-grid {
  max-width: 900px;
  margin: 0 auto 24px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.fp-value-card {
  background-color: var(--fp-bg-card);
  border-radius: var(--fp-radius-md);
  padding: 16px 16px 14px 16px;
  border: 1px solid var(--fp-border-subtle);
}
.fp-value-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
}
.fp-value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fp-text-muted);
}
.fp-value-cta {
  text-align: center;
}

/* FAQ */
.fp-section-faq {
  background: var(--fp-bg-soft);
}
.fp-faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-faq-item {
  background-color: var(--fp-bg-card);
  border-radius: var(--fp-radius-md);
  padding: 10px 14px;
  border: 1px solid var(--fp-border-subtle);
}
.fp-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 14px;
}
.fp-faq-item summary::-webkit-details-marker {
  display: none;
}
.fp-faq-item p {
  margin: 6px 0 4px 0;
  font-size: 13px;
  color: var(--fp-text-muted);
}

/* Footer */
.fp-footer {
  background: var(--fp-bg);
  border-top: 1px solid var(--fp-border-subtle);
  padding: 24px 20px 14px 20px;
}
.fp-footer-inner {
  max-width: 1120px;
  margin: 0 auto 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.fp-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.fp-footer-title {
  font-family: "Space Grotesk", "Roc Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.fp-footer-subtitle {
  font-size: 13px;
  color: var(--fp-text-muted);
}
.fp-footer-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.fp-footer-links h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
}
.fp-footer-links a {
  display: block;
  margin-bottom: 4px;
  color: var(--fp-text-muted);
  text-decoration: none;
}
.fp-footer-links a:hover {
  color: var(--fp-text-main);
}
.fp-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--fp-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .fp-hero-inner {
    grid-template-columns: 1fr;
  }
  .fp-hero-visual {
    justify-content: flex-start;
  }
  .fp-section-header {
    flex-direction: column;
  }
  .fp-split,
  .fp-split-reverse {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .fp-nav {
    display: none;
  }
  .fp-header-actions {
    display: none;
  }
  .fp-mobile-menu-toggle {
    display: flex;
  }
  .fp-header-inner {
    padding-inline: 16px;
  }
  .fp-section {
    padding-inline: 16px;
  }
  .fp-plan-tabs {
    width: 100%;
    justify-content: space-between;
  }
}
