/* ==========================================================================
   Budget Balancer — site styles
   --------------------------------------------------------------------------
   This is a plain static site. To change wording, edit the .html files.
   To change colours, spacing or layout, edit this file.

   Quick reference:
   - Colours live in the :root block just below (change once, applies sitewide).
   - The hero background image is set in `.hero-image` (currently
     screenshots/01-outlook.png).
   - Fonts are self-hosted in /fonts — you don't need to touch the @font-face
     block unless you swap the typeface.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
  padding: 0;
}

/* --- Brand colours (edit these to re-theme the whole site) --------------- */
:root {
  --background: #f8faf8;
  --foreground: #171b24;
  --muted: #5e6675;
  --line: #dce3df;
  --paper: #ffffff;
  --ink-soft: #2a3140;
  --accent: #4a5cdb;
  --teal: #1fadad;
  --green: #219e66;
  --coral: #d94a4e;
  --amber: #d98b18;

  /* Body uses Geist (loaded below); headings use a serif stack. */
  --font-geist-sans: "Geist", Arial, Helvetica, sans-serif;
}

/* --- Fonts (self-hosted, generated — no need to edit) -------------------- */
/* latin-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-001175b1.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-98bbbccb.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Base ---------------------------------------------------------------- */
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans);
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.92;
  margin-bottom: 26px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  margin: 0 0 12px;
  text-transform: uppercase;
}

/* --- Top navigation ------------------------------------------------------ */
.site-nav {
  align-items: center;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-mark,
.nav-links,
.hero-actions,
.legal-links,
.site-footer div {
  align-items: center;
  display: flex;
}

.brand-mark {
  font-weight: 760;
  gap: 10px;
}

.brand-icon {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.nav-links {
  color: var(--muted);
  font-size: 0.92rem;
  gap: clamp(12px, 3vw, 28px);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.84) 36%, rgba(248, 250, 248, 0.04) 100%),
    url("screenshots/01-outlook.png");
  background-position: center right 12%;
  background-repeat: no-repeat;
  background-size: auto min(86vh, 860px);
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(31, 173, 173, 0.08), rgba(74, 92, 219, 0.04)),
    radial-gradient(circle at 84% 54%, rgba(31, 173, 173, 0.1), transparent 32%);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding: 112px clamp(20px, 6vw, 82px) 72px;
  width: min(720px, 100%);
}

.hero-copy {
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 650px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 18px;
}

.button {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 720;
  justify-content: center;
  padding: 13px 18px;
}

.button.primary {
  background: var(--foreground);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--foreground);
}

.trust-line {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Proof strip --------------------------------------------------------- */
.proof-strip {
  background: var(--foreground);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.proof-strip div {
  background: rgba(255, 255, 255, 0.05);
  padding: 22px clamp(18px, 4vw, 48px);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  margin-top: 6px;
}

/* --- Generic sections ---------------------------------------------------- */
.section,
.screens-section,
.pro-band,
.legal-band,
.site-footer {
  padding-left: clamp(20px, 6vw, 82px);
  padding-right: clamp(20px, 6vw, 82px);
}

.section {
  padding-bottom: clamp(64px, 9vw, 120px);
  padding-top: clamp(64px, 9vw, 120px);
}

.section-heading {
  max-width: 880px;
}

.section-heading p,
.screens-copy p,
.legal-band p,
.price-card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.compact {
  max-width: 680px;
}

/* --- Feature grid -------------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.feature-card,
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

/* --- App screenshots ----------------------------------------------------- */
.screens-section {
  align-items: center;
  background: #edf7f4;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(240px, 0.9fr) 1.5fr;
  overflow: hidden;
  padding-bottom: clamp(54px, 8vw, 96px);
  padding-top: clamp(54px, 8vw, 96px);
}

.phone-row {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-shot {
  margin: 0;
}

.phone-shot img {
  aspect-ratio: 1284 / 2778;
  border: 1px solid rgba(23, 27, 36, 0.15);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(23, 27, 36, 0.14);
  object-fit: cover;
  width: 100%;
}

.phone-shot:nth-child(2) {
  transform: translateY(28px);
}

.phone-shot figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
  margin-top: 10px;
  text-align: center;
}

/* --- Pricing ------------------------------------------------------------- */
.split-section {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 0.85fr 1.15fr;
}

.pricing-table {
  display: grid;
  gap: 14px;
}

.price-card.emphasized {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  box-shadow: inset 6px 0 0 var(--accent);
}

.price {
  color: var(--foreground);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1;
  margin-bottom: 10px;
}

/* --- Pro feature band ---------------------------------------------------- */
.pro-band {
  align-items: start;
  background: var(--foreground);
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: 0.9fr 1.1fr;
  padding-bottom: clamp(52px, 8vw, 90px);
  padding-top: clamp(52px, 8vw, 90px);
}

.pro-band .eyebrow {
  color: #8ee1d6;
}

.pro-list {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.pro-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px 14px;
}

/* --- Legal links band + footer ------------------------------------------ */
.legal-band {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  padding-bottom: clamp(40px, 7vw, 76px);
  padding-top: clamp(40px, 7vw, 76px);
}

.legal-band h2 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
}

.legal-links {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legal-links a,
.site-footer a {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 700;
}

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

.site-footer div {
  gap: 16px;
}

/* --- Legal / support pages (privacy, terms, support) --------------------- */
.legal-page {
  margin: 0 auto;
  max-width: 940px;
  padding: 116px clamp(20px, 5vw, 48px) 72px;
}

.legal-page header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding-bottom: 28px;
}

.legal-page h1 {
  font-size: clamp(3.1rem, 8vw, 6.8rem);
}

.legal-page h2 {
  font-family: var(--font-geist-sans);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-top: 32px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.8;
}

/* Readable spacing between paragraphs and list items on text-heavy pages. */
.legal-page p {
  margin-bottom: 1.1rem;
}

.legal-page a {
  color: var(--accent);
  font-weight: 720;
}

.legal-page ul {
  list-style: disc;
  margin-bottom: 1.1rem;
  padding-left: 1.3rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-image {
    background:
      linear-gradient(180deg, rgba(248, 250, 248, 0.99) 0%, rgba(248, 250, 248, 0.96) 58%, rgba(248, 250, 248, 0.18) 100%),
      url("screenshots/01-outlook.png");
    background-position: bottom 8px center;
    background-repeat: no-repeat;
    background-size: auto 38vh;
  }

  .hero-content {
    justify-content: flex-start;
    min-height: 96vh;
  }

  .proof-strip,
  .feature-grid,
  .screens-section,
  .split-section,
  .pro-band {
    grid-template-columns: 1fr;
  }

  .phone-row {
    gap: 10px;
  }

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

  .legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-copy {
    max-width: 34rem;
  }

  .proof-strip div {
    padding: 18px 20px;
  }

  .phone-row {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
  }

  .phone-shot {
    scroll-snap-align: center;
  }

  .phone-shot:nth-child(2) {
    transform: none;
  }

  .pro-list {
    grid-template-columns: 1fr;
  }
}
