:root {
  color-scheme: light;
  --ink: #111827;
  --ink-soft: #233044;
  --muted: #637083;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --panel-soft: #eef7f3;
  --line: #d9e1ea;
  --teal: #0f9f8f;
  --teal-dark: #087266;
  --sky: #2f80ed;
  --coral: #f9735b;
  --gold: #f5b84b;
  --shadow: 0 24px 80px rgba(14, 32, 54, 0.18);
  --dark-band: #111827;
  --tinted: #f3f7fb;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4fb;
  --ink-soft: #d6e0eb;
  --muted: #a8b7c7;
  --paper: #0e141c;
  --panel: #171f2a;
  --panel-soft: #172925;
  --line: #2c3948;
  --teal: #18a997;
  --teal-dark: #6ad5c8;
  --sky: #6ba6f6;
  --coral: #ff8b77;
  --gold: #f7c765;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --dark-band: #090f16;
  --tinted: #121b25;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 max(24px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--paper), transparent 10%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color: #ffffff;
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

nav a,
.theme-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
}

nav a:hover,
.theme-toggle:hover {
  background: color-mix(in srgb, var(--teal), transparent 90%);
  color: var(--ink);
}

.theme-toggle {
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.theme-toggle-icon {
  width: 18px;
  color: var(--teal-dark);
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
}

.nav-cta {
  background: var(--ink);
  color: #ffffff;
}

.nav-cta:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

[data-theme="dark"] .nav-cta {
  background: var(--teal);
  color: #ffffff;
}

[data-theme="dark"] .nav-cta:hover,
[data-theme="dark"] .button.primary:hover {
  background: #138b7d;
  color: #ffffff;
}

.hero {
  min-height: 76svh;
  display: grid;
  align-items: center;
  padding: 116px max(24px, calc((100% - 1160px) / 2)) 70px;
  background:
    linear-gradient(90deg, rgba(8, 18, 31, 0.94) 0%, rgba(8, 18, 31, 0.78) 42%, rgba(8, 18, 31, 0.22) 100%),
    url("./assets/fastsaas-storefront-v1.png") center / cover no-repeat;
  color: #ffffff;
}

.hero-inner {
  max-width: 780px;
}

.eyebrow,
.feature-kicker,
.demo-label,
.price-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: 4.75rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 830px;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.image-band p,
.closing-cta p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-lede {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 159, 143, 0.28);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 760;
}

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.outcome-strip article {
  min-height: 132px;
  padding: 28px;
  background: var(--panel);
}

.outcome-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.outcome-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 88px max(24px, calc((100% - 1160px) / 2));
}

.tinted {
  background:
    linear-gradient(120deg, rgba(15, 159, 143, 0.1), rgba(47, 128, 237, 0.08)),
    var(--tinted);
}

.compact-section {
  padding-top: 72px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: end;
  gap: 34px;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.edition-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article,
.pricing-grid article {
  padding: 24px;
}

.feature-grid article {
  min-height: 238px;
}

.feature-grid p,
.edition-card li,
.demo-card p,
.pricing-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid p {
  margin-top: 14px;
}

.feature-kicker,
.demo-label,
.price-label {
  margin-bottom: 10px;
  color: var(--teal-dark);
}

.edition-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 30px;
  box-shadow: 0 18px 60px rgba(21, 36, 56, 0.09);
}

.edition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--sky);
  pointer-events: none;
}

.pro-card::before {
  border-top-color: var(--coral);
}

.edition-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 42px;
}

.edition-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--sky);
  font-weight: 850;
}

.pro-card .edition-topline span {
  background: rgba(249, 115, 91, 0.12);
  color: #c64c38;
}

[data-theme="dark"] .pro-card .edition-topline span {
  color: var(--coral);
}

.edition-topline strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.edition-card h3 {
  font-size: 1.85rem;
}

ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 19px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 28px;
  box-shadow: 0 16px 50px rgba(21, 36, 56, 0.08);
}

.demo-card h3 {
  font-size: 1.75rem;
}

.demo-card p {
  margin-top: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 28px;
  border-bottom: 2px solid var(--teal);
  color: var(--teal-dark);
  font-weight: 850;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  background: var(--dark-band);
  color: #ffffff;
}

.image-band img {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-band h2 {
  color: #ffffff;
}

.image-band p {
  color: rgba(255, 255, 255, 0.74);
}

.pricing-grid article {
  display: grid;
  gap: 12px;
  min-height: 190px;
}

.pricing-grid strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.25;
}

.closing-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 88px 24px 96px;
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.96), rgba(17, 24, 39, 0.96)),
    var(--dark-band);
  color: #ffffff;
  text-align: center;
}

.closing-cta h2 {
  max-width: 860px;
  color: #ffffff;
}

.closing-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 30px max(24px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
}

.footer-summary span,
.site-footer p,
.site-footer small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer nav a,
.site-footer nav button,
.legal-inline-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink), transparent 70%);
  text-underline-offset: 3px;
}

.legal-main {
  min-height: 76vh;
  padding: 126px 24px 80px;
}

.legal-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.legal-header {
  padding-bottom: 32px;
}

.legal-eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.legal-header h1 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1.08;
}

.legal-header > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.legal-content section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.28rem;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 0.98rem;
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content th {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  margin-top: 0;
}

.legal-content a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-notice,
.cookie-none {
  margin-top: 16px !important;
  border-left: 3px solid var(--teal-dark);
  padding: 10px 0 10px 14px;
  color: var(--ink) !important;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
}

.legal-content th,
.legal-content td {
  min-width: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--tinted);
  color: var(--ink);
}

.legal-inline-button {
  margin-top: 16px;
}

.cookie-banner {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner > div:first-child {
  display: grid;
  gap: 5px;
}

.cookie-banner p,
.cookie-intro,
.cookie-category span,
.cookie-none {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cookie-actions,
.cookie-dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions button,
.cookie-dialog-actions button,
.cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ink);
  color: var(--panel);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 13px;
}

.cookie-dialog {
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 20px;
  box-shadow: var(--shadow);
}

.cookie-dialog::backdrop {
  background: rgba(7, 12, 18, 0.68);
  backdrop-filter: blur(5px);
}

.cookie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-head h2 {
  margin-top: 3px;
  font-size: 1.2rem;
}

.cookie-close {
  width: 40px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.cookie-intro {
  margin: 18px 0;
}

.cookie-category-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.cookie-category[hidden] {
  display: none;
}

.cookie-category > div {
  display: grid;
  gap: 4px;
}

.cookie-category strong {
  font-size: 0.86rem;
}

.cookie-category b {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.cookie-category input {
  width: 20px;
  height: 20px;
}

.cookie-dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 960px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .site-nav {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 24px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
    background:
      linear-gradient(0deg, rgba(8, 18, 31, 0.95) 0%, rgba(8, 18, 31, 0.72) 100%),
      url("./assets/fastsaas-storefront-v1.png") center / cover no-repeat;
  }

  .outcome-strip,
  .feature-grid,
  .pricing-grid,
  .edition-grid,
  .demo-grid,
  .split-heading,
  .image-band {
    grid-template-columns: 1fr;
  }

  .edition-card {
    min-height: auto;
  }

  .image-band {
    gap: 30px;
  }

  .legal-main {
    padding-top: 56px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  nav a {
    padding: 0 10px;
  }

  .theme-toggle {
    width: 40px;
    padding: 0;
  }

  .theme-toggle [data-theme-label] {
    display: none;
  }

  .hero,
  .section,
  .image-band,
  .closing-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 52px;
  }

  .hero-lede,
  .section-heading p,
  .image-band p,
  .closing-cta p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-points span {
    width: 100%;
  }

  .footer-summary,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .legal-main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .legal-header h1 {
    font-size: 2.05rem;
  }

  .cookie-actions,
  .cookie-dialog-actions {
    width: 100%;
  }

  .cookie-actions button,
  .cookie-dialog-actions button {
    flex: 1 1 140px;
  }
}
