/* Accepted landing: Figma 740:16, Published 745:417 / 745:560 / 745:694. */
.page { display: none; }
html[data-page="landing"] #landing-page,
html[data-page="support"] #support-page,
html[data-page="privacy"] #privacy-page,
html[data-page="not-found"] #not-found-page { display: block; }
.site-header, .landing-container, .site-footer { max-width: 1440px; margin: 0 auto; padding-inline: 80px; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand, .site-footer .brand { font-size: 24px; gap: 8px; letter-spacing: -.5px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); font-size: 15px; text-decoration: none; }
.text-link:hover { color: var(--text); }
.landing-page main { max-width: none; padding: 0; }
.landing-page h1, .landing-page h2, .landing-page h3 { font-stretch: expanded; font-variation-settings: "wdth" 132; overflow-wrap: break-word; }
.landing-page h1 { font-size: 76px; line-height: 80px; letter-spacing: -1.5px; font-weight: 850; margin: 0 0 24px; }
.landing-page h1 span { color: var(--accent); }
.landing-page h2 { font-size: 52px; line-height: 58px; letter-spacing: -1px; font-weight: 750; margin: 0; }
.landing-page h3 { font-size: 40px; line-height: 46px; letter-spacing: -.6px; font-weight: 750; margin-bottom: 16px; }
.landing-page p:not(.eyebrow, .trademark) { color: var(--secondary); font-size: 19px; line-height: 29px; margin-bottom: 0; }
.landing-page .eyebrow, .privacy-page .eyebrow, .not-found-page .eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 1.2px; margin-bottom: 16px; }
.landing-page .lead { font-size: 20px; line-height: 30px; }
.store-link { display: inline-flex; padding: 5px; margin: 32px -5px -5px; border-radius: 17px; flex: none; }
.store-link img { display: block; width: auto; height: 52px; }
.store-link:focus-visible { outline-offset: 2px; }
.hero { display: grid; grid-template-columns: minmax(0, 580fr) minmax(0, 700fr); align-items: center; min-height: 784px; padding-block: 72px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 80px; }
.hero-art { position: relative; height: 640px; min-width: 0; isolation: isolate; }
.phone { position: relative; width: 280px; max-width: 100%; padding: 7px; border: 2px solid rgba(255,255,255,.22); border-radius: 48px; background: #080809; box-shadow: 0 30px 60px rgba(0,0,0,.55); flex: none; }
.phone img { display: block; width: 100%; height: auto; border-radius: 39px; }
.hero-front { width: 300px; position: absolute; left: 50%; top: 0; margin-left: -150px; z-index: 3; }
.hero-back { width: 250px; position: absolute; left: 57%; top: 70px; transform: rotate(-7deg); z-index: 1; }
.card { position: absolute; height: auto; width: 132px; z-index: 2; }
.card-six { left: 5%; top: 310px; transform: rotate(14deg); }
.card-ten { right: -1%; top: 400px; transform: rotate(-12deg); }
.glow { position: absolute; inset: 5% -5%; background: radial-gradient(ellipse, var(--table-top), rgba(26,4,8,.85) 55%, transparent 72%); z-index: -1; pointer-events: none; }
.hero-art .glow { inset: 0 -8%; }
.section-heading { margin-bottom: 64px; }
.ways { padding-top: 80px; padding-bottom: 96px; }
.way { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 520px); gap: 120px; justify-content: center; align-items: center; margin-top: 80px; }
.way-copy { min-width: 0; }
.phone-scene { display: grid; place-items: center; position: relative; isolation: isolate; min-width: 0; }
.way-3 { grid-template-columns: minmax(0, 520px) minmax(0, 460px); }
.way-3 .way-copy { order: 2; }
.way-3 .phone-scene { order: 1; }
.rules { padding-top: 96px; }
.rules .section-heading { margin-bottom: 40px; }
.rule-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.rule-card { min-width: 0; min-height: 640px; overflow: hidden; border-radius: 32px; background: var(--panel); display: flex; flex-direction: column; }
.rule-copy { padding: 36px 32px 0; min-height: 172px; min-width: 0; flex: none; }
.rule-copy .eyebrow { margin-bottom: 12px; }
.landing-page .rule-copy h3 { font-size: 28px; line-height: 34px; letter-spacing: -.4px; margin-bottom: 12px; }
.landing-page .rule-copy > p:last-child { font-size: 17px; line-height: 26px; }
/* Keep copy in normal flow; long or zoomed text moves the phone down (R1). */
/* The minimum copy height aligns all desktop phones at y=200.
   Taller copy grows the card instead of being clipped or covered. */
.rule-scene { position: relative; isolation: isolate; margin-top: 28px; display: flex; justify-content: center; height: 440px; flex: none; overflow: hidden; }
.rule-scene .phone { width: 260px; align-self: flex-start; }
.final-cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 160px; }
.final-cta .app-mark { width: 120px; height: 120px; border-radius: 34px; margin-bottom: 32px; }
.final-cta .app-mark img { width: 80px; height: 80px; }
.final-cta .support-link { margin-top: 32px; }
.site-footer { max-width: 1440px; display: block; padding-top: 32px; padding-bottom: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.site-footer .footer-row p { font-size: 13px; line-height: 20px; margin-top: 8px; }
.site-footer nav { display: flex; align-items: flex-start; gap: 24px; }
/* Language switcher, Figma «Landing / Language Switch» and «Landing / Language List» (v2). Works without JS. */
.site-footer nav { position: relative; flex-wrap: wrap; row-gap: 0; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 8px; margin-inline: -8px; color: var(--secondary); font-size: 15px; cursor: pointer; list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); }
.lang-switch svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lang-switch[open] .lang-chevron { transform: rotate(180deg); }
/* Anchored to the whole link group, so a switcher wrapped onto a second row never pushes the list off-screen. */
.lang-switch ul { position: absolute; bottom: calc(100% + 8px); inset-inline-end: -8px; z-index: 10; width: 360px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(8, auto); grid-auto-flow: column; margin: 0; padding: 8px; list-style: none; background: var(--panel); border: 1px solid var(--separator); border-radius: 16px; }
.lang-switch li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding-inline: 12px; border-radius: 10px; color: var(--secondary); font-size: 15px; text-decoration: none; }
.lang-switch li a:hover { color: var(--text); background: var(--tertiary); }
.lang-switch li a[aria-current] { color: var(--text); }
.lang-switch .lang-check { stroke: var(--accent); stroke-width: 1.75; }
.site-footer .trademark { color: var(--secondary); font-size: 12px; line-height: 18px; margin: 24px 0 0; }
.privacy-page main, .not-found-page main { padding-block: 80px; }
.privacy-page h1, .not-found-page h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.15; }
.privacy-page .button, .not-found-page .button { margin-top: 32px; }
.canonical-url { color: var(--secondary); overflow-wrap: anywhere; font-size: 13px; margin-top: 24px; }
@media (min-width: 960px) and (max-width: 1279px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-art { transform: scale(.85); transform-origin: center; }
  .hero-back { left: 48%; }
  .way { gap: 64px; }
}
@media (max-width: 959px) {
  .site-header, .landing-container, .site-footer { padding-inline: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 64px 0; min-height: 0; }
  .hero-copy { padding-bottom: 48px; }
  .hero-art { width: min(100%, 600px); justify-self: center; }
  .hero-back { display: none; }
  .hero-front { width: 268px; margin-left: -134px; }
  .way, .way-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .way-copy { order: 0 !important; }
  .way-3 .phone-scene { order: 0; }
  .rule-cards { grid-template-columns: minmax(0, 1fr); }
  .rule-scene .phone { width: 260px; }
  .final-cta { padding-block: 120px; }
}
@media (max-width: 699px) {
  .site-header, .landing-container, .site-footer { padding-inline: 20px; }
  .site-header { min-height: 72px; }
  .site-header .brand, .site-footer .brand { font-size: 22px; }
  .site-header .brand img, .site-footer .brand img { width: 28px; height: 28px; }
  .landing-page h1 { font-size: 40px; line-height: 44px; letter-spacing: -.8px; margin-bottom: 16px; }
  .landing-page h2 { font-size: 28px; line-height: 34px; letter-spacing: -.5px; }
  .landing-page h3 { font-size: 22px; line-height: 28px; letter-spacing: -.3px; margin-bottom: 12px; }
  .landing-page p:not(.eyebrow, .trademark), .landing-page .lead { font-size: 17px; line-height: 22px; }
  .landing-page .eyebrow { letter-spacing: .7px; margin-bottom: 12px; }
  .hero { padding-top: 24px; }
  .hero-copy { padding-bottom: 36px; }
  .hero-copy .store-link { margin-top: 28px; }
  .hero-art { height: 548px; }
  .hero-art .glow { inset: 0 -5%; }
  .hero-front { width: 236px; margin-left: -118px; border-radius: 40px; padding: 6px; }
  .hero-front img { border-radius: 32px; }
  .card { width: 92px; }
  .card-six { left: -2%; top: 260px; }
  .card-ten { right: -1%; top: 290px; }
  .ways { padding-top: 64px; padding-bottom: 0; }
  .section-heading { margin-bottom: 48px; max-width: 335px; }
  .way { margin-top: 48px; gap: 28px; }
  .phone-scene .phone { width: 220px; padding: 6px; border-radius: 38px; }
  .phone-scene .phone img { border-radius: 30px; }
  .rules { padding-top: 80px; }
  .rules .section-heading { margin-bottom: 24px; }
  .rule-cards { gap: 20px; }
  .rule-card { min-height: 470px; border-radius: 28px; }
  .rule-copy { padding: 24px 24px 0; min-height: 138px; }
  .landing-page .rule-copy h3 { font-size: 22px; line-height: 28px; }
  .landing-page .rule-copy > p:last-child { font-size: 17px; line-height: 22px; }
  .rule-scene { margin-top: 28px; padding-top: 0; height: 304px; }
  .rule-scene .phone { width: 210px; padding: 5px; border-radius: 36px; }
  .rule-scene .phone img { border-radius: 29px; }
  .final-cta { padding-block: 72px 80px; }
  .final-cta .app-mark { width: 88px; height: 88px; border-radius: 24px; margin-bottom: 24px; }
  .final-cta .app-mark img { width: 58px; height: 58px; }
  .final-cta .store-link { margin-top: 24px; }
  .final-cta .support-link { margin-top: 24px; }
  .footer-row { flex-direction: column; gap: 20px; }
  /* The list spans the content width above the footer links. */
  .lang-switch ul { inset-inline: 0; width: auto; }
  .site-footer .footer-row p { font-size: 13px; line-height: 20px; }
  .site-footer nav { gap: 24px; }
  .site-footer { padding-block: 28px; }
}
/* Content stays visible if JavaScript, the observer or motion support is absent. */
@media (prefers-reduced-motion: no-preference) {
  /* Hidden start, set by reveal.js before first paint; the same elements it observes. */
  .js-reveal :is(.reveal, .hero-copy > *, .hero-art .card, .hero-back, .glow):not(.is-revealing) { opacity: 0; }
  .is-revealing { animation: appear 600ms cubic-bezier(.22,1,.36,1) both; }
  .hero-copy > .is-revealing { animation-name: hero-appear; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .glow.is-revealing { animation: glow-appear 1000ms ease-out both; }
  .card.is-revealing { animation: card-appear 900ms cubic-bezier(.22,1,.36,1) 300ms both; }
  .card-six { --card-angle: 14deg; }
  .card-ten { --card-angle: -12deg; }
  .phone.is-revealing { animation-name: phone-appear; animation-duration: 800ms; animation-delay: 120ms; }
  .hero-front.is-revealing { animation-name: hero-phone-appear; animation-duration: 900ms; }
  .hero-back.is-revealing { animation: back-phone-appear 900ms cubic-bezier(.22,1,.36,1) 300ms both; }
  .way-copy.is-revealing, .section-heading.is-revealing { animation: none; }
  .way-copy.is-revealing > *, .section-heading.is-revealing > * { animation: appear 600ms cubic-bezier(.22,1,.36,1) both; }
  .way-copy.is-revealing > :nth-child(2), .section-heading.is-revealing > :nth-child(2) { animation-delay: 80ms; }
  .way-copy.is-revealing > :nth-child(3) { animation-delay: 160ms; }
  .rule-card:nth-child(2) { animation-delay: 100ms; }
  .rule-card:nth-child(3) { animation-delay: 200ms; }
  @keyframes glow-appear { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hero-appear { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes card-appear { from { opacity: 0; transform: rotate(0); } to { opacity: 1; transform: rotate(var(--card-angle)); } }
  @keyframes appear { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes hero-phone-appear { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes back-phone-appear { from { opacity: 0; transform: rotate(0); } to { opacity: 1; transform: rotate(-7deg); } }
  @keyframes phone-appear { from { opacity: 0; transform: translateY(48px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
/* Arabic (dir=rtl): grid and text mirror on their own; decorations take mirrored places and angles.
   Cursive and complex scripts lose letter spacing so their letters stay joined. */
[dir="rtl"] .hero-back { left: auto; right: 57%; transform: rotate(7deg); }
[dir="rtl"] .card-six { left: auto; right: 5%; transform: rotate(-14deg); --card-angle: -14deg; }
[dir="rtl"] .card-ten { right: auto; left: -1%; transform: rotate(12deg); --card-angle: 12deg; }
@media (min-width: 960px) and (max-width: 1279px) { [dir="rtl"] .hero-back { right: 48%; } }
@media (max-width: 699px) {
  [dir="rtl"] .card-six { right: -2%; }
  [dir="rtl"] .card-ten { left: -1%; }
}
@media (prefers-reduced-motion: no-preference) {
  [dir="rtl"] .hero-back.is-revealing { animation-name: back-phone-appear-rtl; }
  @keyframes back-phone-appear-rtl { from { opacity: 0; transform: rotate(0); } to { opacity: 1; transform: rotate(7deg); } }
}
:lang(ar) .landing-page :is(h1, h2, h3, .eyebrow, .brand), :lang(hi) .landing-page .eyebrow, :lang(th) .landing-page .eyebrow { letter-spacing: 0; }
