:root {
  --ink: #152322;
  --muted: #5f6f6a;
  --paper: #fbf7ef;
  --surface: #ffffff;
  --line: #dcd5c7;
  --teal: #14756f;
  --teal-dark: #0b4945;
  --amber: #d89a28;
  --coral: #c9674b;
  --slate: #31434b;
  --shadow: 0 24px 80px rgba(21, 35, 34, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: #f8f5ec;
  background: linear-gradient(180deg, rgba(14, 25, 25, 0.84), rgba(14, 25, 25, 0.18));
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.trust-band,
.field-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f4b84d;
  color: #143433;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.95rem;
}

.nav-links a,
.secondary-link,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.secondary-link:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta,
.primary-button,
.outline-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.header-cta {
  padding: 0 18px;
  background: #f4b84d;
  color: #132524;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 76px) 44px;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(9, 23, 23, 0.88) 0%, rgba(9, 23, 23, 0.68) 38%, rgba(9, 23, 23, 0.2) 72%),
    url("assets/budget-tracker-mockup.png");
  background-position: center;
  background-size: cover;
  color: #fffaf0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(9, 23, 23, 0.72), transparent);
}

.hero-content {
  width: min(670px, 100%);
  padding-bottom: clamp(28px, 7vh, 80px);
}

.eyebrow,
.plan-name {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4b84d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.04rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button {
  padding: 0 22px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 36px rgba(20, 117, 111, 0.28);
}

.hero .primary-button {
  background: #f4b84d;
  color: #142220;
  box-shadow: none;
}

.primary-button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.secondary-link {
  color: currentColor;
  font-weight: 800;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(12, 24, 24, 0.44);
  color: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(10px);
}

.trust-band {
  justify-content: center;
  gap: 1px;
  padding: 0 clamp(20px, 5vw, 76px);
  transform: translateY(-28px);
}

.trust-band div {
  width: min(360px, 33.33%);
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.trust-band div:first-child {
  border-radius: 8px 0 0 8px;
}

.trust-band div:last-child {
  border-radius: 0 8px 8px 0;
}

.trust-band span,
.section-heading p,
.feature-card p,
.price-card p,
.price-card li,
.preview-copy p,
.guarantee-section p,
.faq-list p,
.checkout-note {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 34px;
}

.section-heading.compact {
  text-align: center;
  margin-inline: auto;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.price-card,
.mini-dashboard,
.checkout-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(45, 37, 23, 0.08);
}

.feature-card {
  min-height: 236px;
  padding: 24px;
}

.feature-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.5) 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, rgba(255, 255, 255, 0.5) 44% 56%, transparent 56%),
    var(--teal);
}

.feature-icon.amber {
  background-color: var(--amber);
}

.feature-icon.coral {
  background-color: var(--coral);
}

.feature-icon.slate {
  background-color: var(--slate);
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #e8f0eb;
}

.preview-copy {
  max-width: 680px;
}

.mini-dashboard {
  padding: 26px;
}

.dash-top,
.dash-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dash-top strong {
  color: var(--teal);
  font-size: 1.8rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px minmax(90px, 1fr) 76px;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eee8dc;
}

.bar-row i {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ded2;
}

.bar-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  border-radius: inherit;
  background: var(--teal);
}

.bar-row:nth-of-type(3) i::before {
  background: var(--amber);
}

.bar-row:nth-of-type(4) i::before {
  background: var(--coral);
}

.dash-footer {
  padding: 18px 0 0;
  border-bottom: 0;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-grid.single {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.price-card {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 28px;
}

.price-card.featured {
  border-color: rgba(20, 117, 111, 0.48);
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e6f2ef;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.outline-button {
  width: 100%;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
}

.full {
  width: 100%;
}

.guarantee-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 0.6fr);
  gap: 30px;
  align-items: center;
  background: var(--teal-dark);
  color: #fffaf0;
}

.guarantee-section .eyebrow,
.guarantee-section p {
  color: #f4d68d;
}

.faq-section {
  background: #fffaf2;
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 76px);
  background: #122322;
  color: #fff8ec;
}

.checkout-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.checkout-dialog::backdrop {
  background: rgba(12, 20, 20, 0.58);
  backdrop-filter: blur(4px);
}

.checkout-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button span,
.icon-button span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(45deg);
}

.icon-button span::after {
  content: "";
  transform: rotate(90deg);
}

.checkout-head h2 {
  padding-right: 42px;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  padding: 16px;
  background: #eef5f2;
  color: var(--teal-dark);
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fffdf8;
  color: var(--ink);
}

input:focus {
  outline: 3px solid rgba(20, 117, 111, 0.18);
  border-color: var(--teal);
}

.field-row {
  align-items: start;
  gap: 14px;
}

.field-row label {
  flex: 1;
}

.checkout-note {
  margin: 0;
  font-size: 0.88rem;
}

.success-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 900;
}

@media (max-width: 980px) {
  .feature-grid,
  .pricing-grid,
  .preview-section,
  .guarantee-section {
    grid-template-columns: 1fr;
  }

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

  .trust-band {
    flex-direction: column;
    transform: none;
    padding-block: 22px 0;
  }

  .trust-band div {
    width: 100%;
    max-width: 760px;
    border-radius: 8px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .hero {
    min-height: 86svh;
    padding-inline: 18px;
    background-position: 58% center;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 78px minmax(70px, 1fr) 62px;
    gap: 10px;
    font-size: 0.9rem;
  }

  .field-row {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
