@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --border: #e5e7eb;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --violet-100: #ede9fe;
  --violet-700: #6d28d9;
  --rose-50: #fff1f2;
  --rose-700: #be123c;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-text);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --page-pad: 20px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-600);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--slate-800);
}

p {
  margin: 0;
}

a {
  color: var(--teal-700);
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--slate-800);
  line-height: 1;
}
.wordmark .ex {
  color: var(--teal-600);
}

/* Header */
.site-header {
  background: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.site-nav {
  display: none;
  gap: 32px;
}
.site-nav a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--slate-800);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .button {
  display: none;
}

.quick-exit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: #fff;
}
.quick-exit:hover {
  color: var(--slate-700);
}

/* Buttons and fields */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--teal-700);
  color: #fff;
  font: 600 16px/1.25 var(--font-text);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--teal-800);
}
.button--accent {
  background: var(--teal-500);
  color: var(--slate-900);
}
.button--accent:hover {
  background: #2dd4bf;
}
.button--small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

.field label,
.label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font: 400 16px/1.25 var(--font-text);
  color: var(--slate-800);
  background: #fff;
}
.input::placeholder {
  color: var(--slate-400);
}
.input:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 0;
  border-color: var(--teal-500);
}

.signup-form {
  display: grid;
  gap: 12px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--slate-600);
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--teal-700);
  flex: none;
}
.form-note {
  font-size: 14px;
  color: var(--slate-500);
}
.form-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--rose-50);
  color: var(--rose-700);
  font-size: 14px;
  font-weight: 500;
}
.honeypot {
  position: absolute;
  left: -10000px;
}

/* Hero */
.hero {
  background: var(--gray-50);
  padding: 32px 0 40px;
}
.hero .container {
  display: grid;
  gap: 32px;
}
.hero-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}
.eyebrow {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 17px;
  line-height: 1.6;
}

/* Product preview */
.preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px -8px rgb(15 23 42 / 0.1);
}
.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.preview-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-800);
}
.muted {
  font-size: 13px;
  color: var(--slate-500);
}
.amount {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--slate-800);
}
.balance {
  text-align: right;
}
.balance .amount {
  font-size: 17px;
}
.expenses {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.expenses li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.expenses li + li {
  border-top: 1px solid var(--border);
}
.expense-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-800);
}
.expense-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.expense-side .amount {
  font-size: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--ok {
  background: #ecfdf5;
  color: #065f46;
}
.status--talk {
  background: #fffbeb;
  color: #92400e;
}
.status--new {
  background: #f0f9ff;
  color: #075985;
}
.preview-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
}
.preview-summary svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.preview-stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
}
.expenses .optional-row {
  display: none;
}

/* Sections */
.section {
  padding: 48px 0;
}
.section--tinted {
  background: var(--gray-50);
}
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal-700);
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.section-head p {
  font-size: 16px;
}

.cards {
  display: grid;
  gap: 12px;
}
.card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.card p {
  font-size: 15px;
}
.icon {
  width: 44px;
  height: 44px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-family: var(--font-display);
  font-weight: 700;
}
.step-number--expert {
  background: var(--violet-100);
  color: var(--violet-700);
}

.trust {
  display: grid;
  gap: 28px;
}
.trust .section-head {
  margin-bottom: 0;
}
.point {
  display: flex;
  gap: 16px;
}
.point .icon {
  flex: none;
}
.point h3 {
  font-size: 18px;
}

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.faq summary {
  padding: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--slate-800);
  cursor: pointer;
}
.faq details p {
  padding: 0 18px 18px;
  font-size: 15px;
}

/* Final call to action */
.cta {
  padding: 48px 0;
  background: var(--slate-800);
  color: #cbd5e1;
}
.cta .container {
  display: grid;
  gap: 16px;
}
.cta h2 {
  color: #fff;
  font-size: 28px;
  letter-spacing: -0.015em;
}
.cta .consent {
  color: #cbd5e1;
}
.cta .consent a {
  color: #5eead4;
}

/* Footer */
.site-footer {
  padding: 32px 0;
}
.site-footer .container {
  display: grid;
  gap: 20px;
}
.footer-top {
  display: grid;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.help {
  padding: 14px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
}
.copyright {
  font-size: 14px;
  color: var(--slate-400);
}

/* Thank-you page */
.thanks {
  background: var(--gray-50);
  padding: 36px 0 48px;
}
.thanks .container {
  max-width: 680px;
  display: grid;
  gap: 24px;
}
.thanks h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.survey {
  display: grid;
  gap: 28px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.survey-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate-500);
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
}
.question {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.question legend {
  padding: 0;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--slate-800);
}
.question-step {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-700);
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  color: var(--slate-700);
  cursor: pointer;
}
.option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal-700);
  flex: none;
}
.option:has(input:checked) {
  border-color: var(--teal-600);
  background: var(--teal-50);
}
.survey-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.survey-actions .button {
  width: 100%;
}
.link-muted {
  color: var(--slate-500);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.done {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

/* Legal pages */
.legal {
  padding: 40px 0 64px;
}
.legal .container {
  max-width: 760px;
  display: grid;
  gap: 16px;
}
.legal h1 {
  font-size: 32px;
}
.legal h2 {
  margin-top: 16px;
  font-size: 20px;
}
.placeholder {
  background: #fffbeb;
  color: #92400e;
  padding: 0 4px;
  border-radius: 4px;
}

@media (min-width: 640px) {
  .signup-form--inline {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .signup-form--inline .consent,
  .signup-form--inline .form-error {
    grid-column: 1 / -1;
  }
  .survey-actions {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 20px;
  }
  .survey-actions .button {
    width: auto;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-pad: 80px;
  }
  body {
    font-size: 16px;
  }
  .container {
    max-width: 1440px;
  }
  .site-header .container {
    min-height: 84px;
  }
  .site-nav,
  .header-actions .button {
    display: inline-flex;
  }
  .brand svg {
    width: 35px;
    height: 35px;
  }
  .wordmark {
    font-size: 22px;
  }
  .hero {
    padding: 88px 0 96px;
  }
  .hero .container {
    grid-template-columns: 600px 520px;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
  }
  .hero-copy {
    gap: 24px;
  }
  .hero h1 {
    font-size: 56px;
    line-height: 1.1;
  }
  .lead {
    font-size: 20px;
  }
  .preview {
    padding: 24px;
    gap: 16px;
  }
  .preview-title {
    font-size: 18px;
  }
  .expenses li {
    padding: 14px 16px;
  }
  .expense-name,
  .expense-side .amount {
    font-size: 15px;
  }
  .expenses .optional-row {
    display: flex;
  }
  .section {
    padding: 96px 0;
  }
  .section-head {
    justify-items: center;
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
  }
  .section-head h2 {
    font-size: 36px;
  }
  .section-head p {
    font-size: 18px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .card {
    padding: 28px;
    gap: 16px;
  }
  .card h3 {
    font-size: 20px;
  }
  .card p {
    font-size: 16px;
  }
  .trust {
    grid-template-columns: 560px 576px;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
  }
  .trust .section-head {
    justify-items: start;
    text-align: left;
    margin: 0;
  }
  .trust .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .faq {
    max-width: 800px;
    margin: 0 auto;
    gap: 12px;
  }
  .faq summary {
    padding: 20px 24px;
    font-size: 18px;
  }
  .faq details p {
    padding: 0 24px 20px;
    font-size: 16px;
  }
  .cta {
    padding: 88px 0;
  }
  .cta .container {
    justify-items: center;
    text-align: center;
    gap: 24px;
  }
  .cta h2 {
    font-size: 36px;
  }
  .cta .signup-form {
    width: 100%;
    max-width: 640px;
    text-align: left;
  }
  .site-footer {
    padding: 48px 0 40px;
  }
  .footer-top {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
  }
  .thanks {
    padding: 72px 0 96px;
  }
  .thanks h1 {
    font-size: 40px;
  }
  .survey {
    padding: 32px;
  }
}
