/* TripCent website — light Ocean theme, matching the app. */

:root {
  --sky: #dcf3f9;
  --sky-2: #eef9fc;
  --sand: #fff4e3;
  --ink: #0b2a3c;
  --ink-2: #4d6b7c;
  --ink-3: #7d97a5;
  --teal: #00879c;
  --teal-2: #14a9bd;
  --aqua: #5fd3e2;
  --coral: #ff7a59;
  --coral-2: #f2643f;
  --sun: #ffc94d;
  --green: #0b8f6b;
  --purple: #7b4bd6;
  --card: #ffffff;
  --line: rgba(11, 42, 60, 0.08);
  --shadow-sm: 0 2px 6px rgba(11, 42, 60, 0.06), 0 8px 24px rgba(0, 135, 156, 0.08);
  --shadow-lg: 0 10px 22px rgba(11, 42, 60, 0.10), 0 40px 90px rgba(0, 96, 112, 0.22);
  --radius: 28px;
  --radius-sm: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 10px; }

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

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

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(var(--max), 100% - 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled .nav-inner { background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 30px rgba(11, 42, 60, 0.12); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  font-weight: 700; font-size: 15px;
}
.nav-links a:hover { background: rgba(0, 135, 156, 0.08); color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 17px;
  letter-spacing: -0.01em; border: 0; cursor: pointer;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-2), var(--teal) 55%, #136f9c);
  box-shadow: 0 10px 26px rgba(0, 135, 156, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(0, 135, 156, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-sm); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-store { padding: 12px 22px 12px 18px; text-align: left; line-height: 1.1; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store small { display: block; font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .02em; }
.btn-store span { font-size: 19px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 130px 0 60px;
  background:
    radial-gradient(120% 70% at 85% 8%, rgba(255, 201, 77, 0.28), transparent 55%),
    linear-gradient(180deg, #d4f0f8 0%, #e9f8fb 48%, #fff4e3 100%);
  overflow: hidden;
  isolation: isolate;
}
#ocean {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  display: block;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 30px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 14px; color: var(--ink-2);
}
.eyebrow b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe08a, var(--sun)); font-size: 14px;
}
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.hero h1 {
  font-size: clamp(46px, 6.2vw, 80px); font-weight: 900; margin: 22px 0 18px;
}
.accent { color: var(--teal); }
.accent-coral { color: var(--coral-2); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 540px; margin: 0 0 30px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Device + lifted cards ---------- */

.stage { position: relative; height: 660px; display: grid; place-items: center; }
.phone {
  position: relative;
  width: 300px; aspect-ratio: 1179 / 2556;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3b4652, #12171c 40%, #2a333c);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 4px; background: #2a333c;
}
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 64px 0 #2a333c; }
.phone::after { right: -3px; top: 28%; height: 13%; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.phone.small { width: 250px; padding: 9px; border-radius: 46px; }
.phone.small img { border-radius: 38px; }

.lift {
  position: absolute; z-index: 2;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 0 0 6px var(--rim, #8be0ea),
    0 0 0 7.5px rgba(255, 255, 255, 0.9) inset,
    0 10px 20px rgba(11, 42, 60, 0.12),
    0 34px 70px rgba(0, 96, 112, 0.30);
  overflow: hidden;
  will-change: transform;
}
.lift img { width: 100%; height: auto; }
.float { animation: float 6s ease-in-out infinite; }
.float.d1 { animation-delay: -2s; }
.float.d2 { animation-delay: -4s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.stage .lift.trip { width: 360px; left: 50%; top: 96px; margin-left: -180px; --rim: #8be0ea; }
.stage .lift.badge { width: 340px; right: -6%; bottom: 120px; --rim: #c4b0f2; border-radius: 20px; }
.stage .lift.icloud { width: 330px; left: -9%; bottom: 46px; --rim: #9fe3c8; border-radius: 20px; }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; text-wrap: balance; }
.section-head p { font-size: 19px; color: var(--ink-2); font-weight: 600; margin: 18px auto 0; max-width: 620px; }

/* Features */
.features { background: linear-gradient(180deg, #fff4e3 0%, #ffffff 30%, #ffffff 100%); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0, 135, 156, 0.16); }
.icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
  color: #fff; box-shadow: 0 8px 18px var(--glow, rgba(0, 135, 156, .3));
}
.icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 23px; font-weight: 850; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); font-weight: 600; }
.i-teal { background: linear-gradient(135deg, #3fd0de, var(--teal)); --glow: rgba(0, 135, 156, .35); }
.i-coral { background: linear-gradient(135deg, #ffa07d, var(--coral-2)); --glow: rgba(242, 100, 63, .35); }
.i-green { background: linear-gradient(135deg, #3ad6a0, var(--green)); --glow: rgba(11, 143, 107, .35); }
.i-purple { background: linear-gradient(135deg, #a98af0, var(--purple)); --glow: rgba(123, 75, 214, .35); }
.i-blue { background: linear-gradient(135deg, #6aa6ff, #2f6fdb); --glow: rgba(47, 111, 219, .35); }
.i-sun { background: linear-gradient(135deg, #ffd56b, #f0a500); --glow: rgba(240, 165, 0, .35); }

/* Spotlight rows (balances / gamification) */
.spotlight { background: #fff; padding-top: 30px; }
.spot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
  padding: 40px 0;
}
.spot + .spot { margin-top: 40px; }
.spot.reverse .spot-visual { order: 2; }
.spot-copy h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 900; margin-bottom: 18px; }
.spot-copy p { font-size: 19px; color: var(--ink-2); font-weight: 600; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px;
  background: rgba(0, 135, 156, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2300879C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}
.spot-visual {
  position: relative; display: grid; place-items: center; min-height: 600px;
  border-radius: 40px;
  background: radial-gradient(58% 52% at 50% 50%, var(--tint, #cdeedd), transparent 75%);
}
.spot-visual .lift { position: absolute; }
.spot-visual .lift.settle { width: 320px; top: 210px; --rim: #9fe3c8; }
.spot-visual .lift.awards { width: 390px; bottom: 40px; --rim: #ffc8a6; }
.spot-visual .lift.badge2 { width: 360px; bottom: 90px; --rim: #c4b0f2; border-radius: 20px; }

/* Screenshot gallery */
.screens { background: linear-gradient(180deg, #ffffff 0%, #e9f8fb 100%); overflow: hidden; }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2)) 40px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  margin: 0; flex: 0 0 auto; width: clamp(220px, 24vw, 290px); scroll-snap-align: center;
  border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(0, 96, 112, 0.16);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.gallery figure:hover { transform: translateY(-8px) rotate(-.6deg); }
.gallery img { width: 100%; height: auto; aspect-ratio: 660 / 1428; object-fit: cover; }
.gallery-controls { display: flex; justify-content: center; gap: 12px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.round-btn:hover { transform: scale(1.08); }
.round-btn svg { width: 22px; height: 22px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 34px 30px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-2), var(--teal)); color: #fff;
  font-weight: 900; font-size: 20px; margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(0, 135, 156, .3);
}
.step h3 { font-size: 22px; font-weight: 850; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-weight: 600; }

/* Worlds */
.worlds { background: linear-gradient(180deg, #e9f8fb, #eef3e3); }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.world {
  position: relative; border-radius: 36px; padding: 34px 34px 0; overflow: hidden; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--shadow-sm);
}
.world.ocean { background: linear-gradient(180deg, #cdeff7, #fff1dc); }
.world.hill { background: linear-gradient(180deg, #dcebe6, #eef2e1); }
.world h3 { font-size: 34px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.world h3 img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.world p { color: var(--ink-2); font-weight: 600; margin: 10px 0 28px; max-width: 380px; }
.world .phone { width: 270px; margin-bottom: -180px; }

/* Privacy band */
.privacy-band {
  margin: 0 auto; border-radius: 40px; padding: 60px; color: #fff; text-align: center;
  background:
    radial-gradient(60% 120% at 10% 0%, rgba(95, 211, 226, .45), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(255, 122, 89, .35), transparent 60%),
    linear-gradient(135deg, #0b4a5c, #0b2a3c);
  box-shadow: var(--shadow-lg);
}
.privacy-band h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; }
.privacy-band p { font-size: 19px; opacity: .85; font-weight: 600; max-width: 640px; margin: 16px auto 34px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 800;
}
.pill svg { width: 20px; height: 20px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 850; font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 135, 156, .1); color: var(--teal); font-size: 22px; font-weight: 700;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-weight: 600; }

/* Final CTA */
.final {
  text-align: center; padding: 120px 0 140px;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(95, 211, 226, .35), transparent 70%),
    linear-gradient(180deg, #ffffff, #e2f6fa);
}
.final img.app-icon { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 28px; box-shadow: 0 18px 40px rgba(0, 96, 112, .3); }
.final h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; }
.final p { font-size: 20px; color: var(--ink-2); font-weight: 600; margin: 18px 0 34px; }

/* Footer */
.footer { background: #0b2a3c; color: rgba(255, 255, 255, .78); padding: 50px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .brand { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: rgba(255, 255, 255, .85); font-weight: 700; }
.footer small { display: block; margin-top: 8px; color: rgba(255, 255, 255, .55); font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Document pages (privacy / support) ---------- */

.doc-hero {
  padding: 150px 0 50px; text-align: center;
  background: linear-gradient(180deg, #d4f0f8, #eef9fc);
}
.doc-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; }
.doc-hero p { color: var(--ink-2); font-weight: 600; font-size: 18px; margin: 14px 0 0; }
.doc { padding: 30px 0 110px; background: #eef9fc; }
.doc-card {
  max-width: 820px; margin: 0 auto; background: #fff; border-radius: 32px; padding: 46px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.doc-card h2 { font-size: 24px; font-weight: 850; margin: 34px 0 8px; letter-spacing: -0.02em; }
.doc-card p, .doc-card li { color: var(--ink-2); font-weight: 600; }
.doc-card strong { color: var(--ink); }
.summary-box { background: rgba(0, 135, 156, .08); border-radius: 20px; padding: 20px 22px; color: var(--ink); font-weight: 700; }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, #e6f8fb, #fff4e3); border-radius: 26px; padding: 26px 28px; margin-bottom: 28px;
}
.contact-card h2 { margin: 0 0 4px; font-size: 24px; }
.contact-card p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner, .spot, .world-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .stage { height: 620px; margin-top: 10px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .spot.reverse .spot-visual { order: 0; }
  .spot { gap: 30px; text-align: left; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .stage { height: 600px; }
  .stage .phone { width: 262px; }
  .stage .lift.trip { width: 296px; margin-left: -148px; top: 80px; }
  .stage .lift.badge { width: 268px; right: 0; bottom: 170px; border-radius: 16px; }
  .stage .lift.icloud { width: 250px; left: 0; bottom: 70px; border-radius: 16px; }
  .lift { box-shadow: 0 0 0 5px var(--rim, #8be0ea), 0 8px 16px rgba(11, 42, 60, 0.12), 0 24px 50px rgba(0, 96, 112, 0.28); }
  .spot-visual { min-height: 520px; transform: scale(.85); margin: -40px 0; }
  .privacy-band { padding: 44px 22px; border-radius: 30px; }
  .doc-card { padding: 30px 22px; border-radius: 26px; }
  .world { min-height: 500px; padding: 28px 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
