/* SocmedAI Web — landing page (v4: business). Red on white, medium-weight type, pill actions,
   cards separated by fill. Tokens in site.css; references and rationale in DESIGN.md. */

/* ================================================================== */
/* Sections                                                           */

.band {
  padding: clamp(80px, 10vw, 136px) 0;
  background: var(--paper);
}

.band.soft {
  background: var(--paper-2);
}

/* Heading left, one line of context right (Zaro) */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px 56px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: -0.04em;
}

.section-head .lead {
  margin: 0;
}

.section-head.center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-head.center h2 {
  max-width: 18ch;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* Small red tick used in lists */
.tiers2 li::before,
.plan-list li::before,
.promises li::before {
  content: "";
  position: absolute;
  left: 2px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ================================================================== */
/* 1. Hero: centred statement, product directly below (Mercury)       */

.hero-biz {
  padding: clamp(48px, 6.4vw, 88px) 0 0;
  background: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.from {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 15px/1.4 var(--ui);
  color: var(--ink-2);
  margin-bottom: 22px;
}

.from img {
  width: 20px;
  height: 20px;
}

.from a {
  color: var(--ink);
}

.hero-biz h1 {
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

/* One sentence per line, like a two-line masthead */
.hero-biz h1 > span {
  display: block;
}

.hero-biz .lead {
  margin: 24px auto 32px;
  max-width: 46ch;
  text-wrap: balance;
}

.hero-biz .cta-row {
  justify-content: center;
  gap: 12px;
}

@media (max-width: 520px) {
  .hero-biz {
    padding-top: 36px;
  }
  .from {
    font-size: 13.5px;
    margin-bottom: 18px;
  }
  .hero-biz .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }
}

/* The red pen under "wasn't." draws once on load */
.pen {
  position: relative;
  white-space: nowrap;
}

.pen::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: -0.07em;
  height: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 6, 90 17, 130 10 S 185 8, 197 12' fill='none' stroke='%23E50914' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0);
  animation: pen-draw 0.7s ease-out 0.35s forwards;
}

@keyframes pen-draw {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-price {
  font: 400 15px/1.4 var(--ui);
  color: var(--ink-2);
  margin: 18px 0 0;
}

.hero-price b {
  font-weight: 600;
  color: var(--ink);
}

.hero-price s {
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

/* The stage: the frame sits half on white, half on the soft band below */
.stage {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: clamp(120px, 20vw, 280px);
  background: var(--paper-2);
}

.stage .wrap {
  position: relative;
}

.frame {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  animation: frame-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

@keyframes frame-rise {
  from {
    transform: translateY(32px);
  }
}

.chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  background: #f7f7f5;
  border-bottom: 1px solid var(--rule);
}

.chrome .dots {
  display: flex;
  gap: 6px;
}

.chrome .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdcd8;
}

.chrome .url {
  font: 500 13px/1 var(--ui);
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 28px;
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  margin: 0;
  background: #0b1117;
  user-select: none;
}

.cmp-layer {
  position: absolute;
  inset: 0;
}

.cmp-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.cmp-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--red);
  pointer-events: none;
}

.cmp-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cmp-handle span::before,
.cmp-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border: 6px solid transparent;
}

.cmp-handle span::before {
  left: 8px;
  border-right: 8px solid #fff;
}

.cmp-handle span::after {
  right: 8px;
  border-left: 8px solid #fff;
}

.compare:has(.cmp-range:focus-visible) .cmp-handle span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.cmp-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.cmp-tag {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  font: 600 13px/1 var(--ui);
  padding: 8px 10px;
  border-radius: 8px;
  pointer-events: none;
}

.cmp-tag {
  transition: opacity 0.2s ease;
}

.compare[data-side="before"] .cmp-tag.after,
.compare[data-side="after"] .cmp-tag.before {
  opacity: 0;
}

.cmp-tag.before {
  left: 14px;
  background: #fff;
  color: var(--red-ink);
}

.cmp-tag.after {
  right: 14px;
  background: var(--ink);
  color: #fff;
}

/* Real screenshots, both shown as "cover" in the same 16:10 frame */
.cmp-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.case-pen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The svg scales uniformly (slice), so pathLength="1" dashes draw each mark exactly once */
.case-pen ellipse,
.case-pen path {
  fill: none;
  stroke: var(--red);
  stroke-width: 6;
  stroke-linecap: round;
}

.js-scroll .case-pen ellipse,
.js-scroll .case-pen path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease-out;
}

.js-scroll .frame.is-in .case-pen ellipse,
.js-scroll .frame.is-in .case-pen path {
  stroke-dashoffset: 0;
}

.js-scroll .frame.is-in .case-pen :nth-child(1) { transition-delay: 0.5s; }
.js-scroll .frame.is-in .case-pen :nth-child(2) { transition-delay: 0.9s; }
.js-scroll .frame.is-in .case-pen :nth-child(3) { transition-delay: 1.3s; }
.js-scroll .frame.is-in .case-pen :nth-child(4) { transition-delay: 1.7s; }

.js-scroll .case-pen .pin {
  opacity: 0;
  transition: opacity 0.3s ease 2.1s;
}

.js-scroll .frame.is-in .case-pen .pin {
  opacity: 1;
}

.case-pen .pin circle {
  fill: var(--red);
}

.case-pen .pin text {
  fill: #fff;
  font: 700 22px var(--ui);
  text-anchor: middle;
}

.stage-notes {
  max-width: 1120px;
  margin: 28px auto 0;
}

.case-credit {
  font: 400 15px/1.5 var(--ui);
  color: var(--ink-2);
  margin: 0 0 22px;
}

.case-credit strong {
  font-weight: 600;
  color: var(--ink);
}

.case-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
}

.case-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
  font: 400 15px/1.45 var(--ui);
  color: var(--ink);
}

.case-legend .mark {
  --size: 24px;
  font-size: 12px;
  background: #fff;
}

@media (max-width: 860px) {
  .case-legend {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .frame {
    border-radius: 12px;
  }
  .chrome {
    height: 32px;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .chrome .dots {
    display: none;
  }
  .chrome .url {
    font-size: 11.5px;
    padding: 4px 18px;
  }
  .cmp-tag {
    bottom: 8px;
    font-size: 11px;
    padding: 5px 7px;
  }
  .cmp-tag.before {
    left: 8px;
  }
  .cmp-tag.after {
    right: 8px;
  }
  .cmp-handle span {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }
  .cmp-handle span::before,
  .cmp-handle span::after {
    border-width: 5px;
    margin-top: -5px;
  }
  .cmp-handle span::before {
    left: 5px;
    border-right-width: 7px;
  }
  .cmp-handle span::after {
    right: 5px;
    border-left-width: 7px;
  }
}

@media (max-width: 520px) {
  .case-legend {
    grid-template-columns: 1fr;
  }
}

/* ================================================================== */
/* Logos: a ruled grid of monochrome marks (Ramp, Kastle, Deel)        */

.brands {
  padding: clamp(56px, 7vw, 88px) 0 0;
  background: var(--paper);
}

/* The 1px gaps show the rule colour as the grid lines */
.brands-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}

.brands-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 20px 16px;
  background: var(--paper);
}

/* Every mark in one ink, at matched optical size */
.brands-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  filter: brightness(0);
  opacity: 0.62;
}

.brands-grid .logo-wordpress { height: 33px; }
.brands-grid .logo-hostinger { height: 26px; }
.brands-grid .logo-paypal { height: 33px; }
.brands-grid .logo-adobe { height: 29px; }
.brands-grid .logo-amazon { height: 35px; margin-top: 8px; }
.brands-grid .logo-google-books { height: 27px; }
.brands-grid .logo-bn { height: 16px; }

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 27px/1 -apple-system, "SF Pro Display", var(--ui);
  letter-spacing: -0.02em;
  color: #000;
  opacity: 0.62;
}

.logo-lockup svg {
  width: 26px;
  height: 26px;
  margin-top: -5px;
  fill: currentColor;
}

@media (max-width: 760px) {
  .brands-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brands-grid li {
    min-height: 84px;
  }
  .brands-grid .logo-wordpress { height: 27px; }
  .brands-grid .logo-hostinger { height: 21px; }
  .brands-grid .logo-paypal { height: 27px; }
  .brands-grid .logo-adobe { height: 24px; }
  .brands-grid .logo-amazon { height: 28px; margin-top: 6px; }
  .brands-grid .logo-google-books { height: 22px; }
  .brands-grid .logo-bn { height: 12px; }
  .logo-lockup { font-size: 22px; }
  .logo-lockup svg { width: 21px; height: 21px; margin-top: -4px; }
}

/* ================================================================== */
/* Our work: a snap-scrolling rail of author sites (Webflow, Framer,   */
/* OFF+BRAND). The rail bleeds off the right edge so the next card     */
/* peeks in; hovering a card scrolls through the whole site.           */

.work {
  --rail-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: clamp(64px, 8vw, 112px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.work-head h2 {
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.work-head .lead {
  margin: 0;
  max-width: 50ch;
}

.rail-nav {
  display: flex;
  gap: 10px;
  flex: none;
}

.rail-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1 var(--ui);
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.rail-btn:hover:not([disabled]) {
  border-color: var(--ink);
}

.rail-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
  padding: 6px 0 28px;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.rail-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--rail-pad);
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
}

.site-card {
  position: relative; /* keeps the hidden "opens in a new tab" text inside the rail's clip */
  flex: none;
  width: clamp(280px, 36vw, 480px);
  scroll-snap-align: start;
}

.site-link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.site-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.site-link:hover .site-shot,
.site-link:focus-visible .site-shot {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(18, 18, 18, 0.05), 0 24px 48px -18px rgba(18, 18, 18, 0.28), 0 0 0 1px rgba(18, 18, 18, 0.08);
}

.site-link:focus-visible .site-shot {
  outline: 2px solid var(--red-ink);
  outline-offset: 4px;
}

.site-shot img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: block;
  pointer-events: none;
}

.site-shot .poster {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* The full page sits on top of the poster (its first screen is the same picture), then glides from
   top to bottom while the card is hovered: top:100% + translateY(-100%) lines its bottom up with
   the frame's bottom. It glides back faster when the pointer leaves. */
.site-shot .full {
  height: auto;
  opacity: 0;
  transition: top 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s ease;
}

.site-card.is-ready .full {
  opacity: 1;
}

.site-card.is-scrolling .full {
  top: 100%;
  transform: translateY(-100%);
  transition: top var(--d, 6s) cubic-bezier(0.45, 0, 0.55, 1), transform var(--d, 6s) cubic-bezier(0.45, 0, 0.55, 1), opacity 0.2s ease;
}

.site-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 13px/1 var(--ui);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-link:hover .site-open,
.site-link:focus-visible .site-open {
  opacity: 1;
  transform: none;
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  padding: 18px 2px 0;
}

.site-meta h3 {
  margin: 0;
  font: 500 19px/1.3 var(--ui);
  letter-spacing: -0.015em;
}

.site-meta p {
  flex-basis: 100%;
  margin: 0;
  font: 400 15px/1.45 var(--ui);
  color: var(--ink-2);
}

.site-live {
  font: 600 12px/1 var(--ui);
  color: var(--ok);
  background: #e9f6ee;
  padding: 5px 8px;
  border-radius: 999px;
}

.rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
}

/* Thumb shows how much of the rail is in view and where */
.rail-progress {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.rail-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--x, 0) * 100%);
  width: calc(var(--w, 0.3) * 100%);
  background: var(--red);
  border-radius: 2px;
}

/* Instructions follow the device: hover on a mouse, tap on a touch screen */
.on-touch {
  display: none;
}

@media (hover: none) {
  .on-hover {
    display: none;
  }
  .on-touch {
    display: inline;
  }
}

.rail-note {
  margin: 0;
  font: 400 14px/1.5 var(--ui);
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .work-head {
    display: block;
  }
  .rail-nav {
    display: none;
  }
  .site-card {
    width: 82vw;
  }
  .site-shot {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shot,
  .site-open {
    transition: none;
  }
  .site-shot .full {
    display: none;
  }
}

/* ================================================================== */
/* 2. How it works: large day numerals (Trawelt, Squarespace); the    */
/*    rule above them fills red as you scroll                          */

.steps {
  position: relative;
}

.steps-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rule);
}

.steps-line span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.steps li {
  position: relative;
  padding-top: 32px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.steps li.is-on {
  opacity: 1;
}

.steps .day {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 22px;
}

.steps .day-label {
  font: 500 15px/1 var(--ui);
  color: var(--ink-2);
}

.steps .day-num {
  font: 400 clamp(56px, 6vw, 80px) / 0.9 var(--display);
  letter-spacing: -0.05em;
  color: var(--ink);
}

/* The approval gate is the promise: its numeral turns red */
.steps .gate.is-on .day-num {
  color: var(--red-ink);
  transition: color 0.4s ease;
}

.steps h3 {
  font: 600 19px/1.3 var(--ui);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.steps li p:last-child {
  font: 400 15px/1.55 var(--ui);
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 860px) {
  .steps-line {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps-line span {
    transform-origin: center top;
    transform: scaleY(var(--fill, 0));
  }
  .steps ol {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps li {
    padding: 0 0 0 28px;
  }
  .steps .day {
    margin-bottom: 14px;
  }
}

/* ================================================================== */
/* 3. Trailer: the one dark band; video in a rounded frame (Vizcom)   */

.trailer {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--night);
  color: var(--on-night);
}

.trailer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.trailer-copy h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-bottom: 20px;
}

.trailer-copy p {
  max-width: 54ch;
  color: #d6d6d2;
  margin-bottom: 28px;
}

.trailer-frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.trailer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pause control sits on the video (Squarespace) */
.trailer-toggle {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 500 14px/1 var(--ui);
  cursor: pointer;
}

.trailer-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
  .trailer-frame {
    border-radius: 12px;
  }
  .trailer-toggle {
    right: 8px;
    bottom: 8px;
    min-height: 36px;
    font-size: 13px;
  }
}

/* ================================================================== */
/* 4. Pricing                                                         */

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

.tiers2 .tier {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
}

.tiers2 .tier.featured {
  border: 2px solid var(--red);
  padding: 27px 25px;
  box-shadow: 0 24px 50px -28px rgba(229, 9, 20, 0.45);
}

.tiers2 .fit {
  font: 500 14px/1.4 var(--ui);
  color: var(--ink-2);
  margin-bottom: 6px;
  min-height: 2.8em;
}

.tiers2 h3 {
  font: 600 20px/1.2 var(--ui);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.tiers2 .price {
  font: 500 46px/1 var(--display);
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}

.tiers2 .price-sub {
  font: 400 14px/1.5 var(--ui);
  color: var(--ink-2);
  margin-bottom: 16px;
}

.tiers2 .summary {
  font: 400 15px/1.5 var(--ui);
  color: var(--ink-2);
  margin-bottom: 14px;
}

.tiers2 ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.tiers2 li {
  position: relative;
  font: 400 14.5px/1.45 var(--ui);
  color: var(--ink);
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--rule);
}

.tiers2 li::before {
  top: 14px;
}

.tiers2 .btn {
  width: 100%;
}

/* Book spines: how many books each package is built for */
.shelf {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
  margin-bottom: 16px;
  perspective: 300px;
}

.shelf i {
  width: 10px;
  border-radius: 1px;
  background: #d8d8d4;
  transform: rotateY(-18deg);
}

.shelf i:nth-child(odd) {
  background: #c7c7c2;
}

.shelf i:nth-child(1) {
  height: 46px;
  background: var(--red);
}

.shelf i:nth-child(2) {
  height: 38px;
}

.shelf i:nth-child(3) {
  height: 42px;
}

.shelf i:nth-child(4) {
  height: 35px;
}

.shelf i:nth-child(5) {
  height: 44px;
}

.shelf i:nth-child(6) {
  height: 37px;
}

.shelf i:nth-child(7) {
  height: 41px;
}

.shelf i:nth-child(8) {
  height: 33px;
}

.pay-note {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font: 400 15px/1.5 var(--ui);
  color: var(--ink-2);
}

.pay-note strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 860px) {
  .tiers2 {
    grid-template-columns: 1fr;
  }
  .tiers2 .fit {
    min-height: 0;
  }
}

/* ================================================================== */
/* One package: price and checklist side by side, the two actions on  */
/* their own row underneath (Superpower)                              */

.plan-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.plan-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px);
  padding-bottom: clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid var(--rule);
}

.plan-kicker {
  font: 500 14px/1.4 var(--ui);
  color: var(--ink-2);
  margin-bottom: 6px;
}

.plan-card h3 {
  font: 500 clamp(26px, 2.6vw, 32px) / 1.15 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
}

.plan-price .was s {
  font: 400 26px/1 var(--ui);
  color: var(--ink-3);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.plan-price .now {
  font: 500 clamp(60px, 7.4vw, 88px) / 0.95 var(--display);
  letter-spacing: -0.05em;
  color: var(--ink);
}

.plan-sale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font: 400 15px/1.4 var(--ui);
  color: var(--ink-2);
  margin-bottom: 18px;
}

.sale-chip {
  font: 600 12px/1 var(--ui);
  color: var(--red-ink);
  background: var(--red-tint);
  padding: 6px 10px;
  border-radius: 999px;
}

.plan-summary {
  font: 400 16px/1.55 var(--ui);
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
}

.plan-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font: 400 15.5px/1.45 var(--ui);
  color: var(--ink);
}

.plan-list li::before {
  top: 14px;
}

.plan-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding-top: clamp(24px, 3vw, 32px);
}

.plan-actions .btn {
  width: 100%;
  min-height: 54px;
  font-size: 16.5px;
}

.plan-fine {
  font: 400 13.5px/1.5 var(--ui);
  color: var(--ink-3);
  margin: 14px 0 0;
  text-align: center;
}

@media (max-width: 820px) {
  .plan-top,
  .plan-actions {
    grid-template-columns: 1fr;
  }
  .plan-cta {
    order: -1;
  }
}

/* Promises: four short lines in a ruled row (Ramp's stat row, with words instead of numbers).
   The 1px gap shows the container's rule colour as the dividers. */
.promises {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-strong);
}

.promises li {
  position: relative;
  padding: 6px 20px 6px 46px;
  background: var(--paper-2);
  font: 500 14.5px/1.45 var(--ui);
  color: var(--ink);
}

.promises li::before {
  left: 22px;
  top: 0.85em;
}

.promises li:first-child {
  padding-left: 26px;
}

.promises li:first-child::before {
  left: 2px;
}

@media (max-width: 860px) {
  .promises {
    grid-template-columns: 1fr 1fr;
  }
  .promises li,
  .promises li:first-child {
    padding: 14px 16px 14px 30px;
  }
  .promises li::before,
  .promises li:first-child::before {
    left: 6px;
    top: 1.35em;
  }
}

/* ================================================================== */
/* 5. FAQ: big heading left, ruled list right (Current, Mercury)      */

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 100px;
}

.faq-side h2 {
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font: 500 18px/1.4 var(--ui);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Chevron */
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq summary:hover {
  color: var(--ink-2);
}

.faq .answer {
  padding: 0 48px 24px 0;
  max-width: 68ch;
  font-size: 16px;
  color: var(--ink-2);
}

.faq .answer p:last-child {
  margin: 0;
}

@media (max-width: 900px) {
  .faq-split {
    grid-template-columns: 1fr;
  }
  .faq-side {
    position: static;
  }
  .faq .answer {
    padding-right: 0;
  }
}

/* ================================================================== */
/* 6. Red band                                                        */

.redband {
  background: var(--red);
  color: #fff;
  padding: clamp(80px, 10vw, 136px) 0;
}

.redband-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.redband h2 {
  font-size: clamp(44px, 6.4vw, 88px);
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.redband .lead {
  color: #fff;
  margin-bottom: 32px;
}

.redband :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.redband .field label {
  color: #fff;
}

.redband .field .opt {
  font-weight: 400;
  opacity: 0.85;
}

.redband .field .hint {
  color: #ffe3e4;
}

.redband .field input {
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
}

.redband .field input:focus {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
}

.redband .field.invalid input {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.redband .field .error,
.redband .form-status.err {
  color: #fff;
  font-weight: 600;
}

.redband .field .error::before,
.redband .form-status.err::before {
  content: "! ";
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #000;
}

.redband a {
  color: #fff;
}

.next3 {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.next3 li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.next3 .num {
  font: 400 44px/1 var(--display);
  letter-spacing: -0.04em;
}

.next3 h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.next3 p {
  margin: 0;
  font: 400 15px/1.5 var(--ui);
  color: #fff;
}

.success-panel h3 {
  font: 500 clamp(30px, 3.6vw, 44px) / 1.05 var(--display);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .redband-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================== */
/* Scroll effects (home.js adds .js-scroll to <html>; without JS everything is simply visible) */

.js-scroll [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-scroll [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* The trailer drifts slower than the page, inside its frame */
.js-scroll [data-scroll="parallax"] {
  transform: translateY(var(--py, 0)) scale(1.12);
  will-change: transform;
}

/* The red pen strikes the old price when the card arrives */
.plan-price .was {
  position: relative;
}

.js-scroll .plan-price .was s {
  text-decoration: none;
}

.js-scroll .plan-price .was::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(-8deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s;
}

.js-scroll .plan-card.is-in .plan-price .was::after {
  transform: rotate(-8deg) scaleX(1);
}

.site-header {
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(18, 18, 18, 0.35);
}

/* ================================================================== */
/* Motion preferences                                                 */

@media (prefers-reduced-motion: reduce) {
  .frame {
    animation: none;
  }
  .js-scroll .case-pen ellipse,
  .js-scroll .case-pen path {
    stroke-dashoffset: 0;
    transition: none;
  }
  .js-scroll .case-pen .pin {
    opacity: 1;
    transition: none;
  }
  .js-scroll [data-reveal],
  .js-scroll [data-scroll] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pen::after {
    animation: none;
    clip-path: none;
  }
  .steps li,
  .steps .day-num {
    transition: none !important;
  }
}
