/*
  Palette
  glass   #F2F7FB  page
  ink     #0E2239  text (a navy, the colour of deep water)
  pebble  #56677A  secondary text
  water   #1F7AFF  the brand, the water, the one action colour
  shallow #9ED8FF  lighter water, the back wave
  line    #D6E2EC  hairlines
*/
:root {
  --glass: #F2F7FB;
  --ink: #0E2239;
  --pebble: #56677A;
  --water: #1F7AFF;
  --shallow: #9ED8FF;
  --line: #D6E2EC;
  --surface: #FFFFFF;
  --bottle: rgba(255, 255, 255, 0.75);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass: #08172A;
    --ink: #EAF2FA;
    --pebble: #9AABBD;
    --line: #1F3550;
    --surface: #0F2238;
    --bottle: rgba(255, 255, 255, 0.08);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--glass);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

header { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
header nav a { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--water); }

/* Hero: words on one side, a bottle you can drink from on the other. */
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; padding: 48px 0 96px; }
.hero > * { min-width: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 900; margin: 0 0 24px; max-width: 14ch; }
.lede { font-size: 20px; color: var(--pebble); max-width: 38ch; margin: 0 0 32px; }

.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
.signup input[type=email], .signup select {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.signup select { flex-basis: 100%; color: var(--pebble); max-width: 100%; text-overflow: ellipsis; }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--water); }
.signup button {
  flex: 0 0 auto; font: inherit; font-weight: 800; font-size: 17px; padding: 14px 22px;
  border: 0; border-radius: 14px; color: #fff; background: var(--water); cursor: pointer;
}
.signup button[disabled] { opacity: .6; cursor: progress; }
/* Which phone: two tap targets, styled from real radio buttons so keyboard and screen readers work. */
.phone { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phone-label { font-size: 15px; font-weight: 700; color: var(--pebble); margin-right: 2px; }
.phone label { position: relative; }
.phone input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.phone span:not(.phone-label) {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 15px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.phone input:checked + span { background: var(--water); border-color: var(--water); color: #fff; }
.phone input:focus-visible + span { outline: 2px solid var(--water); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--pebble); margin: 10px 0 0; min-height: 1.5em; }
.form-note.ok { color: #0B8A5F; font-weight: 700; }
.form-note.err { color: #C2410C; font-weight: 700; }

/* The demo bottle */
.demo { display: grid; justify-items: center; gap: 18px; }
.bottle { width: 210px; height: auto; overflow: visible; }
.bottle .glass-body { fill: var(--bottle); stroke: var(--line); stroke-width: 3; }
.bottle .cap { fill: var(--water); transform-box: fill-box; transform-origin: 100% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.bottle.drinking .cap { transform: rotate(32deg) translateY(-6px); }
.bottle .level { transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.bottle .wave { animation: wave 3.2s linear infinite; }
.bottle .wave.back { animation-duration: 4.6s; animation-direction: reverse; opacity: .55; }
.bottle.drinking .wave { animation-duration: 1.4s; }
@keyframes wave { to { transform: translateX(-200px); } }
.readout { text-align: center; }
.readout strong { display: block; font-size: 44px; line-height: 1; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout span { color: var(--pebble); font-size: 16px; }
.hold {
  font: inherit; font-weight: 800; font-size: 18px; width: 260px; padding: 16px 20px; border-radius: 999px;
  border: 0; background: var(--water); color: #fff; cursor: pointer; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s ease;
}
.hold:active, .hold.held { transform: scale(.97); }
.demo-hint { font-size: 14px; color: var(--pebble); margin: -6px 0 0; }

section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 900; margin: 0 0 16px; max-width: 18ch; }
.section-lede { color: var(--pebble); font-size: 19px; max-width: 46ch; margin: 0 0 48px; }

/* Three real steps, so they are numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps img { border-radius: 30px; border: 1px solid var(--line); margin-bottom: 20px; }
.steps h3 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.steps h3::before { content: counter(step) ". "; color: var(--water); }
.steps p { margin: 0; color: var(--pebble); font-size: 17px; max-width: 30ch; }

.flex { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; }
.flex > * { min-width: 0; }
.flex img { border-radius: 26px; transform: rotate(2deg); }
.flex p { color: var(--pebble); font-size: 19px; max-width: 40ch; margin: 0; }

.promise { font-size: clamp(28px, 4vw, 46px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; max-width: 24ch; margin: 0; }
.promise span { color: var(--pebble); }

.closing .signup { margin-top: 28px; }

/* Launch: the App Store button leads; Android signups move to the closing section. */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store {
  display: inline-block; font-weight: 800; font-size: 18px; padding: 16px 26px;
  border-radius: 14px; color: #fff; background: var(--water); text-decoration: none;
}
.android { font-weight: 700; font-size: 16px; color: var(--water); text-decoration: none; }
.android:hover, .store:hover { text-decoration: underline; }

footer { padding: 40px 0 56px; color: var(--pebble); font-size: 14px; border-top: 1px solid var(--line); }
footer p { margin: 6px 0; max-width: 70ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 24px; }
  .flex { grid-template-columns: 1fr; gap: 40px; }
  .flex img { max-width: 320px; }
}
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 320px; }
  section { padding: 64px 0; }
  .signup button { flex: 1 1 100%; }
  .store { flex: 1 1 100%; text-align: center; }
  .bottle { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .bottle .wave { animation: none; }
  .bottle .level, .bottle .cap, .hold { transition: none; }
}

/* Privacy notice */
.legal { padding: 24px 0 72px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); max-width: none; }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 8px; }
.legal p { max-width: 64ch; line-height: 1.6; color: var(--ink); }
.legal .updated { color: var(--pebble); }
.form-note a { color: inherit; }
