/* Traveliin site — shared styles (landing + shared trip pages). No build step. */
:root {
  --navy: #0b1220;
  --navy-2: #0f1a2e;
  --panel: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: rgba(226, 232, 240, 0.66);
  --green: #22c55e;
  --mint: #34d399;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* soft background glows */
.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.glow.g1 { width: 520px; height: 520px; background: rgba(34, 197, 94, 0.16); top: -160px; left: -140px; }
.glow.g2 { width: 460px; height: 460px; background: rgba(6, 182, 212, 0.12); top: 120px; right: -160px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11, 18, 32, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--mint); margin-top: 3px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 16px; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.98); }
.btn:focus:not(:focus-visible) { outline: none; }
.btn-primary { background: var(--mint); color: var(--navy); }
@media (hover: hover) { .btn-primary:hover { background: #6ee7b7; } .btn-ghost:hover { background: rgba(30, 41, 59, 0.7); } }
.btn-ghost { border-color: var(--line); background: rgba(15, 23, 42, 0.5); color: var(--text); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 14px; border-radius: 16px; background: #000; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; min-width: 190px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.store strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.store.soon { opacity: 0.85; cursor: default; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--mint); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 16px; font-weight: 850; }
h1 .accent { background: linear-gradient(90deg, var(--green), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 34ch; margin: 0 0 28px; }

/* phone mockup */
.phone { width: min(320px, 82vw); aspect-ratio: 9 / 19; margin-inline: auto; border-radius: 46px; background: #050913; border: 1px solid rgba(148, 163, 184, 0.25); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 8px #0b1220; padding: 18px 14px; position: relative; }
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.screen { height: 100%; border-radius: 34px; background: linear-gradient(180deg, #0d1729, #0b1220); overflow: hidden; padding: 46px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.screen h4 { margin: 0 4px 2px; font-size: 20px; letter-spacing: -0.02em; }
.screen > * { flex-shrink: 0; }
.chips { display: flex; gap: 6px; margin: 0 4px; overflow: hidden; }
.chip { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, 0.35); color: var(--text); white-space: nowrap; }
.chip.on { background: var(--mint); color: var(--navy); font-weight: 700; border-color: var(--mint); }
.mini { display: flex; gap: 10px; padding: 9px; border-radius: 16px; background: rgba(15, 23, 42, 0.8); border: 1px solid var(--line); }
.thumb { width: 52px; height: 68px; border-radius: 11px; flex: none; position: relative; object-fit: cover; background: #1e293b; }
.thumb.t1 { background: linear-gradient(160deg, #f59e0b, #b45309 60%, #1e293b); }
.thumb.t2 { background: linear-gradient(160deg, #38bdf8, #0e7490 60%, #0f172a); }
.thumb.t3 { background: linear-gradient(160deg, #f472b6, #9d174d 60%, #1e1b4b); }
.mini b { display: block; font-size: 12.5px; line-height: 1.25; }
.mini span { display: block; font-size: 11px; color: var(--mint); margin-top: 4px; }
.mini em { display: block; font-size: 10.5px; color: var(--muted); font-style: normal; margin-bottom: 3px; }
.trip { padding: 10px; border-radius: 16px; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); }
.trip b { font-size: 13px; }
.trip .stops { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.trip .stops i { font-style: normal; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: rgba(2, 6, 23, 0.6); border: 1px solid var(--line); }

/* sections */
section { position: relative; padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.section-lead { color: var(--muted); max-width: 56ch; margin: 0 0 36px; font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(34, 197, 94, 0.15); color: var(--mint); font-weight: 800; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 16px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); font-size: 22px; }
.cta { text-align: center; padding: 56px 24px; border-radius: 32px; background: radial-gradient(120% 140% at 50% 0%, rgba(34, 197, 94, 0.22), rgba(15, 23, 42, 0.9) 60%); border: 1px solid rgba(52, 211, 153, 0.25); }
.cta .stores { justify-content: center; margin-top: 24px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* shared trip page */
.trip-page { padding: 32px 0 80px; }
.trip-head { display: grid; gap: 10px; margin-bottom: 22px; }
.trip-head .eyebrow { justify-self: start; }
.trip-head h1 { font-size: clamp(32px, 6vw, 48px); margin: 0; }
.meta { color: var(--muted); }
.author { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--navy); background: var(--mint); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.get-app { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px; margin: 4px 0 26px; border-radius: var(--radius); background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); }
.get-app p { margin: 0; flex: 1 1 260px; }
.day { margin-top: 26px; }
.day h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.day h2 span { color: var(--mint); }
.day .date { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.stop { display: flex; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.stop .time { flex: none; font-size: 13px; font-weight: 700; padding: 4px 10px; height: fit-content; border-radius: 999px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.stop h3 { margin: 0 0 3px; font-size: 16.5px; }
.stop p { margin: 0; color: var(--muted); font-size: 14.5px; }
.stop .maps { display: inline-flex; margin-top: 8px; font-size: 13px; color: var(--mint); font-weight: 600; }
.state { padding: 60px 0; text-align: center; color: var(--muted); }
.state h1 { color: var(--text); font-size: 32px; }

/* public profile + collection pages (same look as the shared trip page) */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.profile-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 0; line-height: 1.1; }
.avatar-lg { width: 84px; height: 84px; font-size: 34px; flex: none; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.counts b { color: var(--text); }
.bio { margin: 0 0 12px; max-width: 60ch; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.socials a, .chip { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.socials a:hover, .chip:hover { border-color: rgba(52, 211, 153, 0.5); }
.section-h { font-size: 22px; margin: 30px 0 12px; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tcard, .ccard { display: block; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.15s; }
.tcard:hover, .ccard:hover { border-color: rgba(52, 211, 153, 0.5); }
.tcard { padding: 16px; display: grid; gap: 6px; }
.tcard .eyebrow { justify-self: start; }
.tcard h3, .ccard h3 { margin: 0; font-size: 17px; }
.ccard-body { padding: 12px 14px 14px; }
.collage { aspect-ratio: 16 / 10; display: grid; gap: 2px; background: var(--navy-2); }
.collage img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.collage.n2 { grid-template-columns: 1fr 1fr; }
.collage.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 img:first-child { grid-row: span 2; }
.collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.empty { place-items: center; font-size: 40px; }
a.author:hover b { text-decoration: underline; }
.posts { display: grid; gap: 10px; }
.post { display: flex; gap: 14px; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.post-thumb { flex: none; width: 92px; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: var(--navy-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { min-width: 0; display: grid; align-content: start; gap: 4px; }
.post-body h3 { margin: 0; font-size: 16px; }
.post-body .meta { font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.post .maps { font-size: 13px; color: var(--mint); font-weight: 600; margin-top: 4px; }
@media (max-width: 640px) {
  .avatar-lg { width: 68px; height: 68px; font-size: 28px; }
  .profile-head { gap: 14px; }
  .post-thumb { width: 76px; }
}

/* Phones: compact cards — number/icon on the same line as the title, tighter spacing */
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .section-lead { margin-bottom: 22px; font-size: 16px; }
  .steps, .features { gap: 10px; }
  .card { padding: 16px; border-radius: 18px; }
  .steps .card { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; }
  .steps .card .num { width: 32px; height: 32px; border-radius: 10px; margin: 0; font-size: 14px; }
  .steps .card h3 { margin: 0; font-size: 18px; }
  .steps .card p { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .feature { gap: 12px; }
  .feature .ico { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
  .feature h3 { font-size: 17px; margin-bottom: 2px; }
  .feature p { font-size: 15px; line-height: 1.45; }
}

section { scroll-margin-top: 72px; }

/* "coming soon" sheet (landing): centered card on desktop, bottom sheet on phones */
.soon-sheet { width: min(400px, calc(100% - 32px)); padding: 28px 24px 20px; border-radius: 24px; border: 1px solid rgba(52, 211, 153, 0.3); background: radial-gradient(120% 90% at 50% 0%, rgba(34, 197, 94, 0.18), #0f172a 70%) #0f172a; color: var(--text); text-align: center; }
.soon-sheet::backdrop { background: rgba(2, 6, 23, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.soon-sheet[open] { animation: soon-in 0.22s ease-out; }
@keyframes soon-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.soon-sheet img { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; }
.soon-sheet h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.soon-sheet p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; }
.soon-actions { display: grid; gap: 10px; }
.soon-close { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; padding: 10px; cursor: pointer; }
@media (max-width: 640px) {
  .soon-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

.soon-actions .btn svg { width: 22px; height: 22px; flex: none; }
.btn-ig { color: #fff; background: linear-gradient(45deg, #f9a03f 0%, #e1306c 45%, #833ab4 100%); }
.btn-tt { color: #fff; background: #000; border-color: rgba(255, 255, 255, 0.22); }
.btn-tt svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }

/* footer social icons */
.site-footer nav { align-items: center; }
.site-footer .brand { color: var(--text); }
.social { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 23, 42, 0.6); color: var(--text); }
.social svg { width: 19px; height: 19px; }
@media (hover: hover) { .social:hover { border-color: rgba(52, 211, 153, 0.5); color: var(--mint); } }

/* landing footer: brand left, links, copyright right; centered stack on phones */
.site-footer .copy { font-size: 13px; }

/* Phones: a more compact landing page */
@media (max-width: 640px) {
  .hero { padding: 28px 0 8px; }
  .hero .wrap { gap: 28px; }
  h1 { font-size: 38px; margin: 14px 0 12px; }
  .lead { font-size: 16px; margin-bottom: 20px; }
  .hero .stores, .cta .stores { flex-wrap: nowrap; gap: 8px; }
  .store { flex: 1 1 0; min-width: 0; height: 50px; gap: 8px; padding: 0 10px; border-radius: 14px; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 9.5px; }
  .store strong { font-size: 15px; }
  section { padding: 36px 0; }
  .section-title { font-size: 28px; }
  .steps .card p { margin-top: 6px; }
  .features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .features .feature.card { flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; }
  .features .feature .ico { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
  .features .feature h3 { font-size: 15px; line-height: 1.25; margin-bottom: 4px; }
  .features .feature p { font-size: 13px; line-height: 1.4; }
  .cta { padding: 32px 16px; border-radius: 24px; }
  .cta .section-title { font-size: 26px; }
  .cta .section-lead { margin-bottom: 0; }
  .cta .stores { margin-top: 18px; }
  footer { padding: 24px 0 32px; }
  .site-footer .wrap { flex-direction: column; gap: 14px; text-align: center; }
  .site-footer nav { justify-content: center; gap: 18px; }
}

