/* Tripio website: light, the logo's colours (navy #1B2330, orange #F2600C),
   real screenshots of the app in phone frames. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #FBF7F3;
  --bg-tint: #FFF1E8;
  --ink: #1B2330;
  --ink-2: #5B6675;
  --ink-3: #8C95A3;
  --line: #ECE7E2;
  --orange: #F2600C;
  --orange-deep: #C84B06;
  --navy: #1B2330;
  --navy-2: #2A3547;
  /* Hero globe: light sea, cream land, visited green like the app */
  --globe-sea: #D7EAF3;
  --globe-land: #FBF6EE;
  --globe-line: #B9CAD3;
  --globe-visited: #2F9E6E;
  --radius-s: 12px;
  --radius-l: 28px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; font-weight: 750; font-variation-settings: "wdth" 80; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.06; font-weight: 720; font-variation-settings: "wdth" 84; letter-spacing: -.012em; max-width: 18ch; }
h3 { font-size: 1.2rem; font-weight: 650; }
.kicker { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--orange-deep); font-weight: 600; font-size: .9rem; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 32em; margin: 22px 0 0; }
.section-lead { color: var(--ink-2); max-width: 34em; margin: 14px 0 0; }
.note, .fine { color: var(--ink-3); font-size: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; box-shadow: 0 10px 24px -12px rgba(242, 96, 12, .7); }
.btn:hover { background: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.brandmark { display: inline-flex; align-items: center; gap: 8px; }
.brandmark img { width: 34px; height: auto; }
.wordmark { font: 900 1.45rem/1 "Nunito", var(--font-display); letter-spacing: -.01em; }
.w-trip { color: var(--navy); }
.w-io { color: var(--orange); }
.brandmark.small img { width: 24px; }
.brandmark.small .wordmark { font-size: 1.05rem; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: .96rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang { font-size: .9rem; color: var(--ink-2); text-decoration: none; }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }
/* Phones: a compact "Avvisami" next to the language switch. */
.cta-short { display: none; }
@media (max-width: 560px) {
  .top-row { gap: 14px; }
  .top .btn-small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
  .cta-long { display: none; } .cta-short { display: inline; }
}

/* Phone frame around a real screenshot */
.phone { margin: 0; width: min(290px, 70vw); aspect-ratio: 600 / 1304; border-radius: 46px; padding: 9px; background: var(--navy); box-shadow: 0 40px 80px -30px rgba(27, 35, 48, .45), 0 18px 36px -24px rgba(27, 35, 48, .35), inset 0 0 0 1.5px #3A465A; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--bg-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(600px 420px at 85% 30%, var(--bg-tint), transparent 70%),
  radial-gradient(500px 360px at 10% 90%, #F3F5F8, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 16px; }
.globe-wrap { margin: 0; justify-self: center; width: min(560px, 100%); }
#globe { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; filter: drop-shadow(0 40px 60px rgba(27, 35, 48, .18)); }
#globe:active { cursor: grabbing; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.visited { background: var(--globe-visited); }
.dot.planned { background: var(--orange); }
.legend .line { width: 22px; border-top: 2.5px solid var(--navy); display: inline-block; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .globe-wrap { width: min(440px, 100%); } }

/* The 5 steps */
.cycle { padding: 72px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.route { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.route::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; border-top: 2px dashed #F5B58F; }
.route li { position: relative; }
.route .stop { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 1.05rem var(--font-display); box-shadow: 0 0 0 6px var(--bg-soft); }
.route h3 { margin-top: 16px; }
.route p { margin: 6px 0 0; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .route { grid-template-columns: 1fr; gap: 22px; } .route::before { top: 22px; bottom: 22px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed #F5B58F; } .route li { padding-left: 64px; } .route .stop { position: absolute; left: 0; top: 0; } .route h3 { margin-top: 8px; } }

/* Feature bands */
.band { padding: 96px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.band-flip .band-copy { order: 2; }
.band-phones { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
/* Phones never shrink sideways in a row (they were squashed). */
.band-phones .phone { flex: 0 0 auto; }
.band-phones.two .phone:first-child { transform: rotate(-3deg); }
.band-phones.two .phone { width: min(250px, calc(50% - 12px)); }
.band-phones.two .phone:last-child { transform: translateY(40px) rotate(3deg); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2600C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.band-dark { background: var(--navy); color: #E8ECF1; border-top: 0 !important; }
.band-dark h2 { color: #fff; }
.band-dark .section-lead { color: #B8C1CE; }
.band-dark .ticks li::before { background-color: rgba(242, 96, 12, .18); }
.band-dark .phone { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #4A5870; }
@media (max-width: 900px) {
  .band { padding: 72px 0; }
  .band-grid { grid-template-columns: 1fr; gap: 40px; }
  .band-flip .band-copy { order: 0; }
  .band-phones.two .phone:last-child { transform: translateY(24px) rotate(3deg); }
}
@media (max-width: 520px) { .band-phones { gap: 14px; } .band-phones.two .phone { width: calc(50% - 7px); } .phone { border-radius: 30px; padding: 6px; } .phone img { border-radius: 25px; } }

/* Plans */
.plans { padding: 96px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan h3 { font-size: 1.35rem; }
.plan .price { font: 750 2.3rem/1.1 var(--font-display); margin: 12px 0 0; color: var(--orange); }
.plan .period { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.plan .ticks { margin-top: 20px; font-size: .96rem; }
.plan-plus { border: 2px solid var(--orange); box-shadow: 0 30px 60px -36px rgba(242, 96, 12, .55); }
.plan-pro { background: var(--navy); border-color: var(--navy); color: #E8ECF1; }
.plan-pro h3 { color: #fff; }
.plan-pro .price { color: #FDBA74; }
.plan-pro .period { color: #B8C1CE; }
.plan-pro .ticks li::before { background-color: rgba(242, 96, 12, .2); }
.plan-flag { position: absolute; top: -13px; left: 24px; background: var(--orange); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plans-fine { margin-top: 22px; max-width: 60em; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* Waitlist */
.waitlist { padding: 88px 0; }
.waitlist-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: linear-gradient(135deg, #FFF1E8, #FFF8F3); border: 1px solid #F8D9C4; border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form input[type="email"] { flex: 1 1 220px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 96, 12, .15); }
.waitlist .done { font-weight: 600; color: var(--orange-deep); }
.waitlist .error { color: #B42318; font-size: .9rem; }
@media (max-width: 900px) { .waitlist-box { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; background: #fff; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.muted { color: var(--ink-3); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); }

/* Privacy / Terms pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-top: 8px; }
.legal .eyebrow { color: var(--ink-3); font-size: .9rem; margin: 0; }
.legal-lead { color: var(--ink-2); font-size: 1.1rem; margin: 12px 0 28px; }
.legal-summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 0 0 28px; }
.legal-summary h2, .legal-list h2 { font-size: 1.15rem; max-width: none; }
.legal-summary p { margin: 8px 0 0; }
.legal-list { padding-left: 1.3em; margin: 0 0 28px; }
.legal-list li { margin: 0 0 22px; }
.legal-list li::marker { font-family: var(--font-display); color: var(--orange); }
.legal-list p { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.legal-contact a { font-weight: 600; color: var(--orange-deep); }

/* ---------- Scrollytelling: pinned phone, changing screen ---------- */
.story { padding: 96px 0 40px; position: relative; }
.story-head { text-align: center; }
.story-head h2, .story-head .section-lead { margin-inline: auto; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 24px; }
.story-stage { grid-column: 2; grid-row: 1; position: sticky; top: calc(50vh - min(310px, 38vh)); align-self: start; height: min(620px, 76vh);
  display: flex; align-items: center; justify-content: center; gap: 22px; }
.story-phone { position: relative; width: auto; height: 100%; aspect-ratio: 600 / 1304; }
.story-phone .story-screen { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; border-radius: 38px;
  opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.story-phone .story-screen.is-on { opacity: 1; transform: none; }
.story-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-dots li { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: height .3s, background .3s; }
.story-dots li.is-on { height: 26px; background: var(--orange); }
.story-steps { grid-column: 1; grid-row: 1; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .28; transition: opacity .5s ease; scroll-margin-top: 80px; }
.step.is-on { opacity: 1; }
.step h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; font-weight: 720; font-variation-settings: "wdth" 84; letter-spacing: -.01em; margin-top: 10px; }
.step p { color: var(--ink-2); max-width: 32em; margin: 14px 0 0; font-size: 1.08rem; }
.step-no { font: 700 .9rem var(--font-display); color: var(--orange); letter-spacing: .08em; }
.step-phone { display: none; }
/* Without JavaScript: no pinning, each step with its own screen. */
html:not(.js) .story-stage { display: none; }
html:not(.js) .step { opacity: 1; min-height: 0; }
html:not(.js) .step-phone { display: block; margin-top: 24px; width: min(260px, 64vw); }

/* Phones: the phone pins in the top half, the text passes below it. */
@media (max-width: 900px) {
  .story { padding-top: 72px; }
  .story-grid { display: block; margin-top: 8px; }
  .story-stage { position: sticky; top: 66px; z-index: 2; height: 50svh; padding: 12px 0 10px; gap: 14px; background: var(--bg); }
  /* Text scrolling up fades out under the phone instead of overlapping it. */
  .story-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 36px; pointer-events: none;
    background: linear-gradient(var(--bg), rgba(255, 255, 255, 0)); }
  .story-phone { border-radius: 30px; padding: 6px; }
  .story-phone .story-screen { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 25px; }
  .story-dots { gap: 8px; }
  .story-dots li { width: 6px; height: 6px; }
  .story-dots li.is-on { height: 20px; }
  .step { min-height: 62svh; justify-content: flex-start; padding: 18px 0 48px; opacity: .35; }
  .step h3 { font-size: 1.6rem; }
  .step p { font-size: 1rem; }
  .step .ticks { margin-top: 18px; gap: 8px; font-size: .96rem; }
}

/* ---------- More features ---------- */
.more { padding: 88px 0 96px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.more-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.more-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(27, 35, 48, .35); }
.more-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bg-tint); color: var(--orange); }
.more-icon svg { width: 24px; height: 24px; }
.more-card h3 { margin-top: 16px; }
.more-card p { margin: 6px 0 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } .more { padding: 64px 0 72px; } }

/* ---------- Reveal on scroll (site.js adds .js and .in) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.globe-wrap { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-copy > * { animation: none; }
  .story-phone .story-screen, .step, .story-dots li { transition: none; }
}
/* Touch screens: the globe spins by itself, no dragging hint. */
@media (hover: none) { .note-drag { display: none; } }

/* Website subscriptions (Stripe) */
.billing { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
.billing h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.billing-card { display: grid; gap: 10px; max-width: 480px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin: 8px 0 28px; }
.billing-card label { font-weight: 600; font-size: .95rem; }
.billing-card input[type="email"] { min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 16px; }
.billing-card input[type="email"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 96, 12, .15); }
.billing-check { display: flex; gap: 8px; align-items: center; font-weight: 500 !important; color: var(--ink-2); }
.billing-note { background: var(--bg-tint); border-radius: 14px; padding: 14px 18px; color: var(--orange-deep); font-weight: 600; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 12px 0 18px; }
.billing-plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.billing-plan.plan-pro { background: var(--navy); color: #E8ECF1; border-color: var(--navy); }
.billing-plan.plan-pro h2 { color: #fff; }
.billing-plan form .btn { width: 100%; }
.billing-plan.plan-pro .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.billing-plan.plan-pro .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.billing-pack { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; }
.billing .error { color: #B42318; }
@media (max-width: 700px) { .billing-grid { grid-template-columns: 1fr; } }
.plans-cta { margin: 28px 0 0; }
