/* Road Signs landing page. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url(fonts/plex-sans-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-cyrillic-600.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(fonts/plex-mono-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF; }
@font-face { font-family: "IBM Plex Sans JP"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-jp-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-kr-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans SC"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-sc-600.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans TC"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-tc-600.woff2) format("woff2"); }

:root {
  --bg: #F3F3F1; --surface: #FFFFFF; --ink: #0E0E10; --ink2: #4F5055; --line: #D5D5D1; --line2: #E2E2DE;
  --accent: #D12F14; --accentInk: #A82410; --accentDark: #FF6B50; --paper: #F4F1EA; --stamp: #B3121F; --onDark: #F5F5F4;
  --sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: var(--accentInk); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.mark { display: block; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; }
:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--sans); }
:lang(ja) { font-family: "IBM Plex Sans JP", var(--sans); }
:lang(ko) { font-family: "IBM Plex Sans KR", var(--sans); }
:lang(zh), :lang(zh-Hans) { font-family: "IBM Plex Sans SC", var(--sans); }
:lang(zh-Hant) { font-family: "IBM Plex Sans TC", var(--sans); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(243, 243, 241, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(14, 14, 16, .06); }
.nav-in { padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--accentInk); }
.nav-links .nav-cta { display: flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; transition: transform .2s, box-shadow .2s; }
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(14, 14, 16, .5); color: #fff; }

/* hero */
.hero { padding: 48px 24px 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.accent { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink2); max-width: 520px; text-wrap: pretty; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; scroll-margin-top: 120px; }
.store { box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 20px 0 16px; border-radius: 14px; background: var(--ink); color: #fff; transition: transform .2s, box-shadow .2s; }
.store:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(14, 14, 16, .55); color: #fff; }
.store-icon { display: block; flex: none; width: 26px; height: 26px; }
.store-icon.store-google { width: 24px; height: 24px; }
.store-text { display: flex; flex-direction: column; }
.store-small { font-size: 12px; opacity: .8; line-height: 1.2; }
.store-big { font-size: 19px; font-weight: 700; line-height: 1.1; }
.store-sm { gap: 8px; min-height: 46px; padding: 0 16px 0 13px; border-radius: 11px; }
.store-sm:hover { transform: translateY(-2px); box-shadow: none; }
.store-sm .store-icon { width: 21px; height: 21px; }
.store-sm .store-icon.store-google { width: 19px; height: 19px; }
.store-sm .store-small { font-size: 10px; }
.store-sm .store-big { font-size: 15px; }
.facts { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.hero-phones { display: flex; justify-content: center; min-height: 600px; position: relative; }
.float-a { width: 316px; height: 668px; flex: none; position: relative; z-index: 2; }

/* phones: the design's 410 x 864 phone, scaled down */
.phone { flex: none; position: relative; }
.phone-scale { width: 410px; height: 864px; transform-origin: top left; }
/* the launch film in the design's phone (same screen, radius, bezel and island as phones.css) */
.film-bezel { display: inline-block; padding: 10px; }
.film-screen { width: 390px; height: 844px; border-radius: 50px; overflow: hidden; position: relative; background: #F3F3F1; box-shadow: 0 0 0 9px #0D0D0F, 0 0 0 10px #3A3B40, 0 40px 80px -30px rgba(10, 10, 14, .45); }
.film { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.film-island { position: absolute; top: 11px; left: 50%; margin-left: -62px; width: 124px; height: 36px; border-radius: 20px; background: #000; }
.phone-app [hidden] { display: none !important; }
.phone-app [data-state]:focus { outline: none; }
.phone-app [role="button"] { cursor: pointer; }
.phone-app [role="button"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* "Explained in" band */
.band { background: var(--ink); color: var(--onDark); overflow: hidden; }
.band-in { display: flex; align-items: baseline; gap: 16px 32px; padding: 34px 24px; font-size: 18px; font-weight: 600; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.band-label { font-size: 13px; color: var(--accentDark); font-weight: 600; flex: none; }
/* every language at once, wrapping onto more lines on narrow screens (no marquee) */
.langs { display: flex; flex-wrap: wrap; gap: 18px 40px; flex: 1; min-width: 0; }
.langs li { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.lang-parts { display: inline-flex; align-items: center; }
.lang-parts .flag { margin-inline: 8px 6px; }
.flag { display: block; width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); flex: none; }

/* sections */
.features { padding: 104px 24px; display: flex; flex-direction: column; gap: 104px; }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.feature-text { display: flex; flex-direction: column; gap: 16px; }
.order-2 { order: 2; }
.kicker { font-size: 13px; font-weight: 600; color: var(--accentInk); }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.body { font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 500px; text-wrap: pretty; }
.feature-phone { display: flex; justify-content: center; }

/* diagonal rows of signs behind every phone, drifting in alternating directions */
.feature-phone { position: relative; isolation: isolate; }
.feature-phone > :not(.sign-rows) { position: relative; z-index: 1; }
.sign-rows { position: absolute; inset: -40px 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 30%, transparent 100%); }
.rows-tilt { position: absolute; left: 50%; top: 50%; width: 1400px; display: flex; flex-direction: column; gap: 26px; transform: translate(-50%, -50%) rotate(-18deg); }
.sign-row { display: flex; }
.row-track { display: flex; gap: 22px; flex: none; animation: rows-drift 90s linear infinite; }
.sign-row:nth-child(even) .row-track { animation-direction: reverse; animation-duration: 110s; }
.row-tile { width: 76px; height: 76px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: #E6E6E2; box-shadow: inset 0 0 0 1px rgba(14, 14, 16, .05); }
.row-tile img { width: 48px; height: 48px; object-fit: contain; opacity: .9; }
@keyframes rows-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .row-track { animation: none; } }
.lift { transition: transform .35s; }
.lift:hover { transform: translateY(-6px); }

.progress { background: var(--surface); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.split { padding: 104px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 20px; background: var(--bg); color: var(--ink); }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; }
.badge { display: block; flex: none; overflow: visible; }
.badge-label { font-size: 11px; font-weight: 600; color: var(--ink2); font-family: var(--mono); }
.ach-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink2); }

/* finish a country */
.country .country-text { gap: 16px; order: 1; }
.cards { display: flex; justify-content: center; align-items: center; min-height: 420px; position: relative; order: 2; }
.card { width: 252px; height: 315px; flex: none; position: relative; transition: transform .4s; }
.card-light { transform: rotate(-6deg); z-index: 2; box-shadow: 0 30px 60px -30px rgba(14, 14, 16, .45); }
.card-light:hover { transform: rotate(-2deg) translateY(-8px); }
.card-dark { transform: rotate(7deg); margin-inline-start: -70px; margin-top: 60px; z-index: 1; box-shadow: 0 30px 60px -30px rgba(14, 14, 16, .55); }
.card-dark:hover { transform: rotate(3deg) translateY(-8px); z-index: 3; }
.card-scale { width: 360px; height: 450px; transform: scale(.7); transform-origin: top left; }
/* the overlapping pair is ~434px wide: shrink it on phones so the page never scrolls sideways */
@media (max-width: 480px) { .cards { zoom: .8; } }
.card-in { box-sizing: border-box; width: 360px; height: 450px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.card-light .card-in { padding: 30px; background: var(--paper); color: var(--ink); justify-content: space-between; }
.card-dark .card-in { padding: 22px; background: var(--ink); color: var(--onDark); gap: 16px; }
.card-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(14, 14, 16, .035) 0 1px, transparent 1px 28px); }
.card-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.card-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.card-code { font-size: 12px; color: var(--ink2); }
.card-stamp { position: relative; display: flex; justify-content: flex-end; padding-inline-end: 6px; }
.stamp { box-sizing: border-box; width: 180px; height: 180px; border-radius: 50%; border: 3px solid var(--stamp); padding: 4px; transform: rotate(-14deg); }
.stamp-in { box-sizing: border-box; width: 100%; height: 100%; border-radius: 50%; border: 1.5px dashed var(--stamp); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--stamp); text-align: center; }
.stamp-mono { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.stamp-num { font-size: 43px; font-weight: 700; line-height: .95; }
.stamp-date { font-family: var(--mono); font-size: 11px; }
.stamp-sm { width: 132px; height: 132px; }
.stamp-sm .stamp-in { gap: 3px; }
.stamp-sm .stamp-mono { font-size: 10px; }
.stamp-sm .stamp-num { font-size: 31px; }
.card-bottom { position: relative; display: flex; flex-direction: column; gap: 6px; }
.card-name { display: flex; align-items: center; gap: 12px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.flag { font-size: 32px; line-height: 1; letter-spacing: 0; font-weight: 400; }
.card-line { font-size: 17px; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; }
.card-meta .muted { color: var(--ink2); }
.card-meta .strong { font-weight: 600; }
.card-bottom-dark { margin-top: auto; }
.card-bottom-dark .card-name { gap: 10px; font-size: 32px; }
.card-bottom-dark .flag { font-size: 28px; }
.card-bottom-dark .card-line { font-size: 15px; }
.card-bottom-dark .card-meta { margin-top: 6px; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.tile { aspect-ratio: 1; border-radius: 10px; background: #36383D; display: flex; align-items: center; justify-content: center; }
.tile img { display: block; width: 52px; height: 52px; object-fit: contain; }
.collage-stamp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stamp-ring { background: var(--paper); border-radius: 50%; padding: 6px; display: flex; }

/* price */
.price { padding: 0 24px 104px; }
.price h2 { margin-bottom: 28px; text-wrap: initial; line-height: normal; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.plan { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(14, 14, 16, .35); }
.plan-dark { background: var(--ink); color: var(--onDark); border: 0; }
.plan-dark:hover { box-shadow: 0 24px 48px -24px rgba(14, 14, 16, .6); }
.plan-name { font-size: 15px; font-weight: 700; color: var(--ink2); }
.plan-dark .plan-name { color: var(--accentDark); }
.plan-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.plan-amount-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-once { font-size: 15px; opacity: .75; }
.plan-list { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.price-note { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--ink2); }

/* footer */
.site-foot { border-top: 1px solid var(--line); }
.foot-in { padding: 40px 24px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.foot-end { gap: 20px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }

/* motion: hidden until revealed (only when JavaScript runs and motion is allowed) */
.motion [data-reveal] { opacity: 0; }
/* the hero rises on its own, from the first frame, without waiting for the script */
.motion [data-rise] { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.motion [data-rise="1"] { animation-delay: 90ms; }
.motion [data-rise="2"] { animation-delay: 180ms; }
.motion [data-rise="3"] { animation-delay: 270ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* privacy, terms, credits */
.doc-main { padding: 48px 24px 80px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.doc-main h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.doc-main h2 { font-size: 24px; letter-spacing: -0.01em; color: var(--ink); margin-top: 16px; }
.doc-meta { font-family: var(--mono); font-size: 13px; }
.doc-main p a, .doc-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-main h3 { font-size: 18px; color: var(--ink); margin-top: 8px; }
.doc-main h3 a { color: inherit; }
.doc-count, .doc-small, .doc-tag { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink2); }
.doc-tag { white-space: nowrap; }
.doc-main details summary { cursor: pointer; font-size: 16px; font-weight: 600; color: var(--accentInk); }
.doc-list { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.doc-main details .doc-list { margin-top: 12px; }
.doc-id { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.doc-back { margin-top: 24px; font-size: 16px; font-weight: 600; }
