/* ==========================================================================
   Kodiyo — pricing.css
   Sections unique to the Pricing page. The page hero and the closing CTA are
   shared blocks and live in components.css.
   ========================================================================== */

/* The no-haggle line does real work, so it carries more weight than the
   default muted page lead. */
.pricing-lead {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.88);
}

/* --------------------------------------------------------------------------
   1. The block ladder
   Three tiers of equal visual weight. The per-email rate is the proof that
   more commitment buys a better rate, so it is set in full-strength white
   rather than muted — it must read at a glance.
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

.tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2rem);
  border: var(--border-hairline) solid var(--color-line);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
  /* Transform is left alone: GSAP writes an inline transform when the card
     reveals, which would win over anything set here. */
  transition: border-color var(--dur-mid) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

.tier:hover {
  border-color: var(--color-line-strong);
  background-color: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.tier__name {
  font-family: var(--font-sub);
  font-weight: var(--weight-mid);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-fg);
}

.tier__volume {
  margin-top: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.tier__price {
  margin-top: var(--space-lg);
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
}

/* Hairline between the headline price and the rate it works out to. Drawn on
   reveal by js/pricing.js; without JS it is simply already there. */
.tier__rule {
  display: block;
  width: 56px;
  height: 1px;
  margin-block: var(--space-lg);
  background-color: var(--color-line-strong);
  transform-origin: center;
}

.tier__rate {
  font-family: var(--font-sub);
  font-weight: var(--weight-sub);
  font-size: var(--fs-body);
  color: var(--color-fg);
}

.ladder__note {
  margin-top: var(--space-3xl);
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--color-muted);
  /* Wide enough that "per-email rate" does not break across the hyphen. */
  max-width: 58ch;
  margin-inline: auto;
}

.ladder__currency {
  margin-top: var(--space-md);
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--color-faint);
  max-width: 52ch;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   2. Every block includes
   A spec-sheet list: one item per row, hairline-separated.
   -------------------------------------------------------------------------- */
.includes__title {
  text-align: center;
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3xl);
}

.includes__list {
  max-width: 640px;
  margin-inline: auto;
}

.includes__item {
  position: relative;
  padding-block: var(--space-md);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--color-muted);
}

/* Each rule is its own element so it can be drawn without touching layout. */
.includes__rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background-color: var(--color-line);
  transform-origin: left center;
}

.includes__item:last-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--color-line);
}

/* --------------------------------------------------------------------------
   3. Premium add-on
   Deliberately set apart from everything above: a raised panel, a stronger
   border and an accent bar straddling its top edge. Everything above the fold
   is included — this is the one upgrade, and it should never read as part of
   the inclusions list.
   -------------------------------------------------------------------------- */
.addon {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  /* A full step lighter than the page, not a half one — the spec is explicit
     that this must not read as part of the inclusions above. */
  background-color: var(--color-surface-2);
  border: var(--border-hairline) solid var(--color-line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Positioned without a CSS transform on purpose: GSAP seeds its transform
   state from whatever matrix is already on an element, and a translate here
   would leak into the scale it animates. */
.addon__accent {
  position: absolute;
  top: -1px;
  left: calc(50% - 36px);
  width: 72px;
  height: 2px;
  background-color: var(--color-fg);
  transform-origin: center;
}

.addon__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.addon__body {
  margin-top: var(--space-lg);
  margin-inline: auto;
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-muted);
}

.addon__body strong {
  font-family: var(--font-sub);
  font-weight: var(--weight-mid);
  color: var(--color-fg);
}

/* --------------------------------------------------------------------------
   4. Free-sample terms
   A reference block, not a sales beat — it sits after the close and is
   deliberately quieter than everything above it. Every "See free-sample
   terms" link across the site targets #free-sample here.
   -------------------------------------------------------------------------- */
.sample-terms {
  border-top: var(--border-hairline) solid var(--color-line);
  /* No scroll-margin-top here: html already sets scroll-padding-top, and the
     two ADD, which would land the anchor twice as far down the page. */
}

.sample-terms__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.sample-terms__title {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}

.sample-terms__intro {
  margin-top: var(--space-md);
  margin-inline: auto;
  max-width: 58ch;
  color: var(--color-muted);
  line-height: 1.6;
}

.sample-terms__list {
  margin-top: var(--space-xl);
  text-align: left;
}

.sample-terms__item {
  position: relative;
  padding-left: var(--space-lg);
  padding-block: var(--space-xs);
  color: var(--color-muted);
  line-height: 1.65;
}

/* A short rule instead of a bullet — quieter, and in the site's language. */
.sample-terms__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.5em;
  width: 12px;
  height: 1px;
  background-color: var(--color-line-strong);
}

.sample-terms__item strong {
  font-weight: var(--weight-mid);
  color: var(--color-fg);
}

.sample-terms__close {
  margin-top: var(--space-xl);
  color: var(--color-fg);
  font-family: var(--font-sub);
  font-weight: var(--weight-sub);
}
