:root {
  --ink: #101714;
  --ink-soft: #26312d;
  --paper: #f6f2e8;
  --paper-strong: #fffaf0;
  --mint: #5dd3c1;
  --teal: #178b82;
  --coral: #ff6f61;
  --amber: #f8c75b;
  --violet: #6a5aa6;
  --line: rgba(16, 23, 20, 0.14);
  --shadow: 0 24px 70px rgba(16, 23, 20, 0.22);
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.24);
  background: rgba(16, 23, 20, 0.86);
  color: var(--paper-strong);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 850;
  font-size: 1.08rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--mint);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.95rem;
  color: rgba(255, 250, 240, 0.78);
}

.main-nav a:hover,
.nav-cta:hover {
  color: var(--paper-strong);
}

.nav-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.88);
}

.hero {
  position: relative;
  min-height: calc(88svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(16, 23, 20, 0.92) 0%, rgba(16, 23, 20, 0.78) 42%, rgba(16, 23, 20, 0.35) 100%),
    url("assets/tapes-hero.jpg") center / cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 23, 20, 0.1), rgba(16, 23, 20, 0.36)),
    repeating-linear-gradient(0deg, rgba(255, 250, 240, 0.02), rgba(255, 250, 240, 0.02) 1px, transparent 1px, transparent 5px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.7fr);
  gap: 54px;
  align-items: center;
  padding: 36px 0 44px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--coral);
}

.hero h1 {
  margin-top: 14px;
  font-size: 4.1rem;
  line-height: 0.98;
  font-weight: 900;
  max-width: 820px;
}

.hero-text {
  max-width: 650px;
  margin-top: 18px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 250, 240, 0.84);
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--coral);
  color: #1f100e;
  box-shadow: 0 18px 42px rgba(255, 111, 97, 0.3);
}

.button-secondary {
  background: rgba(255, 250, 240, 0.12);
  color: var(--paper-strong);
  border: 1px solid rgba(255, 250, 240, 0.26);
}

.button-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 24px;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.hero-metrics dt {
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--amber);
}

.hero-metrics dd {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255, 250, 240, 0.74);
}

.library-preview {
  justify-self: end;
  width: min(390px, 100%);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(16, 23, 20, 0.76);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 10px) 1fr;
  align-items: center;
  gap: 7px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.15);
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.86rem;
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.preview-toolbar span:nth-child(2) {
  background: var(--amber);
}

.preview-toolbar span:nth-child(3) {
  background: var(--mint);
}

.preview-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 2px;
  background: rgba(93, 211, 193, 0.82);
  box-shadow: 0 0 18px rgba(93, 211, 193, 0.92);
  animation: scan 4s ease-in-out infinite;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.88);
  transform: translate(-50%, -50%);
}

.play-button::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--ink);
}

@keyframes scan {
  0%, 100% {
    top: 18%;
  }
  50% {
    top: 82%;
  }
}

.preview-copy,
.chapter-list {
  padding: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(93, 211, 193, 0.16);
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 850;
}

.preview-copy p {
  margin-top: 10px;
  line-height: 1.55;
  color: rgba(255, 250, 240, 0.88);
}

.chapter-list {
  display: grid;
  gap: 9px;
  padding-top: 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.86rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--ink);
  color: var(--paper-strong);
}

.trust-strip span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px;
  background: var(--teal);
  font-weight: 850;
  text-align: center;
}

.trust-strip span:nth-child(2n) {
  background: var(--violet);
}

.trust-strip span:nth-child(3n) {
  background: var(--coral);
  color: #1f100e;
}

.section {
  padding: 92px 24px;
}

.section-tight {
  padding-top: 78px;
}

.section-heading {
  width: min(800px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.quote-panel h2 {
  margin-top: 12px;
  font-size: 3.05rem;
  line-height: 1.02;
  font-weight: 900;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.quote-panel p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(16, 23, 20, 0.72);
}

.restore-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.restore-grid article,
.price-card,
.calculator,
.process-list li,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.restore-grid article {
  padding: 24px;
  min-height: 214px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-weight: 900;
}

.restore-grid h3,
.process-list h3,
.calc-control label,
.calculator h3 {
  margin-top: 18px;
  font-size: 1.18rem;
}

.restore-grid p,
.process-list p,
.price-card li,
.calculator p,
.split-copy li {
  margin-top: 10px;
  line-height: 1.65;
  color: rgba(16, 23, 20, 0.68);
}

.split-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 52px;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(16, 23, 20, 0.2);
}

.film-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 18px 35px rgba(16, 23, 20, 0.22);
}

.film-strip span {
  min-height: 64px;
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 250, 240, 0.1), rgba(255, 250, 240, 0.1)),
    url("assets/tapes-hero.jpg") center / cover;
}

.film-strip span:nth-child(2) {
  background-position: 20% 50%;
}

.film-strip span:nth-child(3) {
  background-position: 70% 40%;
}

.film-strip span:nth-child(4) {
  background-position: 80% 70%;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.process-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.process-section .section-heading p:not(.eyebrow),
.process-list p {
  color: rgba(255, 250, 240, 0.7);
}

.process-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 250px;
  padding: 26px;
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.16);
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--amber);
  font-weight: 900;
}

.pricing-section {
  background: #fffaf0;
}

.pricing-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper-strong);
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(16, 23, 20, 0.26);
}

.plan-badge {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.plan-name {
  font-weight: 900;
  color: var(--teal);
}

.featured .plan-name {
  color: var(--mint);
}

.price-card h3 {
  font-size: 3.2rem;
  line-height: 1;
}

.plan-unit {
  color: rgba(16, 23, 20, 0.68);
  font-weight: 750;
}

.featured .plan-unit,
.featured li {
  color: rgba(255, 250, 240, 0.76);
}

.price-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
  margin-top: 0;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.featured .button-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: none;
}

.calculator {
  width: min(1160px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--paper);
}

.calculator h3 {
  margin-top: 12px;
}

.calc-control {
  display: grid;
  gap: 14px;
}

.calc-control label {
  margin-top: 0;
  font-weight: 900;
}

.calc-control input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calc-row output {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 54px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--amber);
  font-size: 1.35rem;
  font-weight: 900;
}

#planOutput {
  font-weight: 900;
  color: var(--teal);
  text-align: right;
}

.comparison-section {
  background: #eff7f3;
}

.comparison-table {
  width: min(1060px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-strong);
}

.table-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row span {
  padding: 18px;
  line-height: 1.45;
  border-left: 1px solid var(--line);
}

.table-row span:first-child {
  border-left: 0;
  font-weight: 850;
}

.table-head {
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 900;
}

.quote-section {
  background:
    linear-gradient(90deg, rgba(16, 23, 20, 0.92), rgba(16, 23, 20, 0.82)),
    url("assets/film-reels-wide.jpg") center / cover;
  color: var(--paper-strong);
}

.quote-panel {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 36px;
  padding: 34px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
  color: var(--ink-soft);
}

.quote-form input,
.quote-form select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16, 23, 20, 0.24);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--paper-strong);
  color: var(--ink);
}

.quote-form .button {
  grid-column: 1 / -1;
  width: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 28px;
  padding: 34px 32px;
  background: var(--ink);
  color: var(--paper-strong);
}

.site-footer p {
  max-width: 600px;
  margin-top: 12px;
  line-height: 1.6;
  color: rgba(255, 250, 240, 0.68);
}

.credits {
  justify-self: end;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-inner,
  .split-section,
  .calculator,
  .quote-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .library-preview {
    justify-self: start;
  }

  .trust-strip,
  .restore-grid,
  .pricing-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.featured {
    transform: none;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-row span:first-child {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 12px 18px;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .hero-inner {
    width: min(100% - 34px, 1160px);
    gap: 28px;
    padding: 34px 0 42px;
  }

  .hero h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  .hero-text,
  .section-heading p:not(.eyebrow),
  .split-copy p,
  .quote-panel p {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics,
  .trust-strip,
  .restore-grid,
  .pricing-grid,
  .process-list,
  .quote-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 18px;
  }

  .section-heading h2,
  .split-copy h2,
  .quote-panel h2 {
    font-size: 2.25rem;
  }

  .split-section {
    width: min(100% - 36px, 1160px);
    padding-left: 0;
    padding-right: 0;
  }

  .film-strip {
    position: static;
    margin-top: 10px;
  }

  .calculator,
  .quote-panel {
    padding: 22px;
  }

  .calc-row {
    align-items: stretch;
    flex-direction: column;
  }

  #planOutput {
    text-align: left;
  }
}
