/* Carvesense site. Colours are the app's own (ios/SurfAnalyser/Common/Theme.swift). */
:root {
  --paper: #F6F1E7;
  --ocean: #E4F1EE;
  --surface: #FFFFFF;
  --seafoam: #0EA88C;
  --lagoon: #1F7FCC;
  --sunset: #E0703D;
  --sand: #FFD37A;
  --violet: #7B61D9;
  --abyss: #0D2334;
  --ink: #0D2334;
  --ink-2: rgba(13, 35, 52, 0.66);
  --ink-3: rgba(13, 35, 52, 0.45);
  --hairline: rgba(13, 35, 52, 0.10);
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--lagoon); }
a:hover { color: var(--seafoam); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Top bar ── */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: rgba(246, 241, 231, 0.78); border-bottom: 1px solid var(--hairline); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--font-round); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover { color: var(--ink); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 17px; }
.btn-store { background: var(--abyss); color: #fff; }
.btn-store:hover { color: #fff; background: #000; }
.btn-store svg { width: 22px; height: 22px; fill: currentColor; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; line-height: 1.1; }
.btn-store span { line-height: 1.15; text-align: left; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--hairline); }
.btn-ghost:hover { color: var(--ink); background: #fff; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; background: linear-gradient(180deg, var(--ocean) 0%, var(--paper) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--seafoam); margin-bottom: 14px; }
.hero h1 { font: 800 clamp(40px, 6vw, 68px)/1.02 var(--font-round); letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--seafoam), var(--lagoon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 20px; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.hero-phone { justify-self: center; padding-bottom: 40px; }
.swell { display: block; width: 100%; height: 90px; margin-top: -10px; }

/* ── Phone frame (CSS only) ── */
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 1320 / 2868; border-radius: 15% / 7%; background: linear-gradient(#2e2e32, #08080a); padding: 3.2%; box-shadow: 0 40px 80px -30px rgba(13, 35, 52, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 12.5% / 5.8%; background: #000; }
.phone::after { content: ""; position: absolute; top: 4.6%; left: 50%; width: 27%; height: 2.7%; transform: translateX(-50%); background: #060608; border-radius: 999px; }
.phone.landscape { width: min(760px, 92vw); aspect-ratio: 2868 / 1320; border-radius: 7% / 15%; padding: 1.5%; }
.phone.landscape img, .phone.landscape video { border-radius: 5.8% / 12.5%; }
.phone.landscape::after { top: 50%; left: 2.3%; width: 1.3%; height: 26%; transform: translateY(-50%); }

.feature .phone.landscape { width: 100%; max-width: 520px; }

/* iPad frame (landscape) for the video */
.tablet { position: relative; width: min(900px, 94vw); margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 4.5% / 6%; background: linear-gradient(#2e2e32, #08080a); padding: 2.2%; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.tablet video, .tablet img { width: 100%; height: 100%; object-fit: cover; border-radius: 2.6% / 3.5%; background: #000; }

/* ── Sections ── */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font: 800 clamp(30px, 4.4vw, 46px)/1.08 var(--font-round); letter-spacing: -0.015em; margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin: 0 auto 96px; max-width: 980px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font: 800 32px/1.12 var(--font-round); margin: 0 0 14px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-2); margin: 0 0 14px; }
.feature ul { padding-left: 20px; color: var(--ink-2); margin: 0; }
.feature li { margin: 4px 0; }
.feature .phone { justify-self: center; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag.seafoam { background: rgba(14, 168, 140, 0.14); color: #087a66; }
.tag.lagoon { background: rgba(31, 127, 204, 0.14); color: #165f99; }
.tag.sunset { background: rgba(224, 112, 61, 0.16); color: #a24b22; }
.tag.violet { background: rgba(123, 97, 217, 0.15); color: #5a43b0; }

/* ── Video band ── */
.video-band { background: linear-gradient(160deg, var(--lagoon) 0%, var(--abyss) 85%); color: #fff; }
.video-band .section-head p { color: rgba(255, 255, 255, 0.78); }
.video-band .phone { margin: 0 auto; }
.video-caption { text-align: center; color: rgba(255, 255, 255, 0.7); font-size: 15px; margin-top: 22px; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; }
.card h4 { margin: 12px 0 6px; font: 700 19px/1.25 var(--font-round); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--seafoam), var(--lagoon)); }
.card .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.price { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px; }
.price h4 { margin: 0 0 4px; font: 800 24px/1.2 var(--font-round); }
.price .amount { font: 800 20px/1.3 var(--font-round); color: var(--seafoam); margin-bottom: 14px; }
.price.full .amount { color: var(--sunset); }
.price ul { margin: 0; padding-left: 20px; color: var(--ink-2); }

.final { text-align: center; background: var(--ocean); }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 16px 40px -18px rgba(13, 35, 52, 0.5); }
.final h2 { font: 800 clamp(30px, 4.4vw, 44px)/1.1 var(--font-round); margin: 0 0 12px; }
.final p { color: var(--ink-2); margin: 0 0 26px; font-size: 19px; }
.final .cta { justify-content: center; }

footer { padding: 36px 0 48px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--hairline); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* ── Document pages (privacy, support) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font: 800 clamp(32px, 5vw, 44px)/1.1 var(--font-round); letter-spacing: -0.015em; margin: 0 0 12px; }
.doc h2 { font: 800 26px/1.2 var(--font-round); margin: 44px 0 10px; }
.doc h3 { font: 700 19px/1.3 var(--font-round); margin: 30px 0 6px; }
.doc p, .doc li { color: rgba(13, 35, 52, 0.82); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc em:first-child { color: var(--ink-3); }
.doc hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
.doc code { background: rgba(13, 35, 52, 0.06); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.doc blockquote, .doc .callout { margin: 20px 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--seafoam); border-radius: 12px; }

/* ── Small screens ── */
@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; text-align: center; margin-bottom: 72px; }
  .feature.flip .feature-copy { order: 0; }
  .feature ul { text-align: left; display: inline-block; }
  .cards, .pricing { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .topbar nav { gap: 14px; }
  .topbar nav a.hide-sm { display: none; }
}
