:root {
  color-scheme: light;
  --ink: #3a3a3a;
  --ink-soft: #6b6458;
  --cream: #fffbf3;
  --amber: #ffedbf;
  --amber-crest: #fff7e2;
  --amber-fill: #ffcb5c;
  --amber-ink: #8a6a1e;
  --amber-ink-soft: #6b5a2e;
  --amber-copy: #5a4a22;
  --red: #d9473b;
  --red-deep: #a8342a;
  --red-hover: #c93f34;
  --blue-ground: #e3f2fc;
  --blue-swell: #bfe2f7;
  --blue-copy: #2c5d7c;
  --live-blue: #7cc8ee;
  --shell: 1120px;
  --gutter: 32px;
  --display: "Baloo 2", system-ui, -apple-system, sans-serif;
  --system: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
}

a:hover {
  color: #b23a30;
}

.shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 720px;
  background: var(--amber);
}

.hero-crest {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
}

.hero-body {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  padding-block: 120px 80px;
}

.hero-copy {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
}

h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 440px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--amber-copy);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

.cta {
  display: flex;
  align-items: center;
  height: 64px;
  padding-inline: 28px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--red-deep), 0 12px 24px rgba(160, 50, 40, 0.22);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  background: var(--red-hover);
  color: #fff;
}

/* The design's buttons sit on a solid shadow and sink into it when pressed. */
.cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--red-deep), 0 6px 14px rgba(160, 50, 40, 0.22);
}

.cta-note {
  font-size: 17px;
  font-weight: 600;
  color: var(--amber-ink-soft);
}

.hero-cup {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  margin-inline: auto;
}

.cup {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

/* How it works ---------------------------------------------------------- */

.how {
  position: relative;
  overflow: hidden;
  background: var(--blue-ground);
}

.how-swell {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
}

.how-body {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  justify-content: space-between;
  padding-block: 110px 120px;
}

.how-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.step-sub {
  font-size: 19px;
  line-height: 1.4;
  color: var(--blue-copy);
}

/* Lock Screen mock ------------------------------------------------------ */

.lockscreen {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  padding: 26px 14px 16px;
  border-radius: 36px;
  background: #1e2b3b;
  color: #fff;
  font-family: var(--system);
  box-shadow: 0 30px 60px rgba(20, 60, 90, 0.25);
}

.lock-date {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
}

.lock-clock {
  margin: 0 0 22px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.activity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(18, 20, 24, 0.92);
}

.activity-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--amber);
}

.mini-cup {
  display: block;
  width: 14px;
  height: auto;
  overflow: visible;
}

.activity-name {
  flex: 1;
}

.activity-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.activity-timer {
  display: flex;
  flex-direction: column;
}

.timer-value {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--live-blue);
}

.timer-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.activity-stats {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-value.drink {
  color: var(--amber-fill);
}

.stat-value.water {
  color: var(--live-blue);
}

.activity-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.activity-fill {
  width: 47%;
  height: 100%;
  border-radius: 3px;
  background: var(--live-blue);
}

.activity-actions {
  display: flex;
  gap: 8px;
}

.pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 19px;
  font-size: 15px;
  font-weight: 600;
}

.pill-drink {
  background: rgba(255, 203, 92, 0.18);
  color: var(--amber-fill);
}

.pill-water {
  background: rgba(124, 200, 238, 0.2);
  color: var(--live-blue);
}

/* Footer ---------------------------------------------------------------- */

footer {
  background: var(--cream);
}

.foot-body {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 40px;
}

.foot-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}

.foot-cup {
  width: 30px;
}

.foot-note {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Motion ---------------------------------------------------------------- */

.bubbles,
.drops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -30px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: wd-up linear infinite;
}

.drop {
  position: absolute;
  top: -30px;
  animation: wd-fall cubic-bezier(0.5, 0, 0.9, 0.6) infinite;
}

.drop span {
  display: block;
  border-radius: 0 50% 50% 50%;
  background: #5fb6e0;
  opacity: 0.8;
  transform: rotate(45deg);
}

.fizz circle {
  animation: wd-fizz ease-in infinite;
}

.wave {
  animation: wd-wave 3.4s linear infinite;
}

.wave-beer {
  animation: wd-wave-reverse 2.6s linear infinite;
}

@keyframes wd-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-100px); }
}

@keyframes wd-wave-reverse {
  from { transform: translateX(-100px); }
  to { transform: translateX(0); }
}

@keyframes wd-up {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  8% { opacity: 1; }
  88% { transform: translateY(-760px) scale(1); opacity: 1; }
  100% { transform: translateY(-800px) scale(1.6); opacity: 0; }
}

@keyframes wd-fizz {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-120px); opacity: 0; }
}

@keyframes wd-fall {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(900px); opacity: 0; }
}

/* Narrow viewports ------------------------------------------------------ */

@media (max-width: 820px) {
  :root {
    --gutter: 22px;
  }

  .hero {
    min-height: 0;
  }

  .hero-body {
    padding-block: 104px 64px;
  }

  .how-body {
    padding-block: 72px 88px;
  }

  .lede {
    font-size: 21px;
  }

  .cta {
    height: 60px;
    font-size: 21px;
  }

  .step-title {
    font-size: 23px;
  }

  .step-sub {
    font-size: 17px;
  }

  .foot-body {
    padding-block: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .drop,
  .fizz circle,
  .wave,
  .wave-beer {
    animation: none;
  }

  .cta {
    transition: none;
  }
}

/* Document pages (privacy, terms, support) ------------------------------ */

.doc {
  background: var(--cream);
}

.doc-body {
  max-width: 760px;
  padding-block: 72px 96px;
}

.doc-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.doc h1 {
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1;
  margin-bottom: 8px;
}

.doc-updated {
  margin: 0 0 40px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.doc p,
.doc li {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  color: #4a443c;
}

.doc p {
  margin: 0 0 16px;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc strong {
  font-weight: 700;
}

.doc-callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--amber-crest);
  border: 2px solid var(--amber);
}

.doc-callout p:last-child {
  margin-bottom: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 16px;
  font-weight: 600;
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
}

.foot-tail {
  padding-top: 0;
  border-top: 2px solid #efe7d7;
}
