/* Bluvo website. Same look as the app (src/theme/theme.ts): light and clean,
   deep-blue ink, one blue brand color, aqua water from the icon. The one bold
   moment is the waterline under the home hero; everything else stays quiet. */

@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #F3F7FA;
  --card: #FFFFFF;
  --line: #E2E9F0;
  --ink: #0B2540;
  --ink-soft: #1F3B5A;
  --muted: #4B5F74;
  --blue: #0B5FCC;
  --blue-dark: #08479A;
  --blue-tint: #E6F0FC;
  --aqua: #5FD0E3;
  --ok-bg: #E2F5EC; --ok: #0B6B43;
  --low-bg: #FFF0DD; --low: #8F4500;
  --high-bg: #FDE7E6; --high: #A12620;
  --night: #0B2540;
  --radius: 20px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'tnum' 0;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; word-spacing: 0.06em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 14px; z-index: 10; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.is-home .top .brand, .is-home .top .nav a { color: #fff; }
.is-home .top .nav a:hover { color: #DCE9FB; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-store { background: #000; color: #fff; }
.btn-store:hover { background: #1b1b1b; color: #fff; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1; }
.btn-store span { line-height: 1.15; text-align: left; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* Home hero: blue sky above, aqua water below, the phone stands in it */
.hero { background: var(--blue); color: #fff; position: relative; z-index: 2; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; padding-top: 28px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 170px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); letter-spacing: -0.03em; word-spacing: 0.08em; max-width: 13ch; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #DCE9FB; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: #B9D3F5; }
.hero-phone { position: relative; z-index: 3; justify-self: center; width: min(330px, 78vw); margin-bottom: -170px; }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; }
.water svg { position: absolute; top: -27px; left: 0; width: 100%; height: 28px; }
.water::after { content: ''; position: absolute; inset: 0; background: var(--aqua); }
.below-hero { background: var(--bg); position: relative; z-index: 1; }

/* Phone frame around real app screenshots */
.phone { border-radius: 46px; padding: 11px; background: #0B1B2E; box-shadow: 0 30px 60px -20px rgba(11,37,64,.45); }
.phone img { border-radius: 36px; aspect-ratio: 390 / 844; width: 100%; background: var(--bg); }
.phone.small { border-radius: 38px; padding: 9px; }
.phone.small img { border-radius: 30px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { padding-top: 0; }
.intro { max-width: 640px; }
.intro p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.first { padding-top: 250px; }

/* Test → plan */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: 48px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin-top: 8px; }
.steps p { color: var(--muted); margin-top: 6px; }
.reading { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 4px; }
.reading-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.reading dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.reading dl div { background: var(--bg); border-radius: 14px; padding: 12px; }
.reading dt { font-size: 13px; color: var(--muted); }
.reading dd { margin: 2px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reading dd small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-top: 6px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.low { background: var(--low-bg); color: var(--low); }
.chip.high { background: var(--high-bg); color: var(--high); }
.flow-phone { width: min(330px, 100%); justify-self: center; }

/* Feature rows: text beside a real screen */
.row { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 7vw, 96px); align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.row.flip { grid-template-columns: 300px 1fr; }
.row.flip .row-text { order: 2; }
.row-text p { color: var(--muted); margin-top: 14px; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.tags li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.pro-note { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--blue); background: var(--blue-tint); border-radius: 999px; padding: 4px 12px; }

/* Water types */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.kinds div { padding: 26px; }
.kinds div + div { border-left: 1px solid var(--line); }
.kinds p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* Method */
.method { background: var(--night); color: #D6E4F5; border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.method h2 { color: #fff; }
.method p { margin-top: 16px; }
.method ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.method li { padding-left: 18px; border-left: 3px solid var(--aqua); }
.method a { color: #9CC3F5; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan.pro { border: 2px solid var(--blue); }
.plan h3 { font-size: 24px; }
.plan .price { margin-top: 6px; color: var(--muted); }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%230B6B43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.prices { margin-top: 22px; display: grid; gap: 8px; }
.prices div { display: flex; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.prices strong { font-variant-numeric: tabular-nums; }
.small { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 27px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq details > div p + p { margin-top: 10px; }

/* Closing call */
.closing { text-align: center; }
.closing p { color: var(--muted); margin: 14px auto 28px; max-width: 32em; }

/* Inner pages (privacy, terms, support, guides) */
.page { padding: 32px 0 96px; }
.page-head { max-width: 720px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
.page-head .lede { margin-top: 16px; font-size: 19px; color: var(--muted); }
.page-head .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.prose { max-width: 720px; margin-top: 40px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.prose h3 { margin: 28px 0 8px; font-size: 19px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prose th { font-weight: 700; color: var(--ink); background: #F8FAFC; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--low-bg); color: #5E2E00; border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.callout.blue { background: var(--blue-tint); color: var(--ink-soft); }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 36px; max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact p { color: var(--muted); margin-top: 4px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }

/* Guides */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; max-width: 900px; padding: 0; list-style: none; }
.guide-list a { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; color: var(--ink); height: 100%; }
.guide-list a:hover { border-color: var(--blue); }
.guide-list strong { display: block; font-size: 18px; }
.guide-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.dot { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.dot svg { width: 18px; height: 18px; }
.t-grey { background: #EEF1F5; color: var(--muted); }
.t-green { background: #E3F4E9; color: #11703F; }
.t-blue { background: var(--blue-tint); color: var(--blue); }
.t-orange { background: var(--low-bg); color: var(--low); }
.t-teal { background: #E2F4F7; color: #0A7488; }
.app-box { margin-top: 48px; max-width: 720px; background: var(--blue); color: #fff; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.app-box p { color: #DCE9FB; margin-top: 6px; }
.app-box h2 { font-size: 24px; color: #fff; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.foot nav a:hover { color: var(--blue); }
.foot .brand { font-size: 18px; }
.foot .brand svg { width: 28px; height: 28px; }
.foot p { margin-top: 10px; max-width: 46em; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-phone { width: min(290px, 74vw); margin-bottom: -300px; }
  .water { height: 150px; }
  .first { padding-top: 360px; }
  .flow, .method, .plans { grid-template-columns: 1fr; }
  .row, .row.flip { grid-template-columns: 1fr; padding: 48px 0; }
  .row.flip .row-text { order: 0; }
  .row .phone { width: min(280px, 80%); justify-self: center; }
  .kinds { grid-template-columns: 1fr; }
  .kinds div + div { border-left: 0; border-top: 1px solid var(--line); }
  .guide-list { grid-template-columns: 1fr; }
  .app-box { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .nav .hide-s { display: none; }
  .brand { font-size: 19px; }
  .reading dl { grid-template-columns: repeat(2, 1fr); }
  .hero .ctas .btn { width: 100%; }
}
