/* trevla.app — the app's look on the web: Figtree, white, one blue, round flags, glass controls, no outlines. */
@font-face { font-family: Figtree; src: url(/assets/Figtree-Variable.ttf) format('truetype'); font-weight: 300 900; font-display: swap; }
:root {
  --ink: #111; --mute: rgba(60,60,67,.6); --hair: rgba(60,60,67,.14); --tint: #0088FF; --green: #2FB65A; --navy: #1B2A4A;
  --bg: #fff; --soft: #F4F5F7; --glass: 0 0 0 .5px rgba(0,0,0,.10), 0 5px 16px rgba(0,0,0,.09);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 Figtree, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--tint); text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }

/* controls: 44 pt, glass or filled, the filled one is the main one */
.btn { height: 50px; padding: 0 26px; border-radius: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.btn.sm { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 16px; }
.prom { background: var(--tint); color: #fff; box-shadow: 0 5px 16px rgba(0,136,255,.28); }
.glass { background: #fff; color: var(--tint); box-shadow: var(--glass); }
.round { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 0; cursor: pointer; }

/* type */
.over { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; margin: 14px 0 18px; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; margin: 10px 0 14px; }
h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #3a3a3f; max-width: 560px; margin: 0; }
.mute { color: var(--mute); }

/* hero */
.hero { padding: 40px 0 30px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.flags { display: flex; gap: 6px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.flag { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.more { font-size: 14px; font-weight: 600; color: var(--mute); margin-left: 4px; }
.stage { position: relative; height: 640px; }
.globe { position: absolute; inset: 0 -120px 0 -40px; border-radius: 50%; background: center/contain no-repeat; }
.phone { position: absolute; width: 290px; aspect-ratio: 1206/2622; border-radius: 44px; background: #111 center/cover no-repeat; box-shadow: 0 0 0 7px #0f1013, 0 30px 60px rgba(0,0,0,.22); overflow: hidden; }
.hero .phone { right: 40px; top: 10px; }

/* hero: the app's globe in space, live */
.hero.space { position: relative; background: #060b18; color: #fff; height: min(860px, calc(100vh - 64px)); min-height: 640px; padding: 0; }
.hero.space { overflow: hidden; }
.hero.space .live { position: absolute; inset: 0; }
.hero.space .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.hero.space .copy { max-width: 440px; pointer-events: auto; }
.hero.space h1 { font-size: clamp(44px, 5.6vw, 72px); }
.hero.space .over { color: rgba(255,255,255,.6); }
.hero.space .lead { color: rgba(255,255,255,.82); }
.hero.space::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #060b18 0, rgba(6,11,24,.9) 34%, rgba(6,11,24,0) 54%); pointer-events: none; }
.hero.space .wrap { z-index: 1; }
.found { position: absolute; right: 24px; bottom: 34px; width: 330px; background: #fff; color: var(--ink); border-radius: 30px; padding: 22px 22px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); pointer-events: auto; }
.hero.space .found .over { color: var(--mute); }
.duo { display: grid; grid-template-columns: 1fr 1fr; height: 62px; }
.duo b { display: block; font-size: 34px; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.duo span { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.hero.space .fade { display: none; }
.found .big { font-size: 26px; line-height: 31px; font-weight: 700; margin-top: 0; font-variant-numeric: tabular-nums; }
.found .flags { margin-top: 14px; height: 30px; flex-wrap: nowrap; overflow: hidden; }
.found { height: 148px; }
.found .flag { width: 30px; height: 30px; }
.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.mapboxgl-ctrl-logo { opacity: .42; transform: scale(.82); transform-origin: left center; }
.mapboxgl-ctrl-attrib.mapboxgl-compact { opacity: .42; transform: scale(.82); }
.found-stamp { position: absolute; top: -40px; right: -22px; width: 108px; height: 108px; transform: rotate(-14deg); opacity: .92; pointer-events: none; }

/* sections */
section { padding: 90px 0; }
section.soft { background: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.shot { position: relative; height: 600px; }
.shot .phone { left: 50%; top: 0; transform: translateX(-50%); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; max-width: 480px; }
.tile { aspect-ratio: 1.25; border-radius: 22px; background: center/cover; color: #fff; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6)); }
.tile span, .tile b { position: relative; }
.tile span { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.tile b { font-size: 26px; line-height: 1.1; }
.tile small { font-size: 14px; font-weight: 500; opacity: .85; }
.rows { margin-top: 26px; max-width: 480px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: .5px solid var(--hair); }
.row .flag { width: 40px; height: 40px; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: 17px; font-weight: 600; }
.row .t span { font-size: 15px; color: var(--mute); }
.row .v b { font-size: 20px; font-weight: 700; }
.row .v span { color: var(--mute); font-size: 15px; }
.paper { width: 100%; background: #fff; border-radius: 6px; box-shadow: 0 0 0 .5px rgba(0,0,0,.1), 0 24px 50px rgba(0,0,0,.14); transform: rotate(-1.5deg); max-width: 460px; margin: 0 auto; }
.paper + .paper { transform: rotate(2deg) translate(30px, -96%); }
.papers { position: relative; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 17px; }
.ticks svg { flex: none; margin-top: 2px; color: var(--ink); }
.cards { display: flex; gap: 16px; justify-content: center; }
.cards img { width: 44%; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.18); }
.cards img:nth-child(2) { transform: translateY(40px); }

.center { text-align: center; }
.center .lead { margin: 0 auto; }
.red { color: #D80027; }
.how .ic { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.how .row { align-items: flex-start; }
.facts { display: flex; gap: 34px; margin: 26px 0 4px; }
.facts b { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.facts span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.meter { margin-top: 24px; max-width: 480px; }
.meter .row { border-bottom: 0; }
.meter .bar { height: 6px; border-radius: 3px; background: #E9EAEE; margin: -2px 0 10px 54px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 3px; }
.tiles.wide { grid-template-columns: repeat(4, 1fr); max-width: none; margin-top: 40px; }
.dest { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dest span { height: 44px; padding: 0 18px; border-radius: 22px; display: inline-flex; align-items: center; background: #fff; box-shadow: var(--glass); font-weight: 600; font-size: 16px; }
.storybox { display: flex; justify-content: center; }
.story { position: relative; width: 300px; aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; color: #fff; padding: 28px 24px;
         background: #060b18 url(/assets/globe-space.png?v=2) center 42%/190% auto no-repeat; box-shadow: 0 30px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.story::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,11,24,0) 45%, rgba(6,11,24,.92) 72%); }
.story > * { position: relative; }
.st-top { font-size: 12px; font-weight: 700; letter-spacing: .1em; opacity: .8; }
.st-big { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.st-big b { font-size: 64px; line-height: 1; font-weight: 800; }
.st-big span { font-size: 20px; font-weight: 600; }
.st-sub { font-size: 15px; opacity: .8; margin-top: 4px; }
.story .flags { margin-top: 14px; padding-right: 70px; }
.story .flag { width: 28px; height: 28px; }
.story .more { color: rgba(255,255,255,.75); }
.st-stamp { position: absolute; right: 16px; top: 16px; width: 66px; height: 66px; transform: rotate(-10deg); opacity: .95; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.three div { text-align: center; }
.three svg { margin: 0 auto 10px; display: block; }
.three b { display: block; font-size: 19px; }
.three span { color: var(--mute); font-size: 16px; }

/* closing */
.end { text-align: center; padding: 110px 0 120px; }
.end .stamp { width: 120px; height: 120px; margin: 0 auto 18px; transform: rotate(-8deg); }
.end .lead { margin: 0 auto; }
.end .btn { margin-top: 28px; }

/* footer */
footer { border-top: .5px solid var(--hair); padding: 34px 0 50px; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--ink); }

/* documents */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 24px 90px; }
.doc h1 { font-size: 44px; margin-bottom: 6px; }
.doc h2 { font-size: 24px; margin: 40px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: #2b2b30; }
.doc ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 10px 10px 10px 0; border-bottom: .5px solid var(--hair); vertical-align: top; }
.doc th { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.faq details { border-bottom: .5px solid var(--hair); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mute); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero.space { height: auto; min-height: 0; }
  .hero.space .live { position: relative; left: 0; right: 0; height: 58vh; }
  .hero.space .wrap { padding: 0 24px 40px; }
  .hero.space::after { display: none; }
  .hero.space .fade { display: block; position: absolute; left: 0; right: 0; top: calc(64vh - 140px); height: 140px; background: linear-gradient(180deg, rgba(6,11,24,0), #060b18); pointer-events: none; }
  .found { position: relative; right: auto; bottom: auto; width: 100%; justify-self: stretch; margin: -96px 0 30px; order: -1; }
  .hero.space .live { height: 64vh; }
  .split.flip > :first-child { order: 0; }
  .stage { height: 560px; }
  .globe { inset: 0 -60px; }
  .hero .phone { right: 50%; transform: translateX(50%); }
  section { padding: 64px 0; }
  .shot { height: 560px; }
  .phone { width: 260px; }
  .paper + .paper { display: none; }
  .tiles.wide { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr; gap: 26px; }
  .facts { gap: 22px; }
  .facts b { font-size: 28px; }
  .papers { padding: 0 6px 10px; max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
  body { overflow-x: hidden; }
  .paper { transform: none; }
}
