/* tide landing page.
 *
 * One idea runs top to bottom: the page is a descent. The hero is the surface
 * (the app's splash sea, Theme.Ocean), and every band below it is a little
 * deeper than the last, down to the seabed footer. Both modes do this; dark is
 * the same descent at night rather than a colour flip.
 *
 * Text on the bands is always foam on teal and each band is dark enough for
 * body copy at 4.5:1. Anything with the app's own numbers sits on paper, where
 * the app's ink and entity colours apply exactly as in Theme.swift: numbers in
 * ink, colour carried by a swatch beside them.
 */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* ------------------------------------------------------------ tokens */

:root {
  color-scheme: light;

  /* The surface: Theme.Ocean, light. */
  --sky-top: #EAF6FB;
  --sky-bottom: #CFE9EF;
  --glow: #FFEFCF;
  --sea-1: #BDE7E2;
  --sea-2: #8FD5D2;
  --sea-3: #59BEC1;
  --foam: #FFFFFF;

  /* The descent. b0 is the hero's front wave, b9 the seabed. */
  --b0: #2E9BA4;
  --b1: #1A7F89;
  --b2: #16727C;
  --b3: #13666F;
  --b4: #105A63;
  --b5: #0B4750;
  --b6: #093C44;
  --b7: #07323A;
  --b8: #052930;
  --b9: #031D22;

  /* Ink above water, foam below it. */
  --ink: #0B2A31;
  --ink-2: #2B5159;
  --under: #F3FBFB;
  --under-2: #DCEFF0;
  --marker: #FFEFCF;          /* handwritten notes and arrows, under water */
  --marker-sky: #0B2A31;      /* the same, in the sky */

  /* Paper: the app's own surfaces, for anything carrying its numbers. */
  --paper: #FCFCFB;
  --paper-ink: #0B0B0B;
  --paper-ink-2: #52514E;
  --paper-muted: #6E6C67;
  --paper-line: rgba(11, 11, 11, .10);
  --tape: rgba(255, 239, 207, .78);

  /* Theme.swift entities. */
  --income: #2A78D6;
  --jar: #1BAF7A;
  --jar-ink: #0E7A53;
  --spend: #EB6834;

  --button: #2A78D6;
  --button-ink: #FFFFFF;
  --focus: #EB6834;

  --shadow-deep: 4, 38, 45;
  --gutter: clamp(16px, 4vw, 40px);
  --grain-opacity: .07;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --sky-top: #050F16;
    --sky-bottom: #0A2029;
    --glow: #1B5A66;
    --sea-1: #12414C;
    --sea-2: #0E3540;
    --sea-3: #0A2A33;
    --foam: #A8DEE5;

    --b0: #082630;
    --b1: #07222B;
    --b2: #061E26;
    --b3: #061B22;
    --b4: #05181E;
    --b5: #031217;
    --b6: #031014;
    --b7: #020D11;
    --b8: #020B0E;
    --b9: #01070A;

    --ink: #EAF6F7;
    --ink-2: #A8C9CD;
    --under: #EAF6F7;
    --under-2: #A8CFD4;
    --marker: #A8DEE5;
    --marker-sky: #A8DEE5;

    --paper: #0F272E;
    --paper-ink: #EEF7F7;
    --paper-ink-2: #B3CACD;
    --paper-muted: #8FA9AD;
    --paper-line: rgba(168, 222, 229, .16);
    --tape: rgba(168, 222, 229, .20);

    --income: #3987E5;
    --jar: #199E70;
    --jar-ink: #43D29E;
    --spend: #D95926;

    --button: #3987E5;
    --shadow-deep: 0, 0, 0;
    --grain-opacity: .05;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --sky-top: #050F16; --sky-bottom: #0A2029; --glow: #1B5A66;
  --sea-1: #12414C; --sea-2: #0E3540; --sea-3: #0A2A33; --foam: #A8DEE5;
  --b0: #082630; --b1: #07222B; --b2: #061E26; --b3: #061B22; --b4: #05181E;
  --b5: #031217; --b6: #031014; --b7: #020D11; --b8: #020B0E; --b9: #01070A;
  --ink: #EAF6F7; --ink-2: #A8C9CD; --under: #EAF6F7; --under-2: #A8CFD4;
  --marker: #A8DEE5; --marker-sky: #A8DEE5;
  --paper: #0F272E; --paper-ink: #EEF7F7; --paper-ink-2: #B3CACD; --paper-muted: #8FA9AD;
  --paper-line: rgba(168, 222, 229, .16); --tape: rgba(168, 222, 229, .20);
  --income: #3987E5; --jar: #199E70; --jar-ink: #43D29E; --spend: #D95926;
  --button: #3987E5; --shadow-deep: 0, 0, 0; --grain-opacity: .05;
}

/* ------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--b9);
  color: var(--under);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything: the printed, slightly analogue feel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; }
a { color: inherit; }
b { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------ type */

.display,
.display-2 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 520;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(3.2rem, 8.2vw, 7.4rem);
  line-height: .92;
}
.display-2 {
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  line-height: .98;
  margin-bottom: .45em;
}
.display em,
.display-2 em {
  font-style: italic;
  font-weight: 440;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--marker);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--marker);
}
.hero .eyebrow { color: var(--ink-2); }

h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 560;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.note,
.hero-note span {
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  line-height: 1;
  color: var(--marker);
}

.link {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------ scribbles */

/* Hand-drawn strokes. Every path carries pathLength="1", so a dash of 1 is
 * the whole stroke whatever its real length: no measuring in script. */
.scribble,
.underline,
.circle {
  overflow: visible;
}
.scribble .ink,
.underline .ink,
.circle .ink {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Drawn on load: the hero, where nothing needs to scroll into view. */
.scribble--load .ink,
.underline .ink {
  stroke-dasharray: 1 1;
  animation: draw 1.25s cubic-bezier(.6, .05, .3, 1) 1s both;
}
.scribble--load .head { animation-duration: .35s; animation-delay: 2.15s; }
.underline .ink { animation-delay: .7s; animation-duration: 1s; }

/* Drawn as they arrive. Hidden only once script has run, so a page without
 * script shows every arrow finished rather than none at all. */
.js .scribble:not(.scribble--load) .ink,
.js .circle .ink {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.15s cubic-bezier(.6, .05, .3, 1);
}
.js .scribble:not(.scribble--load) .head {
  transition-duration: .35s;
  transition-delay: 1s;
}
.js .scribble.on .ink,
.js .on .circle .ink { stroke-dashoffset: 0; }
.js .on .circle .ink { transition-delay: .5s; }

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* Content drifts up as it surfaces. */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.on { opacity: 1; translate: 0 0; }

.js .note {
  opacity: 0;
  transition: opacity .6s ease .6s;
}
.js .note.on { opacity: 1; }

/* ------------------------------------------------------------ phone */

/* A generic handset drawn in CSS around the app's own screenshots (1178x2556).
 * Not Apple's product artwork; just a bezel, an island and a bit of glare. */
.phone {
  --w: 260px;
  position: relative;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(155deg, #4a5053 0%, #121516 20%, #1d2123 58%, #08090a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 0 0 calc(var(--w) * .008) #000,
    0 calc(var(--w) * .16) calc(var(--w) * .22) calc(var(--w) * -.1) rgba(var(--shadow-deep), .55),
    0 calc(var(--w) * .05) calc(var(--w) * .08) calc(var(--w) * -.04) rgba(var(--shadow-deep), .35);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * .135);
  background: #F9F9F7;
}
.phone::before {
  /* Glare across the glass. */
  content: "";
  position: absolute;
  inset: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .135);
  background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .06) 100%);
  pointer-events: none;
  z-index: 1;
}
.phone::after {
  /* The island, sitting between the screenshot's clock and its signal icons. */
  content: "";
  position: absolute;
  top: calc(var(--w) * .058);
  left: 50%;
  width: 30%;
  height: calc(var(--w) * .085);
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone--sm { --w: 240px; }

.tilt {
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--rx, 0deg) + var(--py, 0) * -5deg))
    rotateY(calc(var(--ry, 0deg) + var(--px, 0) * 7deg))
    rotateZ(var(--rz, 0deg));
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

/* Everything that floats bobs on the swell, each at its own rhythm. */
.float {
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: .8deg; }
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: clip;
  color: var(--ink);
  background:
    radial-gradient(38% 46% at 72% 40%, var(--glow) 0%, transparent 72%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding-bottom: clamp(90px, 11vw, 170px);
}

.sun {
  position: absolute;
  top: 14%;
  right: 12%;
  width: clamp(220px, 30vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 95%, transparent) 0%, transparent 68%);
  filter: blur(8px);
  animation: breathe 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { scale: 1; opacity: .85; }
  50% { scale: 1.08; opacity: 1; }
}

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
  transition: font-variation-settings .5s ease;
}
.wordmark:hover { font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72; }
.wordmark .mark { width: 34px; height: 34px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sky-top);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(var(--shadow-deep), .6);
}
.pill-arrow { display: inline-block; transition: translate .3s cubic-bezier(.3, 1.6, .5, 1); }
.pill:hover .pill-arrow { translate: 5px 0; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(12px, 3vw, 40px);
}

.hero-copy { position: relative; padding-bottom: 40px; }

.wavy {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 440;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  white-space: nowrap;
}
.wavy-letters span {
  display: inline-block;
  animation: letter 3.4s ease-in-out infinite;
}
.wavy-letters span:nth-child(2) { animation-delay: .14s; }
.wavy-letters span:nth-child(3) { animation-delay: .28s; }
.wavy-letters span:nth-child(4) { animation-delay: .42s; }
.wavy-letters span:nth-child(5) { animation-delay: .56s; }
.wavy-letters span:nth-child(6) { animation-delay: .70s; }
@keyframes letter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-.07em) rotate(-4deg); }
}
.underline {
  position: absolute;
  left: -2%;
  bottom: -.1em;
  width: 96%;
  height: .28em;
  color: var(--spend);
}
.underline .ink { stroke-width: 5; }

.lede {
  max-width: 33ch;
  margin: 26px 0 30px;
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.lede b { color: var(--ink); white-space: nowrap; }
.swatch::before {
  content: "";
  display: inline-block;
  width: .62em;
  height: .62em;
  margin-right: .32em;
  border-radius: 50%;
  vertical-align: .02em;
}
.swatch--jar::before { background: var(--jar); }
.swatch--spend::before { background: var(--spend); }

/* The fan of three phones, riding the sea. */
.fan {
  position: relative;
  height: clamp(520px, 50vw, 660px);
  perspective: 1600px;
  margin-bottom: calc(clamp(90px, 11vw, 170px) * -.75);
}
.fan .float { position: absolute; }
.float--a { left: 0; top: 13%; z-index: 1; animation-duration: 7.4s; }
.float--b { left: calc(50% - 145px); top: 0; z-index: 2; animation-duration: 6.2s; animation-delay: -2s; }
.float--c { right: 0; top: 18%; z-index: 1; animation-duration: 8s; animation-delay: -4s; }
.float--a .phone,
.float--c .phone { --w: 240px; }
.float--b .phone { --w: 290px; }
.float--a .tilt { --rx: 4deg; --ry: 24deg; --rz: -8deg; }
.float--b .tilt { --rx: 8deg; --ry: -4deg; --rz: 2deg; }
.float--c .tilt { --rx: 4deg; --ry: -24deg; --rz: 7deg; }

.hero-note {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--marker-sky);
  pointer-events: none;
}
.hero-note span { color: var(--marker-sky); }
.note-split {
  position: absolute;
  z-index: 3;
  left: -9%;
  top: -3%;
  flex-direction: column;
  align-items: flex-start;
  rotate: -6deg;
}
.note-split svg { width: 70px; height: 132px; margin-left: 22px; margin-top: 4px; }
/* Above the button, arrow curling down onto it, clear of the sea. */
.form-wrap { position: relative; max-width: 480px; }
.note-cta {
  position: absolute;
  right: -78px;
  bottom: calc(100% - 38px);
  flex-direction: row-reverse;
  align-items: flex-start;
  rotate: -4deg;
}
.note-cta svg { width: 86px; height: 64px; margin-top: 14px; }

/* The sea. Two passes: the back swells behind the phones, the front ones in
 * front of them, so the phones sit in the water rather than on top of it. */
.sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: clamp(170px, 22vw, 300px);
  pointer-events: none;
}
.sea--front {
  z-index: 3;
  height: clamp(120px, 14vw, 200px);
}
.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: drift var(--dur, 30s) linear infinite, swell var(--swell, 8s) ease-in-out infinite;
}
.wave--1 { --dur: 52s; --swell: 11s; fill: var(--sea-1); }
.wave--2 { --dur: 38s; --swell: 9s; fill: var(--sea-2); height: 80%; animation-direction: reverse, normal; }
.wave--3 { --dur: 29s; --swell: 7s; fill: var(--sea-3); }
.wave--4 { --dur: 21s; --swell: 6s; fill: var(--b0); height: 72%; }
.wave .foam {
  fill: none;
  stroke: var(--foam);
  stroke-width: 2.5;
  opacity: .65;
  vector-effect: non-scaling-stroke;
}
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes swell {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 7px; }
}

/* ------------------------------------------------------------ forms */

.waitlist { position: relative; max-width: 480px; }

.field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--paper-line),
    0 22px 40px -24px rgba(var(--shadow-deep), .55);
}
.field input {
  flex: 1;
  min-width: 0;
  padding: 0 8px 0 18px;
  border: 0;
  background: transparent;
  color: var(--paper-ink);
  font: inherit;
  font-size: 1.02rem;
}
.field input::placeholder { color: var(--paper-muted); opacity: 1; }
.field input:focus { outline: none; }
.field:focus-within { box-shadow: 0 0 0 3px var(--focus), 0 22px 40px -24px rgba(var(--shadow-deep), .55); }

.field button {
  position: relative;
  flex: none;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: filter .2s ease, translate .2s ease;
}
.field button:hover { filter: brightness(1.07); }
.field button:active { translate: 0 1px; }
.field button:disabled { cursor: progress; }

/* Sending: the label steps aside for three small bobbing dots. */
.spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.spinner::before,
.spinner::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: dot 1s ease-in-out infinite;
}
.spinner::after { animation-delay: .25s; }
@keyframes dot { 50% { translate: 0 -5px; opacity: .6; } }
.waitlist[data-state="sending"] .label { visibility: hidden; }
.waitlist[data-state="sending"] .spinner { display: flex; }

.form-status {
  min-height: 0;
  margin: 12px 0 0;
  font-weight: 600;
}
.form-status:empty { display: none; }
.waitlist[data-state="error"] .form-status { color: var(--spend); }
.waitlist[data-state="done"] .field { display: none; }
.waitlist[data-state="done"] .form-status {
  margin-top: 0;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 0 0 1px var(--paper-line);
}
.waitlist[data-state="done"] .form-status::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-right: .5em;
  border-radius: 50%;
  background: var(--jar);
}

.form-note {
  margin: 12px 0 0 18px;
  font-size: .9rem;
  color: var(--ink-2);
}
.band .form-note { color: var(--under-2); }

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------ bands */

.band {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
}
.band p { max-width: 58ch; }

/* The drifting edges are twice the page wide. Clip sideways only, so the
 * thermocline can still rise above the band it belongs to. */
main { overflow-x: clip; }

/* The ticker: words riding a wave. */
.ticker {
  padding: 0;
  height: clamp(96px, 10vw, 140px);
  background: linear-gradient(180deg, var(--b0), var(--b1));
  color: var(--under);
}
.ticker svg { display: block; width: 100%; height: 100%; }
.ticker text {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  font-size: 42px;
  fill: currentColor;
}

.how { background: linear-gradient(180deg, var(--b1), var(--b2)); padding-top: clamp(40px, 6vw, 80px); }
.pick { background: linear-gradient(180deg, var(--b2), var(--b3)); }
.where { background: linear-gradient(180deg, var(--b3), var(--b4)); }
.tools { background: var(--b4); }
.pro { background: linear-gradient(180deg, var(--b5), var(--b6)); }
.privacy { background: linear-gradient(180deg, var(--b6), var(--b7)); }
.cta { background: linear-gradient(180deg, var(--b7), var(--b8)); overflow: clip; }

/* A darker wave rolling in above a band: the thermocline. */
.edge {
  position: absolute;
  left: 0;
  top: 1px;
  width: 200%;
  height: clamp(40px, 5vw, 72px);
  translate: 0 -100%;
  fill: var(--b5);
  animation: drift 34s linear infinite;
  pointer-events: none;
}

/* ------------------------------------------------------------ how */

.steps {
  list-style: none;
  margin: clamp(24px, 4vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr) 110px minmax(0, 1fr);
  align-items: start;
}
.step { position: relative; }
.step p { color: var(--under-2); max-width: 30ch; margin: 0; }
.step-phone {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  margin: 70px 0 30px;
}
.step--1 .tilt { --rx: 4deg; --ry: 16deg; --rz: -4deg; }
.step--2 .tilt { --rx: 8deg; --ry: 0deg; --rz: 3deg; }
.step--3 .tilt { --rx: 4deg; --ry: -16deg; --rz: -2deg; }
.step h3 .num {
  display: inline-block;
  margin-right: 8px;
  font-style: italic;
  font-weight: 400;
  color: var(--marker);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48;
}
/* Notes sit in the space above each phone, never on its screen. */
.step .note {
  position: absolute;
  top: 0;
  right: 0;
  rotate: 5deg;
  text-align: right;
}
.step--2 .note { right: auto; left: 0; rotate: -5deg; text-align: left; }
.step-arrow {
  align-self: center;
  margin-top: -60px;
  color: var(--marker);
}
.step-arrow svg { width: 100%; height: auto; }

/* ------------------------------------------------------------ pick */

.pick-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.pick-copy p { color: var(--under-2); }

.paper {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 26px;
  box-shadow:
    0 0 0 1px var(--paper-line),
    0 40px 70px -40px rgba(var(--shadow-deep), .8);
}
/* Two strips of tape, as if the card were stuck to the page. */
.tape::before,
.tape::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 30px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  z-index: 2;
}
.tape::before { top: -12px; left: 34px; rotate: -8deg; }
.tape::after { top: -10px; right: 40px; rotate: 6deg; }

.jar-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-areas:
    "inputs inputs"
    "figure split"
    "disc disc";
  gap: 22px 28px;
  padding: clamp(22px, 3vw, 36px);
  rotate: -1.2deg;
}
.jar-inputs {
  grid-area: inputs;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: end;
}
.tag {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-ink-2);
}
.money-input {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 14px 8px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper-ink) 5%, transparent);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.9rem;
  font-weight: 560;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--paper-ink-2);
}
.money-input:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.money-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--paper-ink);
  font: inherit;
}
.money-input input:focus { outline: none; }
.money-input input[aria-invalid="true"] { color: var(--spend); }
.hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--paper-muted); }

.rate-row { display: flex; align-items: center; gap: 18px; }
.rate-out {
  position: relative;
  min-width: 2.6em;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  color: var(--paper-ink);
}
.rate-out .circle {
  position: absolute;
  left: -22%;
  top: -34%;
  width: 150%;
  height: 170%;
  color: var(--spend);
  pointer-events: none;
}

input[type="range"] {
  --fill: 50%;
  flex: 1;
  min-width: 0;
  height: 36px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jar) var(--fill), color-mix(in srgb, var(--paper-ink) 12%, transparent) var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-ink) 12%, transparent);
}
input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--jar);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--jar);
  box-shadow: 0 6px 14px -6px rgba(var(--shadow-deep), .7);
  transition: scale .2s ease;
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--jar);
  box-shadow: 0 6px 14px -6px rgba(var(--shadow-deep), .7);
}
input[type="range"]:active::-webkit-slider-thumb { scale: 1.12; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--focus); }

.jar-figure { grid-area: figure; margin: 0; text-align: center; }
.jar-svg { display: block; width: 100%; max-width: 190px; height: auto; margin-inline: auto; overflow: visible; }
.jar-glass { fill: color-mix(in srgb, var(--sea-1) 38%, transparent); }
.jar-outline { fill: none; stroke: var(--paper-ink); stroke-width: 3; stroke-linejoin: round; }
.jar-lid { fill: var(--b1); stroke: var(--paper-ink); stroke-width: 3; }
.jar-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .55; }
.water {
  transition: transform .9s cubic-bezier(.3, 1.45, .45, 1);
}
.water-drift { animation: slosh 4.5s linear infinite; }
.water-drift--back { fill: var(--jar); opacity: .42; animation-duration: 6.5s; animation-direction: reverse; }
.water-drift--front { fill: var(--jar); opacity: .9; }
@keyframes slosh { to { transform: translateX(-200px); } }
.bubble { fill: #fff; opacity: 0; animation: rise 4.2s ease-in infinite; }
.bubble--2 { animation-delay: 1.4s; animation-duration: 5s; }
.bubble--3 { animation-delay: 2.6s; animation-duration: 3.8s; }
@keyframes rise {
  0% { transform: translateY(150px); opacity: 0; }
  20% { opacity: .75; }
  90% { opacity: .6; }
  100% { transform: translateY(8px); opacity: 0; }
}
.jar-caption {
  margin: 4px auto 0;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--paper-ink-2);
}

.split { grid-area: split; align-self: center; }
.split-bar {
  display: flex;
  gap: 3px;
  height: 14px;
  margin-bottom: 22px;
}
.split-bar span { display: block; border-radius: 999px; }
.split-jar { width: 30%; background: var(--jar); transition: width .6s cubic-bezier(.3, 1.2, .5, 1); }
.split-spend { flex: 1; background: var(--spend); }
.split-figures { margin: 0; display: grid; gap: 16px; }
.split-figures dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: var(--paper-ink-2);
}
.split-figures dd {
  margin: 2px 0 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper-ink);
  overflow-wrap: anywhere;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot--jar { background: var(--jar); }
.dot--spend { background: var(--spend); }

.disclaimer {
  grid-area: disc;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--paper-line);
  font-size: .9rem;
  color: var(--paper-ink-2);
}
.disclaimer svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* ------------------------------------------------------------ where */

.where-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.where-copy p { color: var(--under-2); }
.where-phones {
  position: relative;
  height: 600px;
  perspective: 1400px;
}
.where-phones .float { position: absolute; }
.float--d { left: 2%; top: 0; animation-duration: 7.6s; }
.float--e { right: 0; top: 70px; animation-duration: 6.6s; animation-delay: -3s; }
.float--d .tilt { --rx: 6deg; --ry: 18deg; --rz: -6deg; }
.float--e .tilt { --rx: 6deg; --ry: -16deg; --rz: 5deg; }
.note--where {
  position: absolute;
  z-index: 3;
  left: -26%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  rotate: -5deg;
}
.note--where svg { width: 92px; height: 76px; scale: -1 1; margin-left: 50px; color: var(--marker); }

/* ------------------------------------------------------------ tools */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(20px, 3vw, 40px);
}
.tile {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 26px;
  overflow: hidden;
}
.tile.paper { overflow: visible; }
.tile p { margin: 0; }
.tile.paper p { color: var(--paper-ink-2); }
.tile--reminders { grid-column: span 3; rotate: -.8deg; }
.tile--export { grid-column: span 3; rotate: .7deg; }
.tile--guest {
  grid-column: span 2;
  border: 1.5px solid color-mix(in srgb, var(--under) 22%, transparent);
  background: color-mix(in srgb, var(--under) 6%, transparent);
}
.tile--guest p { color: var(--under-2); }
.tile--free {
  grid-column: span 4;
  display: flex;
  align-items: center;
}
.big-quote {
  max-width: none !important;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 460;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.big-quote em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--marker);
}
.chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--jar) 16%, transparent);
  color: var(--jar-ink);
}
.tile--guest .chip { background: color-mix(in srgb, var(--under) 14%, transparent); color: var(--under); }
.scrap {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 22px;
  border-radius: 18px;
  background: #FCFCFB;
  box-shadow:
    0 0 0 1px rgba(11, 11, 11, .08),
    0 24px 40px -26px rgba(var(--shadow-deep), .7);
}
.scrap--tilt-r { rotate: 1.6deg; }
.scrap--tilt-l { rotate: -1.4deg; }

/* ------------------------------------------------------------ pro */

.pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.pro-copy > p { color: var(--under-2); }
.ticks {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
}
.ticks li::before {
  /* A tiny hand-drawn wave where a bullet would be. */
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 22px;
  height: 10px;
  background: var(--marker);
  -webkit-mask: var(--squiggle) no-repeat center / contain;
  mask: var(--squiggle) no-repeat center / contain;
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 6q2.5-4 5 0t5 0t5 0t5 0' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.aside {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--marker) !important;
  rotate: -2deg;
}

.pro-art {
  position: relative;
  height: 620px;
  perspective: 1400px;
}
.pro-art .float { position: absolute; }
.float--f { right: 2%; top: 0; animation-duration: 7.2s; }
.pro-art .phone { --w: 280px; }
.float--f .tilt { --rx: 6deg; --ry: -20deg; --rz: 5deg; }
.float--g { left: 0; bottom: 4%; z-index: 2; width: min(360px, 70%); animation-duration: 6.4s; animation-delay: -2.5s; }
.scrap--deposits { margin: 0; rotate: -5deg; box-shadow: 0 0 0 1px rgba(11, 11, 11, .08), 0 40px 60px -30px rgba(0, 0, 0, .7); }
.note--pro {
  position: absolute;
  z-index: 3;
  left: 4%;
  top: 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  rotate: -4deg;
}
.note--pro svg { width: 80px; height: 80px; margin-left: 40px; color: var(--marker); }

/* ------------------------------------------------------------ privacy */

.promises {
  list-style: none;
  margin: clamp(16px, 3vw, 36px) 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px) clamp(24px, 5vw, 72px);
}
.promises li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--under) 18%, transparent);
}
.promises .num {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--marker);
}
.promises p {
  margin: 0;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  line-height: 1.3;
}

/* ------------------------------------------------------------ cta */

.cta { text-align: center; padding-block: clamp(96px, 13vw, 180px); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta p { color: var(--under-2); margin-inline: auto; }
.cta .display { margin-bottom: 20px; }
.waitlist--big { width: min(560px, 100%); max-width: none; margin-top: 18px; text-align: left; }
.waitlist--big .field button { padding: 16px 26px; }

.bubbles i {
  position: absolute;
  bottom: -30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--foam) 55%, transparent);
  animation: bubble 12s linear infinite;
}
.bubbles i:nth-child(1) { left: 8%; animation-delay: -2s; }
.bubbles i:nth-child(2) { left: 18%; width: 8px; height: 8px; animation-duration: 9s; animation-delay: -6s; }
.bubbles i:nth-child(3) { left: 31%; width: 20px; height: 20px; animation-duration: 15s; animation-delay: -1s; }
.bubbles i:nth-child(4) { left: 64%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: -8s; }
.bubbles i:nth-child(5) { left: 76%; animation-duration: 13s; animation-delay: -4s; }
.bubbles i:nth-child(6) { left: 88%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: -3s; }
.bubbles i:nth-child(7) { left: 52%; width: 9px; height: 9px; animation-duration: 11s; animation-delay: -10s; }
@keyframes bubble {
  0% { translate: 0 0; opacity: 0; }
  10% { opacity: .9; }
  50% { translate: 14px -50vh; }
  100% { translate: -6px -100vh; opacity: 0; }
}

/* ------------------------------------------------------------ footer */

.seabed {
  position: relative;
  background: var(--b9);
  color: var(--under-2);
  padding: 30px 0 48px;
}
.seabed-edge {
  position: absolute;
  left: 0;
  top: 1px;
  width: 100%;
  height: clamp(36px, 5vw, 70px);
  translate: 0 -100%;
  fill: var(--b9);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
}
.seabed .wordmark { color: var(--under); font-size: 1.6rem; }
.seabed .wordmark .mark { width: 28px; height: 28px; }
.footer-line { margin: 0; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--under) 12%, transparent);
  font-size: .85rem;
  max-width: none !important;
}

/* ------------------------------------------------------------ narrower */

@media (max-width: 1100px) {
  .note-split { left: -2%; }
  .note--where { left: -4%; }
}

@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 64px; }
  .fan {
    height: clamp(400px, 90vw, 580px);
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
  .float--a .phone,
  .float--c .phone { --w: clamp(140px, 32vw, 220px); }
  .float--b .phone { --w: clamp(190px, 44vw, 270px); }
  .float--b { left: calc(50% - clamp(190px, 44vw, 270px) / 2); }
  .float--a { left: 0; top: 16%; }
  .float--c { right: 0; top: 20%; }
  .note-split { display: none; }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }
  .step { display: grid; justify-items: center; text-align: center; }
  .step p { margin-inline: auto; }
  .step-arrow { width: 110px; margin: 52px auto 56px; rotate: 90deg; }
  .step .note, .step--2 .note { right: 2%; left: auto; top: -6px; text-align: right; }

  .pick-grid,
  .where-grid,
  .pro-grid { grid-template-columns: minmax(0, 1fr); }
  .where-phones { height: clamp(420px, 110vw, 600px); max-width: 560px; width: 100%; margin-inline: auto; }
  .where-phones .phone { --w: clamp(170px, 44vw, 240px); }
  .note--where { left: 0; bottom: 4%; }
  .pro-art { height: clamp(560px, 150vw, 700px); max-width: 560px; width: 100%; margin-inline: auto; }
  .float--g { width: min(330px, 66%); bottom: 0; }
  .pro-art .phone { --w: clamp(180px, 48vw, 240px); }
  .note--pro { left: 0; top: 2%; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--reminders, .tile--export, .tile--guest, .tile--free { grid-column: auto; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .pill { padding: 9px 14px; font-size: .88rem; }
  .jar-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "inputs" "figure" "split" "disc";
    rotate: -.6deg;
  }
  .jar-inputs { grid-template-columns: minmax(0, 1fr); }
  .jar-svg { max-width: 150px; }
  .note-cta { display: none; }
  .where-phones .note--where { display: none; }
}

@media (max-width: 440px) {
  .field { flex-direction: column; border-radius: 24px; }
  .field input { padding: 14px 12px; }
  .field button { width: 100%; }
  .form-note { margin-left: 4px; }
}

/* ------------------------------------------------------------ stillness */

/* Offscreen animations wait until they are looked at. */
.is-offscreen *,
.is-offscreen::before,
.is-offscreen::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .note { opacity: 1; }
  .js .scribble:not(.scribble--load) .ink,
  .js .circle .ink { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------ small pages */

.hero--simple {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.simple {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-block: clamp(40px, 10vh, 120px) clamp(180px, 26vh, 300px);
}
.simple .lede { max-width: 36ch; }
