/* Sans landing pages: tokens shared by every option. Colours come from
   sans/docs/design/system/tokens.json and the Misaki Labs Samudra & Pasir palette;
   Plus Jakarta Sans is the one typeface, as in the app. Each option adds its own
   composition in its folder. */

:root {
  /* Samudra & Pasir */
  --petrol-night: #002d2c;
  --petrol-deep: #001817;
  --petrol: #05736a;
  --petrol-ink: #01544d;
  --gold: #eebb58;
  --gold-ink: #644701;
  --cream: #fff4de;
  --mint: #6fd0a8;
  --mist: #f7fbfb;
  --foam: #d9f6f1;
  --fill: #ebf2f1;

  /* Text */
  --ink: #0a1919;
  --ink-soft: #3f5454;
  --on-dark: #eff5f5;
  --on-dark-soft: #b6d1cd;
  --money-out: #c8202d;
  --money-in: #00843b;

  /* Layout */
  --margin: clamp(20px, 3.4vw, 48px);
  --section: clamp(96px, 13vw, 200px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: var(--margin); top: 12px; z-index: 50;
  padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 600;
  clip-path: inset(50%);
}
.skip:focus { clip-path: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* The primary action: one flat fill, fully round, everywhere. */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer;
}
.cta svg { width: 20px; height: 20px; }
.cta--petrol { background: var(--petrol); color: #fff; }


/* Entrances: content is only hidden once the script has marked the page. */
.js [data-rise] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
