/* Dosta: landing page. Plain CSS only: the site's security policy allows no inline styles. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-weight: 400;
  font-display: swap;
  src: url('app/fonts/atkinson-next-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-weight: 800;
  font-display: swap;
  src: local('Atkinson Hyperlegible Next ExtraBold'), url('app/fonts/atkinson-next-bold.woff2') format('woff2');
}

:root {
  --mint: #6CC3A0;
  --ink: #0E3528;
  --ink-hover: #1A4D3C;
  --cream: #F8F2E7;
  --kowhai: #F2C94C;
  --fern: #2E6B57;
  --soft: #4B5A55;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
code { font-family: inherit; font-size: 1em; font-weight: 800; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.brand-wordmark { display: block; height: 2.6rem; width: auto; }
.logo-ink { fill: var(--ink); }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.4rem; }
.top nav a { text-decoration: none; padding-block: .4rem; }
.top nav a:hover { text-decoration: underline; }

/* Hero: the word is the door */
.hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem); }
.wordmark {
  display: flex;
  align-items: baseline;
  font-weight: 800;
  font-size: clamp(4.5rem, 22vw, 15rem);
  line-height: .9;
  letter-spacing: -.035em;
  margin: 0 0 clamp(3.5rem, 7vw, 5rem);
}
.wm-o {
  position: relative;
  display: inline-block;
  width: .7em;
  height: .7em;
  margin: 0 .035em;
  top: .065em;
  border-radius: 50%;
  text-decoration: none;
}
.wm-o svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wm-disc { fill: var(--cream); transform-box: view-box; transform-origin: 0 0; transition: transform .9s var(--ease); }
.wm-leaves {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform .9s var(--ease);
  animation: turn-in 1.6s var(--ease) .25s backwards;
}
.wm-o:hover .wm-leaves, .wm-o:focus-visible .wm-leaves { transform: rotate(90deg); }
.wm-o:hover .wm-disc, .wm-o:focus-visible .wm-disc { transform: scale(1.04); }
.wm-o:focus-visible { outline: 4px solid var(--ink); outline-offset: 8px; }
.wm-hint {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, .6rem);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  padding: .35rem .9rem;
  border-radius: 999px;
}
.wm-dot { width: .16em; height: .16em; margin-left: .04em; border-radius: 50%; background: var(--kowhai); }
.wm-tm { align-self: flex-start; font-size: .3em; letter-spacing: 0; margin: .1em 0 0 .03em; }

@keyframes turn-in { from { transform: rotate(-90deg); } to { transform: rotate(0deg); } }

.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; max-width: 16ch; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 36rem; margin-bottom: 2rem; }
.note { margin-top: 1.25rem; font-size: .95rem; max-width: 36rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-line:hover { background: rgba(14, 53, 40, .08); }

/* The working, on cream */
.working { background: var(--cream); padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.12; margin: 0 0 1.25rem; max-width: 24ch; }
.setup { color: var(--soft); max-width: 38rem; }
.sentence { font-weight: 800; font-size: clamp(1.75rem, 4.4vw, 3.1rem); line-height: 1.12; max-width: 19ch; margin: 1.75rem 0 2rem; }
.bar { display: flex; gap: 3px; height: 2.75rem; max-width: 46rem; border-radius: .8rem; overflow: hidden; }
.seg { flex-basis: 0; }
.seg-bills { flex-grow: 140; background: #8FA39C; }
.seg-kept { flex-grow: 583; background: #6C9CB4; }
.seg-buffer { flex-grow: 100; background: #C9BFA9; }
.seg-spend { flex-grow: 417; background: var(--fern); }
.legend { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(4, max-content); gap: .5rem 2rem; }
.legend li { display: flex; align-items: center; gap: .5rem; }
.swatch { width: .9rem; height: .9rem; border-radius: .25rem; flex: none; }
.sum { max-width: 46rem; margin-bottom: 2rem; }
.sum summary { cursor: pointer; font-weight: 800; color: var(--fern); padding-block: .4rem; }
.sum-lines { margin-top: 1rem; border-top: 2px solid var(--ink); }
.sum-lines p { display: flex; justify-content: space-between; gap: 2rem; margin: 0; padding-block: .6rem; border-bottom: 1px solid #D8CAB0; }
.sum-lines p span:last-child { white-space: nowrap; }
.sum-lines .total { font-weight: 800; }
.contrast { max-width: 38rem; font-size: 1.1rem; }

/* Points */
.points { padding-block: clamp(3.5rem, 8vw, 6rem); }
.point-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; margin-top: 2.5rem; }
.point { border-top: 3px solid var(--ink); padding-top: 1rem; }
.point h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.point p { max-width: 30rem; }

/* Privacy, on ink */
.privacy { background: var(--ink); color: var(--cream); padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.privacy h2 { color: var(--mint); font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.05; max-width: 14ch; margin: 0 0 1.75rem; }
.privacy p { max-width: 38rem; }
.privacy .small { font-size: .95rem; color: #B9D9C9; margin-top: 1.5rem; }
.privacy a:focus-visible { outline-color: var(--mint); }

/* Get it */
.get { padding-block: clamp(3.5rem, 8vw, 6rem); }
.get > p { max-width: 38rem; }

/* Footer */
.foot { border-top: 2px solid var(--ink); padding-block: 1.75rem 2.5rem; font-size: .95rem; }
.foot-links { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Phones */
@media (max-width: 760px) {
  .point-grid { grid-template-columns: minmax(0, 1fr); }
  .legend { grid-template-columns: repeat(2, max-content); }
  .top nav a:not(:last-child) { display: none; }
}

/* Calm motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wm-leaves, .wm-disc { animation: none; transition: none; }
  .wm-o:hover .wm-leaves, .wm-o:focus-visible .wm-leaves, .wm-o:hover .wm-disc, .wm-o:focus-visible .wm-disc { transform: none; }
}