/* Finance Help — marketing site.
   The app's "Ledger" palette: bone paper, ink, hairlines, one chartreuse
   action, money in olive and clay. Layout after the Arbor Census case
   study: paper page, giant cropped word pinned to the viewport bottom.
   Titles in Cinzel, everything else in Grandstander. */

/* Vercetti by Filippos Fragkogiannis — Licence Amicale, credit requested. */
@font-face {
  font-family: "Vercetti";
  src: url("/fonts/Vercetti-Regular.woff2") format("woff2"),
    url("/fonts/Vercetti-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ede9e1;
  --surface: #f5f2ec;
  --ink: #1b1a17;
  --ink-2: #6b6759;
  --ink-3: #9a9587;
  --hairline: #dad4c8;
  --accent: #d6e04a;
  --olive: #4e6b27;
  --umber: #74573e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--accent); color: var(--ink); }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  font-family: "Vercetti", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  min-height: 100vh;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header: name | pitch | label ---- */

.masthead {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) 0;
}

.masthead .name,
.masthead .label {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 450;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.masthead .name a { color: inherit; text-decoration: none; }

.masthead .label { text-align: right; }

.masthead .label .quiet-links {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  font-size: 14px;
}

.masthead .label .quiet-links a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}

.masthead .label .quiet-links a:hover { color: var(--ink); }

.pitch p {
  font-size: 17px;
  line-height: 1.65;
}

.pitch p + p { margin-top: 1em; }

.pitch strong { font-weight: 700; }

.pitch .lead { font-weight: 700; margin-top: 1.4em; }

.pitch ol {
  list-style: none;
  counter-reset: focus;
  margin-top: 0.4em;
}

.pitch ol li {
  counter-increment: focus;
  font-size: 16px;
  line-height: 1.6;
  padding: 9px 0 9px 30px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.pitch ol li::before {
  content: counter(focus) ".";
  position: absolute;
  left: 2px;
  color: var(--olive);
  font-weight: 700;
}

.pitch .closing { margin-top: 1.4em; color: var(--ink-2); }

/* ---- The italic date, floating right ---- */

.dateline {
  text-align: right;
  padding: clamp(40px, 8vh, 110px) clamp(24px, 4vw, 56px) 0;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-3);
}

/* ---- Hero: phone bottom-left, giant word cropped bottom-right ---- */

.hero {
  position: relative;
  flex: 1;
  min-height: 420px;
  margin-top: clamp(24px, 4vh, 48px);
}

/* The title rides the viewport bottom, cropped by its own transform,
   wherever the page scrolls. */
.bigword {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: right;
  /* Ends before the corner link. */
  padding-right: 170px;
  line-height: 0.85;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 450;
  /* Sized to fit the space right of the phone: ~3.5em of Cinzel caps
     into (viewport - phone zone - pill corner). */
  font-size: max(64px, min(18vw, calc((100vw - 640px) / 3.5)));
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--ink);
  user-select: none;
  pointer-events: none;
}

/* On prose pages the pinned word fades to a watermark so the text can
   scroll across it and stay readable. */
.bigword.ghost { color: var(--hairline); z-index: 0; }

/* ---- Phone mock of the Budget screen ---- */

.phone {
  position: absolute;
  bottom: -170px;
  left: clamp(24px, 4vw, 56px);
  z-index: 2;
  width: 330px;
  height: 700px;
  background: var(--surface);
  border: 9px solid var(--ink);
  border-radius: 52px;
  box-shadow: 24px 24px 0 rgba(27, 26, 23, 0.08);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 43px;
}

/* ---- Load-in ---- */

@media (prefers-reduced-motion: no-preference) {
  .masthead > *, .dateline, .phone, .bigword {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .masthead > :nth-child(2) { animation-delay: 0.08s; }
  .masthead > :nth-child(3) { animation-delay: 0.16s; }
  .dateline { animation-delay: 0.24s; }
  .phone { animation-delay: 0.3s; }
  .bigword { animation-delay: 0.38s; animation-duration: 0.9s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---- Footer: a quiet ghost link pinned to the corner ---- */

.footer-pill {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(12px, 2vh, 22px);
  z-index: 3;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}

.footer-pill:hover { color: var(--ink); }

/* ---- Prose pages (privacy) ---- */

.prose {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: clamp(32px, 6vh, 80px) clamp(24px, 4vw, 56px) 220px;
  margin: 0 auto;
  width: 100%;
}

.prose h2 {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 450;
  font-size: 19px;
  letter-spacing: 0.02em;
  margin: 2.4em 0 0.6em;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  font-size: 16.5px;
  line-height: 1.7;
}

.prose p + p { margin-top: 0.8em; }

.prose ul { list-style: none; margin-top: 0.6em; }

.prose li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.prose li:first-child { border-top: 1px solid var(--hairline); }

.prose strong { font-weight: 700; }

.prose .never { color: var(--umber); }
.prose .kept { color: var(--olive); }

.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}

/* ---- Small screens ---- */

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr; gap: 18px; }
  .masthead .label { text-align: left; }
  .dateline { padding-top: 36px; }
  .hero { min-height: 520px; }
  /* Centered, riding the bottom edge. */
  .phone {
    width: 290px;
    height: 620px;
    bottom: -140px;
    left: 50%;
    margin-left: -145px;
  }
  /* On small screens the phone owns the bottom edge — the pinned title
     only peeks out in fragments there, so it sits this one out. */
  .bigword { display: none; }

  /* The corner link crosses the centered phone; paper keeps it legible. */
  .footer-pill {
    background: rgba(237, 233, 225, 0.92);
    padding: 6px 12px;
    border-radius: 999px;
  }
  .prose { padding-bottom: 140px; }
}
