@font-face {
  font-family: "Inter";
  src: url("./fonts/inter.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("./fonts/jost.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #fffdf9;
  --bg-secondary: #f8f8f5;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #0a0f0d;
  --muted: #717470;
  --line: rgba(10, 15, 13, 0.08);
  --accent: #45ffca;
  --accent-deep: #13d7a5;
  --gold: #ffbb12;
  --danger: #de0040;
  --income: #5bc693;
  --shadow: 0 30px 80px rgba(21, 26, 24, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(69, 255, 202, 0.22), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(255, 187, 18, 0.16), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #fafaf8 70%, #f5f6f3 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header,
.site-footer,
.hero,
.overview,
.features,
.flow,
.categories,
.cta {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}

.brand__logo,
.site-footer__logo,
.app-preview__logo {
  width: 134px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  color: rgba(10, 15, 13, 0.68);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 56px;
  align-items: center;
  padding: 42px 0 84px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 15, 13, 0.5);
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  font-family: "Jost", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
}

.hero__lead {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(10, 15, 13, 0.72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 14px 40px rgba(10, 15, 13, 0.16);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button--full {
  width: 100%;
}

.tag-cloud span {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(10, 15, 13, 0.08);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.ambient {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.85;
}

.ambient--mint {
  width: 260px;
  height: 260px;
  top: 34px;
  right: 28px;
  background: radial-gradient(circle, rgba(69, 255, 202, 0.6), rgba(69, 255, 202, 0));
}

.ambient--gold {
  width: 180px;
  height: 180px;
  bottom: 42px;
  left: 24px;
  background: radial-gradient(circle, rgba(255, 187, 18, 0.36), rgba(255, 187, 18, 0));
}

.phone-frame {
  position: relative;
  width: min(100%, 410px);
  padding: 12px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 244, 239, 0.94));
  border: 1px solid rgba(10, 15, 13, 0.08);
  box-shadow: var(--shadow);
}

.phone-frame__inner {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(10, 15, 13, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 244, 0.96));
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 0;
  font-size: 12px;
  color: rgba(10, 15, 13, 0.55);
}

.app-preview {
  padding: 14px 14px 18px;
}

.app-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 2px 16px;
}

.app-preview__chip,
.sheet-card__eyebrow {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(69, 255, 202, 0.22);
  color: rgba(10, 15, 13, 0.74);
}

.preview-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(10, 15, 13, 0.05);
}

.preview-toggle__button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(10, 15, 13, 0.58);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.preview-toggle__button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(10, 15, 13, 0.08);
}

.preview-panel {
  display: none;
  margin-top: 14px;
}

.preview-panel.is-active {
  display: block;
}

.month-card,
.sheet-card,
.overview-card,
.feature-card,
.principles-card,
.flow-step,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(10, 15, 13, 0.06);
}

.month-card {
  padding: 18px;
}

.month-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.month-card__header h2,
.sheet-card h2,
.principles-card h3 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1;
  font-family: "Jost", "Times New Roman", serif;
  letter-spacing: -0.04em;
}

.month-card__label,
.principles-card__eyebrow {
  margin: 0;
  font-size: 13px;
  color: rgba(10, 15, 13, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.month-card__balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f0f0ed;
  white-space: nowrap;
}

.month-card__balance img {
  width: 22px;
  height: 22px;
}

.month-card__balance--positive {
  color: var(--text);
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.entry-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.entry-row__date {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 12px;
  background: #f4f4f1;
  font-weight: 800;
  font-size: 18px;
}

.entry-row__top,
.entry-row__meta,
.overview-grid,
.feature-layout,
.flow-grid,
.sheet-grid {
  display: grid;
  gap: 12px;
}

.entry-row__top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.entry-row__top span {
  font-size: 17px;
}

.entry-row__amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
}

.entry-row__amount--income {
  color: var(--income);
}

.entry-row__meta {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  margin-top: 6px;
  color: rgba(10, 15, 13, 0.5);
  font-size: 13px;
}

.sheet-card {
  padding: 18px;
}

.sheet-card__handle {
  width: 88px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(10, 15, 13, 0.12);
}

.sheet-card__eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
}

.sheet-field {
  margin-top: 12px;
}

.sheet-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(10, 15, 13, 0.52);
}

.sheet-field__value,
.sheet-segment {
  min-height: 54px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(10, 15, 13, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.sheet-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
}

.sheet-segment__item {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: rgba(10, 15, 13, 0.55);
}

.sheet-segment__item--active {
  background: rgba(69, 255, 202, 0.22);
  color: var(--text);
  font-weight: 600;
}

.sheet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet-card__footer {
  margin-top: 18px;
}

.sheet-card__hint {
  display: block;
  margin-bottom: 14px;
  color: rgba(10, 15, 13, 0.58);
  font-size: 14px;
  line-height: 1.5;
}

section + section {
  padding-top: 28px;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card,
.flow-step {
  padding: 26px;
}

.overview-card__index,
.flow-step__number {
  display: inline-flex;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(10, 15, 13, 0.46);
}

.overview-card h3,
.feature-card h3,
.flow-step h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-family: "Jost", "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.overview-card p,
.feature-card p,
.flow-step p,
.principles-list,
.cta-card p {
  margin: 0;
  color: rgba(10, 15, 13, 0.68);
  line-height: 1.7;
}

.feature-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.feature-stack {
  display: grid;
  gap: 16px;
}

.feature-card,
.principles-card {
  padding: 26px;
}

.feature-card--accent {
  background:
    linear-gradient(135deg, rgba(69, 255, 202, 0.18), rgba(255, 255, 255, 0.92));
}

.principles-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  margin-top: 16px;
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta {
  padding-bottom: 56px;
}

.cta-card {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(69, 255, 202, 0.16));
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button--store {
  border-color: rgba(10, 15, 13, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(10, 15, 13, 0.38);
  box-shadow: none;
  cursor: not-allowed;
}

.button--store:hover,
.button--store:focus-visible {
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(10, 15, 13, 0.08);
  color: rgba(10, 15, 13, 0.58);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer small {
  white-space: nowrap;
}

html[data-js="true"] .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html[data-js="true"] .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(10, 15, 13, 0.06);
  font-family: inherit;
}

@media (max-width: 1080px) {
  .hero,
  .feature-layout,
  .overview-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero__lead {
    font-size: 17px;
  }

  .phone-frame {
    width: 100%;
  }

  .entry-row__top,
  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .entry-row__top {
    gap: 4px;
  }

  .month-card__header {
    flex-direction: column;
  }

  .month-card__balance {
    align-self: flex-start;
  }

  .feature-card,
  .principles-card,
  .overview-card,
  .flow-step,
  .cta-card {
    padding: 22px;
    border-radius: 24px;
  }
}

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

  html[data-js="true"] .reveal,
  .button,
  .preview-toggle__button,
  .site-nav a {
    transition: none;
  }

  html[data-js="true"] .reveal {
    opacity: 1;
    transform: none;
  }
}
