@font-face {
  font-family: "Google Sans";
  src: url("media/google-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f7f1;
  --ink: #241b34;
  --muted: #574e62;
  --accent: #514089;
  --border: #dfd7e5;
  --dark: #29203c;
  font-family: "Google Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
body > .footer { margin-top: auto; }
.public-preprod { background: #fff1cb; color: #483713; text-align: center; padding: .45rem; font-size: .875rem; }
a { color: inherit; text-decoration: none; }
a:focus-visible, video:focus-visible { outline: 3px solid #8970dc; outline-offset: 5px; }
img, video { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 28px; }
.wrap { width: min(100% - 80px, 1272px); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 1; transform: translateY(-200%); background: white; padding: 12px; }
.skip:focus { transform: none; }

.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header { min-height: 88px; border-bottom: 1px solid var(--border); }
.header nav { justify-content: flex-end; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 1.35rem; font-weight: 690; letter-spacing: -.045em; }
.mark { width: 32px; height: 32px; background: var(--accent); mask: url("media/buddy-mark-v2.png") center / contain no-repeat; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2.8vw, 38px); font-size: .95rem; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { min-height: 48px; display: inline-flex; gap: .65rem; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 100px; font-weight: 650; white-space: nowrap; }
.button.small { min-height: 42px; padding-inline: 16px; }
.button.primary { background: var(--accent); color: white; }
.button.primary:hover { background: #3b2a70; }
.button.outline { border-color: #aa9cb7; color: var(--ink); }
.button.outline:hover { background: #eee6f5; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 19px; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .92rem; font-weight: 650; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

.hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 4vw, 62px); padding-block: clamp(48px, 7vw, 104px); }
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.055em; }
h1 { max-width: 11ch; font-size: clamp(3.65rem, 6.2vw, 6.2rem); line-height: .99; margin-block: 20px 24px; }
h1 em { color: var(--accent); font-weight: inherit; }
.lead { max-width: 38ch; font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--muted); }
.hero-copy .actions { margin-top: 28px; }
.product-hunt-badge { display: block; width: fit-content; max-width: 100%; margin-top: 20px; }
.hero-figure { background: #e9dff4; border: 1px solid #d9cce8; border-radius: 32px; padding: clamp(13px, 2vw, 26px) clamp(13px, 2vw, 26px) 16px; }
.hero-image { border: 1px solid #d4c6e3; border-radius: 17px; overflow: hidden; background: #fff; box-shadow: 0 14px 38px #32224420; }
.hero-image img { width: 100%; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-top: 14px; color: #524367; font-size: .83rem; }
figcaption span:first-child { font-weight: 700; }

.workspace { border-top: 1px solid var(--border); padding-block: clamp(44px, 6vw, 90px); }
.section-intro { margin-bottom: 30px; }
h2 { font-size: clamp(2.7rem, 4.8vw, 4.75rem); line-height: 1; }
.section-intro h2, .tour h2 { margin-top: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; }
.feature.expenses { background: #eee8f7; }
.feature.bills { background: #f7eadf; }
.feature.savings { background: #e8eee4; }
.feature-copy { padding: 24px; }
h3 { font-size: 1.32rem; line-height: 1.13; letter-spacing: -.035em; font-weight: 720; max-width: 20ch; }
.feature p { margin-top: 10px; color: var(--muted); font-size: .96rem; line-height: 1.52; }
.feature img { width: calc(100% - 24px); margin: 0 auto 12px; border-radius: 12px; border: 1px solid #2519391c; }

.goal-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 6vw, 80px); padding-block: clamp(44px, 6vw, 86px); border-top: 1px solid var(--border); }
.goal-copy h2 { margin-top: 12px; max-width: 15ch; }
.goal-copy p:not(.eyebrow) { max-width: 40ch; line-height: 1.55; margin-block: 20px 8px; color: var(--muted); }
.tour { background: var(--dark); color: #fbf5ff; padding-block: clamp(44px, 7vw, 96px); }
.tour-inner { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: center; gap: clamp(24px, 6vw, 86px); }
.tour .eyebrow, .tour .text-link { color: #dacaff; }
.tour p:not(.eyebrow) { margin-top: 18px; color: #e9dff2; max-width: 32ch; line-height: 1.52; }
.tour .text-link { margin-top: 8px; }
.tour video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid #6b587d; border-radius: 20px; background: #1e172d; }
.closer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(40px, 6vw, 78px); }
.closer h2 { font-size: clamp(2.35rem, 4vw, 3.7rem); }
.closer p { margin-top: 10px; line-height: 1.55; color: var(--muted); }
.footer { border-top: 1px solid var(--border); padding-block: 24px; color: var(--muted); }

@media (max-width: 960px) {
  .wrap { width: min(100% - 48px, 1272px); }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  h1 { max-width: 14ch; }
  .feature-copy { padding: 17px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header { position: relative; min-height: 0; flex-wrap: wrap; gap: 6px; padding-block: 12px 8px; }
  .header .wordmark { min-height: 40px; }
  .header nav { order: 3; width: 100%; justify-content: flex-start; gap: .4rem 1rem; }
  .header nav a.button { position: absolute; top: 12px; right: 0; min-height: 40px; padding-inline: .95rem; }
  .header nav a { padding-block: 8px; }
  .hero { gap: 28px; padding-block: 40px; }
  h1 { font-size: clamp(3.1rem, 11.5vw, 4.5rem); margin-block: 14px 17px; }
  .hero-copy .actions { margin-top: 19px; }
  .hero-figure { border-radius: 21px; }
  .hero-image { border-radius: 11px; }
  .feature-grid, .tour-inner, .goal-story { grid-template-columns: 1fr; }
  .feature-copy { padding: 20px; }
  .desktop { display: none; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: background-color 160ms ease, transform 160ms ease; }
  .button:hover { transform: translateY(-1px); }
}

.section-lead { max-width: 62ch; margin-top: 1.2rem; font-size: 1.1rem; color: var(--muted); line-height: 1.62; }
.reading-pair { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(24px,6vw,86px); }
.reading-pair h2 { max-width: 13ch; }
.feature-notes article + article { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.feature-notes h3 { max-width: 38ch; }
.feature-notes p { max-width: 58ch; line-height: 1.58; color: var(--muted); margin: .55rem 0; }
.feature-notes a, .tour-player a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.feature-notes a { display: inline-block; padding-block: .3rem; font-weight: 600; }
.tour-player { min-width: 0; }
.tour-player details { border-bottom: 1px solid #675a76; padding-block: .85rem; }
.tour-player summary { cursor: pointer; width: fit-content; }
.tour-player a { color: #eadfff; display: inline-block; padding-block: .25rem; }
.tour-player li { margin-block: .4rem; line-height: 1.5; }
.tour-player time { font-variant-numeric: tabular-nums; margin-inline-end: .6rem; }
.tour-player details p { max-width: 64ch; }
.tour-player summary:focus-visible { outline: 3px solid #dacaff; outline-offset: 4px; }
@media (max-width: 740px) { .reading-pair { grid-template-columns: 1fr; gap: 0; } }
