:root {
  --ink: #16202b;
  --muted: #5d6a79;
  --canvas: #f5f8fb;
  --card: #ffffff;
  --border: rgba(18, 26, 35, 0.12);
  --brand: #1e63d6;
  --brand-dark: #0f4bb5;
  --accent: #f0794f;
  --glow-peach: #ffd7c5;
  --glow-blue: #cfe8ff;
  --glow-mint: #d6f5ee;
  --shadow: 0 24px 60px -40px rgba(15, 23, 42, 0.5);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--canvas);
  background-image: radial-gradient(
      circle at 10% 15%,
      rgba(255, 215, 197, 0.5),
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(203, 229, 255, 0.6),
      transparent 40%
    ),
    linear-gradient(
      transparent 59px,
      rgba(15, 23, 42, 0.03) 60px
    ),
    linear-gradient(
      90deg,
      transparent 59px,
      rgba(15, 23, 42, 0.03) 60px
    );
  background-size: auto, auto, 60px 60px, 60px 60px;
  background-attachment: fixed;
  line-height: 1.6;
}

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

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.page::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--glow-blue),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.7;
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--glow-mint),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.6;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 8vw;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: inline-block;
  border: none;
  box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.35);
  background: transparent;
}

.logo-word {
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.nav-login {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-links a {
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 16px 30px -24px rgba(30, 99, 214, 0.8);
}

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

.btn.ghost {
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--ink);
  background: #fff;
}

.btn.ghost:hover {
  border-color: rgba(15, 23, 42, 0.35);
}

main {
  padding: 0 8vw 120px;
}

section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
  padding-top: 64px;
}

.load-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.is-loaded .load-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(2.6rem, 3vw + 2rem, 4rem);
  line-height: 1.05;
  margin: 16px 0 20px;
  letter-spacing: -0.04em;
}

.hero-subline {
  margin: -6px 0 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.highlight-card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.highlight-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 99, 214, 0.12);
  color: var(--brand);
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 18px;
  height: 18px;
}

.highlight-title {
  font-weight: 600;
}

.highlight-card small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
}

.hero-visual.load-in {
  transition-delay: 0.2s;
}

.social-proof .section-head,
.logo-strip .section-head {
  max-width: 640px;
}

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

.testimonial-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.testimonial-quote {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.testimonial-meta {
  display: grid;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
}

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

.sheet-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 70px -50px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sheet-title {
  font-weight: 700;
}

.sheet-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.pill {
  background: rgba(30, 99, 214, 0.12);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.sheet-grid {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr 1fr;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  background: #fff;
}

.sheet-row:nth-child(even) {
  background: #f8fafc;
}

.sheet-row.head {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eef3f9;
  font-size: 0.72rem;
  color: var(--muted);
}

.sheet-footer {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px -35px rgba(15, 23, 42, 0.6);
}

.floating-card.stripe {
  top: -20px;
  left: -20px;
}

.floating-card.google {
  bottom: 20px;
  right: -20px;
}

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dbe8ff, #7ca8ff);
}

.icon-grid {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b1f0dd, #59caa4);
  position: relative;
}

.icon-grid::before,
.icon-grid::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.icon-grid::after {
  inset: 14px;
}

.floating-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.floating-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 1.6vw + 1.6rem, 2.8rem);
  margin: 12px 0 0;
  letter-spacing: -0.02em;
}

.flow-steps,
.feature-grid,
.benefit-grid,
.schema-grid,
.privacy-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 24px;
}

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

.social-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.social-quote {
  margin: 0;
  font-size: 1rem;
}

.social-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-name {
  font-weight: 600;
  color: var(--ink);
}

.flow-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flow-step {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.flow-step h3 {
  margin: 14px 0 8px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.step-number {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.benefit-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.benefit-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 25px 60px -45px rgba(15, 23, 42, 0.6);
}

.benefit-card h3 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

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

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

.product-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

.product-card figcaption {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-card figcaption strong {
  color: var(--ink);
  font-size: 1rem;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

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

.schema-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
}

.schema-card ul,
.privacy-card ul,
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.schema-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(30, 99, 214, 0.12);
  color: var(--brand);
  font-weight: 600;
  margin-top: 14px;
}

.ai-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(244, 250, 255, 0.95)
  );
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.ai-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid span {
  background: rgba(240, 121, 79, 0.12);
  color: #b34a28;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.privacy-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.pricing-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.price-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.price-card.highlighted {
  border-color: rgba(30, 99, 214, 0.3);
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.price-interval {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.price-foot {
  font-size: 0.85rem;
  color: var(--muted);
}

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

.faq-item {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.tax-ready-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 215, 197, 0.4)
  );
  box-shadow: var(--shadow);
}

.tax-ready-card h2 {
  margin: 8px 0 12px;
}

.tax-ready-copy p {
  margin: 0;
  color: var(--muted);
}

.tax-ready-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tax-ready-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.tax-ready-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.cta {
  padding-bottom: 120px;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95),
    rgba(213, 245, 238, 0.7)
  );
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer {
  padding: 40px 8vw 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.legal-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 8vw 120px;
}

.legal-card {
  margin-top: 40px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 2vw + 1.6rem, 3rem);
  margin: 0 0 12px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-card ul {
  padding-left: 18px;
}

.legal-meta {
  font-size: 0.9rem;
  color: #7b8896;
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }
  .nav {
    padding: 24px 6vw;
  }

  main {
    padding: 0 6vw 100px;
  }

  .nav-links {
    display: none;
  }

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

  .hero-visual {
    order: -1;
  }

  .floating-card.stripe {
    left: 0;
  }

  .floating-card.google {
    right: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 20px 6vw 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-login {
    font-size: 0.9rem;
  }

  section {
    padding: 72px 0;
  }

  .nav-actions .btn {
    width: auto;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas,
  .cta-actions {
    width: 100%;
  }

  .pricing-urgency {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sheet-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }

  .sheet-row span:nth-child(3),
  .sheet-row span:nth-child(4) {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .load-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* Google Auth Guidance Modal */
.google-auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.google-auth-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-auth-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.google-auth-modal .modal-dialog {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
}

.google-auth-modal h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.google-auth-modal p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.permission-preview {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.permission-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.permission-row svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.permission-row span {
  flex: 1;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.4;
}

.checkbox-demo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.google-auth-modal .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.google-auth-modal .modal-actions .btn {
  width: 100%;
  justify-content: center;
}
