:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f1f4fb;
  --text: #101326;
  --text-muted: #4e5570;
  --line: rgba(16, 19, 38, 0.1);
  --primary: #5046e6;
  --primary-strong: #3d36b8;
  --accent: #11a7b5;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 28px rgba(15, 24, 47, 0.06);
  --shadow-card: 0 18px 36px rgba(20, 27, 50, 0.08);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -120px, rgba(80, 70, 230, 0.15), transparent),
    radial-gradient(900px 420px at 0% 30%, rgba(17, 167, 181, 0.08), transparent),
    var(--bg);
  line-height: 1.58;
}

h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 2.95rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.14;
}

h3 {
  font-size: clamp(1.02rem, 2.3vw, 1.18rem);
}

p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.45vw, 1.05rem);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.8rem, 6.6vw, 5.2rem) 0;
  scroll-margin-top: 98px;
}

.section-tight-top {
  padding-top: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(80, 70, 230, 0.12);
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 9px 18px rgba(80, 70, 230, 0.26);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(15, 24, 47, 0.08);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.03rem;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0.52rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: rgba(80, 70, 230, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.hero {
  min-height: min(85vh, 760px);
  display: flex;
  align-items: center;
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(2.8rem, 4.4vw, 3.7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.hero-copy {
  margin-top: 0.75rem;
  max-width: 52ch;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.62rem;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  font-weight: 600;
  font-size: 0.96rem;
}

.hero-benefits li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.hero-ctas {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.layered-shot {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
}

.zoomable-image {
  cursor: zoom-in;
}

.zoomable-image:hover {
  filter: brightness(1.02);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox__content {
  width: min(96vw, 1200px);
  max-height: 92vh;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.image-lightbox__img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  background: #fff;
}

.image-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(11, 15, 20, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: #ffffff;
}

.hero-dashboard {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  transform: translate(34px, 18px);
}

.hero-widget {
  position: relative;
  width: min(100%, 470px);
  margin-left: auto;
  z-index: 2;
}

.hero-launcher {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 168px;
  z-index: 3;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.8vw, 2.5rem);
  align-items: center;
}

.smart-assist-demo-section {
  display: flex;
  justify-content: flex-end;
}

.smart-assist-demo-frame {
  width: min(100%, 420px);
  aspect-ratio: 668 / 1022;
  display: grid;
  place-items: center;
}

#inflo-smart-assist-demo-root {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.section-intro {
  margin-top: 0.75rem;
  max-width: 62ch;
}

.scenario-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.88rem 0.94rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(80, 70, 230, 0.38);
  box-shadow: var(--shadow-soft);
}

.scenario-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(80, 70, 230, 0.1);
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.scenario-icon .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.scenario-card p {
  font-size: 0.93rem;
  margin-top: 0.35rem;
}

.mini-feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.mini-feature-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.88rem;
}

.mini-feature-card p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.tabs-shell {
  margin-top: 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.95rem, 2vw, 1.35rem);
}

.tabs-list {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.82rem;
}

.tab-trigger {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.tab-trigger[aria-selected="true"] {
  border-color: rgba(80, 70, 230, 0.45);
  background: rgba(80, 70, 230, 0.12);
  color: var(--primary-strong);
}

.tab-panel {
  display: grid;
  gap: 0.72rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tab-panel[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.tabs-panels {
  position: relative;
}

.tabs-panels .layered-shot {
  width: 100%;
  display: block;
}

.tab-description {
  margin-top: 0.08rem;
  font-size: 0.95rem;
}

.tab-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.tab-benefits li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.82rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.93rem;
}

.dashboard-faq {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-faq .faq-item {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(20, 24, 31, 0.06);
}

.dashboard-faq .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  text-align: left;
}

.dashboard-faq .faq-q:focus-visible {
  outline: 2px solid rgba(80, 70, 230, 0.5);
  outline-offset: -2px;
}

.dashboard-faq .faq-ico {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: relative;
  flex: 0 0 auto;
  opacity: 0.7;
}

.dashboard-faq .faq-ico::before,
.dashboard-faq .faq-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.dashboard-faq .faq-ico::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.dashboard-faq .faq-item.is-open .faq-ico::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.dashboard-faq .faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 240ms ease, opacity 180ms ease;
}

.dashboard-faq .faq-a p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #5f6470;
}

.dashboard-faq .faq-item.is-open .faq-a {
  max-height: 240px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-faq .faq-a {
    transition: none;
  }
}

.timeline {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.timeline-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  min-height: 150px;
}

.timeline-step .index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(80, 70, 230, 0.12);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.timeline-step p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.onboarding-steps {
  margin: 1rem 0 0;
  padding: 1rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 255, 0.9));
  box-shadow: var(--shadow-soft);
  position: relative;
}

.onboarding-steps::before {
  content: "";
  position: absolute;
  left: calc(10% + 18px);
  right: calc(10% + 18px);
  top: 38px;
  height: 2px;
  background: rgba(80, 70, 230, 0.16);
  z-index: 0;
}

.onboarding-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
}

.step-node {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(80, 70, 230, 0.2);
  box-shadow: 0 8px 18px rgba(15, 24, 47, 0.08);
  display: grid;
  place-items: center;
}

.onboarding-step.is-active .step-node {
  background: rgba(80, 70, 230, 0.12);
  border-color: rgba(80, 70, 230, 0.35);
}

.step-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.step-icon[data-ico="user-plus"] {
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235046E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6'/%3E%3Cpath d='M22 11h-6'/%3E%3C/svg%3E");
}

.step-icon[data-ico="palette"] {
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235046E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Cpath d='M12 22a1 1 0 0 0 1-1v-1a2 2 0 0 1 2-2h1a4 4 0 1 0 0-8 7 7 0 1 0-7 12Z'/%3E%3C/svg%3E");
}

.step-icon[data-ico="check"] {
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235046E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.step-icon[data-ico="credit-card"] {
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235046E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E");
}

.step-icon[data-ico="code"] {
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235046E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}

.step-content {
  width: 100%;
}

.step-title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.3;
  min-height: 2.4em;
}

.step-desc {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.onboarding-explain {
  margin-top: 0.95rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
}

.onboarding-explain__lead {
  color: var(--text);
  font-weight: 600;
  font-size: 0.93rem;
}

.onboarding-explain__bullets {
  margin: 0.6rem 0 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.32rem;
}

.onboarding-explain__bullets li {
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .onboarding-steps {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .onboarding-steps::before {
    left: 28px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
  }

  .onboarding-step {
    grid-template-columns: 36px 1fr;
    align-items: start;
    justify-items: start;
    gap: 0.8rem;
    text-align: left;
  }

  .step-title {
    min-height: 0;
  }
}

.pricing-cards {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

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

.pricing-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.pricing-card.featured {
  border-color: rgba(80, 70, 230, 0.45);
  box-shadow: 0 14px 30px rgba(80, 70, 230, 0.15);
}

.plain-card {
  box-shadow: none;
  margin-top: 0.65rem;
}

.plan-name {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--text);
}

.plan-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.66rem;
  color: var(--text);
}

.plan-meta,
.plan-overage {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-overage {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.pricing-actions {
  margin-top: auto;
  display: grid;
  gap: 0.52rem;
}

.link-line {
  font-size: 0.89rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.demo-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.embed-box,
.fallback-form,
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem;
}

.embed-placeholder {
  border: 1px dashed rgba(80, 70, 230, 0.35);
  background: rgba(80, 70, 230, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
}

.fallback-form {
  display: grid;
  gap: 0.62rem;
}

.calc-card h2 {
  margin-bottom: 0.45rem;
}

.calc-card p {
  margin-bottom: 0.72rem;
}

.calc-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-slider {
  width: 100%;
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.calc-output {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.72rem;
  display: grid;
  gap: 0.35rem;
}

.calc-recommendation {
  color: var(--primary-strong);
  font-weight: 700;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  padding: 0.63rem 0.72rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
details summary:focus-visible {
  outline: 2px solid rgba(80, 70, 230, 0.45);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.form-message,
.contact-hint {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.95rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 24, 0.55);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal.is-open {
  display: grid;
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

.modal-card {
  width: min(920px, 100%);
  max-height: 90vh;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--line);
}

.modal-header button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.modal-subtitle {
  margin: 0;
  padding: 0.55rem 0.95rem 0.7rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.modal iframe {
  width: 100%;
  min-height: 68vh;
  border: 0;
  display: block;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-frame-wrap {
  position: relative;
  min-height: 68vh;
}

.modal-frame-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(80, 70, 230, 0.12), rgba(80, 70, 230, 0) 55%),
    linear-gradient(180deg, rgba(80, 70, 230, 0.03), rgba(80, 70, 230, 0.01)),
    repeating-linear-gradient(0deg, rgba(11, 15, 20, 0.05), rgba(11, 15, 20, 0.05) 1px, transparent 1px, transparent 34px),
    repeating-linear-gradient(90deg, rgba(11, 15, 20, 0.04), rgba(11, 15, 20, 0.04) 1px, transparent 1px, transparent 34px);
  transition: opacity 0.25s ease;
}

.modal-calendar-ghost {
  width: min(420px, calc(100% - 3rem));
  height: 220px;
  margin: 2rem auto 0;
  border-radius: 14px;
  border: 1px solid rgba(11, 15, 20, 0.08);
  background:
    linear-gradient(180deg, rgba(80, 70, 230, 0.12), rgba(80, 70, 230, 0.03)),
    #fff;
  box-shadow: 0 8px 24px rgba(11, 15, 20, 0.06);
}

.modal:not(.is-loading) .modal-frame-backdrop {
  opacity: 0;
  pointer-events: none;
}

.modal:not(.is-loading) iframe {
  opacity: 1;
}

.modal-fallback-link {
  margin: 0;
  padding: 0.65rem 0.95rem 0.85rem;
  border-top: 1px solid var(--line);
}

.modal-fallback-link a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.modal-fallback-link a:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.42s ease, transform 0.42s ease;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  margin-top: 1rem;
}

.table-wrap-tight {
  margin-top: 0.8rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.82rem;
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  font-size: 0.92rem;
}

.pricing-table td {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.05rem;
}

.accordion {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.56rem;
}

.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.78rem;
  background: #fff;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.accordion p {
  margin-top: 0.55rem;
  font-size: 0.93rem;
}

@media (max-width: 1080px) {
  .smart-assist-demo-section {
    justify-content: center;
  }

  .smart-assist-demo-frame {
    width: min(100%, 340px);
  }

  .hero-grid,
  .section-grid,
  .demo-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 4.2rem;
  }

  .hero-media {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .hero-dashboard {
    position: static;
    opacity: 0.44;
    transform: none;
    margin-bottom: -14px;
  }

  .hero-widget {
    margin-left: 0;
  }

  .hero-launcher {
    right: 8px;
    bottom: -16px;
  }

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

  .timeline-step {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links,
  .nav-actions {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.45rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem;
    display: none;
  }

  .site-header.is-menu-open .nav-links,
  .site-header.is-menu-open .nav-actions {
    display: grid;
    gap: 0.5rem;
  }

  .nav-links a,
  .nav-actions a,
  .nav-actions button {
    width: 100%;
  }

  .mini-feature-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards,
  .pricing-cards--two {
    grid-template-columns: 1fr;
  }

  .modal iframe {
    min-height: 80vh;
  }

  .modal-frame-wrap {
    min-height: 80vh;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.3rem 0;
  }

  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .hero-copy {
    max-width: none;
  }

  .tab-benefits li {
    font-size: 0.9rem;
  }
}

/* Pricing Iteration 1 */
.pricing-page .section {
  padding-top: clamp(3.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 5.5vw, 4rem);
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 1.1rem 1.8rem;
  align-items: center;
}

.pricing-side-visual {
  max-width: 420px;
  justify-self: end;
}

.pricing-hero-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pricing-hero-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-hero-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.calc-segments {
  position: relative;
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: center;
}

.calc-segments .seg {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.79rem;
  font-weight: 700;
  text-align: center;
}

.calc-segments .seg-plus {
  background: rgba(80, 70, 230, 0.13);
  color: var(--primary-strong);
}

.calc-segments .seg-pro {
  background: rgba(17, 167, 181, 0.14);
  color: #0b7982;
}

.calc-segments .seg-individual {
  background: rgba(16, 19, 38, 0.1);
  color: var(--text);
}

.seg-marker {
  --marker-pos: 44%;
  position: absolute;
  top: calc(100% + 6px);
  left: var(--marker-pos);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 15, 35, 0.2);
  transform: translateX(-50%);
}

.calc-hint {
  font-size: 0.88rem;
}

.calc-helper {
  margin-top: 0.7rem;
  font-size: 0.86rem;
}

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

.pricing-card .plan-feature-list {
  margin: 0.15rem 0 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card.recommended {
  border-color: rgba(80, 70, 230, 0.5);
  box-shadow: 0 16px 34px rgba(80, 70, 230, 0.2);
}

.pricing-card.is-dim {
  opacity: 0.56;
  filter: saturate(0.8);
}

.billing-grid {
  align-items: start;
}

.billing-example-cards {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.billing-visual {
  max-width: 460px;
  justify-self: end;
}

.pricing-demo-form {
  max-width: 700px;
  margin-top: 0.85rem;
}

@media (max-width: 1080px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr;
  }

  .pricing-side-visual,
  .billing-visual {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .pricing-cards--three {
    grid-template-columns: 1fr;
  }
}
