/**
 * thedebtcaller.com
 *
 * Identity: the caller as a character. Where the sister site is a ledger of
 * ruled lines and tabular figures, this one is built out of call cards and
 * speech: rounded-off panels, a dialogue rhythm, a single hot accent, and a
 * condensed display face set very large. Nothing here is shared with it but
 * the wizard's mechanism.
 */

/* ---------------------------------------------------------------- typefaces */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2192;
}

@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/plex-sans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2192;
}

@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/plex-sans-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2192;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* ------------------------------------------------------------------- tokens */

:root {
  color-scheme: light dark;

  --paper: #fbfaf8;
  --paper-2: #f1eeea;
  --panel: #ffffff;
  --ink: #16130f;
  --ink-2: #55504a;
  --ink-3: #7b746c;
  --rule: #e0dbd3;
  --rule-firm: #c3bbb0;
  --hot: #b3400c;
  --hot-2: #d1560f;
  --on-hot: #fff8f4;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wz-rule: var(--rule);
  --wz-ink: var(--ink);
  --wz-ink-soft: var(--ink-2);
  --wz-accent: var(--hot);
  --wz-on-accent: var(--on-hot);
  --wz-input: #ffffff;
  --wz-input-focus: #fffdfb;
  --wz-preview-bg: linear-gradient(200deg, #ffffff, #f1eeea);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0a09;
    --paper-2: #131110;
    --panel: #171512;
    --ink: #f2efec;
    --ink-2: #aaa39b;
    --ink-3: #8b847c;
    --rule: #2a2521;
    --rule-firm: #423b34;
    --hot: #f2762f;
    --hot-2: #ff9153;
    --on-hot: #17120e;

    --wz-input: #171512;
    --wz-input-focus: #1d1a16;
    --wz-preview-bg: linear-gradient(200deg, #171512, #0b0a09);
  }
}

/* -------------------------------------------------------------------- reset */

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--hot); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; z-index: 40; }

/* ------------------------------------------------------------------- layout */

.wrap { width: min(1140px, 100% - clamp(28px, 6vw, 84px)); margin-inline: auto; }
.band { padding: clamp(56px, 9vw, 118px) 0; }
.band-tint { background: var(--paper-2); }
.measure { max-width: 66ch; }

/* --------------------------------------------------------------------- type */

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; }

.h-hero {
  font-size: clamp(2.7rem, 8.4vw, 6rem);
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -.035em;
  text-transform: none;
}

.h-sec { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; font-stretch: 95%; letter-spacing: -.028em; }
.h-sub { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; }

.lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hot);
  display: block;
}

.fig { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------- nav */

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.mark { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 1.2rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark b { color: var(--hot); font-weight: 800; }

.nav-links { display: none; gap: 20px; margin-left: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--hot); }

.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav .btn { margin-left: 0; } }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-accent { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------- hero */

.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(40px, 6vw, 78px); position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: 120vw;
  height: 90vh;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 40% at 30% 30%, color-mix(in srgb, var(--hot) 20%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 40% at 78% 18%, color-mix(in srgb, var(--hot) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid { display: grid; gap: clamp(34px, 5vw, 60px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.hero h1 { margin: 18px 0 0; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; animation: rise .82s cubic-bezier(.16, .84, .28, 1) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .16s; }
.hero h1 em { font-style: normal; color: var(--hot); }

@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

.hero-sub { margin: 22px 0 0; animation: fade .7s .3s ease both; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; animation: fade .7s .42s ease both; }

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

/* ------------------------------------------------- the caller, on a call */

.callcard {
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .5);
  padding: clamp(18px, 2.6vw, 28px);
  animation: fade .8s .2s ease both;
}

.callcard-top { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(150deg, var(--hot), var(--hot-2));
  color: var(--on-hot);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}

.callcard-who { display: grid; gap: 1px; }
.callcard-who b { font-weight: 600; }
.callcard-who small { color: var(--ink-3); font-family: var(--mono); font-size: .72rem; }

.timer { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--hot); }

/* Speech, arriving in turn. */
.say { display: grid; gap: 4px; margin: 0 0 14px; animation: said .5s ease both; }
.say[data-i="1"] { animation-delay: .7s; }
.say[data-i="2"] { animation-delay: 1.4s; }
.say[data-i="3"] { animation-delay: 2.1s; }
.say[data-i="4"] { animation-delay: 2.8s; }

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

.say span:first-child { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.say q { quotes: none; font-size: .96rem; line-height: 1.5; display: block; padding: 10px 14px; border-radius: 14px; }
.say[data-who="caller"] q { background: color-mix(in srgb, var(--hot) 12%, transparent); border-bottom-left-radius: 4px; }
.say[data-who="them"] q { background: var(--paper-2); color: var(--ink-2); border-bottom-right-radius: 4px; }

.wave { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-top: 4px; }
.wave i { width: 3px; background: var(--hot); border-radius: 2px; animation: bounce 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: .18s; }
.wave i:nth-child(3n) { animation-delay: .36s; }

@keyframes bounce { 0%, 100% { height: 5px; } 50% { height: 20px; } }

/* ------------------------------------------------------------ scroll reveals */

.reveal > * { opacity: 0; transform: translateY(15px); }
.reveal.seen > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.seen > *:nth-child(2) { transition-delay: .08s; }
.reveal.seen > *:nth-child(3) { transition-delay: .16s; }
.reveal.seen > *:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal > *, .reveal.seen > * { opacity: 1; transform: none; transition: none; }
  .hero h1 .ln > span, .hero-sub, .hero-cta, .callcard, .say { animation: none; }
  .wave i { animation: none; height: 12px; }
}

/* -------------------------------------------------------------------- cards */

.cols { display: grid; gap: clamp(16px, 2.4vw, 26px); margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-2 { grid-template-columns: 1fr 1fr; } }

.card { border: 1px solid var(--rule); border-radius: 18px; background: var(--panel); padding: clamp(20px, 2.6vw, 28px); transition: transform .24s ease, border-color .24s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--hot); }
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* --------------------------------------------------------------------- steps */

.steps { counter-reset: s; margin-top: clamp(28px, 4vw, 50px); display: grid; gap: 14px; }

.step {
  counter-increment: s;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--panel);
  padding: clamp(18px, 2.6vw, 28px);
  display: grid;
  gap: 6px 26px;
  transition: border-color .24s ease;
}

@media (min-width: 820px) { .step { grid-template-columns: 4rem 16rem 1fr; align-items: start; } }

.step:hover { border-color: var(--hot); }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 1.4rem; color: var(--hot); }
.step p { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ pricing */

.price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.price b { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.1rem); font-weight: 800; font-stretch: 90%; letter-spacing: -.03em; }
.price span { color: var(--ink-3); font-size: .9rem; }

/* ---------------------------------------------------------------------- FAQ */

.acc { border-bottom: 1px solid var(--rule); }
.acc summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; gap: 16px; align-items: baseline; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; color: var(--hot); font-family: var(--mono); }
.acc[open] summary::after { content: "\2013"; }
.acc-body { padding-bottom: 20px; color: var(--ink-2); max-width: 66ch; }
.acc-body p { margin: 0 0 12px; }

/* --------------------------------------------------------------------- form */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: .93rem; }

/* The wizard's own inputs pick up the rounded language of this site. */
.wz-field input, .wz-choice button, .wz-voice, .wz-preview, .wz-dot, .wz-presets button { border-radius: 12px; }
.wz-preview { border-radius: 20px; }
.wz-dot, .wz-presets button { border-radius: 999px; }

/* ------------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--rule); padding: clamp(44px, 6vw, 72px) 0 40px; background: var(--paper-2); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 780px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }

.foot h2 { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
.foot ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--hot); }
.foot-fine { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .83rem; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }

.crumbs { font-size: .83rem; color: var(--ink-3); padding: 18px 0 0; }
.crumbs a { color: var(--ink-3); }
