:root {
  --sand: #FFF8EE;
  --sand-warm: #FFF1DC;
  --dune-far: #F8DDB3;
  --dune-near: #F1C27F;
  --ink: #0F3B3D;
  --ink-soft: #3E6E6B;
  --teal: #14B8A6;
  --teal-deep: #0E8F86;
  --teal-pale: #9BE5DA;
  --water-top: #2CC6B4;
  --water-bottom: #0B7F77;
  --saffron: #FFC24B;
  --coral: #FF6B4A;

  --font: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 74rem;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100, "opsz" 14;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:focus-visible, .store:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 0.5rem; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 94, "opsz" 96;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.6vw, 6.4rem); line-height: 0.98; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; }
h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; color: var(--ink-soft); max-width: var(--measure); text-wrap: pretty; }
p { text-wrap: pretty; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand img { width: 2.6rem; height: 2.6rem; border-radius: 0.65rem; box-shadow: 0 2px 8px rgb(15 59 61 / 0.18); }
.top nav { display: flex; gap: 1.6rem; font-weight: 500; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--teal-deep); }

/* App Store button: the app is not live yet, so it reads "coming soon". */
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.75rem 1.35rem 0.75rem 1.1rem; border-radius: 0.9rem;
  line-height: 1.1; transition: transform 0.15s ease, background 0.15s ease;
}
a.store:hover { background: #154c4f; transform: translateY(-1px); }
.store svg { width: 1.6rem; height: 1.6rem; flex: none; }
.store small { display: block; font-size: 0.75rem; font-weight: 500; opacity: 0.8; }
.store strong { display: block; font-size: 1.15rem; font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(5rem, 10vw, 9rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-top: clamp(2rem, 6vw, 5rem); position: relative; z-index: 1; }
.hero .lede { margin-top: 1.6rem; }
.hero .store { margin-top: 2.2rem; }
.hero-note { margin-top: 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }

/* The camel that fills with drink bands on load, like the app's home screen. */
.camel-fill { position: relative; aspect-ratio: 858 / 900; width: min(100%, 34rem); margin-inline: auto; }
.camel-fill .shape, .camel-fill .bands {
  position: absolute; inset: 0;
  -webkit-mask: url("assets/camel-silhouette.png") center / contain no-repeat;
  mask: url("assets/camel-silhouette.png") center / contain no-repeat;
}
.camel-fill .shape { background: var(--dune-far); }
.camel-fill .bands { display: flex; flex-direction: column-reverse; }
.camel-fill .band { flex: none; height: 0; animation: pour 0.9s cubic-bezier(.3, .7, .3, 1) forwards; }
.camel-fill .band:nth-child(1) { --h: 30%; background: #14B8A6; animation-delay: 0.35s; }
.camel-fill .band:nth-child(2) { --h: 19%; background: #7CC23A; animation-delay: 1.15s; }
.camel-fill .band:nth-child(3) { --h: 19%; background: #7A4A32; animation-delay: 1.95s; }
.camel-fill .band:nth-child(4) { --h: 16%; background: #F7A928; animation-delay: 2.75s; }
.camel-fill .band:nth-child(5) { --h: 16%; background: #EC6A93; animation-delay: 3.55s; }
@keyframes pour { to { height: var(--h); } }
.camel-fill .band + .band { box-shadow: 0 6px 0 -3px rgb(255 255 255 / 0.25); }
.fill-readout {
  position: absolute; right: 0; top: -5%;
  background: #fff; border-radius: 1rem; padding: 0.6rem 0.95rem;
  box-shadow: 0 10px 30px -12px rgb(15 59 61 / 0.35);
  font-weight: 800; font-size: 1.6rem; color: var(--teal); line-height: 1;
}
.fill-readout span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); margin-top: 0.3rem; }

/* Dunes behind the hero */
.dunes { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(9rem, 22vw, 18rem); z-index: 0; }
.dunes svg { width: 100%; height: 100%; display: block; }

/* Tour: one section per store image, alternating sides. */
.tour { padding-block: clamp(4rem, 8vw, 7rem); }
.screen-row {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 34rem);
  justify-content: center; align-items: center; gap: clamp(2.5rem, 7vw, 7rem);
}
.screen-row + .screen-row { margin-top: clamp(4.5rem, 9vw, 8rem); }
.screen-row:nth-child(even) { grid-template-columns: minmax(0, 34rem) minmax(0, 23rem); }
.screen-row:nth-child(even) img { order: 2; }
.screen-row img { width: 100%; border-radius: 1.75rem; box-shadow: 0 44px 70px -38px rgb(15 59 61 / 0.55), 0 0 0 1px rgb(15 59 61 / 0.06); }
.screen-copy .lede { margin-top: 1.2rem; }
.ticks { list-style: none; padding: 0; margin-top: 1.6rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li + li { margin-top: 0.6rem; }
.ticks li::before { /* a small drop */
  content: ""; position: absolute; left: 0.2rem; top: 0.42em; width: 0.8rem; height: 0.8rem;
  background: var(--teal); border-radius: 50% 0 50% 50%; transform: rotate(-45deg);
}

/* Water share per drink, in the pour section */
.screen-copy .cups { margin-top: 2rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(0.35rem, 1vw, 0.7rem); align-items: end; }
.cup { text-align: center; }
.cup .glass { position: relative; height: clamp(5.5rem, 9vw, 7.5rem); border-radius: 0.4rem 0.4rem 0.9rem 0.9rem; background: #fff; box-shadow: inset 0 0 0 2px rgb(15 59 61 / 0.12); overflow: hidden; }
.cup .liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 82%; background: var(--c); }
.cup .liquid::before { /* the part that isn't water */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% - var(--water));
  background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.6) 0 3px, transparent 3px 7px);
}
.cup b { display: block; margin-top: 0.5rem; font-size: clamp(0.78rem, 1.1vw, 0.95rem); font-weight: 800; white-space: nowrap; letter-spacing: -0.02em; }
.cup span { display: block; font-size: clamp(0.68rem, 0.9vw, 0.8rem); color: var(--ink-soft); line-height: 1.2; }
.legend { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.6rem; }
.legend i { flex: none; width: 1.4rem; height: 0.9rem; border-radius: 0.2rem; background: repeating-linear-gradient(-45deg, #c7d5d2 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px #c7d5d2; }

.challenge-list { list-style: none; padding: 0; margin-top: 1.6rem; }
.challenge-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid rgb(15 59 61 / 0.12); }
.challenge-list li:first-child { border-top: 1px solid rgb(15 59 61 / 0.12); }
.challenge-list b { font-weight: 700; }
.challenge-list span { color: var(--ink-soft); text-align: right; font-size: 1rem; }

/* Features */
.features { padding-block: clamp(5rem, 10vw, 8rem) 0; }
.features h2 { max-width: 16ch; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem clamp(2rem, 4vw, 3.5rem); margin-top: 3rem; padding: 0; list-style: none; }
.feature-list li { border-top: 3px solid var(--teal); padding-top: 1.1rem; }
.feature-list p { margin-top: 0.55rem; color: var(--ink-soft); }

/* Challenges and looks */
.looks { padding-block: clamp(5rem, 10vw, 8rem); background: var(--ink); color: var(--sand); }
.looks a { color: var(--teal-pale); }
.looks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.looks .lede { color: #b9d3cf; margin-top: 1.4rem; }
.portraits { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.6vw, 1.1rem); }
.portraits img { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.portraits img:nth-child(even) { transform: translateY(1.4rem); }

/* Closing: the page ends in the oasis. */
.oasis { position: relative; background: linear-gradient(var(--water-top), var(--teal) 45%, var(--water-bottom)); color: #fff; text-align: center; padding-block: clamp(4rem, 9vw, 7rem) 2.5rem; margin-top: clamp(6rem, 10vw, 9rem); }
.oasis::before { /* wave crest */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(3rem, 6vw, 5rem);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C150 20 300 20 450 40 S750 70 900 44 S1110 18 1200 34 V80 H0Z' fill='%239BE5DA'/%3E%3Cpath d='M0 60 C180 38 330 44 480 58 S780 78 930 58 S1120 40 1200 52 V80 H0Z' fill='%232CC6B4'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.oasis img.mascot { width: clamp(9rem, 18vw, 13rem); margin: -9rem auto 1.5rem; position: relative; }
.oasis h2 { max-width: 15ch; margin-inline: auto; }
.oasis p { margin: 1.1rem auto 0; max-width: 32rem; color: #E3FAF6; font-size: 1.2rem; }
.oasis .store { margin-top: 2rem; background: #fff; color: var(--ink); }
.oasis a.store:hover { background: var(--sand); }
.foot { margin-top: clamp(4rem, 8vw, 6rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.95rem; color: #D2F4EF; }
.foot nav { display: flex; gap: 1.4rem; }
.foot a { color: #fff; }

/* Text pages: privacy, support */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page article { max-width: 42rem; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.page .updated { margin-top: 1rem; color: var(--ink-soft); }
.page h2 { font-size: 1.7rem; margin-top: 2.8rem; letter-spacing: -0.01em; }
.page p, .page ul { margin-top: 1rem; }
.page ul { padding-left: 1.2rem; }
.page li + li { margin-top: 0.4rem; }
.page .summary { margin-top: 1.6rem; }
.page strong { font-weight: 700; }
.toc { margin-top: 2.2rem; padding: 1.3rem 1.5rem; background: var(--sand-warm); border-radius: 1rem; border: 1px solid #F2DFC2; }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2 14rem; column-gap: 2rem; font-size: 1rem; }
.toc li { break-inside: avoid; }
.toc li + li { margin-top: 0.35rem; }
.page h2[id] { scroll-margin-top: 1.5rem; }
details { border-bottom: 1px solid #ecdcc4; padding-block: 1.1rem; }
details:first-of-type { margin-top: 1.5rem; border-top: 1px solid #ecdcc4; }
summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal-deep); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin-top: 0.7rem; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero-grid, .looks-grid { grid-template-columns: 1fr; }
  .camel-fill { width: min(100%, 26rem); }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .screen-row, .screen-row:nth-child(even) { grid-template-columns: 1fr; gap: 2rem; }
  .screen-row img, .screen-row:nth-child(even) img { order: 0; width: min(100%, 19rem); margin-inline: auto; }
}
@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
  .screen-copy .cups { grid-template-columns: repeat(4, 1fr); row-gap: 1.2rem; }
  .challenge-list li { flex-direction: column; gap: 0.1rem; }
  .challenge-list span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .camel-fill .band { animation: none; height: var(--h); }
  .store { transition: none; }
}
