/* The home page (index.html). Phone first; wider screens add columns. */
:root { --bg: #F2EDE3; --fg: #1d1b26; --muted: #5E5873; --card: #FFFFFF; --line: rgba(29,27,38,.12); --pink: #FF48B0; --over: #3A1F74; --yolk: #FFD43B; --r: 22px; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); overflow-x: hidden; }
.wrap { width: min(1160px, 100% - 36px); }
.huge { font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: relative; z-index: 5; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--over); } .logo img { width: 32px; border-radius: 9px; }
.nav .links { display: none; } .nav .links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .get { background: var(--fg); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 99px; padding: 9px 14px; }

/* hero: lines running across, the card in front */
.hero { position: relative; padding: 4px 0 40px; overflow: hidden; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; }
.lines { display: grid; gap: 2px; }
.line { overflow: hidden; white-space: nowrap; }
.line .track { display: inline-flex; gap: .5em; animation: run var(--dur, 34s) linear infinite; }
.line.rev .track { animation-direction: reverse; }
.line span { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; padding-right: .5em; }
@keyframes run { from { translate: -50% 0; } to { translate: 0 0; } }
.l-faint span { font-size: clamp(30px, 8vw, 60px); color: transparent; -webkit-text-stroke: 1px rgba(58,31,116,.28); text-transform: uppercase; }
.l-en span { font-size: clamp(50px, 14vw, 132px); color: var(--over); text-transform: uppercase; }
.l-en2 span { font-size: clamp(50px, 14vw, 132px); color: var(--pink); text-transform: uppercase; }
.l-local span { font-size: clamp(44px, 12vw, 118px); color: var(--over); }
.l-local2 span { font-size: clamp(44px, 12vw, 118px); color: transparent; -webkit-text-stroke: 1.6px var(--pink); }
/* Ticker rows (home.js): small words and what they mean, running slowly in the space around the big lines */
.hero .lines { position: relative; z-index: 1; }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tick { position: absolute; left: 0; right: 0; height: 22px; line-height: 22px; white-space: nowrap; overflow: hidden; opacity: .3; font-size: 16px; font-weight: 500; color: #ABA4CB; }
.tick b { color: #9289B8; font-weight: 600; }
.tick em { font-style: normal; color: #E2A9CB; margin: 0 .9em; }
.tick .track { display: inline-flex; animation: run 120s linear infinite; }
.tick .track.rev { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .tick .track { animation: none; } }
/* A thin dark veil over the moving words (colours stay, they just step back); the card sits above it. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(20, 18, 30, .14); }
.hero .stage { position: relative; z-index: 3; width: min(560px, 100% - 28px); margin: 6px auto 4px; text-align: center; }
.lines-b { margin-top: 30px; }
.hero .stage .tap { position: absolute; left: 50%; translate: -50% 0; bottom: -30px; white-space: nowrap; font-size: 13px; font-weight: 700; color: #fff; background: rgba(28,24,48,.72); padding: 5px 12px; border-radius: 99px; }
.hero-under { text-align: center; padding: 26px 0 10px; }
.hero-under h1 { font-size: clamp(30px, 7.6vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: var(--over); }
.hero-under p { margin: 10px auto 0; max-width: 560px; font-size: 18px; line-height: 1.45; font-weight: 600; }
.hero-under .cta { margin-top: 20px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.hero-under .socials a { background: var(--over); color: #fff; }

/* value + the two step buttons */
.value { padding: 46px 0 30px; text-align: center; }
.value h2 { font-size: clamp(38px, 9.4vw, 90px); color: var(--over); }
.steps { margin-top: 24px; display: grid; gap: 12px; text-align: left; }
.steps a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--fg); background: #fff; border: 3px solid var(--fg); border-radius: 22px; padding: 14px 16px; box-shadow: 0 5px 0 var(--fg); transition: transform .12s, box-shadow .12s; }
.steps a:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--fg); } .steps a:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--fg); }
.steps .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-weight: 800; color: #fff; }
.steps a:first-child .n { background: var(--pink); } .steps a:last-child .n { background: var(--over); }
.steps b { display: block; font-size: 19px; font-weight: 800; line-height: 1.12; } .steps small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps .arr { font-size: 22px; font-weight: 800; }

/* the two parts */
.part { padding: 56px 0 10px; scroll-margin-top: 6px; }
.part .tagline { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.part .tagline span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-size: 16px; letter-spacing: 0; }
#learn .tagline span { background: var(--over); }
.part h2 { margin-top: 12px; font-size: clamp(36px, 8.6vw, 76px); color: var(--over); }
.part .sub { margin-top: 12px; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.part .sub b { color: var(--fg); }
.part .sub sup { color: var(--pink); }

/* examples (swipe on phones) */
.exs { margin: 22px -18px 0; padding: 0 18px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.exs::-webkit-scrollbar { display: none; }
.ex { scroll-snap-align: start; background: #fff; border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ex-where { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ex-src { font-size: 19px; font-weight: 700; line-height: 1.35; }
.ex span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.ex-g { color: var(--muted); margin-top: auto; } .ex-g p { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.ex-a { background: #FFE9F4; border-radius: 14px; padding: 10px 12px; } .ex-a span { color: var(--pink); } .ex-a p { font-weight: 700; }
.ex-g p, .ex-a p { font-size: 15px; line-height: 1.4; }
.swipe { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* list + one big phone (the Calm list) */
.sw { margin-top: 30px; display: grid; gap: 10px; }
.sw-item { font: inherit; text-align: left; color: inherit; cursor: pointer; border: 0; background: #fff; border-radius: var(--r); padding: 16px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; transition: background .2s, color .2s; }
.sw-item .n { font-weight: 800; font-size: 13px; color: var(--muted); }
.sw-item b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.sw-item small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.sw-item .chev { font-size: 18px; color: var(--muted); transition: rotate .2s; }
.sw-item.on { background: var(--fg); color: #fff; } .sw-item.on small { color: rgba(255,255,255,.72); } .sw-item.on .n { color: var(--pink); } .sw-item.on .chev { color: #fff; rotate: 90deg; }
.soon { font-style: normal; font-size: 11px; vertical-align: 2px; margin-left: 6px; padding: 3px 7px; border-radius: 99px; background: var(--pink); color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.sw-stage { display: grid; justify-items: center; gap: 10px; padding: 6px 0 12px; }
.sw-desc { display: none; }
.sw.is-phone { gap: 0; margin-top: 16px; }
.sw.is-phone .sw-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 4px; scroll-snap-type: x proximity; scroll-padding-inline: 18px; }
.sw.is-phone .sw-list::-webkit-scrollbar { display: none; }
.sw.is-phone .sw-item { flex: none; display: block; padding: 11px 16px; border-radius: 99px; scroll-snap-align: start; box-shadow: inset 0 0 0 1.5px var(--line); }
.sw.is-phone .sw-item.on { box-shadow: none; }
.sw.is-phone .sw-item .n, .sw.is-phone .sw-item small, .sw.is-phone .sw-item .chev { display: none; }
.sw.is-phone .sw-item b { font-size: 15px; white-space: nowrap; }
.sw.is-phone .sw-desc { display: block; margin: 14px 2px 0; font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--muted); min-height: 46px; }
.sw.is-phone .sw-stage { padding-top: 14px; }
.lockrow { display: contents; }
.sw-cap { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; max-width: 320px; }
.ph { --w: min(310px, 80vw); position: relative; }
.ph video, .ph img { position: absolute; inset: calc(var(--w) * .032); width: calc(100% - var(--w) * .064); height: calc(100% - var(--w) * .064); object-fit: cover; border-radius: calc(var(--w) * .125); background: #000; }
.ph img { opacity: 0; transition: opacity .45s; } .ph img.on { opacity: 1; }

/* bento */
.bento { padding: 64px 0 30px; }
.bento h2 { font-size: clamp(34px, 8vw, 70px); color: var(--over); }
.bento .grid { margin-top: 22px; display: grid; grid-template-columns: 1fr; grid-auto-rows: 250px; gap: 12px; grid-auto-flow: dense; }
.b { border-radius: 26px; background: #fff; padding: 22px; overflow: hidden; position: relative; }
.b h4 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; } .b p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.4; max-width: 62%; }
.b.tall { grid-row: span 2; } .b.blue { background: #DCE5FA; grid-row: span 2; } .b.pink { background: #FFE0F0; } .b.yolk { background: #FFF1B8; } .b.mint { background: #D4F5E2; } .b.lav { background: #E4DDF1; } .b.dark { background: #1C1830; color: #fff; } .b.dark p { color: rgba(255,255,255,.7); }
.b .ph { --w: 220px; position: absolute; left: 50%; translate: -50% 0; bottom: -120px; }
.b .ph img { opacity: 1; }
.lock { position: absolute; left: 22px; bottom: -40px; width: 200px; height: 165px; border-radius: 30px 30px 0 0; background: linear-gradient(#5D7BD0, #2C4B98); padding: 18px 14px; text-align: center; color: #fff; }
.lock .t { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; } .lock .d { font-size: 11px; font-weight: 600; opacity: .85; }
.lock .ctrls { position: absolute; bottom: 52px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.lock .ctrls i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-style: normal; font-size: 18px; } .lock .ctrls i.ar { background: #fff; } .lock .ctrls i.ar img { width: 26px; border-radius: 6px; }
.widget { position: absolute; right: 20px; bottom: 150px; width: 124px; height: 124px; border-radius: 28px; background: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.25); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 12px; color: var(--over); } .widget img { width: 60px; margin: 0 auto 3px; }
.sel { margin-top: 14px; background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.5; box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); } .sel mark { background: #B9D3FF; }
.menu { display: inline-flex; margin-top: 10px; background: #2b2b2e; color: #fff; border-radius: 10px; font-size: 13px; overflow: hidden; } .menu span { padding: 7px 11px; border-right: 1px solid #444; } .menu span.on { background: var(--pink); }
.hist { margin-top: 12px; display: grid; gap: 6px; } .hist div { background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; } .hist small { color: var(--muted); }
.langs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; } .langs span { background: var(--bg); border-radius: 99px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.bignum { position: absolute; left: 22px; bottom: 16px; font-size: 84px; font-weight: 800; letter-spacing: -.05em; color: var(--pink); line-height: 1; } .bignum small { display: block; font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.b .pic { position: absolute; right: 10px; bottom: -6px; width: 96px; }
.b.dark p, .b.lav p, .b.yolk p { max-width: 56%; }
.b .mascot { position: absolute; right: 6px; bottom: -8px; --s: 128px; }
@media (max-width: 899px) {
  .bento .grid { grid-auto-rows: auto; }
  .b { min-height: 210px; }
  .b.blue, .b.tall { grid-row: auto; }
  .b.blue p, .b.tall p { max-width: none; }
  .b.blue .lockrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px -4px -22px; }
  .b.blue .lock { position: relative; left: auto; right: auto; bottom: auto; width: 62%; height: 150px; flex: none; }
  .b.blue .widget { position: relative; right: auto; bottom: auto; width: 31%; height: auto; aspect-ratio: 1; margin-bottom: 22px; flex: none; }
  .b.tall { padding-bottom: 0; }
  .b .bignum { position: static; margin-top: 14px; }
  .b.tall .ph { position: relative; left: auto; bottom: auto; translate: none; --w: 230px; margin: 20px auto -210px; }
}

/* The name: "arrivant" as one of the app's flashcards (tap to flip; the speaker says it in French) */
.say { flex: none; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.say svg { width: 19px; height: 19px; fill: currentColor; }
.say:hover { color: var(--over); } .no-say .say { display: none; }
.nm { display: grid; padding: 30px 0 70px; gap: 30px; }
.nm h2 { font-size: clamp(36px, 8.6vw, 76px); color: var(--over); }
.nm-txt p { text-wrap: pretty; margin-top: 12px; max-width: 460px; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.nm-stage { position: relative; width: min(360px, 100%); margin: 0 auto; padding-bottom: 44px; }
.fc { position: relative; height: 340px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .3, 1); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; outline: none; }
.fc.flip { transform: rotateY(180deg); }
.fc:focus-visible .fc-face { box-shadow: 0 0 0 3px var(--pink); }
.fc-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px; border-radius: 26px; background: #FBF8F1; border: 1px solid #E2DACB; box-shadow: 0 8px 32px rgba(38,34,65,.10); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fc-face .say { position: absolute; top: 6px; left: 6px; }
.fc-front { align-items: center; justify-content: center; gap: 8px; }
.fc-front b { font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.fc-front small { font-size: 14px; color: #9B94A8; }
.fc-lang { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 5px 9px; }
.fc-back { transform: rotateY(180deg); gap: 8px; }
.fc-back > small { margin-top: 36px; font-size: 24px; font-weight: 800; color: var(--muted); }
.fc-back > b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fc-ex { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 15px; line-height: 1.4; }
.fc-ex span, .fc-ex em { display: block; } .fc-ex em { font-style: normal; color: var(--muted); }
.fc-note { font-size: 13px; color: var(--muted); } .fc-note i { font-style: italic; }
.nm-stage .tap { position: absolute; left: 50%; translate: -50% 0; bottom: 0; white-space: nowrap; font-size: 13px; font-weight: 700; color: #fff; background: rgba(28,24,48,.72); padding: 5px 12px; border-radius: 99px; }
.nm-stage .mascot { position: absolute; z-index: 2; --s: 140px; right: -34px; bottom: 14px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fc { transition: none; } }

/* faq */
.faq { padding: 46px 0 50px; }
.faq h2 { font-size: clamp(32px, 7.6vw, 60px); color: var(--over); margin-bottom: 12px; }
details { border-top: 2px solid var(--fg); padding: 16px 0; } details:last-child { border-bottom: 2px solid var(--fg); }
summary { font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; } summary::after { content: "+"; color: var(--pink); }
details[open] summary::after { content: "–"; }
details p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ending */
.end { padding: 10px 0 56px; }
.end-box { border-radius: 30px; padding: 30px 22px; display: grid; gap: 26px; background: var(--over); color: #fff; overflow: hidden; }
.end-box h2 { font-size: clamp(34px, 8vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.end-box p { margin-top: 8px; font-size: 17px; color: rgba(255,255,255,.75); }
.end-row { margin-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qr { display: none; width: 88px; height: 88px; background: #fff; border-radius: 14px; padding: 6px; } .qr-t { display: none; font-size: 13px; color: rgba(255,255,255,.7); max-width: 90px; }

footer { background: #1d1b26; color: #fff; padding: 34px 0 30px; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
footer a { color: #fff; margin-right: 16px; font-weight: 600; } footer .socials a { background: rgba(255,255,255,.14); margin: 0; }
footer .fn { margin-top: 14px; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.6); }

/* preview control (not part of the design) */
/* Preview only (?preview, or off the live site): pretend to be in another country */
.pv { display: none; position: fixed; right: 12px; bottom: 12px; z-index: 90; font: 600 12px/1 var(--font); }
.show-pv .pv { display: block; }
.pv select { font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: #111; border: 0; border-radius: 99px; padding: 9px 30px 9px 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }

@media (min-width: 900px) {
  .nav .links { display: flex; gap: 24px; }
  .hero { padding-bottom: 60px; }
  .hero .lines-b { margin-top: 2px; }
  .hero .stage { position: absolute; left: 50%; top: calc(50% - 30px); translate: -50% -50%; width: 520px; margin: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; } .steps a { padding: 18px 20px; } .steps b { font-size: 22px; }
  .part { padding: 90px 0 10px; }
  .exs { margin: 26px 0 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } .swipe { display: none; }
  .sw { grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 40px; }
  .sw-list { display: grid; gap: 10px; align-content: center; }
  .sw-item { padding: 20px 22px; } .sw-item b { font-size: 21px; }
  .sw-stage { padding: 0; } .sw-stage .ph { --w: 340px; }
  .bento .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 16px; }
  .b.w2 { grid-column: span 2; } .b.blue { grid-row: span 1; } .b p { max-width: 300px; }
  .b.blue .lock { left: auto; right: 168px; height: 160px; } .b.blue .widget { bottom: 20px; }
  .b .ph { bottom: -90px; }
  .b .pic { width: 140px; } .b .mascot { --s: 210px; right: 30px; }
  .nm { grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
  .nm-stage { width: 380px; } .fc { height: 380px; } .nm-stage .mascot { --s: 180px; right: -120px; bottom: 30px; }
  .faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
  .end-box { grid-template-columns: 1fr 1fr; align-items: center; padding: 56px; }
  .qr, .qr-t { display: block; }
}
