/*
 * Services and prices (views/pages/redesign/services.ejs) and the parts the
 * Console waitlist page shares with it (views/pages/redesign/console.ejs loads
 * this file, then pages/console.css).
 * Values from Paper page "Site · Services + Console": "Services and prices
 * (desktop)" (1440) and "(mobile 390)". Desktop rules first; the mobile board
 * in the @media block at the end. Plan cards: components/plans.css; final ask: components/ask.css.
 */

/* ══ Shared with /en/console ══════════════════════════════════════════ */

/* ── Dark page hero with the thick ribbons ───────────────────────────── */
/* The ribbons are the final ask's: the live graphics/thick-ribbons.js canvas
   (data-graphic on the element), with this background as its poster (no JS,
   reduced motion, before the first frame). Same opacity as .ask__ribbons. */
.pg-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}
.pg-hero__ribbons {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(1440px, 100%);
  height: 820px;
  transform: translateX(-50%);
  opacity: 0.5;
  background: url(/images/redesign/home/thick-ribbons-1600.webp) 50% / cover no-repeat;
  pointer-events: none;
}
/* Paper: 28px top padding + 58px nav + 120px gap before the copy. */
.pg-hero__inner { position: relative; padding-top: 206px; padding-bottom: 120px; }

/* ── Section head: big title left, short aside right ─────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.sec-head__title { width: min(900px, 100%); letter-spacing: -0.03em; }
.sec-head__title--820 { width: min(820px, 100%); }
.sec-head__aside { width: 380px; flex-shrink: 0; color: var(--text-2); font-size: 19px; line-height: 29px; }
.sec-head__aside--400 { width: 400px; }

/* ── Tile + rows split ───────────────────────────────────────────────── */
.split { display: flex; gap: 56px; }
.watch-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  width: 520px;
  height: 560px;
  flex-shrink: 0;
  padding: 32px;
  border-radius: var(--radius-tile);
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}
.watch-tile__art { position: absolute; top: 30px; left: 0; width: 100%; height: 322px; object-fit: cover; }
.watch-tile__title { position: relative; font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 38px; }
.watch-tile__text { position: relative; color: var(--text-on-ink); font-size: 16px; line-height: 24px; }

/* ── Term / definition rows ──────────────────────────────────────────── */
.rows { flex: 1 1 0; min-width: 0; }
.rows__item { display: flex; gap: 32px; padding-block: 22px; border-top: 1px solid var(--line); }
.rows__item:last-of-type { border-bottom: 1px solid var(--line); }
.rows__term { width: 220px; flex-shrink: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 28px; }
.rows__term--green { color: var(--deep-green); }
.rows__def { flex: 1 1 0; color: var(--text-2); font-size: 16px; line-height: 25px; }
.rows--never .rows__item { gap: 28px; padding-block: 24px; border-color: var(--line-input); }
.rows--never .rows__term { width: 280px; }

/* ── Side layout: title column + body (never-do list, FAQ) ───────────── */
.side { display: flex; gap: 80px; }
.side__head { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.side__title { font-family: var(--font-display); font-size: 60px; font-weight: 800; letter-spacing: -0.03em; line-height: 60px; }
.side__intro { color: var(--text-2); font-size: 18px; line-height: 28px; }
.side__body { flex: 1 1 0; min-width: 0; }

/* Small uppercase pill (Recommended) */
.svc-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--emerald);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.svc-badge--sm { padding: 3px 9px; font-size: 11px; line-height: 14px; }

/* ══ Services only ════════════════════════════════════════════════════ */

/* ── 1 · Hero ────────────────────────────────────────────────────────── */
.svc-hero__title { width: min(940px, 100%); letter-spacing: -0.04em; }
.svc-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; margin-top: 36px; }
.svc-hero__sub { width: 640px; flex-shrink: 1; color: var(--text-on-ink); font-size: 21px; line-height: 32px; }
.svc-hero__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.svc-hero__cta .btn { padding-inline: 28px; }
.svc-hero__note { color: var(--muted-on-ink); font-size: 14px; line-height: 18px; }

/* ── 3 · Prices ──────────────────────────────────────────────────────── */
.svc-prices__head { display: flex; flex-direction: column; gap: 16px; }
.svc-prices__lead { color: var(--text-2); font-size: 20px; line-height: 30px; }
.svc-tier--rec { position: relative; }
.svc-tier__badge { position: absolute; top: 36px; right: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .js .svc-tier--rec[data-reveal].is-in { transform: translateY(-4px); }
}
.svc-prices__foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; }
.svc-prices__small { color: var(--muted); font-size: 15px; line-height: 22px; }
.svc-prices__funder {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: underline 1px;
  text-underline-position: from-font;
}

/* Comparison table */
.svc-compare {
  margin-top: 80px;
  padding: 16px 36px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-tile);
  background: var(--white);
}
.svc-compare__table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.svc-compare__label-col { width: 404px; }
.svc-compare__table thead th, .svc-compare__table thead td {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
  font-weight: 400;
}
.svc-compare__title { font-family: var(--font-display); font-size: 28px; font-weight: 800 !important; line-height: 34px; }
.svc-compare__plan { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 26px; }
.svc-compare__plan--rec { color: var(--deep-green); }
.svc-compare__price { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 20px; }
.svc-compare__table tbody th, .svc-compare__table tbody td { padding-block: 16px; border-bottom: 1px solid var(--line-soft); font-size: 16px; line-height: 22px; }
.svc-compare__table tbody tr:last-child th, .svc-compare__table tbody tr:last-child td { border-bottom: 0; }
.svc-compare__table tbody th { font-weight: 600; }
.svc-compare__table tbody td { color: var(--text-2); }
.svc-compare__table td.svc-compare__none, .svc-compare-m span.svc-compare__none { color: var(--placeholder); }
.svc-compare__tick { display: inline-block; vertical-align: middle; }
.svc-compare__tick circle { fill: var(--emerald); }
.svc-compare__tick path { stroke: var(--ink); }

/* ── 4 · Free check and Trial ────────────────────────────────────────── */
.svc-steps { display: flex; gap: 16px; }
.svc-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-tile);
  background: var(--white);
}
.svc-step__top { display: flex; align-items: center; justify-content: space-between; }
.svc-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 22px;
}
.svc-step__chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--deep-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}
.svc-step__title { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 34px; }
.svc-step__text { color: var(--text-2); font-size: 16px; line-height: 25px; }
.svc-step__cta { display: flex; align-items: flex-end; flex-grow: 1; }
.svc-step__btn { padding: 14px 22px; font-size: 15px; line-height: 20px; }
.svc-step__bullets { display: flex; flex-direction: column; gap: 10px; }
.svc-step__bullets li { position: relative; padding-left: 16px; font-size: 16px; line-height: 23px; }
.svc-step__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}
.svc-step__note { color: var(--mint-on-green); font-size: 15px; line-height: 23px; }
.svc-step__note--muted { color: var(--muted); }
.svc-step__months { border-top: 1px solid var(--line-soft); }
.svc-step__months > div { display: flex; gap: 12px; padding-block: 12px; font-size: 15px; line-height: 22px; }
.svc-step__months > div + div { border-top: 1px solid var(--line-soft); }
.svc-step__months dt { width: 96px; flex-shrink: 0; font-weight: 700; }
.svc-step__months dd { color: var(--text-2); }
.svc-step--green { border-color: var(--deep-green); background: var(--deep-green); color: var(--paper); }
.svc-step--green .svc-step__num { background: var(--paper); color: var(--deep-green); }
.svc-step--green .svc-step__chip { background: rgb(246 248 244 / 0.12); color: var(--mint-on-green); }
.svc-step--green .svc-step__text { color: var(--mint-on-green); }

/* ══ Tablet: let the wide rows breathe before they crush ═════════════ */
@media (min-width: 768px) and (max-width: 1199px) {
  .sec-head, .split, .side, .svc-hero__row { flex-direction: column; align-items: stretch; gap: 32px; }
  .sec-head__aside, .side__head { width: auto; max-width: 560px; }
  .svc-hero__sub { width: auto; }
  .svc-hero__cta { align-items: flex-start; }
  .watch-tile { width: 100%; max-width: 640px; }
  .svc-steps { flex-wrap: wrap; }
  .svc-step { flex-basis: 280px; }
  .svc-compare { padding-inline: 24px; }
  .svc-compare__label-col { width: 30%; }
  .svc-prices__foot { flex-direction: column; }
}

/* ══ Mobile board (390) ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .pg-hero__ribbons { left: -300px; width: 1000px; height: 600px; transform: none; opacity: 0.3; }
  /* Paper: 16px top padding + 50px nav + 72px gap. */
  .pg-hero__inner { padding-top: 138px; padding-bottom: 64px; }

  .sec-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 28px; }
  .sec-head__title, .svc-prices__head .h1 { font-size: 40px; line-height: 40px; }
  .sec-head__aside { width: auto; font-size: 16px; line-height: 25px; }

  .split { flex-direction: column; gap: 28px; }
  .watch-tile { width: auto; height: 340px; gap: 8px; padding: 22px; border-radius: var(--radius-card); }
  .watch-tile__art { top: 10px; height: 222px; }
  .watch-tile__title { font-size: 26px; line-height: 30px; }
  .watch-tile__text { font-size: 15px; line-height: 22px; }

  .rows__item { flex-direction: column; gap: 6px; padding-block: 18px; }
  .rows__term { width: auto; font-size: 20px; line-height: 26px; }
  .rows__def { font-size: 15px; line-height: 23px; }
  .rows--never .rows__item { gap: 6px; padding-block: 16px; }
  .rows--never .rows__term { width: auto; font-size: 19px; line-height: 24px; }

  .side { flex-direction: column; gap: 20px; }
  .side__head { width: auto; gap: 12px; }
  .side__title { font-size: 40px; line-height: 40px; }
  .side__intro { font-size: 16px; line-height: 25px; }
  .side .faq__q { font-size: 18px; line-height: 24px; padding-block: 18px; }
  .side .faq__a { font-size: 15px; line-height: 23px; }

  /* Hero */
  .svc-hero__title { font-size: 52px; line-height: 50px; }
  .svc-hero__row { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 22px; }
  .svc-hero__sub { width: auto; font-size: 17px; line-height: 26px; }
  .svc-hero__cta { align-items: stretch; gap: 22px; }
  .svc-hero__cta .btn { padding: 17px; }
  .svc-hero__note { font-size: 13px; line-height: 18px; text-align: center; }

  /* Prices */
  .svc-prices__head { gap: 12px; padding-bottom: 10px; }
  .svc-prices__lead { font-size: 16px; line-height: 25px; }
  /* Plan cards: the shared .tier-m (components/plans.css), with this board's sizes */
  .svc-prices .tier-m { gap: 16px; border: 1px solid var(--card-line); }
  .svc-prices .tier-m--growth { border-color: var(--deep-green); }
  .svc-prices .tier-m__row { gap: 12px; }
  .svc-prices .tier-m__row .svc-badge { padding: 5px 11px; font-size: 11px; line-height: 14px; }
  .svc-prices .tier-m__price { font-size: 15px; }
  .svc-prices .tier-m__price .num { font-size: 60px; line-height: 60px; }
  .svc-prices .tier-m__price-sm { display: flex; align-items: baseline; gap: 4px; line-height: 16px; }
  .svc-prices .tier-m__price-sm .num { font-size: 34px; line-height: 36px; letter-spacing: -0.03em; }
  .svc-prices .tier-m--growth .tier-m__list { color: var(--paper); }
  .svc-prices .tier-m__cta { padding: 15px; font-size: inherit; line-height: inherit; }
  .svc-prices__foot { flex-direction: column; }
}

/* ══ Mobile board (390) ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .pg-hero__ribbons { left: -300px; width: 1000px; height: 600px; transform: none; opacity: 0.3; }
  /* Paper: 16px top padding + 50px nav + 72px gap. */
  .pg-hero__inner { padding-top: 138px; padding-bottom: 64px; }

  .sec-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 28px; }
  .sec-head__title, .svc-prices__head .h1 { font-size: 40px; line-height: 40px; }
  .sec-head__aside { width: auto; font-size: 16px; line-height: 25px; }

  .split { flex-direction: column; gap: 28px; }
  .watch-tile { width: auto; height: 340px; gap: 8px; padding: 22px; border-radius: var(--radius-card); }
  .watch-tile__art { top: 10px; height: 222px; }
  .watch-tile__title { font-size: 26px; line-height: 30px; }
  .watch-tile__text { font-size: 15px; line-height: 22px; }

  .rows__item { flex-direction: column; gap: 6px; padding-block: 18px; }
  .rows__term { width: auto; font-size: 20px; line-height: 26px; }
  .rows__def { font-size: 15px; line-height: 23px; }
  .rows--never .rows__item { gap: 6px; padding-block: 16px; }
  .rows--never .rows__term { width: auto; font-size: 19px; line-height: 24px; }

  .side { flex-direction: column; gap: 20px; }
  .side__head { width: auto; gap: 12px; }
  .side__title { font-size: 40px; line-height: 40px; }
  .side__intro { font-size: 16px; line-height: 25px; }
  .side .faq__q { font-size: 18px; line-height: 24px; padding-block: 18px; }
  .side .faq__a { font-size: 15px; line-height: 23px; }

  /* Hero */
  .svc-hero__title { font-size: 52px; line-height: 50px; }
  .svc-hero__row { flex-direction: column; align-items: stretch; gap: 22px; margin-top: 22px; }
  .svc-hero__sub { width: auto; font-size: 17px; line-height: 26px; }
  .svc-hero__cta { align-items: stretch; gap: 22px; }
  .svc-hero__cta .btn { padding: 17px; }
  .svc-hero__note { font-size: 13px; line-height: 18px; text-align: center; }

  /* Prices */
  .svc-prices__head { gap: 12px; padding-bottom: 10px; }
  .svc-prices__lead { font-size: 16px; line-height: 25px; }
  .svc-tiers-m { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
  .svc-tier-m {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius-card);
    background: var(--white);
  }
  .svc-tier-m--rec { border-color: var(--deep-green); background: var(--deep-green); color: var(--paper); }
  .svc-tier-m__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .svc-tier-m__row--base { align-items: baseline; }
  .svc-tier-m__row .svc-badge { padding: 5px 11px; font-size: 11px; line-height: 14px; }
  .svc-tier-m__name { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 28px; }
  .svc-tier-m__price { display: flex; align-items: baseline; gap: 6px; color: var(--mint-on-green); font-size: 15px; line-height: 18px; }
  .svc-tier-m__price .num { color: var(--paper); font-size: 60px; line-height: 60px; letter-spacing: -0.035em; }
  .svc-tier-m__price-sm { display: flex; align-items: baseline; gap: 4px; color: var(--muted); font-size: 13px; line-height: 16px; }
  .svc-tier-m__price-sm .num { color: var(--ink); font-size: 34px; line-height: 36px; letter-spacing: -0.03em; }
  .svc-tier-m__list { color: var(--text-2); font-size: 14px; line-height: 22px; }
  .svc-tier-m--rec .svc-tier-m__list { color: var(--paper); }
  .svc-tier-m__cta { padding: 15px; }
  .svc-prices__foot { flex-direction: column; gap: 14px; margin-top: 14px; }
  .svc-prices__small { font-size: 13px; line-height: 19px; }
  .svc-prices__funder { font-size: 14px; line-height: 20px; }

  .svc-compare { margin-top: 72px; padding: 22px 20px 8px; border-radius: var(--radius-card); }
  .svc-compare-m__title { padding-bottom: 14px; font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 30px; }
  .svc-compare-m__head, .svc-compare-m__row dd { display: flex; }
  .svc-compare-m__head > span, .svc-compare-m__row dd > span { flex: 1 1 0; min-width: 0; }
  .svc-compare-m__head { padding-block: 10px; border-top: 1px solid var(--ink); font-size: 13px; font-weight: 700; line-height: 16px; }
  .svc-compare-m__rec { color: var(--deep-green); }
  .svc-compare-m__row { display: flex; flex-direction: column; gap: 6px; padding-block: 12px; border-top: 1px solid var(--line-soft); }
  .svc-compare-m__row dt { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 16px; }
  .svc-compare-m__row dd { font-size: 14px; line-height: 19px; }

  /* Free check and Trial */
  .svc-steps { flex-direction: column; gap: 14px; }
  .svc-step { gap: 12px; padding: 24px; border-radius: var(--radius-card); }
  .svc-step__num { width: 36px; height: 36px; font-size: 15px; line-height: 18px; }
  .svc-step__chip { padding: 5px 11px; font-size: 12px; }
  .svc-step__title { font-size: 22px; line-height: 28px; }
  .svc-step__text { font-size: 15px; line-height: 23px; }
  .svc-step__bullets { gap: 0; }
  .svc-step__bullets li { font-size: 15px; line-height: 23px; }
  .svc-step__bullets li::before { top: 9px; width: 5px; height: 5px; }
  .svc-step__note { font-size: 14px; line-height: 21px; }
  .svc-step__months { border-top: 0; margin-top: -12px; }
  .svc-step__months > div { display: block; padding: 0; font-size: 15px; line-height: 23px; }
  .svc-step__months > div + div { border-top: 0; }
  .svc-step__months dt { display: inline; width: auto; }
  .svc-step__months dd { display: inline; }
}
