:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #1f1f1f;
  color: #f3f2ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 12%, rgba(242, 108, 95, 0.12), transparent 28rem),
    #1f1f1f;
}

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

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand,
.nav-link,
.hero-actions a,
.plan-card > a {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f26c5f;
  color: #1f1f1f;
}

.nav-link,
.hero-actions a,
.plan-card > a {
  border-radius: 8px;
  font-weight: 800;
}

.nav-link {
  padding: 9px 12px;
  color: #f26c5f;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 44px;
  align-items: center;
  padding: 48px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f26c5f;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 600px;
  margin: 22px 0 0;
  color: #c9c5bd;
  font-size: 18px;
  line-height: 1.6;
}

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

.hero-actions a,
.plan-card > a {
  min-height: 46px;
  padding: 0 16px;
}

.primary-action {
  background: #f26c5f;
  color: #1f1f1f;
}

.secondary-action {
  background: #2b2b2b;
  color: #f3f2ee;
}

.product-preview {
  min-height: 430px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #383838;
  border-radius: 8px;
  background: #202020;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-right: 1px solid #333;
  background: #262626;
}

.preview-sidebar span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c98775;
}

.preview-sidebar strong {
  color: #aaa8a1;
  font-size: 13px;
}

.preview-sidebar p {
  margin: 0;
  overflow: hidden;
  color: #dedbd3;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 22px;
  padding: 28px;
}

.preview-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.preview-column > span {
  font-size: 14px;
  font-weight: 800;
}

.preview-column article {
  display: grid;
  gap: 10px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  background: #292929;
}

.preview-column strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.preview-column small {
  width: fit-content;
  align-self: end;
  padding: 2px 7px;
  border-radius: 999px;
  background: #3b3b3b;
  color: #f0c77b;
  font-weight: 800;
}

.preview-column .done strong {
  color: #aaa8a1;
  text-decoration: line-through;
}

.plans-section {
  padding: 64px 0;
}

.plans-section {
  scroll-margin-top: 24px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 640px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: #c9c5bd;
  font-size: 17px;
  line-height: 1.6;
}

.plan-card {
  border: 1px solid #353535;
  border-radius: 8px;
  background: #262626;
}

.plan-label {
  color: #f26c5f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card p,
.plan-card li {
  margin-bottom: 0;
  color: #c9c5bd;
  line-height: 1.55;
}

.pricing-heading {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.tier-picker {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: -4px 0 28px;
}

.tier-selector {
  --tier-index: 0;
  position: relative;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #363636;
  border-radius: 999px;
  background: #2a2a2a;
  overflow: hidden;
}

.tier-picker[data-selected-tier="pro"] .tier-selector {
  --tier-index: 1;
}

.tier-picker[data-selected-tier="enterprise"] .tier-selector {
  --tier-index: 2;
}

.tier-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: #f26c5f;
  transform: translateX(calc(var(--tier-index) * 100%));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tier-option {
  position: relative;
  z-index: 1;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c9c5bd;
  font-weight: 900;
}

.tier-option.active {
  color: #1f1f1f;
}

.tier-message {
  min-height: 22px;
  margin: 0;
  color: #aaa8a1;
  font-size: 14px;
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 620px;
  padding: 28px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.plan-card.featured {
  border-color: rgba(242, 108, 95, 0.65);
  background:
    linear-gradient(180deg, rgba(242, 108, 95, 0.12), rgba(242, 108, 95, 0)),
    #262626;
}

.plan-card.unavailable {
  background: #242424;
}

.plan-card.selected-plan {
  border-color: rgba(242, 108, 95, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.plan-header {
  display: grid;
  gap: 12px;
}

.plan-header h3 {
  font-size: 28px;
  line-height: 1;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #3a3a3a;
}

.price-row span {
  color: #aaa8a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-row strong {
  color: #f3f2ee;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.plan-card > a {
  width: 100%;
  justify-content: center;
  margin-top: 0;
}

.included-block {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.included-block h4 {
  margin: 0;
  color: #f3f2ee;
  font-size: 14px;
}

.included-block ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.included-block li::marker {
  color: #f26c5f;
}

.plan-note {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(242, 108, 95, 0.35);
  border-radius: 8px;
  background: rgba(242, 108, 95, 0.08);
}

.plan-note strong {
  color: #f3f2ee;
  line-height: 1.35;
}

.plan-note.quiet {
  border-color: #3a3a3a;
  background: #202020;
}

.free-banner {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(242, 108, 95, 0.52);
  border-radius: 8px;
  background: #2b211f;
  text-align: center;
}

.free-banner span {
  color: #f26c5f;
  font-size: 22px;
  font-weight: 900;
}

.free-banner p {
  max-width: 760px;
  margin: 0 auto;
  color: #f3f2ee;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-top: 34px;
  }

  .product-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

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

  .plan-card.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    padding: 18px 0;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .product-preview {
    min-height: 360px;
  }

  .preview-board {
    grid-template-columns: 84vw 84vw 84vw;
    overflow-x: auto;
    padding: 18px;
    scroll-snap-type: x mandatory;
  }

  .preview-column {
    scroll-snap-align: start;
  }

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

  .plans-section {
    padding: 48px 0;
  }

  .tier-selector {
    border-radius: 8px;
  }

  .tier-indicator,
  .tier-option {
    border-radius: 6px;
  }
}
