/* Wellness Explorer: a light sea chart, the app's island colours */
:root {
  --sea: #e1f0fa;
  --sea-deep: #cfe7f5;
  --paper: #fbfdff;
  --sand: #f3dfa6;
  --ink: #22324a;
  --ink-soft: #52637a;
  --teal: #1FA38A;
  --teal-dark: #178571;
  --orange: #F08A3C;
  --purple: #7A5CC8;
  --blue: #3B82C4;
  --coral: #E0566B;
  --route: #5f7f95;
  --radius-big: 32px;
  --radius: 16px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
p { margin: 0; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; font-size: 1.0625rem; text-decoration: none; box-shadow: 0 6px 0 var(--teal-dark); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--teal-dark); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal-dark); }
.btn-quiet { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px #c9dce8 inset, 0 6px 0 #c9dce8; }
.btn-quiet:hover { box-shadow: 0 0 0 2px #b4cddc inset, 0 8px 0 #b4cddc; }
.btn-quiet:active { box-shadow: 0 0 0 2px #b4cddc inset, 0 2px 0 #b4cddc; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; box-shadow: 0 4px 0 var(--teal-dark); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(251, 253, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(34, 50, 74, .06); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.brand-boat { width: 34px; height: 24px; color: var(--teal); flex: 0 0 auto; }
.top-links { display: flex; gap: 22px; margin-left: auto; }
.top-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.top-links a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; max-width: 14ch; text-wrap: balance; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }

/* Hero island: one striking island, the four areas floating round it, a boat sailing round */
.hero > * { min-width: 0; }
.isle-hero { position: relative; margin: 0; aspect-ratio: 1 / .92; border-radius: var(--radius-big); overflow: hidden; background: radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, .7), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='18'%3E%3Cpath d='M2 12c6-6 12-6 18 0s12 6 18 0' fill='none' stroke='%23b9dcef' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"), var(--sea); box-shadow: 0 30px 60px -30px rgba(42, 111, 143, .45); }
.isle-main { position: absolute; left: 50%; top: 55%; width: 58%; height: 66%; transform: translate(-50%, -50%); z-index: 2; }
.isle-main svg, .isle-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(42, 111, 143, .2)); }
.float { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 8px 18px -8px rgba(34, 50, 74, .35); font-family: var(--display); font-weight: 700; font-size: clamp(.85rem, 1.4vw, 1rem); color: var(--ink); animation: drift 6s ease-in-out infinite; }
.float svg { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }
.f1 { left: 6%; top: 14%; }
.f2 { right: 6%; top: 20%; animation-delay: -1.5s; }
.f3 { left: 8%; bottom: 14%; animation-delay: -3s; }
.f4 { right: 7%; bottom: 10%; animation-delay: -4.5s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -8px); } }
.hero-boat { position: absolute; left: 0; top: 0; z-index: 3; width: clamp(48px, 13%, 84px); aspect-ratio: 64 / 44; color: var(--teal); will-change: transform; pointer-events: none; }
.hero-boat img, .hero-boat-svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(34, 50, 74, .18)); }
.hero-boat img { aspect-ratio: auto; }

/* Promise */
.promise { background: var(--sea); padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); }
.promise p { max-width: 30em; margin: 0 auto; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; text-align: center; color: var(--ink); text-wrap: balance; }

/* Section titles */
.section-title { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.section-intro { margin-top: 12px; color: var(--ink-soft); font-size: 1.15rem; max-width: 36em; }

/* The voyage: four islands along a route */
.voyage { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px); }
.voyage > .section-title, .voyage > .section-intro { text-align: center; margin-left: auto; margin-right: auto; }
.rail { position: absolute; left: 50%; top: 260px; bottom: 60px; width: 40px; margin-left: -20px; pointer-events: none; }
.rail-svg { width: 40px; height: 100%; }
.rail-boat { position: absolute; left: -6px; top: 0; width: 52px; height: 36px; color: var(--teal); transform: translateY(0); will-change: transform; filter: drop-shadow(0 4px 4px rgba(34, 50, 74, .15)); }
.stop > * { min-width: 0; }
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 120px); align-items: center; margin-top: clamp(56px, 8vw, 110px); }
.stop:nth-of-type(even) .stop-art { order: 2; }
.stop-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-big); background: radial-gradient(circle at 50% 120%, var(--isle-soft), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='18'%3E%3Cpath d='M2 12c6-6 12-6 18 0s12 6 18 0' fill='none' stroke='%23c6e2f2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"), var(--sea); display: grid; place-items: center; }
.stop-art svg, .stop-art img { width: 82%; height: auto; }
.stop-art img { object-fit: contain; max-height: 88%; }
.stop-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.stop-lede { margin-top: 14px; font-size: 1.15rem; color: var(--ink-soft); }
.gains { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.gains li { position: relative; padding-left: 30px; }
.gains li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--isle); box-shadow: 0 0 0 4px color-mix(in srgb, var(--isle) 20%, transparent); }

/* Daily */
.daily { background: var(--sea); padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.daily-head, .daily-grid { max-width: 1080px; margin: 0 auto; }
.daily-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 44px; }
.trait-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.trait p { margin-top: 6px; color: var(--ink-soft); }

/* Three legs */
.legs { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.horizon { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.horizon::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; border-top: 3px dotted #9db7c8; }
.horizon li { position: relative; padding-right: 28px; }
.leg-num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--teal-dark); }
.horizon li:nth-child(2) .leg-num { border-color: var(--blue); color: var(--blue); }
.horizon li:nth-child(3) .leg-num { border-color: var(--purple); color: var(--purple); }
.horizon h3 { margin-top: 18px; font-size: 1.45rem; }
.horizon p { margin-top: 8px; color: var(--ink-soft); max-width: 22em; }

/* Together */
.together { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1080px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 110px); }
.together-art svg { width: 100%; height: auto; border-radius: var(--radius-big); }
.together-copy p { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); }
.together-copy .small-print { font-size: .98rem; }
.pair-a { animation: bob 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pair-b { animation: bob 3.4s -1.7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }

/* Made for real life */
.life { background: linear-gradient(var(--paper), var(--sea)); padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 110px); }
.life > .section-title { max-width: 1080px; margin: 0 auto; }
.life-grid { max-width: 1080px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.life-grid h3 { font-size: 1.2rem; padding-top: 16px; border-top: 3px solid var(--sand); }
.life-grid p { margin-top: 8px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--sea); padding: 0 clamp(16px, 4vw, 48px) clamp(56px, 8vw, 110px); }
.contact-card { position: relative; max-width: 860px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-big); background: #fffaf0; box-shadow: 0 24px 50px -28px rgba(42, 80, 110, .5); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 2.05rem, rgba(59, 130, 196, .1) 2.05rem, rgba(59, 130, 196, .1) calc(2.05rem + 1px)); }
.contact-card h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
.contact-card > p { margin-top: 10px; font-size: 1.2rem; color: var(--ink-soft); }



.foot { padding: 28px clamp(16px, 4vw, 48px) 40px; background: var(--sea); color: var(--ink-soft); }
.foot p { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: .95rem; }

/* Narrow screens */
@media (max-width: 900px) {
  .top-links { display: none; }
  .top .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .daily-grid { grid-template-columns: repeat(2, 1fr); }
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .together { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rail { left: 22px; margin-left: 0; top: 230px; width: 30px; }
  .rail-svg { width: 30px; }
  .rail-boat { width: 40px; height: 28px; left: -5px; }
  .stop { grid-template-columns: 1fr; gap: 22px; padding-left: 52px; }
  .stop:nth-of-type(even) .stop-art { order: 0; }
  .voyage > .section-title, .voyage > .section-intro { text-align: left; margin-left: 0; }
  .horizon { grid-template-columns: 1fr; gap: 28px; }
  .horizon::before { left: 27px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 3px dotted #9db7c8; }
  .horizon li { padding: 0 0 0 76px; }
  .leg-num { position: absolute; left: 0; top: 0; }
  .horizon h3 { margin-top: 10px; }
}
@media (max-width: 520px) {
  .daily-grid, .life-grid { grid-template-columns: 1fr; }
  .top { gap: 12px; }
  .brand { font-size: 1.05rem; white-space: nowrap; }
  .brand-boat { width: 28px; height: 20px; }
  .btn { width: 100%; }
  .top .btn-small { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pair-a, .pair-b, .float { animation: none; }
  .btn { transition: none; }
}

/* Small phones: keep the top bar on one line */
@media (max-width: 420px) {
  .top { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand { min-width: 0; font-size: .98rem; gap: 7px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .brand-boat { width: 24px; height: 17px; }
  .top .btn-small { min-height: 38px; padding: 0 13px; font-size: .85rem; }
}
