/* TripNib — landing site styles. Palette mirrors the iOS app Theme. */
:root {
  --navy: #12294d;
  --deep-teal: #0a5c70;
  --accent: #1a8c9e;
  --glacier: #5ca8c7;
  --aurora: #45c79e;
  --ice: #e6f2f7;
  --ink: #10233f;
  --muted: #5a6b80;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(18, 41, 77, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(18, 41, 77, 0.08);
}
.site-header .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; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--navy));
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Buttons */
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 12px 20px; border-radius: 14px; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-store svg { width: 22px; height: 22px; fill: #fff; }
.btn-store .small { font-size: 11px; opacity: .8; display: block; line-height: 1; margin-bottom: 2px; font-weight: 500; }
.btn-store .big { font-size: 17px; line-height: 1; font-weight: 700; }
/* Nav App Store badge — override the generic .nav-links a color (higher
   specificity) so the text stays white on the navy button. */
.nav-links a.btn-store, .nav-links a.btn-store:hover { color: #fff; }
.nav-cta { padding: 8px 16px; }
.nav-cta svg { width: 20px; height: 20px; }
.nav-cta .small { font-size: 10px; }
.nav-cta .big { font-size: 15px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--deep-teal) 60%, var(--accent) 130%);
  color: #fff; padding: 96px 0 110px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(69,199,158,.25), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aurora); background: rgba(69,199,158,.12); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: rgba(255,255,255,.86); max-width: 620px; margin: 22px auto 34px; }
.hero .btn-store { background: #fff; color: var(--navy); }
.hero .btn-store svg { fill: var(--navy); }
.hero-note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7); }

/* Sections */
section.block { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.tint { background: var(--ice); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid rgba(18,41,77,.06); box-shadow: 0 4px 18px rgba(18,41,77,.05);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
  background: rgba(26,140,158,.1);
}
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--navy)); color: #fff; font-weight: 800; font-size: 20px;
}
.step h3 { color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA band */
.cta {
  background: linear-gradient(150deg, var(--navy), var(--deep-teal)); color: #fff; text-align: center;
  padding: 78px 0; border-radius: 0;
}
.cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.cta p { color: rgba(255,255,255,.85); font-size: 18px; margin: 14px auto 30px; max-width: 520px; }
.cta .btn-store { background: #fff; color: var(--navy); }
.cta .btn-store svg { fill: var(--navy); }

/* Footer */
.site-footer { background: #0c1c34; color: rgba(255,255,255,.7); padding: 48px 0 40px; font-size: 15px; }
.site-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.site-footer .brand { color: #fff; font-size: 18px; }
.site-footer .brand .mark { width: 26px; height: 26px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,.8); font-weight: 500; margin-left: 22px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }

/* Legal pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 60px 24px 90px; }
.legal-page h1 { font-size: 34px; color: var(--navy); margin-bottom: 6px; }
.legal-page .updated { color: var(--muted); font-size: 15px; margin-bottom: 34px; }
.legal-page h2 { font-size: 22px; color: var(--navy); margin: 34px 0 10px; }
.legal-page p, .legal-page li { color: #2b3d55; font-size: 16px; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a { font-weight: 600; }
.back-link { display: inline-block; margin-bottom: 30px; font-weight: 600; }

@media (max-width: 820px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  section.block { padding: 60px 0; }
}
