/* FinNet — website styles.
 *
 * Every colour and both typefaces are the app's own (lib/core/theme/
 * fin_colors.dart, fin_type.dart), so the site and the app read as one
 * product. Violet is reserved for Fynni, as it is in the app.
 */

/* ---- Fonts: served from this site, so a visit sends nothing to a third
 *      party — the same promise the app makes. -------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: light;

  --ink: #17352a;
  --body: #21382f;
  --text-2: #3d544a;
  --text-3: #4a5f55;
  --mint: #1e6b47;
  --mint-fill: #3fa45c;
  --mint-soft: rgba(63, 164, 92, 0.14);
  --amber: #8a5e08;
  --amber-fill: #c98a16;
  --amber-soft: rgba(201, 138, 22, 0.14);
  --coral: #a63d27;
  --coral-fill: #d2543a;
  --coral-soft: rgba(210, 84, 58, 0.14);
  --violet: #4a3a96;
  --violet-fill: #6d5bd0;
  --violet-soft: rgba(109, 91, 208, 0.12);

  --screen: #f7faf5;
  --canvas: #eff4ec;
  --surface: #ffffff;
  --muted: #f0f5ee;
  --tile: #edf3eb;
  --pressed: #e4ede1;
  --hairline: rgba(23, 53, 42, 0.08);
  --hairline-strong: rgba(23, 53, 42, 0.13);
  --track: rgba(23, 53, 42, 0.09);

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* The app's motion: one curve for everything that settles. */
  --settle: cubic-bezier(0.2, 0.85, 0.2, 1);

  --gutter: clamp(16px, 4vw, 32px);
  --wide: 1160px;
  --section: clamp(72px, 10vw, 128px);
  --radius-card: 22px;
  --shadow-card: 0 1px 0 rgba(23, 53, 42, 0.04), 0 18px 40px -24px rgba(23, 53, 42, 0.28);
}

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

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

body {
  margin: 0;
  background: var(--screen);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--mint);
  text-underline-offset: 3px;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type -------------------------------------------------------------- */
.h1,
.h2,
.h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
}
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* The app's section label: small, wide-tracked capitals. */
.label {
  margin: 0 0 14px;
  color: var(--text-2);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--text-2);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

/* ---- Navigation -------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 245, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.nav__links {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav__links a:hover {
  background: var(--muted);
  color: var(--ink);
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--mint);
  color: #fff;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s var(--settle), background-color 0.18s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: #1a5e3e;
  box-shadow: 0 10px 22px -12px rgba(30, 107, 71, 0.7);
}
.btn:active {
  transform: scale(0.97);
}
.btn--soft {
  background: var(--mint-soft);
  color: var(--mint);
}
.btn--soft:hover {
  background: rgba(63, 164, 92, 0.22);
  box-shadow: none;
}

/* Store buttons: two lines, like the stores' own badges. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.14s var(--settle), box-shadow 0.2s ease;
}
.store:hover {
  box-shadow: 0 14px 28px -16px rgba(23, 53, 42, 0.8);
}
.store:active {
  transform: scale(0.97);
}
.store svg {
  flex: none;
  width: 24px;
  height: 24px;
}
.store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.8;
}
.store strong {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.fineprint {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) var(--section);
}
.hero::before {
  /* The app's hero-card wash, spread across the page. */
  content: "";
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(63, 164, 92, 0.18), rgba(63, 164, 92, 0));
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero__copy .h1 em {
  color: var(--mint);
  font-style: normal;
}
.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.promises li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-fill);
}

/* ---- The phone ---------------------------------------------------------- */
.phone {
  position: relative;
  width: min(340px, 86vw);
  aspect-ratio: 390 / 844;
  padding: 10px;
  border-radius: 52px;
  background: var(--ink);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06) inset, 0 50px 80px -40px rgba(23, 53, 42, 0.55),
    0 24px 40px -30px rgba(23, 53, 42, 0.5);
}
.phone::after {
  /* The camera island. */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 3;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: var(--screen);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* A screenshot has no status bar of its own; this frame gives it room under
 * the camera island and is a touch taller, so nothing is covered or cut. */
.phone--shot {
  aspect-ratio: 390 / 892;
}
.phone--shot .phone__screen {
  padding-top: 46px;
}
.phone--shot .phone__screen img {
  height: auto;
}

/* ---- The working quick add ---------------------------------------------- */
.demo {
  position: relative;
}
.demo .phone__screen {
  display: flex;
  flex-direction: column;
}
.demo__screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 50px 16px 12px;
}

/* The app's bottom bar, so the demo reads as the app it is. */
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 8px 6px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.tabbar__item {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
}
.tabbar__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar__item.is-on {
  color: var(--mint);
}
.tabbar__fab {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 46px;
  height: 46px;
  margin-top: -22px;
  border-radius: 16px;
  background: var(--mint);
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  box-shadow: 0 10px 18px -8px rgba(30, 107, 71, 0.6);
}
.demo__hint {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}
.demo__hint button {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--mint);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bcard {
  padding: 12px 13px 13px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
}
.bcard__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.bcard__name {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.bcard__of {
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.3;
}
.bcard__pct {
  margin-left: auto;
  text-align: right;
}
.bcard__pct strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.2;
  transition: color 0.3s ease;
}
.bcard__pct span {
  font-size: 11px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.bar {
  height: 7px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--track);
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.7s var(--settle), background-color 0.3s ease;
}

.says {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(109, 91, 208, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #f1eefc, #fbfaff);
}
.says img {
  flex: none;
  width: 30px;
  height: auto;
}
.says p {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.says b {
  display: block;
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
}
.says p.is-new {
  animation: fnUp 0.42s var(--settle);
}

.amount {
  text-align: center;
}
.amount small {
  color: var(--text-2);
  font-size: 12px;
}
.amount output {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.amount output .cur {
  color: var(--text-2);
  font-size: 26px;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 30px;
  margin-left: 3px;
  background: var(--mint-fill);
  animation: fnCaret 1s steps(1) infinite;
}
.amount.is-shake output {
  animation: fnShake 0.36s ease;
}

.chips {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: var(--muted);
  color: var(--ink);
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s var(--settle);
}
.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.chip:active {
  transform: scale(0.95);
}
.chip[aria-pressed="true"] {
  border-color: currentColor;
}

.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.key {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: var(--muted);
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.12s var(--settle);
}
.key:hover {
  background: var(--tile);
}
.key:active,
.key.is-down {
  background: var(--pressed);
  transform: scale(0.95);
}

.save {
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  background: var(--mint);
  color: #fff;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.14s var(--settle), opacity 0.2s ease;
}
.save:active {
  transform: scale(0.97);
}
.save:disabled {
  background: var(--tile);
  color: var(--text-3);
  cursor: default;
}

.toast {
  position: absolute;
  top: 52px;
  left: 50%;
  z-index: 4;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.36s var(--settle);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.peek {
  position: absolute;
  left: -110px;
  bottom: 118px;
  z-index: 5;
  width: 140px;
  /* Decoration only: the coin overlaps the demo's keypad edge. */
  pointer-events: none;
  animation: fnFloat 3.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 16px 18px rgba(23, 53, 42, 0.22));
}

/* ---- Sections ---------------------------------------------------------- */
.section {
  padding-block: var(--section);
}
.section--canvas {
  background: var(--canvas);
}
.section__head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* A feature: words beside the real screen. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 7vw, 104px);
}
.feature + .feature {
  margin-top: clamp(80px, 11vw, 140px);
}
.feature--flip {
  grid-template-columns: auto minmax(0, 1fr);
}
.feature--flip .feature__shot {
  order: -1;
}
.feature .phone {
  width: min(300px, 78vw);
}
.feature .h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.ticks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--body);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--mint-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%231e6b47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.feature .says {
  max-width: 30rem;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 18px;
}
.feature .says img {
  width: 40px;
}
.feature .says p {
  font-size: 15px;
}
.feature .says b {
  font-size: 12px;
}

/* Fynni's own screen: a real exchange, drawn as the app draws it. */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 56px 16px 16px;
}
.chat h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.bubble {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
}
.bubble--me {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--mint);
  color: #fff;
}
.bubble--fynni {
  align-self: flex-start;
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}
.bubble ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.bubble li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid var(--hairline);
}
.source {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
}

/* ---- The rest, as the app lists it in Settings ---------------------------- */
.lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.group {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
  list-style: none;
}
.group li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 18px;
}
.group li + li {
  border-top: 1px solid var(--hairline);
}
.group .tile {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.group h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.group p {
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.pro {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--violet);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---- Privacy ------------------------------------------------------------ */
.where {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.where__card {
  padding: 26px 24px 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.where__card .h3 {
  margin-top: 16px;
}
.where__card p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15.5px;
}
.where__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.where__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note {
  max-width: 52rem;
  margin: 28px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

/* ---- Pricing ------------------------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 940px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 32px;
  border: 1px solid var(--hairline-strong);
  border-radius: 26px;
  background: var(--surface);
}
.plan--pro {
  border: 2px solid var(--mint);
  background: linear-gradient(160deg, #e9f5e5, #ffffff 55%);
}
.plan__kicker {
  margin: 0 0 6px;
  color: var(--violet);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.plan__price {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan__price small {
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.plan__alt {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
}
.plan .ticks {
  margin-top: 24px;
}
.plan .ticks li {
  font-size: 15.5px;
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq {
  max-width: 820px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.faq details + details {
  border-top: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 22px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: auto;
  background: linear-gradient(var(--mint), var(--mint)) center / 14px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--settle);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 15.5px;
}
.faq details > div p {
  margin: 0 0 10px;
}
.faq details[open] > div {
  animation: fnUp 0.36s var(--settle);
}

/* ---- Closing ------------------------------------------------------------ */
.closing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background: linear-gradient(140deg, #e9f5e5, #f7faf3);
  border: 1px solid var(--hairline);
}
.closing img {
  width: clamp(122px, 15.6vw, 167px);
  animation: fnFloat 3.6s ease-in-out infinite alternate;
}
.closing .stores {
  margin-top: 26px;
}

/* ---- Footer ------------------------------------------------------------- */
.footer {
  padding-block: 48px 56px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 14px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--ink);
}
.footer p {
  margin: 18px 0 0;
}

/* ---- Document pages (privacy, support) ------------------------------------ */
.doc {
  max-width: 760px;
  padding-block: clamp(40px, 7vw, 80px) var(--section);
}
.doc h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.doc h2 {
  margin: 48px 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.doc h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}
.doc p,
.doc li {
  color: var(--body);
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
}
.doc li + li {
  margin-top: 8px;
}
.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--muted);
  font-size: 0.92em;
}
.doc .meta {
  margin: 0;
  color: var(--text-3);
}
.doc .card {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
}

/* ---- Motion ------------------------------------------------------------- */
/* The app's keyframes, by their prototype names. */
@keyframes fnUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fnFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-9px);
  }
}
@keyframes fnCaret {
  50% {
    opacity: 0;
  }
}
@keyframes fnShake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Scroll reveals: content is visible unless the script opts it in, so a
 * page without JavaScript loses nothing. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.8s var(--settle);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

/* ---- Smaller screens ---------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid,
  .feature,
  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__visual,
  .feature__shot {
    justify-self: center;
  }
  .feature--flip .feature__shot {
    order: 0;
  }
  .where {
    grid-template-columns: minmax(0, 1fr);
  }
  .peek {
    left: -80px;
    width: 115px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav__links {
    display: none;
  }
  .nav__bar {
    justify-content: space-between;
  }
  .lists,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .closing {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .closing img {
    margin-inline: auto;
  }
  .closing .stores {
    justify-content: center;
  }
}

/* The phone is centred and nearly full width here: tuck Fynni in so the
   hero's overflow doesn't clip the mascot at the screen edge. */
@media (max-width: 560px) {
  .peek {
    left: -34px;
    width: 96px;
  }
}

@media (max-width: 420px) {
  .peek {
    display: none;
  }
  .store {
    flex: 1 1 100%;
    justify-content: center;
  }
}
