/* Cinematic study: full-bleed imagery, quiet controls, original Rydr identity. */
:root { color-scheme: dark; --text: #eef3fa; --muted: #b0bfd4; --muted-soft: #8fa1bb; --blue-bright: #96baff; }
body { background: #0b1a30; }
body::before, main::before { display: none; }
.site-header { top: 18px; left: 44px; right: 44px; min-height: 52px; padding: 0; }
.brand img { width: 106px; filter: none; }
.site-nav { font-size: 15px; }
.site-nav .rydr-language-toggle { font-size: 14px; }
.nav-links { position: relative; gap: clamp(48px, 4.5vw, 72px); }
.nav-links a { position: relative; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; border-radius: 2px; background: rgba(228,237,249,.58); transform: scaleX(0); transform-origin: right center; transition: transform 420ms cubic-bezier(.22,1,.36,1); pointer-events: none; }
@media (hover: hover) {
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-links:has(a:hover) .nav-underline { opacity: 0 !important; }
}
.nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links:has(a:focus-visible) .nav-underline { opacity: 0 !important; }
.nav-underline { position: absolute; top: 0; left: 0; width: 0; height: 1px; border-radius: 2px; background: rgba(228,237,249,.58); opacity: 0; pointer-events: none; transition: transform 450ms cubic-bezier(.22,1,.36,1), width 450ms cubic-bezier(.22,1,.36,1), opacity 220ms ease; }
.nav-links a, .login-link { color: #e4edf9; text-shadow: 0 2px 10px rgba(5,16,35,.28); }
.site-nav .nav-cta { min-width: 132px; padding: 9px 18px; background: rgba(154,185,226,.09); border-color: rgba(232,241,255,.2); box-shadow: none; font-size: 14px; }
.nav-account-actions { gap: 20px; }
/* Keep the title image behind the connected content as it scrolls over it. */
.hero-campaign.cinema-hero { position: sticky; top: min(0px, calc(100svh - 720px)); min-height: max(720px, 100svh); background: #253f65; }
.cinema-hero .hero-campaign-media { position: absolute; inset: 0; transform: none; }
.cinema-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cinema-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12,28,51,.48), transparent 35%, rgba(5,15,29,.2) 52%, rgba(5,15,29,.86) 100%), linear-gradient(90deg, rgba(8,22,42,.24), transparent 68%); }
.cinema-hero .hero-campaign-copy { position: absolute; z-index: 2; top: auto; left: 44px; bottom: 80px; width: min(730px, 62vw); transform: none; }
.cinema-hero .hero-campaign-copy .eyebrow { margin: 24px 0 16px; color: #cfdbeb; font-size: 13px; line-height: 1.5; }
.cinema-hero .hero-campaign-copy h1 { margin: 0 0 14px; font-size: clamp(54px, 6vw, 92px); line-height: 1.02; text-shadow: none; }
.cinema-hero .hero-campaign-copy h1 em { color: #f5f8fc; }
.cinema-hero .hero-campaign-copy > p:not(.eyebrow) { max-width: 640px; margin: 0; color: #d1dbea; font-size: 17px; line-height: 1.65; text-shadow: none; }
.cinema-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.cinema-actions .button { width: auto; min-height: 44px; padding: 0 23px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: none; }
.cinema-actions .button-primary { color: #142b4b; background: #e6edf7; border: 1px solid #e6edf7; }
.cinema-actions .button-primary:hover { background: #fff; border-color: #fff; box-shadow: none; }
.cinema-actions .button-secondary { color: #e6edf7; background: rgba(15,36,65,.08); border-color: rgba(220,232,251,.45); }
.cinema-actions .button-secondary:hover { background: rgba(150,180,225,.15); }
.site-content { background: linear-gradient(180deg, #0b1a30, #122b4b 47%, #0b1a30); box-shadow: none; }
.reveal, .product-section-visual.reveal { opacity: 1; transform: none; }
.about-rydr { padding-top: 100px; }
.about-copy p { font-size: 18px; }
.about-copy .about-copy-lead { font-size: 24px; }
.about-lead h2, .download-section h2 { font-size: clamp(46px, 5.8vw, 78px); }
.eyebrow, .solution-topline > span { font-size: 13px; }
.product-section-copy h3 { font-size: clamp(42px, 4.7vw, 70px); }
.corporate-section .product-section-copy { container-type: inline-size; }
.corporate-section .product-section-copy h3 { white-space: nowrap; font-size: clamp(28px, 4.4vw, 62px); font-size: clamp(28px, 14cqi, 70px); }
.product-section-copy > p, .download-section > p:not(.eyebrow) { font-size: 20px; }
.product-section-copy li { font-size: 17px; }
.product-section-copy > .button, .download-actions .button { font-size: 17px; }
.footer-links { font-size: 16px; }
.footer-links > a,
.footer-links > [data-cookie-settings] { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { font-size: 14px; }
.value-grid { margin-top: 38px; border-top: 0; border-bottom: 1px solid rgba(173,197,234,.2); scroll-margin-top: 110px; }
.value-grid .value-card { position: relative; align-items: center; min-height: 0; padding: 0 30px 48px; border: 0; text-align: center; }
.value-grid .value-icon { display: grid; place-items: center; width: 104px; height: 104px; margin-bottom: 28px; border-radius: 50%; color: #8db4ff; background: rgba(125,165,226,.1); transition: color 300ms ease, background-color 300ms ease; }
.value-icon svg { width: 50px; height: 50px; }
.value-grid .value-card h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.025em; transition: color 300ms ease; }
.value-grid .value-card p { max-width: 280px; font-size: 17px; line-height: 1.55; }
.value-grid .value-card::after { content: ''; position: absolute; bottom: -1px; left: 12%; right: 12%; height: 2px; background: #477dff; transform: scaleX(0); transform-origin: left center; transition: transform 450ms cubic-bezier(.22,1,.36,1); }
@media (hover: hover) {
  .value-grid .value-card:hover .value-icon { color: #fff; background: #477dff; }
  .value-grid .value-card:hover h3 { color: #96baff; }
  .value-grid .value-card:hover::after { transform: scaleX(1); }
}
.product-section { padding-block: 64px; }
.product-section-copy > .button, .download-actions .button { border-radius: 999px; }
.product-section-visual { box-shadow: 0 24px 60px rgba(0,8,24,.2); }
.club-section .product-section-visual { border-radius: 26px; }
.club-section .product-section-visual > img { display: block; height: 100%; margin-top: 0; transform: none; }
.download-section { border-radius: 30px; box-shadow: none; }
.site-footer { background: #0b1a30; }
a:focus-visible, button:focus-visible { outline: 2px solid #b9d0ff; outline-offset: 5px; }
@media (max-width: 1000px) and (min-width: 721px) {
  .site-header { left: 28px; right: 28px; grid-template-columns: auto 1fr auto; column-gap: 20px; }
  .site-nav { font-size: 14px; }
  .nav-links { gap: 32px; }
  .nav-account-actions { gap: 12px; }
  .site-nav .nav-cta { min-width: 0; padding-inline: 14px; font-size: 13px; }
  .cinema-hero .hero-campaign-copy { left: 28px; width: 75vw; }
}
@media (max-width: 720px) {
  .value-grid { gap: 36px; margin-top: 12px; border-bottom: 0; }
  .value-grid .value-card { padding: 0 20px 32px; border-bottom: 1px solid rgba(173,197,234,.2); }
  .value-grid .value-icon { width: 88px; height: 88px; margin-bottom: 20px; }
  .value-icon svg { width: 44px; height: 44px; }
  .site-header { left: 8px; right: 8px; top: 8px; padding: 8px 10px 8px 16px; min-height: 60px; }
  .site-nav { font-size: 18px; }
  .nav-links, .nav-account-actions { gap: 0; }
  .site-nav .nav-cta { min-width: 0; font-size: 18px; }
  .hero-campaign.cinema-hero { top: min(0px, calc(100svh - 660px)); min-height: max(660px, 100svh); padding: 0; }
  .cinema-hero .hero-campaign-media { position: absolute; width: 100%; height: 100%; aspect-ratio: auto; }
  .cinema-backdrop { object-position: 65% center !important; }
  .cinema-hero .hero-campaign-copy { left: 24px; right: 24px; bottom: 60px; width: auto; padding: 0; }
  .cinema-hero .hero-campaign-copy h1 { font-size: clamp(42px, 10.5vw, 66px); }
  .cinema-hero .hero-campaign-copy .eyebrow { font-size: 12px; margin-top: 18px; }
  .cinema-hero .hero-campaign-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.5; }
  .cinema-actions { gap: 10px; }
  .cinema-actions .button { padding-inline: 17px; font-size: 13px; }
  .about-lead h2 { font-size: clamp(33px, 9.5vw, 44px); }
  .about-copy .about-copy-lead { font-size: 21px; }
  .product-section-copy h3 { font-size: 43px; }
  .product-section-copy > p, .download-section > p:not(.eyebrow) { font-size: 18px; }
  .download-section h2 { font-size: 45px; }
}

@media (min-width: 721px) and (max-width: 820px) { .nav-links { gap: 24px; } }

/* Public-site mobile layout; shared account styles are not changed. */
@media (max-width: 920px) {
  :root {
    --mobile-header-x: max(12px, env(safe-area-inset-left));
    --mobile-header-y: max(8px, env(safe-area-inset-top));
  }
  html.navigation-open, html.navigation-open body { overflow: hidden; overscroll-behavior: none; }
  .site-header {
    display: flex;
    left: var(--mobile-header-x);
    right: max(12px, env(safe-area-inset-right));
    top: var(--mobile-header-y);
    min-height: 60px;
    padding: 8px 10px 8px 12px;
  }
  .brand { position: relative; z-index: 2; }
  .menu-toggle { position: relative; z-index: 2; display: grid; place-content: center; flex: 0 0 44px; min-height: 44px; margin-left: auto; cursor: pointer; }
  .menu-toggle span { margin: 3px 0; }
  .menu-open .site-header { transform: none !important; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    z-index: 1;
    top: calc(0px - var(--mobile-header-y));
    left: calc(0px - var(--mobile-header-x));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100vw;
    height: 100svh;
    height: 100dvh;
    padding: calc(96px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(145deg, #08192d, #10264d);
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 280ms ease, visibility 280ms;
  }
  .menu-open .site-nav { visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links, .nav-account-actions { display: flex; flex-direction: column; align-items: stretch; flex-shrink: 0; gap: 0; width: 100%; }
  .nav-links a { min-height: 56px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 21px; }
  .nav-links a::after { bottom: 0; }
  .site-nav .nav-cta { width: 100%; min-width: 0; min-height: 48px; margin-top: 12px; padding: 12px 20px; font-size: 18px; }
  .site-nav .rydr-language-toggle { align-self: flex-start; min-width: 48px; min-height: 48px; font-size: 16px; text-align: left; }
  .site-nav a, .site-nav button, .menu-toggle { touch-action: manipulation; }
  .about-lead, .about-copy, .product-section-copy { min-width: 0; }
  .cinema-actions { flex-wrap: wrap; }
  .product-section-copy > .button { min-height: 48px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 40px); }
  .hero-campaign.cinema-hero {
    top: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: max(120px, calc(100px + env(safe-area-inset-top))) 20px max(36px, calc(24px + env(safe-area-inset-bottom)));
  }
  .cinema-hero .hero-campaign-copy { position: relative; inset: auto; flex: 0 0 auto; width: 100%; max-width: 540px; padding: 0; }
  .cinema-backdrop { object-position: 95% center !important; }
  .cinema-hero .hero-campaign-copy h1 { font-size: clamp(46px, 12vw, 64px); }
  .cinema-hero .hero-campaign-copy .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .cinema-hero .hero-campaign-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.6; }
  .cinema-actions { gap: 10px; margin-top: 22px; }
  .cinema-actions .button { flex: 1 1 140px; min-width: 0; min-height: 48px; padding: 12px 14px; font-size: 14px; }
  .about-rydr { padding-block: 84px 48px; gap: 26px; }
  .about-lead h2 { font-size: clamp(28px, 8.6vw, 42px); line-height: 1.1; }
  .about-lead h2 span { white-space: normal !important; }
  .about-copy .about-copy-lead { font-size: 20px; line-height: 1.55; }
  .about-copy p { font-size: 16px; line-height: 1.65; }
  .value-grid { gap: 24px; margin-top: 14px; }
  .value-grid .value-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 8px 18px; padding: 0 0 24px; text-align: left; }
  .value-grid .value-icon { grid-column: 1; grid-row: 1 / 3; width: 64px; height: 64px; margin: 0; }
  .value-icon svg { width: 34px; height: 34px; }
  .value-grid .value-card h3 { grid-column: 2; margin: 3px 0 0; font-size: 21px; }
  .value-grid .value-card p { grid-column: 2; max-width: none; margin: 0; font-size: 16px; }
  .product-section { padding-block: 44px; }
  .product-section-inner, .club-section .product-section-inner { gap: 28px; }
  .product-section-copy, .club-section .product-section-copy { padding-block: 0; }
  .product-section-copy h3 { margin: 20px 0 18px; font-size: clamp(34px, 10vw, 43px); }
  .corporate-section .product-section-copy h3 { font-size: clamp(28px, 10vw, 44px); font-size: clamp(28px, 12.4cqi, 44px); }
  .product-section-copy > p { font-size: 17px; line-height: 1.6; }
  .product-section-copy ul { margin: 24px 0 28px; padding-top: 20px; gap: 13px; }
  .product-section-copy li { font-size: 16px; }
  .product-section-copy > .button { width: 100%; min-width: 0; min-height: 48px; padding-inline: 16px; font-size: 16px; }
  .corporate-section .product-section-visual.corporate-network { width: min(390px, 100%); }
  .club-section .product-section-visual { width: min(390px, 100%); }
  .download-section { width: var(--shell); min-height: 0; margin: 32px auto 56px; padding: 52px 20px; }
  .download-section h2 { font-size: clamp(29px, 8.5vw, 40px); line-height: 1.1; }
  .download-section > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }
  .download-actions { width: 100%; gap: 12px; }
  .download-actions .button { width: 100%; min-width: 0; min-height: 48px; padding-inline: 12px; font-size: 16px; }
  .site-footer { padding: 40px 20px max(28px, env(safe-area-inset-bottom)); gap: 24px; }
  .footer-links { gap: 4px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .copyright { line-height: 1.6; }
}

@media (max-width: 920px) and (max-height: 520px) {
  .hero-campaign.cinema-hero { position: relative; top: auto; min-height: 520px; }
}
