/* Estudios Védicos, registro v2 (session 11, 24 Nov 2026): the page's own layer, on page/v2-base.css.
   Seeded from the theme's sections-registro.css and restyled to home v2's language, section by section.
   Same sections, same order, same formation (the photograph left of the form, the four topics in one row,
   two by two on phones; the frame left of the four points, two by two), same text. What changed is the look:
   - every top-level photo panel takes home v2's media corner and shadow (--rm, --pop, ink under it);
   - the form stands on home v2's paper sheet beside the photograph, as on contacto and the Reto offer sheet;
   - the four topics stand as home v2's photo tiles, each its own panel with the tile gap (16 px, 24 px on
     desktop), where the theme joined them with a 6 px seam;
   - line icons stroke 1.5, copper on the paper band; large figures in Fraunces at opsz 144 with home v2's
     tight letter spacing, small display lines at opsz 36 or 72;
   - each part enters in its own way (see the entrance blocks): no wipe repeated down the page.
   Every colour is a token from v2-base.css. Mobile first. Class prefix reg-.
   Round 2 (26 Nov 2026, Ben's notes 28 to 39): the three figures at the heading scale, never bigger (note 35); the
   form sheet with one rule, its head and foot centred, its fields left (note 29); the gaps on the one ratio (note
   28); the four points in the locked list design (ul.grow, drawn icons) beside the frame, which ends where the list
   ends (notes 28, 32, 39). */

/* ---------------------------------------------------------------- Line icons: home v2's 1.5 stroke */
.reg-done__icon svg [stroke] { stroke-width: 1.5; }

/* ---------------------------------------------------------------- 1. The sign up: the photograph, the form sheet, the four topics */
.reg-join__grid { display: grid; gap: var(--s-6); }
.reg-join__media { position: relative; min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); color: var(--paper); }
.reg-join__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
/* The headline, the lead and the library's three figures on the photograph's shaded foot. */
.reg-join__intro { position: relative; z-index: 1; width: 100%; padding: 140px var(--s-4) var(--s-5); display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 55%, transparent 100%); }
.reg-join__title { margin: 0; color: var(--paper); font-size: clamp(2.6rem, 1.9rem + 2.8vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.reg-join__lede { margin: var(--g1) 0 0; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--sage-l); text-wrap: pretty; }
.reg-facts { list-style: none; margin: var(--g2) 0 0; padding: 0; width: 100%; max-width: 30rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.reg-facts__item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reg-facts__value { font-family: var(--fd); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; color: var(--paper); font-variation-settings: "opsz" 36; }
.reg-facts__label { font-size: var(--fs-small); line-height: 1.35; color: var(--sage-l); }

/* The form and its success state (shown with ?hecho=1) on home v2's paper sheet: the grain, the media corner,
   the deep soft shadow, no hairline. */
.reg-panel { align-self: stretch; justify-content: center; max-width: none; padding: clamp(26px, 3.2vw, 44px); background-color: var(--paper); background-image: var(--noise), var(--surface-paper); background-blend-mode: soft-light, normal; border-radius: var(--rm); box-shadow: var(--pop); }
.reg-panel__form, .reg-done { width: 100%; max-width: 480px; margin: 0 auto; }
.reg-done { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.reg-done[hidden] { display: none; }
.reg-done__icon { display: flex; color: var(--copper); }
.reg-done__icon svg { width: 48px; height: 48px; }
.reg-done__title { outline: none; }
.reg-done__text { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
.reg-done__btn { width: 100%; }
/* One rule for the sheet at every width (note 29): its head, the Google button, the "or" line, the success state
   and the foot row centred; the form itself (labels, fields, hints, errors, the small print) left. */
.reg-panel, .reg-done { text-align: center; }
.reg-panel .reg-form { text-align: left; }
.reg-panel .fm-field { align-items: stretch; }
.reg-panel .fm-field__error { flex-direction: row; align-items: flex-start; gap: var(--s-2); }
.reg-done__btn svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .reg-join__grid { grid-template-columns: 7fr 5fr; gap: var(--s-7); }
  .reg-join__media { align-self: stretch; min-height: 640px; }
  .reg-join__intro { align-items: flex-start; text-align: left; padding: 220px var(--s-6) var(--s-6); }
  .reg-facts { gap: var(--g2); }
  .reg-facts__item { align-items: flex-start; }
}

/* Four of the library's topics: home v2's photo tiles, each its own panel with the tile gap, the topic and its
   count on the shade. */
.reg-lib { margin-top: var(--g3); display: flex; flex-direction: column; align-items: center; }
.reg-lib__strip { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g2); }
.reg-lib__item { display: flex; min-width: 0; }
.reg-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); color: var(--paper); text-decoration: none; }
.reg-tile:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.reg-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.reg-tile:hover .reg-tile__img, .reg-tile:focus-visible .reg-tile__img { transform: scale(1.05); }
.reg-tile__body { position: absolute; inset: auto 0 0 0; padding: 72px var(--s-3) var(--s-4); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 68%, transparent) 52%, transparent 100%); }
.reg-tile__name { font-family: var(--fd); font-weight: 400; font-size: 1.25rem; line-height: 1.15; color: var(--paper); font-variation-settings: "opsz" 36; text-wrap: balance; }
.reg-tile__count { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; color: var(--saffron); }
/* The foot: the line and its button in one centred row, the head gap under the tiles. */
.reg-lib__foot { margin: var(--g3) 0 0; display: flex; flex-direction: column; align-items: center; gap: var(--g1); max-width: 46rem; text-align: center; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.reg-lib__foot .btn { flex: none; }
@media (min-width: 768px) {
  .reg-lib__strip { grid-template-columns: repeat(4, 1fr); }
  .reg-tile { aspect-ratio: 4 / 3; }
  .reg-tile__name { font-size: 1.5rem; font-variation-settings: "opsz" 72; }
  .reg-lib__foot { flex-direction: row; gap: var(--g2); max-width: none; }
}

/* Entrance, the sign up's own: the photograph opens from its middle outward, like the library's doors, and
   settles inside them; the headline arrives, then the three figures roll up out of their line one after
   another (202, 12, Free); beside it the paper sheet comes up and the form assembles row by row, top to
   bottom, as the account it creates. */
.js .reg-join__grid[data-reveal] { opacity: 1; transform: none; }
.js .reg-join__grid[data-reveal] .reg-join__media { clip-path: inset(-80px 50% -80px 50%); transition: clip-path 1s var(--ease); }
.js .reg-join__grid[data-reveal] .reg-join__img { transform: scale(1.12); transition: transform 1.5s var(--ease); }
.js .reg-join__grid[data-reveal] .reg-join__title, .js .reg-join__grid[data-reveal] .reg-join__lede { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) .45s, transform .6s var(--ease) .45s; }
.js .reg-join__grid[data-reveal] .reg-join__lede { transition-delay: .55s; }
.js .reg-join__grid[data-reveal] .reg-facts__value { -webkit-mask-image: linear-gradient(to top, var(--ink) 50%, transparent 50%); mask-image: linear-gradient(to top, var(--ink) 50%, transparent 50%); -webkit-mask-size: 100% 200%; mask-size: 100% 200%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 0 0; mask-position: 0 0; transform: translateY(.45em); transition: -webkit-mask-position .6s var(--ease), mask-position .6s var(--ease), transform .6s var(--ease); }
.js .reg-join__grid[data-reveal] .reg-facts__label { opacity: 0; transition: opacity .5s var(--ease); }
.js .reg-join__grid[data-reveal] .reg-facts__item:nth-child(1) > * { transition-delay: .75s; }
.js .reg-join__grid[data-reveal] .reg-facts__item:nth-child(2) > * { transition-delay: .9s; }
.js .reg-join__grid[data-reveal] .reg-facts__item:nth-child(3) > * { transition-delay: 1.05s; }
.js .reg-join__grid[data-reveal] .reg-panel { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s; }
/* The rows assemble as animations (not transitions), so the buttons keep their own colour transitions after. */
.js .reg-join__grid[data-reveal] .reg-panel__form > :nth-child(-n+3), .js .reg-join__grid[data-reveal] .reg-panel__form > .reg-switch, .js .reg-join__grid[data-reveal] .reg-form > :nth-child(-n+4) { opacity: 0; }
.js .reg-join__grid.is-in .reg-panel__form > :nth-child(-n+3), .js .reg-join__grid.is-in .reg-panel__form > .reg-switch, .js .reg-join__grid.is-in .reg-form > :nth-child(-n+4) { opacity: 1; animation: reg-row .5s var(--ease) .4s backwards; }
.js .reg-join__grid.is-in .reg-panel__form > :nth-child(2) { animation-delay: .5s; }
.js .reg-join__grid.is-in .reg-panel__form > :nth-child(3) { animation-delay: .58s; }
.js .reg-join__grid.is-in .reg-form > :nth-child(1) { animation-delay: .66s; }
.js .reg-join__grid.is-in .reg-form > :nth-child(2) { animation-delay: .76s; }
.js .reg-join__grid.is-in .reg-form > :nth-child(3) { animation-delay: .86s; }
.js .reg-join__grid.is-in .reg-form > :nth-child(4) { animation-delay: .94s; }
.js .reg-join__grid.is-in .reg-panel__form > .reg-switch { animation-delay: 1.02s; }
@keyframes reg-row { from { opacity: 0; transform: translateY(10px); } }
.js .reg-join__grid.is-in .reg-join__media { clip-path: inset(-80px -80px -80px -80px); }
.js .reg-join__grid.is-in .reg-join__img, .js .reg-join__grid.is-in .reg-join__title, .js .reg-join__grid.is-in .reg-join__lede, .js .reg-join__grid.is-in .reg-panel { opacity: 1; transform: none; }
.js .reg-join__grid.is-in .reg-facts__value { -webkit-mask-position: 0 100%; mask-position: 0 100%; transform: none; }
.js .reg-join__grid.is-in .reg-facts__label { opacity: 1; }

/* Entrance, the topics' own: the four class tiles are dealt onto the band from the left like cards, each
   turning flat as it lands, one after another. */
.js .reg-lib__strip[data-reveal] { opacity: 1; transform: none; }
.js .reg-lib__strip[data-reveal] .reg-lib__item { opacity: 0; transform: translate(-44px, 22px) rotate(-5deg); transform-origin: 50% 100%; transition: opacity .55s var(--ease), transform .75s var(--ease); }
.js .reg-lib__strip[data-reveal] .reg-lib__item:nth-child(2) { transition-delay: .12s; }
.js .reg-lib__strip[data-reveal] .reg-lib__item:nth-child(3) { transition-delay: .24s; }
.js .reg-lib__strip[data-reveal] .reg-lib__item:nth-child(4) { transition-delay: .36s; }
.js .reg-lib__strip.is-in .reg-lib__item { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 2. Before you sign up: the frame beside the four points */
/* The earn steps' formation (locked, system-v2 #earn): the photograph 5 to 7 beside the list, the list in the
   locked design (ul.grow: drawn icon, title, line); the frame starts and ends on the list's lines. */
.reg-good__grid { display: grid; gap: 40px; }
.reg-good__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rm); background: var(--ink); box-shadow: var(--pop); }
.reg-good__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.reg-good__cap { position: absolute; inset: auto 0 0 0; padding: 72px var(--g2) var(--g2); font-family: var(--fd); font-style: italic; font-weight: 300; font-size: var(--fs-h3); line-height: 1.25; color: var(--paper); font-variation-settings: "opsz" 72; text-align: center; text-wrap: balance; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 60%, transparent) 55%, transparent 100%); }
.reg-grow.grow { margin: 0; text-align: left; }
@media (min-width: 900px) {
  .reg-good__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: stretch; }
  .reg-good__media { aspect-ratio: auto; min-height: 0; }
  .reg-good__cap { padding: 88px 40px 32px; }
}

/* Entrance, this section's own: the frame from the library comes alive like a paused class that starts to
   play (from a dim, grey still to full colour) and its caption runs in as a subtitle. */
.js .reg-good__grid[data-reveal] { opacity: 1; transform: none; }
.js .reg-good__grid[data-reveal] .reg-good__media img { filter: grayscale(.85) brightness(.5); transform: scale(1.05); transition: filter 1.4s cubic-bezier(.5, 0, .2, 1), transform 1.5s var(--ease); }
.js .reg-good__grid[data-reveal] .reg-good__cap { opacity: 0; transform: translateX(-24px); transition: opacity .6s var(--ease) .55s, transform .7s var(--ease) .55s; }
.js .reg-good__grid.is-in .reg-good__media img { filter: none; transform: none; }
.js .reg-good__grid.is-in .reg-good__cap { opacity: 1; transform: none; }
/* The four points come in with the locked list's own entrance (the icons draw, the lines arrive together). */

/* Reduced motion: everything shows at once, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .js .reg-join__grid[data-reveal] *, .js .reg-join__grid[data-reveal] .reg-join__media, .js .reg-lib__strip[data-reveal] .reg-lib__item, .js .reg-good__grid[data-reveal] * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .js .reg-join__grid[data-reveal] .reg-join__media { clip-path: none; }
  .js .reg-join__grid[data-reveal] .reg-facts__value { -webkit-mask-image: none; mask-image: none; }
  .js .reg-good__grid[data-reveal] .reg-good__media img { filter: none; }
  .reg-tile__img { transition: none; }
}
