@font-face { font-family: Runde; font-weight: 600; font-display: swap; src: url(assets/runde-600.woff2) format("woff2") }
@font-face { font-family: Runde; font-weight: 700; font-display: swap; src: url(assets/runde-700.woff2) format("woff2") }

:root {
  --ink: #0B2E3C; --pond: #12748B; --deep: #08243A; --down: #FFD24A; --bill: #F47A2C;
  --shallow: #DDF0F0; --mist: #F1F8F8; --quiet: #42606B; --line: #C4DCDF;
  --sky-text: #07303F; --sky-top: #8ED2DC;
  --view: max(100svh, 45rem);  /* one screen of pond, with room for the words and the demo */
  --round: Runde, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --edge: max(clamp(1.25rem, 5vw, 5rem), 50vw - 42rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0 }
html { -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth } }
body { background: var(--mist); color: var(--ink); font: 1.0625rem/1.6 system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: break-word }
img, svg, canvas { display: block; max-width: 100% }
img { height: auto }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .07em }
p, li, dd { text-wrap: pretty }
button, input { font: inherit; color: inherit }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px }
main:focus { outline: none }
.skip { position: fixed; z-index: 9; left: 1rem; top: -5rem; padding: .7rem 1.1rem; background: #fff; border-radius: 12px }
.skip:focus { top: 1rem }
.wrap { padding-inline: var(--edge) }

h1, h2, h3, summary { font-family: var(--round); font-weight: 700; text-wrap: balance }
h1 { font-size: clamp(min(2.75rem, 12.5vw), min(6.2vw, 10.5vh), 5.5rem); line-height: 1; letter-spacing: -.03em }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.025em }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em }

/* The bar has no edge: it takes the colour of whatever is behind it and melts into it. */
.bar { position: fixed; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .75rem var(--edge); color: var(--sky-text) }
.bar::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -3.5rem; background: var(--sky-top); pointer-events: none;
  mask-image: linear-gradient(#000 45%, #000000e6 53%, #000000b3 63%, #00000066 76%, #00000026 88%, #0000) }
.bar, .bar .buy { transition: color .25s, background-color .25s }
.bar img { transition: filter .25s }
.text .bar, html:not(.js) .bar { --sky-top: var(--mist); --sky-text: var(--ink) }
.bar.gold img { filter: brightness(.2) }
.bar.gold .buy { background: var(--ink); color: #fff }
.brand { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; font: 700 1.5rem/1 var(--round); letter-spacing: -.02em; text-decoration: none }
.bar nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem) }
.bar nav a { display: grid; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 500 }
.bar .buy:focus-visible { outline-color: var(--sky-text) }
.bar nav a:hover { text-decoration: underline }
.bar nav .buy { padding-inline: 1.1rem; min-height: 2.25rem; background: var(--down); color: var(--ink); border-radius: 99px; font: 700 1rem var(--round) }
@media (max-width: 40rem) { .bar nav a:not(.buy) { display: none } }
/* Where the first words start higher, the bar must melt away sooner. */
@media (max-width: 40rem), (max-height: 56rem) { .bar::before { bottom: -1.25rem } }

.button { display: inline-grid; place-items: center; min-height: 3.5rem; padding: .5rem 1.75rem; border-radius: 99px; background: var(--ink); color: #fff; font: 600 1.125rem/1.2 var(--round); text-decoration: none; transition: background .15s }
.button:hover { background: var(--pond) }
.button:active { transform: scale(.98) }
.button:focus-visible { outline-color: var(--ink); border-radius: 99px }
.button.quiet { background: none; color: inherit; box-shadow: inset 0 0 0 2px }
.button.quiet:hover { background: #fff4 }

/* The pond. Without JavaScript each section is a plain strip of its own sky. */
.reach { min-height: 80vh; padding: 7rem var(--edge) 5rem; color: #07303F; background: linear-gradient(#8ED2DC, #EAF6EA) }
.reach[data-sky=dusk] { color: #45200F; background: linear-gradient(#F2A36F, #FDE6BC) }
.reach[data-sky=sunset] { color: #3B1518; background: linear-gradient(#E28A7C, #FBCF9C) }
.reach[data-sky=morning] { color: #45200F; background: linear-gradient(#F7C4B4, #FDF3DC) }
.reach[data-sky=night] { color: #fff; background: linear-gradient(#0B1930, #08243A) }
.scene, .deck { display: none }
.say { max-width: 36rem }
.hero .say { max-width: 44rem }
.say p { margin-top: 1.25rem; max-width: 31rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5 }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem }
.say .go { max-width: none; margin-top: 2rem }
.go span { font-size: 1rem }

.pond { position: relative }
.js .sea { position: absolute; inset: 0 }
.js .scene { display: block; position: sticky; top: 0; width: 100%; height: var(--view); background: #8ED2DC }
.js .reach { position: relative; min-height: calc(1.7 * var(--view)); padding: 0; background: none; color: var(--sky-text) }
.js .say { position: sticky; top: 0; padding: clamp(5.5rem, 14svh, 10rem) 0 0 var(--edge); max-width: calc(36rem + var(--edge)) }
.js .reach:not(.hero) .say { padding-right: 1.25rem }
.js .hero .say { max-width: calc(46rem + var(--edge)) }

.js .hero { min-height: var(--view) }
.first:has(:focus-visible) { opacity: 1 !important }
.js .first { position: relative; height: var(--view) }
.js .first .say { position: static }
/* Where one screen holds both the words and the demo, they stay put for a moment, then leave together. */
@media (min-height: 45rem) { .js .hero { min-height: calc(1.3 * var(--view)) } .js .first { position: sticky; top: 0 } }
@media (max-height: 31rem) { .js .say { position: relative } }
.js .deck { position: absolute; bottom: 1.75rem; left: var(--edge); width: calc(100% - 2 * var(--edge)); display: grid; grid-template-columns: 12.5rem auto auto 1fr; align-items: center; gap: 1rem 1.25rem; padding: 1.125rem 1.5rem; border-radius: 20px; background: #fff; color: #1D1D1F }
.state strong { display: block; font: 700 1.375rem/1.2 var(--round) }
.state span { font-size: .9375rem; line-height: 1.35; display: block; color: #55595C; text-wrap: balance }
.source { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .5rem; border: 0; border-radius: 14px; background: #F0F1F2; text-align: left; cursor: pointer; overflow: hidden; transition: background .15s }
.source:hover { background: #E3E6E8 }
.source[data-on] { background: #D5EBEF }
.source .art { height: 3.5rem; width: auto; border-radius: 9px }
.source .icon { width: 2.25rem; padding: .35rem; border-radius: 50%; background: #fff; fill: var(--ink) }
.source b { display: block; font-weight: 600; white-space: nowrap }
.source small { display: block; font-size: .875rem; color: #4B5053; white-space: nowrap }
.source .pause, .source[data-on] .play { display: none }
.source[data-on] .pause { display: block }
#video::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--bill); transform: scaleX(var(--played, 0)); transform-origin: left }
.level { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; font-size: 1rem }
.level output { font-weight: 600; color: var(--pond); font-variant-numeric: tabular-nums }
.level input { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem; background: none; cursor: pointer }
.level input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pond) var(--at), #DADDDF var(--at)) }
.level input::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pond) var(--at), #DADDDF var(--at)) }
.level input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 22px; margin-top: -8px; border-radius: 11px; background: #fff; box-shadow: 0 1px 5px #0005 }
.level input::-moz-range-thumb { width: 30px; height: 22px; border: 0; border-radius: 11px; background: #fff; box-shadow: 0 1px 5px #0005 }
.source:focus-visible, .level input:focus-visible { outline-color: var(--pond) }

@media (max-width: 70rem) {
  .js .deck { grid-template-columns: 1fr 1fr }
  .level { grid-area: 1 / 2 }
}
@media (max-width: 40rem) {
  .js .say { padding: 5.5rem var(--edge) 0; max-width: none }
  .say p { margin-top: .875rem; line-height: 1.45 }
  .say .go { margin-top: 1.25rem; gap: .75rem 1rem; flex-direction: column-reverse; align-items: flex-start }
  .go span { font-size: .9375rem; line-height: 1.4 }
  .js .deck { padding: .875rem; gap: .75rem; bottom: 1rem; left: .75rem; width: calc(100% - 1.5rem) }
  .state { grid-column: 1 / -1 }
  .state strong { font-size: 1.125rem }
  .level { grid-area: auto / 1 / auto / -1; font-size: .9375rem }
  .source { grid-template-columns: 1fr auto; padding-left: .875rem }
  .source .art { display: none }
  .source small { display: none }
  .source b { font-size: .9375rem; white-space: normal; line-height: 1.2 }
}

/* Under water: the rules. */
.deep { background: var(--deep); color: #E8F4F6; padding-block: clamp(5rem, 11vw, 9rem) clamp(5rem, 10vw, 8rem) }
.lead p { margin-top: 1.25rem; max-width: 36rem; font-size: 1.1875rem }
.deep .lead h2 { max-width: 12em }
.key { display: flex; gap: 1.75rem; justify-content: flex-end; margin-top: 3rem; font-size: 1rem }
.key span::before { content: ""; display: inline-block; width: 1.5rem; height: .7rem; margin-right: .6rem; border-radius: 4px; background: #2499AF }
.key .k-other::before { height: .4rem; vertical-align: .13em; background: var(--bill) }
.rules { margin-top: 1rem }
.rules > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: .25rem 2.5rem; padding-block: 1.5rem; border-top: 1px solid #FFFFFF26 }
.rules dt { font: 700 1.5rem/1.2 var(--round); letter-spacing: -.01em }
.rules dd { max-width: 24rem }
.rules .chart { position: relative; max-width: none; padding-bottom: .9rem }
.chart svg { width: 100%; height: 4.5rem; border-radius: 0 0 10px 10px; fill: #2499AF }
.chart i { position: absolute; bottom: 0; height: .4rem; border-radius: 3px; background: var(--bill) }
.pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem clamp(3rem, 8vw, 7rem); margin-top: clamp(3.5rem, 7vw, 5.5rem) }
.pair p { margin-top: .75rem }
@media (max-width: 56rem) {
  .rules > div { grid-template-columns: 1fr 1fr }
  .rules .chart { grid-column: 1 / -1; margin-top: .75rem }
  .key { justify-content: flex-start }
}
@media (max-width: 40rem) { .rules > div, .pair { grid-template-columns: 1fr } }

/* The app itself. */
.app { background: var(--shallow); padding-block: clamp(5rem, 10vw, 8rem) }
.app .wrap { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(3rem, 7vw, 6rem) }
.shots { position: relative; padding: 0 0 12% }
.shots img { width: 58%; border-radius: 22px; box-shadow: 0 24px 50px -12px #0B2E3C55 }
.shots img + img { position: absolute; right: 0; bottom: 0 }
@media (max-width: 56rem) { .app .wrap { grid-template-columns: 1fr } .shots { order: 1; max-width: 34rem } }

.private { background: var(--mist) }
/* The page ends in the sky it started with. */
.questions { background: var(--mist) linear-gradient(var(--mist) 30%, #8ED2DC) }
.private { padding-block: clamp(5rem, 10vw, 8rem) }
.private h2 { max-width: 16em }
.private p { margin-top: 1.5rem; max-width: 41rem; font-size: 1.1875rem }

.trust { background: var(--deep); color: #E8F4F6; padding-block: clamp(5rem, 10vw, 8rem) }
.trust .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem clamp(2rem, 6vw, 5rem) }
.trust p { max-width: 41rem; font-size: 1.125rem }
.trust p + p, .trust .cmd + p { margin-top: 1.25rem }
@media (max-width: 62rem) { .trust .wrap { grid-template-columns: minmax(0, 1fr) } }
.cmd { display: flex; align-items: center; gap: .5rem; margin-block: 1.25rem; padding: .5rem .5rem .5rem 1.1rem; border-radius: 14px; background: var(--ink); color: #fff }
.trust .cmd { background: #FFFFFF14 }
.cmd pre { flex: 1; min-width: 0; padding-block: .5rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5 }
.cmd button { flex: none; min-height: 2.75rem; min-width: 5.25rem; padding-inline: 1rem; border: 0; border-radius: 10px; background: var(--down); color: var(--ink); font-weight: 600; cursor: pointer }
.cmd button:hover { background: #FFE18A }
html:not(.js) .cmd button { display: none }
pre, code { font-family: ui-monospace, Menlo, monospace; font-size: .9375rem }

/* The price is the duck, seen from very close. */
.price { position: relative; overflow: hidden; background: var(--down); padding-block: clamp(5rem, 10vw, 8rem) }
.price h2 { font-size: clamp(4rem, 11vw, 9rem); line-height: .95; letter-spacing: -.04em }
.price h2 span { font-size: .35em; letter-spacing: -.02em; white-space: nowrap }
.price .wrap { position: relative }
.price .wrap > p { margin-top: 1.5rem; max-width: 33rem; font-size: 1.1875rem }
.price .wrap > .go { margin-top: 2rem; gap: .875rem }
.price .go span { max-width: 26rem }
.price ul { display: grid; grid-template-columns: auto auto; justify-content: start; gap: .5rem 3rem; margin-top: 2.5rem; padding: 0; list-style: none; font-weight: 500 }
.price li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .75rem; border-radius: 50%; background: var(--bill); vertical-align: .08em }
.face { position: absolute; right: -2vw; top: 50%; width: min(40vw, 46rem); overflow: visible; translate: 0 -50% }
.bill { fill: var(--bill) }
.mouth { fill: none; stroke: #B94F10; stroke-width: 7; stroke-linecap: round }
.eye { fill: var(--ink) }
.eye, .wink { transform: translateX(-38px) }
.glint { fill: #fff; transition: transform .3s var(--ease) }
.wink { fill: none; stroke: var(--ink); stroke-width: 15; stroke-linecap: round; opacity: 0 }
.price:has(.button:hover) .eye { opacity: 0 }
.price:has(.button:hover) .wink { opacity: 1 }
@media (max-width: 62rem) {
  .price { padding-bottom: 19rem }
  .face { top: auto; bottom: -4rem; right: -1rem; width: 19rem; translate: none }
}
@media (max-width: 40rem) { .price ul { grid-template-columns: auto } }

.questions { padding-block: clamp(5rem, 10vw, 8rem) }
.questions .wrap { display: grid; grid-template-columns: 1fr 1.8fr; gap: 2rem clamp(2rem, 6vw, 5rem) }
details { border-bottom: 1px solid #0B2E3C2E }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.1rem; font-size: 1.25rem; line-height: 1.3; font-weight: 600; cursor: pointer; list-style: none }
summary::-webkit-details-marker { display: none }
summary::after { content: ""; flex: none; width: .65rem; height: .65rem; margin: 0 .3rem .3rem; border: solid currentColor; border-width: 0 3px 3px 0; border-radius: 1px; rotate: 45deg; transition: rotate .2s var(--ease) }
details[open] summary::after { rotate: 225deg; margin-bottom: -.3rem }
summary:hover { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .18em }
details p { max-width: 40rem; padding-bottom: 1.5rem }
@media (max-width: 56rem) { .questions .wrap { grid-template-columns: 1fr } }

footer { position: relative; height: 24rem; overflow: hidden; background: linear-gradient(#EAF6EA 38%, #2499AF 38%, #0D5F78); color: #fff }
.js .water { position: absolute; inset: 0; width: 100%; height: 100% }
html:not(.js) :is(.water, .quack) { display: none }
.quack { position: absolute; right: calc(var(--edge) + 3vw); bottom: 58%; width: 9.5rem; height: 7.5rem; padding: 0; border: 0; border-radius: 24px; background: none; cursor: pointer }
.quack:focus-visible { outline-color: var(--ink); border-radius: 24px }
.foot { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem var(--edge) 2rem }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem }
.foot a { padding-block: .6rem; margin-block: -.6rem }

/* The text pages. */
.text main { width: 100%; max-width: 44rem; margin: 0 auto auto; padding: 9rem clamp(1.25rem, 5vw, 4rem) 6rem }
body.text { display: flex; flex-direction: column; min-height: 100vh }
.text footer { flex: none }
.text h1 { font-size: clamp(2.5rem, 6vw, 4rem) }
.text h2 { margin-top: 2.75rem; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em }
.text main :is(p, ul, ol, dl) { margin-top: .9rem }
.text main :is(ul, ol) { padding-left: 1.25rem }
.text main .go { margin-top: 2rem }
.text main .steps { padding: 0; list-style: none; counter-reset: step }
.text main .steps > li { counter-increment: step; position: relative; padding-left: 4rem; margin-top: 2.75rem }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.35rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--down); font: 700 1.25rem var(--round) }
.text .steps h2 { margin-top: 0 }
.text dt { margin-top: 1rem; font-weight: 600 }
.text dd { max-width: 40rem }
.text :not(pre) > code { padding: .1em .35em; border-radius: 5px; background: var(--shallow) }
.sum { margin-top: .9rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--shallow); white-space: pre-wrap; overflow-wrap: anywhere }
.text main details :is(p, ol) { margin-top: 0; padding-bottom: 1.25rem }
.scroll { overflow-x: auto; margin-top: 1.25rem }
table { width: 100%; min-width: 34rem; border-collapse: collapse; line-height: 1.45 }
th, td { padding: .8rem 1.25rem .8rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.text main li + li { margin-top: .4rem }
.text .date { color: var(--quiet) }
@media (forced-colors: active) { .level input, .chart i, .key span::before { forced-color-adjust: none } }
@media print { .bar, footer, .scene { display: none !important } }
