@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/products/closemydeal/fonts/dm-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 380 520; font-display: swap; src: url("/products/closemydeal/fonts/newsreader-display-italic.woff2") format("woff2"); }

:root {
  --ink: #0d1512;
  --ink-2: #27312c;
  --muted: #56615b;
  --paper: #f5f4ee;
  --paper-2: #eceae0;
  --surface: #ffffff;
  --line: #dedcd1;
  --line-2: #c4c2b6;
  --forest: #0a2e22;
  --forest-line: rgba(255, 255, 255, 0.16);
  --forest-muted: #b3c9bd;
  --green: #0b7a4b;
  --lime: #c5f04f;
  --lime-soft: #e7f7b9;
  --mint: #d3f0e0;
  --peach: #ffdfd0;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 76px;
  --section-y: clamp(72px, 8vw, 120px);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
p { line-height: 1.65; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }
::selection { background: var(--lime); color: var(--ink); }
:where(a, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }
:where(.site-header, .hero, .cta, .site-footer) :where(a):focus-visible { outline-color: var(--lime); }

.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }

h1, h2 { letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1; }
h2 { max-width: 760px; font-size: clamp(2.1rem, 3.9vw, 3.4rem); line-height: 1.04; }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.025em; }

/* The accent word: serif italic, tying headlines to the wordmark. */
h1 em, h2 em, .term-sheet-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 440;
  font-size: 1.05em;
  letter-spacing: -0.03em;
  color: var(--green);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex-shrink: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button svg { transition: transform 0.2s ease; }
.button:hover { background: var(--green); border-color: var(--green); }
.button:hover svg { transform: translateX(3px); }
.button.small { min-height: 42px; padding: 0 16px; font-size: 0.875rem; gap: 8px; }
.button.small svg { width: 15px; height: 15px; }
.button.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button.lime:hover { background: #fff; border-color: #fff; color: var(--ink); }
.button.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.button.ghost:hover { background: transparent; border-color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 2px solid var(--green);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.text-link:hover { color: var(--green); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 46, 34, 0.96);
  border-bottom: 1px solid var(--forest-line);
  color: #fff;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 1; }
.logo .brand-wordmark { display: block; width: 164px; height: auto; max-width: 100%; }
.site-header nav { display: flex; gap: 32px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; color: #dbe7e0; }
.site-header nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; border-color: var(--lime); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--green); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: var(--section-y);
  background: var(--forest);
  color: #fff;
}

/* A faint ledger grid, fading out toward the bottom. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.hero .breadcrumb { color: var(--forest-muted); }
.hero .breadcrumb a { text-decoration-color: rgba(255, 255, 255, 0.3); }
.hero .breadcrumb a:hover { color: var(--lime); }
.hero .eyebrow, .cta .eyebrow { color: var(--lime); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: center; padding-top: clamp(44px, 5vw, 72px); }
.lede { max-width: 620px; margin-top: 26px; font-size: 1.125rem; color: #d3e2d9; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.term-sheet { margin-right: 12px; padding: 24px 28px 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 12px 12px 0 var(--lime); color: var(--ink); }

.term-sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.term-sheet-tag { padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); letter-spacing: 0.08em; }
.term-sheet-title { padding-top: 22px; font-weight: 700; font-size: clamp(2.6rem, 3.8vw, 3.25rem); line-height: 0.98; letter-spacing: -0.045em; }
.term-sheet-text { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.term-sheet ul { display: grid; margin-top: 20px; border-top: 1.5px solid var(--ink); font-size: 0.9375rem; font-weight: 600; }
.term-sheet li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.term-sheet li:last-child { border-bottom: 0; }
.term-sheet li svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--ink); }

/* Sections */
.section { padding: var(--section-y) 0; }
.problems, .faq { background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.cards article { padding: 28px 28px 30px; border-radius: var(--radius-lg); background: var(--lime-soft); }
.cards article:nth-child(3n + 2) { background: var(--mint); }
.cards article:nth-child(3n + 3) { background: var(--peach); }
.cards span { font-family: var(--serif); font-style: italic; font-weight: 440; font-size: 2rem; line-height: 1; }
.cards h3 { margin: 40px 0 10px; font-size: 1.375rem; }
.cards p { font-size: 1rem; color: var(--ink-2); }
.steps p { font-size: 1rem; color: var(--muted); }

.approach-grid, .faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px clamp(48px, 7vw, 96px); align-items: start; }
.approach-intro > p:last-child { max-width: 460px; margin-top: 22px; font-size: 1.125rem; color: var(--muted); }
.steps { border-top: 1.5px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.steps strong { font-family: var(--serif); font-style: italic; font-size: 2.5rem; font-weight: 440; line-height: 1; letter-spacing: -0.03em; color: var(--green); }
.steps h3 { margin-bottom: 8px; }

.accordion { border-top: 1.5px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--green); }
.accordion-icon { position: relative; width: 32px; height: 32px; border: 1.5px solid var(--ink); border-radius: 50%; flex-shrink: 0; color: var(--ink); transition: background-color 0.2s ease; }
.accordion-icon::before, .accordion-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.25s ease; }
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .accordion-icon { background: var(--lime); }
details[open] .accordion-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
details p { max-width: 620px; padding: 0 56px 26px 0; font-size: 1.0625rem; color: var(--muted); }

.related { padding: 64px 0 72px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-grid a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); font-size: 1.1875rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.related-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); flex-shrink: 0; }
.related-arrow svg { width: 16px; height: 16px; }
.related-grid a:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }

.cta { padding: var(--section-y) 0; background: var(--forest); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.cta h2 { max-width: 780px; }
.cta h2 em { color: var(--lime); }
.cta p:not(.eyebrow) { max-width: 560px; margin-top: 22px; font-size: 1.125rem; color: #d3e2d9; }

.site-footer { padding: 64px 0 32px; background: var(--ink); color: #e9ece7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 48px; align-items: start; }
.footer-brand p { max-width: 380px; margin-top: 20px; font-size: 0.9375rem; color: #a5aca7; }
.site-footer nav { display: grid; gap: 12px; font-size: 0.9375rem; font-weight: 500; }
.site-footer nav a, .footer-mail { transition: color 0.2s ease; }
.site-footer nav a:hover, .footer-mail:hover { color: var(--lime); }
.footer-mail { font-size: 0.9375rem; font-weight: 500; }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(233, 236, 231, 0.16); font-size: 0.75rem; color: #a5aca7; }

.skip-link { position: absolute; top: -100px; left: 20px; z-index: 60; padding: 14px 18px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 10px; }

@media (max-width: 950px) {
  :root { --header-h: 68px; }
  .wrap { width: calc(100% - 64px); }
  .site-header nav { display: none; }
  .header-inner .button { margin-left: auto; }
  .hero-grid, .approach-grid, .faq-grid { grid-template-columns: 1fr; }
  .term-sheet { max-width: 520px; }
  .cards { grid-template-columns: 1fr; margin-top: 40px; }
  .cards h3 { margin-top: 24px; }
  .related-grid { grid-template-columns: 1fr; gap: 14px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .logo .brand-wordmark { width: 144px; }
  .button.small { padding: 0 12px; font-size: 0.8125rem; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
  h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .lede { font-size: 1.0625rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .term-sheet { margin-right: 8px; padding: 20px 18px 10px; box-shadow: 8px 8px 0 var(--lime); }
  .term-sheet-head { font-size: 0.625rem; letter-spacing: 0.1em; }
  .cards article { padding: 24px 22px 26px; }
  .steps li { grid-template-columns: 56px 1fr; }
  .steps strong { font-size: 2rem; }
  summary { font-size: 1.0625rem; padding: 20px 0; }
  details p { padding-right: 12px; font-size: 1rem; }
  .related-grid a { padding: 18px 18px; font-size: 1.0625rem; }
  .cta .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 360px) {
  .logo .brand-wordmark { width: 128px; }
}

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