/* ============================================================
   Ringo home (2026) - motion and the pieces the theme adds to the
   partner design: the scroll opening, word risers, the close's go line, the
   language switch, the footer's social marks, and the arrows in English.
   Loaded after language.css.
   ============================================================ */

/* ---------- the opening, driven by the scroll ----------
   The live site's opening on the new hero. Only with the motion layer on:
   the section grows to 320vh and its stage stays put under the header while
   the camera pulls back from the photograph to the wordmark. Without it the
   partner's still hero is untouched. --hdr-h (the header's height) and
   --hdr-top (where it sticks: 0, or under the admin bar) are measured by
   motion.js. */
.v4-sheet{display:none}
/* Heights come from --vh: the screen's height measured once in the header and
   kept until the width changes. An in-app browser (Instagram, Facebook) shows
   and hides its toolbar while the page scrolls, which re-sizes vh and svh; a
   320vh section above the reader then grew and shrank by a toolbar's height
   three times over, and the page jumped back and forth (Ron, 2026-11-17).
   .v4-pre is the same opening from the first paint (header-v4), so the page
   no longer drops by two screens when motion.js arrives. */
html:is(.v4-motion,.v4-pre) .cinema-hero.v4-open{height:calc(var(--vh,1vh) * 320)!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;background:transparent!important;padding:0!important}
html:is(.v4-motion,.v4-pre) .v4-open .v4-stage{position:sticky;top:var(--hdr-top,0px);height:calc(var(--vh,1svh) * 100 - var(--hdr-top,0px));
  overflow:hidden;background:var(--ink)}

/* The header over the opening, as on the live site: no surface while the
   photograph is on screen and until the mark has closed into the wordmark.
   The hero slides up under it, so the stage is the whole screen.
   .hdr-over - transparent bar (motion.js: until the opening ends)
   .hdr-photo - white type, while there is photograph behind it */
:root{--hdr-h:82px}
@media (max-width:760px){:root{--hdr-h:70px}}
/* The hero stays under the bar for as long as the motion runs - not only while
   the bar is see-through. Tied to .hdr-over, the page dropped by the bar's
   height the moment the opening ended, which moved the opening's own scroll
   range and flipped the class back: the page shook at that point. */
html:is(.hdr-over,.v4-motion,.v4-pre) .cinema-hero.v4-open{margin-top:calc(-1 * var(--hdr-h))}
html.hdr-over:not(.menu-open) body > header{background:transparent!important;border-bottom-color:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important}
html.hdr-photo:not(.menu-open) body > header :is(nav a,.login,.v4-lang,.menu){color:#fff!important}
html.hdr-photo:not(.menu-open) body > header .nav .logo{filter:brightness(0) invert(1)!important}
body > header .nav .logo{transition:filter .35s ease}
body > header :is(nav a,.login,.v4-lang,.menu){transition:color .35s ease}
html.v4-motion .v4-open .v4-sheet{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
html.v4-motion .v4-open .cinema-content,html.v4-motion .v4-open .cinema-bottom{z-index:4}
html.v4-motion .v4-open .hero-stills img{will-change:transform}
/* Without the motion layer the stage is just a wrapper. */
.v4-stage{position:relative;height:100%}

/* ---------- words ---------- */
/* Words are r-w / r-i elements, not spans, so no heading rule reaches them;
   they take everything from the line they sit in. */
r-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em;
  font:inherit;color:inherit;letter-spacing:inherit}
r-i{display:inline-block;font:inherit;color:inherit;letter-spacing:inherit}

/* ---------- Lenis ----------
   Its own base rules, and the partner's scroll-behavior:smooth switched off
   while it drives - two smoothers on one page is what makes a scroll stutter. */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}

/* ---------- entrances (motion.js prepares, the observer adds .is-in) ----------
   CSS animations rather than transitions, so the design's own hover
   transitions on the same elements are left untouched; `translate` rather than
   transform, so a transform the design sets (the featured plan) is too. */
@keyframes v4-rise{from{opacity:0;translate:0 30px}to{opacity:1;translate:0 0}}
@keyframes v4-word{from{translate:0 112%}to{translate:0 0}}
@keyframes v4-side{from{opacity:0;translate:var(--side,18px) 0}to{opacity:1;translate:0 0}}
@keyframes v4-grow{from{scale:0 1}to{scale:1 1}}
@keyframes v4-fill{from{scale:1 0}to{scale:1 1}}
@keyframes v4-sweep{from{--sweep:0%}to{--sweep:100%}}
html[dir="ltr"]{--side:-18px}

html.v4-motion .rw:not(.is-in) r-i{translate:0 112%}
html.v4-motion .rw.is-in r-i{animation:v4-word 1s cubic-bezier(.22,.61,.36,1) both;animation-delay:calc(var(--i,0) * 45ms)}
html.v4-motion .rv:not(.is-in){opacity:0}
html.v4-motion .rv.is-in{animation:v4-rise .9s cubic-bezier(.22,.61,.36,1) both;animation-delay:calc(var(--d,0) * 80ms)}

/* Inside the product screens, once their card has arrived. */
html.v4-motion .system-card:not(.is-in) .peek-row{opacity:0}
html.v4-motion .system-card.is-in .peek-row{animation:v4-side .6s cubic-bezier(.22,.61,.36,1) both;animation-delay:calc(.3s + var(--d,0) * 80ms)}
html.v4-motion .system-card:not(.is-in) .rsvp-meter i{scale:0 1}
html.v4-motion .system-card.is-in .rsvp-meter i{transform-origin:right center;animation:v4-grow .9s cubic-bezier(.22,.61,.36,1) both;animation-delay:calc(.2s + var(--d,0) * 120ms)}
html[dir="ltr"].v4-motion .system-card.is-in .rsvp-meter i{transform-origin:left center}
html.v4-motion .system-card:not(.is-in) .check-progress i.done{scale:1 0}
html.v4-motion .system-card.is-in .check-progress i.done{transform-origin:center bottom;animation:v4-fill .45s cubic-bezier(.34,1.56,.64,1) both;animation-delay:calc(.2s + var(--d,0) * 60ms)}
html.v4-motion .system-card:not(.is-in) .budget-ring{--sweep:0%}
html.v4-motion .system-card.is-in .budget-ring{animation:v4-sweep 1.4s cubic-bezier(.65,0,.35,1) .2s both}

/* ---------- the header, once the page moves ---------- */
header{transition:box-shadow .35s ease,background-color .35s ease}
header.is-scrolled{box-shadow:0 10px 30px -22px rgba(0,4,68,.35)}
body.admin-bar header{top:32px}
@media (max-width:782px){body.admin-bar header{top:46px}}

/* ---------- the budget ring sweeps round once ----------
   A cover over the partner's static ring, opening like a clock hand.
   The cover rests fully open (--sweep:100%); it is closed only while the
   motion layer is on and the card has not arrived yet, then sweeps open. */
@property --sweep{syntax:'<percentage>';inherits:true;initial-value:100%}
html.v4-motion .budget-ring:after{content:'';position:absolute;inset:-1px;border-radius:50%;z-index:0;
  background:conic-gradient(from 0deg,transparent var(--sweep),#f5f2fe 0)}
.budget-ring>span{position:relative;z-index:1}

/* ---------- the close: the go, drawn as a line ----------
   motion.js draws it in full, once, when the band arrives - it never stops
   part-way with the scroll. */
.closing{position:relative;overflow:hidden;isolation:isolate}
.v4-go-line{position:absolute;z-index:-1;pointer-events:none;width:min(78vw,980px);height:auto;
  inset-inline-end:-12%;bottom:-38%}
.v4-go-line path{fill:none;stroke:rgba(201,189,255,.22);stroke-width:1.3;vector-effect:non-scaling-stroke;
  stroke-linejoin:round;stroke-linecap:round}
.closing-inner{position:relative;z-index:1}
@media (max-width:760px){.v4-go-line{width:140vw;inset-inline-end:-40%;bottom:-18%}}

/* ---------- plans ----------
   The partner capped the plan title at 200px, which wrapped every title once
   it moved to the 20px step. One line each. */
#pricing .plan h3{max-width:none!important}

/* ---------- questions ----------
   The heading and the "let's talk" link stay in view while the questions
   scroll past, as on the live site. Desktop only; on a phone they stack. */
@media (min-width:761px){
  #faq .faq-grid{align-items:start}
  #faq .faq-grid>div:first-child{position:sticky;top:120px}
}

/* ---------- the phone menu: the whole screen ----------
   Opens under the bar and fills the rest of the screen: the links large and
   spaced for a thumb, and both actions as full-width buttons at the bottom -
   start first, sign in under it. The page behind it is held still. */
@media (max-width:760px){
  header .nav nav#navigation.open{position:fixed;top:70px;left:0;right:0;bottom:0;height:auto;
    display:flex;flex-direction:column;gap:0;margin:0;padding:12px 22px calc(26px + env(safe-area-inset-bottom));
    background:#fff;border:0;border-radius:0;box-shadow:none;overflow-y:auto;overscroll-behavior:contain;z-index:30;
    animation:v4-menu .32s cubic-bezier(.22,.61,.36,1) both}
  body.admin-bar header .nav nav#navigation.open{top:116px}
  header .nav nav#navigation.open > a{display:block;padding:18px 4px;min-height:0;border-bottom:1px solid var(--line);
    font-size:var(--t-h3,20px)!important;font-weight:600!important;color:var(--ink)!important;text-align:start}
  header .nav nav#navigation.open .menu-cta{display:flex;flex-direction:column;gap:12px;margin-top:auto;padding-top:28px}
  /* One height for both, set outright: the start button is sized by padding
     at line-height 1, the sign-in one has a border and the body's line
     height, and the two came out different. */
  header .nav nav#navigation.open .menu-cta .button,
  header .nav nav#navigation.open .menu-cta .login{box-sizing:border-box;height:52px!important;min-height:0!important;
    padding:0 24px!important;line-height:1!important;width:100%;display:flex;align-items:center;justify-content:center}
  header .nav nav#navigation.open .menu-cta .login{border:1px solid var(--line-2);border-radius:999px;
    font-size:var(--t-ui,16px)!important;font-weight:600!important;color:var(--ink)!important;background:#fff}
  /* <html> only: hiding overflow on <body> as well makes the body its own
     scroll box, and the sticky header then slides away with the page. */
  html.menu-open{overflow:hidden}
}
@keyframes v4-menu{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}

/* ---------- English: action buttons in capitals ----------
   Every pill in the page that does something - start, the plans, the phone
   menu's two. Tabs are not actions and keep their case. Capitals want a
   little air. */
html[dir="ltr"] .button,
html[dir="ltr"] .menu-cta .login{text-transform:uppercase;letter-spacing:.06em!important}
/* Except the header's own button, which sits beside "Sign in" and reads with
   it, the opening's over the photograph, the designs' (one per tab), the plans' and the close's (Ron). */
html[dir="ltr"] header .nav-actions .button,
html[dir="ltr"] .cinema-hero .button,
html[dir="ltr"] .design-showcase .button,
html[dir="ltr"] #pricing .button,
html[dir="ltr"] .closing .button{text-transform:none;letter-spacing:normal!important}

/* ---------- language switch in the header ---------- */
/* Set exactly like the menu links beside it (language.css: header nav a). */
.v4-lang{font-size:var(--t-ui,16px)!important;font-weight:500!important;color:var(--body)!important;
  padding:8px 10px;transition:color .2s;direction:ltr}
.v4-lang:hover{color:var(--ink)!important}
@media (max-width:760px){.v4-lang{padding:8px}}

/* ---------- footer: the social marks ---------- */
.v4-social{display:flex;gap:10px;margin-top:22px}
.v4-social a{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;
  border:1px solid rgba(255,255,255,.18);color:rgba(255,255,255,.8);transition:background .2s,border-color .2s,color .2s}
.v4-social a:hover{color:#fff;border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.07)}
.v4-social svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ---------- English: the page reads left to right ----------
   The partner design was drawn for RTL. The forward arrow turns to point
   right, and the few places it pinned to a side follow the reading order. */
html[dir="ltr"] .action-icon.is-left svg{transform:scaleX(-1)}
html[dir="ltr"] #tools-overview .ribbon-track.is-moving{animation-name:ribbon-ltr}
@keyframes ribbon-ltr{from{transform:translateX(0)}to{transform:translateX(-50%)}}
html[dir="ltr"] body{text-align:left}

/* The partner sheets force direction:rtl on two blocks, and text-align:right
   on many more. On the English page each goes back to the reading direction. */
html[dir="ltr"] .cinema-content h1.intro-heading,
html[dir="ltr"] .showcase-panel{direction:ltr}
html[dir="ltr"] :is(.closing,.cinema-content h1.intro-heading,.showcase-copy,.concierge-options button,
  .concierge-message,.wa-device,.concierge .wa-message,.wa-receipt,.checklist-summary strong,.system-open,
  .footer-main,.footer-main .footer-brand,.footer-main .footer-brand p,.footer-main b,.footer-main a,
  .footer-bottom,.footer-bottom>span){text-align:left!important}

/* Things the partner pinned to a physical side, mirrored. */
html[dir="ltr"] .love-check{right:auto;left:-15px}
html[dir="ltr"] .love-cards article{padding-left:32px;padding-right:22px}
html[dir="ltr"] .portrait-caption{left:auto;right:-18px}
html[dir="ltr"] .closing-note{left:auto;right:0}
html[dir="ltr"] .closing .button{left:auto;right:0}
/* The phone headers: the call icons go to the far side, as in the app itself. */
html[dir="ltr"] .wa-header-icons{margin-right:0;margin-left:auto;padding-left:0;padding-right:8px}
html[dir="ltr"] .voice-call-heading>svg{margin-right:0;margin-left:auto}
/* The plans: the ticks lead each line and the "most popular" mark sits at the start. */
html[dir="ltr"] .plan li{padding-right:0;padding-left:21px}
html[dir="ltr"] .plan li:before{right:auto;left:0}
html[dir="ltr"] #pricing .plan .popular{right:auto!important;left:22px}
@media (max-width:760px){
  /* The partner's phone layout right-aligns these too. */
  html[dir="ltr"] :is(.gallery-intro,.showcase-heading,.center-title){text-align:left!important}
  html[dir="ltr"] .love-check{left:-10px}
  html[dir="ltr"] .love-cards article{padding-left:24px;padding-right:15px}
}

@media (prefers-reduced-motion:reduce){
  html.v4-motion .budget-ring:after{display:none}
}

/* ---------- the other screen-tall sections hold still too ----------
   Same reason as the opening: measured once (--vh), not re-sized with an
   in-app browser's toolbar. The values are the ones refinements.css sets. */
.cinema-hero{height:calc(var(--vh,1svh) * 100 - 90px)}
@media(max-width:760px){.cinema-hero{height:calc(var(--vh,1svh) * 100 - 70px)}}
@media(min-width:761px){.hospitality-photo{height:calc(var(--vh,1svh) * 65)}}
.hero-stills picture{display:contents}

/* ---------- Safari's own triangle on a question ----------
   Safari draws a disclosure marker on every <summary> unless told not to;
   the design has its own "+". */
summary{list-style:none}
summary::-webkit-details-marker{display:none}

/* ---------- 404 ---------- */
.v4-404{padding:120px 0 140px;background:linear-gradient(180deg,var(--violet-050,#f5f2fe),#fff)}
.v4-404 .wrap{display:flex;flex-direction:column;align-items:flex-start;gap:18px;max-width:760px}
.v4-404 .eyebrow{margin:0}
.v4-404 h1{font-size:var(--t-h2)!important;line-height:1.08!important;color:var(--ink);margin:0;letter-spacing:-.025em;text-wrap:balance}
.v4-404 p{font-size:var(--t-lead);color:var(--body);max-width:560px;margin:0}
.v4-404 .v4-404-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
@media(max-width:760px){.v4-404{padding:72px 0 96px}}
