/* Page CSS for the Bombshell Hair landing page: only what sits inside a visual and the kit's own
   assets/system.css, ui/cards.css, motion/motion.css and layout/layout.css lack. Never a second
   grid, spacing scale, type scale, radius, button or card style (references/system.md). */

:root {
  /* Purchase pages and login dialog (server-rendered templates + purchase.js) */
  --pu-bg: #f3efe7; --pu-ink: #30372c; --pu-muted: #61655b;
  --pu-eyebrow: #5f6a1f;      /* 5.1:1 on --pu-bg, 5.9:1 on white */
  --pu-faint: #767468;        /* struck-through old price, 4.7:1 on white */
  --pu-accent: #d6e16c; --pu-accent-ink: #111; --pu-surface: #fff; --pu-placeholder: #e9e5dc;
  --pu-r-pill: 999px; --pu-r-lg: 20px; --pu-r-md: 16px; --pu-r-sm: 14px;
  --pu-font-display: 'Cormorant Garamond', Georgia, serif;
  --pu-font-text: 'Manrope', system-ui, sans-serif;
}

.loading { display: grid; place-items: center; min-height: 100svh; font: 16px/1.5 var(--font-text, system-ui); color: var(--p-muted, #61655b); }

/* the lessons peek-list (4 rows: 3 techniques + the bundle) runs taller than one phone screen once
   each row's description wraps to 3 lines at 320-390px; --hm lets the section grow instead of
   clipping into #results below it (layout-v4.md section 2, phone heights). */
@media (max-width: 639px) { #lessons { --hm: 2; } }

/* #author ran 5px past one screen at 1440 (SR-2): the frame's portrait ratio (125%) is a hair
   taller than the text column next to it; cap it so both columns end on the same line. */
#author .frame--portrait { --ratio: 108%; }

/* #faq's content fills only 54% of the tile (a short FAQ, by design: sections.md allows it
   picture-less, and ours merges a contact aside rather than padding it out with filler); centre
   the aside's own content so the column reads as deliberate, not sparse. The gap to the footer
   band (consistency.mjs section-gaps) is left open and disclosed in the report: the fix is more
   FAQ content or a shorter footer band, not a CSS patch over real emptiness. */

/* FAQ's aside: a real icon and the Telegram contact, so the section carries a visual
   (sections.md: an FAQ may otherwise be picture-less, but ours merges a short contact prompt in). */
.faq-contact { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); background: var(--surface); border-radius: var(--r-lg); }
/* The contact card is dark (the footer's ground), so the FAQ steps down into the dark footer instead of ending on a pale gap. */
#faq .faq-contact { --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --bg: var(--p-inv-bg); --accent: var(--p-inv-accent);
  background: var(--p-inv-bg); color: var(--p-inv-ink); }
#faq .faq-contact .link { color: var(--p-inv-accent); text-decoration-color: currentColor; }

/* ------------------------------------------------------------------------------------------------
   Purchase pages (/lessons/:code, /bundle, /access/:token): server-rendered Go templates, not the
   app.js kit above, but the same palette, fonts and card/button language as the landing page so a
   visitor never feels they left the course's site when they follow "Подробнее об уроке" or a paid
   access link. */

.purchase-body {
  margin: 0;
  background: var(--pu-bg);
  color: var(--pu-ink);
  font: 16px/1.55 var(--pu-font-text);
}

.purchase-body a { color: inherit; }

.purchase-body .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  font: 500 20px/1.1 var(--pu-font-display);
  color: var(--pu-ink);
}
.purchase-body .brand small { font: 500 12px/1.3 var(--pu-font-text); color: var(--pu-muted); letter-spacing: 0.01em; }

.site-header.purchase-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(48, 55, 44, 0.1);
}
.purchase-header .header-link {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(48, 55, 44, 0.2);
  border-radius: var(--pu-r-pill);
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.purchase-header .header-link:hover { background: rgba(48, 55, 44, 0.06); border-color: rgba(48, 55, 44, 0.35); }
.purchase-header .header-actions { display: flex; align-items: center; gap: 8px; }
.purchase-header button.header-link {
  background: transparent;
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.purchase-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.purchase-heading { max-width: 680px; margin-bottom: 40px; }
.purchase-heading h1 { margin: 8px 0 16px; font: 500 clamp(28px, 2vw + 20px, 44px)/1.12 var(--pu-font-display); letter-spacing: -0.01em; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pu-muted);
}
.purchase-heading .eyebrow, .checkout-panel .eyebrow { color: var(--pu-eyebrow); }

.purchase-lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--pu-muted); }

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .purchase-layout { grid-template-columns: 1fr; }
}

.purchase-overview { display: grid; gap: 24px; }

.purchase-gallery { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0; }
.purchase-gallery.pair { grid-template-columns: 1fr 1fr; }
.purchase-gallery figure { margin: 0; }
.purchase-gallery:not(.pair) figure { max-width: 420px; }
.purchase-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--pu-r-md); background: var(--pu-placeholder); }

.purchase-programme, .purchase-course-item, .purchase-delivery {
  background: var(--pu-surface);
  border: 1px solid rgba(48, 55, 44, 0.08);
  border-radius: var(--pu-r-lg);
  padding: 28px 28px 32px;
  box-shadow: 0 14px 34px rgba(48, 55, 44, 0.06);
}
.purchase-programme h2, .purchase-course-item h2, .purchase-delivery h2 {
  margin: 8px 0 16px;
  font: 500 24px/1.25 var(--pu-font-display);
}
.purchase-course-item h3 { margin: 20px 0 10px; font: 600 15px/1.3 var(--pu-font-text); }
.purchase-item-subtitle { margin: -8px 0 16px; color: var(--pu-muted); }

.purchase-programme ol, .purchase-course-item ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.purchase-programme ol li, .purchase-course-item ol li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.purchase-programme ol li::before, .purchase-course-item ol li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pu-accent);
  color: var(--pu-accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.purchase-result {
  margin: 20px 0 0;
  padding: 16px 20px;
  background: var(--pu-bg);
  border-radius: var(--pu-r-sm);
  font-weight: 500;
}

.purchase-delivery p { margin: 0 0 8px; color: var(--pu-ink); }
.purchase-delivery p:last-child { margin-bottom: 0; }

.checkout-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  background: var(--pu-surface);
  border: 1px solid rgba(48, 55, 44, 0.08);
  border-radius: var(--pu-r-lg);
  padding: 28px;
  box-shadow: 0 20px 44px rgba(48, 55, 44, 0.1);
}
@media (max-width: 860px) { .checkout-panel { position: static; } }

.checkout-panel h2 { margin: 6px 0 10px; font: 500 22px/1.25 var(--pu-font-display); }

.checkout-discount { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.checkout-discount span { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--pu-r-pill); background: var(--pu-accent); color: var(--pu-accent-ink); font-size: 13px; font-weight: 700; }
.checkout-discount strong { font-size: 14px; color: var(--pu-muted); font-weight: 600; }

.checkout-old-price { margin: 2px 0 0; color: var(--pu-faint); text-decoration: line-through; font-size: 16px; }

.checkout-price { margin: 4px 0 8px; font: 600 40px/1 var(--pu-font-display); letter-spacing: -0.02em; }

.checkout-description { margin: 0 0 8px; color: var(--pu-muted); }

.checkout-bonus {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--pu-bg);
  border-radius: var(--pu-r-sm);
}
.checkout-bonus strong { display: block; margin-bottom: 4px; font-size: 14px; }
.checkout-bonus p { margin: 0; color: var(--pu-muted); font-size: 14px; }

/* One dark button for every purchase-page action (pay, owned link, Telegram sign-in). */
.pu-btn {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 100%; margin: 12px 0 0; padding: 16px 20px; border: 0;
  border-radius: var(--pu-r-pill);
  background: var(--pu-ink); color: var(--pu-bg);
  font: 600 16px/1 var(--pu-font-text); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pu-btn:link, .pu-btn:visited { color: var(--pu-bg); }
.pu-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(48, 55, 44, 0.25); }
.pu-btn:active { transform: translateY(0); }
.pu-btn:disabled, .pu-btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; box-shadow: none; pointer-events: none; }
.pu-btn:focus-visible, .header-link:focus-visible, .login-cancel:focus-visible { outline: 2px solid var(--pu-ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pu-btn, .header-link { transition: none; } .pu-btn:hover { transform: none; } }

.checkout-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--pu-muted); }
.checkout-note a { color: var(--pu-ink); text-decoration: underline; }

.checkout-support {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--pu-ink);
}
.checkout-support:hover { text-decoration: underline; }

.legal-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: grid;
  gap: 16px;
  border-top: 1px solid rgba(48, 55, 44, 0.1);
  font-size: 14px;
  color: var(--pu-muted);
}
.legal-footer .brand { color: var(--pu-ink); }
.legal-footer > div > a { color: var(--pu-ink); text-decoration: none; font-weight: 600; }
.legal-footer > div > a:hover { text-decoration: underline; }
.seller-details { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.legal-links { display: flex; gap: 8px; align-items: center; }
.legal-links a { color: var(--pu-muted); text-decoration: underline; }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: rgba(48, 55, 44, 0.55);
}
.overlay.visible { display: flex; }
.overlay-box {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 32px;
  background: var(--pu-surface);
  color: var(--pu-ink);
  border-radius: var(--pu-r-md);
  font-weight: 600;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}
.overlay-box p { margin: 0; }
.overlay-box .spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(48, 55, 44, 0.15);
  border-top-color: var(--pu-ink);
  animation: purchase-spin 0.8s linear infinite;
}
.overlay.done .spinner { display: none; }
@keyframes purchase-spin { to { transform: rotate(360deg); } }


/* ------------------------------------------------------------------------------------------------
   Landing sections: content-height instead of one screen each (no empty bands), FAQ accordion,
   quote band, photo cropping. The photo-chapters section keeps its own scroll-driven height. */

main > section.section:not(.hero):not([data-moment="photo-chapters"]) {
  height: auto; min-height: 0;
  padding-block: clamp(64px, 9vw, 120px);
}
main > section.section:not(.hero):not([data-moment="photo-chapters"]) > .wrap { height: auto; }
#lessons .frame__img, #author .frame__img { object-position: 50% 20%; }

/* quote band */
.quote-band {
  --ink: var(--p-inv-ink); --bg: var(--p-inv-bg); --muted: var(--p-inv-muted); --accent: var(--p-inv-accent);
  background: var(--p-inv-bg); color: var(--p-inv-ink); text-align: center; overflow: hidden;
}
.quote-band > .wrap { display: grid; justify-items: center; gap: var(--s-4); position: relative; }
.quote-band__mark { font: 400 clamp(96px, 14vw, 180px)/0.6 var(--font-display); color: var(--p-inv-accent); height: .45em; }
.quote-band__label { letter-spacing: .14em; text-transform: uppercase; color: var(--p-inv-muted); }
.quote-band .mo-wh__text { max-width: 24em; margin-inline: auto; font-size: clamp(26px, 3.4vw, 46px); text-wrap: balance; }
.quote-band__by { margin-top: var(--s-3); color: var(--p-inv-accent); font: 500 var(--t-lead)/1.2 var(--font-display); letter-spacing: .04em; }

/* FAQ accordion (own class: the kit's .faq keeps every answer open) */
.accordion { display: block; }
.accordion > details { border-bottom: 1px solid var(--line); }
.accordion summary {
  position: relative; display: block; padding: var(--s-5) var(--s-7) var(--s-5) 0;
  font: 500 var(--t-lead)/1.4 var(--font-text); cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  font: 300 28px/1 var(--font-text); color: var(--muted); transition: rotate .2s ease;
}
.accordion details[open] > summary::after { rotate: 45deg; color: var(--ink); }
.accordion summary:hover { color: var(--muted); }
.accordion summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.accordion details > p { padding-bottom: var(--s-5); color: var(--ink); max-width: 64ch; }

#faq .faq-contact { height: auto; align-self: start; justify-content: start; }
#lessons > .wrap > .fill { flex: 0 0 auto; min-height: 0; }
#author .grid > :first-child { align-self: center; }

/* The source photos are portrait (720x1280): show them in portrait frames, never as wide crops. */
#lessons [data-peek] .frame--fill { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
@media (min-width: 1024px) {
  #lessons [data-peek] > .rows { grid-column: 1 / 7; }
  #lessons [data-peek] > .frame { grid-column: 8 / -1; align-self: start; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #lessons [data-peek] .frame--fill { max-width: 420px; }
}
[data-moment="photo-chapters"]:not(.is-live) .mo-ph__pic > img { aspect-ratio: 4 / 5; max-height: none; object-position: 50% 25%; }
/* Wide screens (photo-chapters, live): three photographs side by side across the whole width of the
   screen, appearing one by one from their foot as the page scrolls. Each carries its own words. */
@media (min-width: 800px) {
  main [data-moment="photo-chapters"].is-live.is-wide > .mo-ph { width: 100%; max-width: none; margin: 0; padding-inline: 0; }
  main [data-moment="photo-chapters"].is-live.is-wide .mo-ph__head { margin-left: max(var(--gut), calc((100% - var(--container)) / 2)); margin-right: var(--gut); }
  /* Photographs are 3:4. moment.js sets --mo-col: a third of the width, or, on a screen too short for
     that, as wide as the stage's height allows (3:4); the row is centred. */
  main [data-moment="photo-chapters"].is-live.is-wide .mo-ph__stage { display: grid; justify-content: center; align-content: center; gap: 2px; border-radius: 0; background: var(--bg);
    grid-template-columns: repeat(var(--mo-n, 3), var(--mo-col, calc(100% / var(--mo-n, 3)))); grid-template-rows: calc(var(--mo-col, 33vw) * 4 / 3); }
  main [data-moment="photo-chapters"].is-live.is-wide .mo-ph__stage > .mo-ph__pic { position: relative; inset: auto; width: auto; height: 100%; aspect-ratio: 3 / 4; border-radius: 0; overflow: hidden; background: var(--surface); }
  main [data-moment="photo-chapters"].is-live.is-wide .mo-ph__stage > .mo-ph__pic > img { position: absolute; inset: 0; object-position: 50% 25%; }
  main [data-moment="photo-chapters"].is-live.is-wide .mo-ph__list { display: none; }
  /* Each photograph always shows its number and title along the foot; the description opens on hover or
     keyboard focus, once the photograph is fully uncovered (.is-in, set by moment.js). The "+" hints at it. */
  [data-moment="photo-chapters"].is-wide .mo-ph__stage { counter-reset: ch; }
  [data-moment="photo-chapters"].is-wide .mo-ph__stage > .mo-ph__pic { counter-increment: ch; cursor: default; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic > .mo-ph__words { position: absolute; z-index: 1; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
    display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--bg); color: var(--ink); border-radius: var(--r-md);
    opacity: 1; transform: none; pointer-events: none; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic > .mo-ph__words h3::before { content: counter(ch, decimal-leading-zero) " / " / ""; color: var(--muted); font-variant-numeric: tabular-nums; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic > .mo-ph__words > :not(h3) { margin: 0; color: var(--ink); max-width: 44ch; max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 320ms ease, opacity 220ms ease; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in:hover > .mo-ph__words > :not(h3),
  [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in:focus-within > .mo-ph__words > :not(h3),
  [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in:focus-visible > .mo-ph__words > :not(h3) { max-height: 14em; opacity: 1; overflow: auto; transition-duration: 420ms, 420ms; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in::after { content: "+"; position: absolute; z-index: 1; top: var(--s-3); right: var(--s-3);
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--ink); font: 400 22px/1 var(--font-text);
    transition: rotate 220ms ease, opacity 220ms ease; pointer-events: none; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in:hover::after,
  [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in:focus-within::after { rotate: 45deg; }
  [data-moment="photo-chapters"].is-wide .mo-ph__pic:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
  @media (prefers-reduced-motion: reduce) {
    [data-moment="photo-chapters"].is-wide .mo-ph__pic > .mo-ph__words > :not(h3), [data-moment="photo-chapters"].is-wide .mo-ph__pic.is-in::after { transition: none; }
  }
}

/* Formatting from the admin's page editor (bold / italic / underline). */
b, strong { font-weight: 700; }
u { text-decoration: underline; text-underline-offset: 0.15em; }

/* Already purchased: the pay button becomes a link to the lessons. */
.checkout-owned { margin: 14px 0 10px; font-size: 14px; line-height: 1.5; color: var(--pu-muted); }

/* Sign in with Telegram (shown before paying). */
.login-dialog { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(48, 55, 44, 0.55); }
.login-box { width: min(440px, 100%); background: var(--pu-bg); color: var(--pu-ink); border-radius: var(--pu-r-lg); padding: 28px 26px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); display: grid; gap: 14px; }
.login-box h2 { margin: 0; font: 500 30px/1.1 var(--pu-font-display); }
.login-box .login-text { margin: 0; color: var(--pu-muted); font-size: 15px; line-height: 1.55; }
.login-box .login-go { margin: 0; border-radius: var(--pu-r-sm); padding: 14px 20px; }
.login-status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--pu-muted); }
.login-cancel { justify-self: center; min-height: 44px; min-width: 44px; background: none; border: 0; padding: 10px 14px; color: var(--pu-muted); font: inherit; text-decoration: underline; cursor: pointer; }
.login-email { display: grid; gap: 10px; margin: 0; }
.login-email input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--pu-muted); border-radius: var(--pu-r-sm); background: transparent; color: inherit; min-height: 44px; }
.login-email input[hidden] { display: none; }
.login-or { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--pu-muted); }
.login-submit { margin: 0; border-radius: var(--pu-r-sm); padding: 14px 20px; }
.login-error { margin: 0; min-height: 1.2em; font-size: 14px; color: #b3261e; }
.login-switch { justify-self: center; min-height: 44px; background: none; border: 0; padding: 8px 10px; color: var(--pu-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.login-forgot { justify-self: center; min-height: 36px; background: none; border: 0; padding: 4px 10px; color: var(--pu-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.login-forgot[hidden] { display: none; }
.checkout-who { margin: 12px 0 0; font-size: 13px; color: var(--pu-muted); }
.checkout-who a { color: inherit; }

/* Touch targets: the "Подробнее" links in the lessons list are at least 44px tall. */
.rows .link { min-height: 44px; }

/* Lessons list: "Подробнее" link and "Купить" button side by side. */
.rows__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
#buy { scroll-margin-top: 96px; }

/* Loading skeleton and load-error state (before the kit's styles exist, so only plain CSS). */
.loading { gap: 16px; text-align: center; align-content: center; }
.loading[role="status"] { align-content: center; justify-items: stretch; width: min(560px, 86vw); margin-inline: auto; }
.skeleton { display: block; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #e9e5dc 25%, #f3efe7 50%, #e9e5dc 75%) 0 0 / 200% 100%; animation: skeleton-shimmer 1.4s linear infinite; }
.skeleton--title { height: 40px; width: 70%; }
.skeleton--short { width: 45%; }
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Lessons photo: a film strip. GSAP (system.js peek) slides the photographs one frame up or down to the row
   under the pointer, and lessons-motion.js reveals the block on first view. CSS only hints the layer. */
[data-peek].peek-gsap .frame__img[data-peek-for] { will-change: transform; }
/* the row on show: its marker eases in with the photograph (the rule already does, system.css) */
[data-peek-to] .rows__name::after { transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
@media (prefers-reduced-motion: reduce) { [data-peek-to] .rows__name::after { transition: none; } }

/* code step of the email sign-in: one-time code from the email */
.login-email .login-code { text-align: center; font-size: 24px; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.login-email .login-code::placeholder { font-size: 15px; letter-spacing: normal; }
.login-code[hidden], .login-resend[hidden], .login-or[hidden] { display: none; }
.login-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pu-ink); }
.login-note:empty { display: none; }
.login-resend { justify-self: center; min-height: 36px; background: none; border: 0; padding: 4px 10px; color: var(--pu-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Bonus card at the very top of the hero: gift lesson until 31 December, with a countdown */
.bonus { display: grid; gap: 6px; max-width: 460px; margin: 0 0 18px; padding: 16px 20px 18px; border-radius: var(--pu-r-lg); background: var(--pu-ink); color: var(--pu-bg); }
.bonus__label { justify-self: start; margin: 0; padding: 3px 12px; border-radius: var(--pu-r-pill); background: var(--pu-accent); color: var(--pu-accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bonus__title { margin: 4px 0 0; font-family: var(--pu-font-display); font-size: 24px; line-height: 1.15; font-weight: 500; }
.bonus__left { margin: 8px 0 0; font-size: 12px; color: #afafa5; }
.bonus__timer { display: flex; gap: 8px; margin: 0; }
.bonus__cell { display: grid; justify-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: var(--pu-r-sm); background: #3c4237; }
.bonus__cell b { font-family: var(--pu-font-display); font-size: 30px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--pu-accent); }
.bonus__cell small { margin-top: 4px; font-size: 11px; color: #afafa5; }
@media (max-width: 639px) { .bonus { max-width: none; padding: 14px 16px 16px; } .bonus__title { font-size: 21px; } .bonus__cell { flex: 1; min-width: 0; } }

/* Lessons list: on wide screens centred against the photograph, the bundle's saving in green */
@media (min-width: 1024px) {
  #lessons [data-peek] > .rows { align-self: center; }
}
.rows__save { display: inline-block; margin-left: 6px; padding: 2px 12px; border-radius: 999px; background: var(--p-accent, #d6e16c); color: var(--p-accent-ink, #111); font-size: .85em; font-weight: 700; line-height: 1.5; }

/* "What is inside the course": a 2x2 grid of icon cards under the lessons list */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature { padding: 20px 22px 22px; border: 1px solid rgba(48, 55, 44, 0.12); border-radius: 16px; background: rgba(255, 255, 255, 0.55); }
.feature__icon { display: block; margin-bottom: 14px; color: #6b7a3a; }
.feature h3 { margin: 0 0 6px; font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.feature p { margin: 0; color: var(--p-muted, #61655b); font-size: .95rem; line-height: 1.5; }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; } }
