/* YourCreditDispute (demonstration site). Design: ycd-squeeze-v1 mockup. */
:root {
  --teal: #0f766e;
  --teal-d: #115e59;
  --mint: #ecfdf8;
  --ink: #0f172a;
  --mute: #475569;
  --line: #e2e8f0;
  --err: #b91c1c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Demo banner */
.demo { background: var(--ink); color: #fcd34d; font-size: 12.5px; text-align: center; padding: 7px 16px; }
.demo b { color: #fff; }
.demo a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; }
.bar { max-width: 1140px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.3px; text-decoration: none; color: var(--ink); }
.logo .hl { color: var(--teal); }
#nav { display: flex; gap: 26px; font-size: 14px; color: #334155; font-weight: 500; align-items: center; }
#nav a { text-decoration: none; }
#nav a:hover { color: var(--teal); }
#nav .pill { background: var(--teal); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; }
#nav .pill:hover { background: var(--teal-d); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ''; transition: transform .2s; }
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -6px; }
.nav-toggle .bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 10px; text-decoration: none; border: 2px solid var(--teal); }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn.alt { background: #fff; color: var(--teal-d); }
.btn.alt:hover { background: var(--mint); }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(15, 118, 110, .35); }
.signup .field { flex: 1 1 220px; display: flex; }
.signup input[type="email"] { width: 100%; border: 0; font: inherit; font-size: 16px; padding: 12px; outline: none; border-radius: 8px; color: var(--ink); background: #fff; }
.signup input[type="email"]:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); }
.signup input[type="email"][aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.signup button { border: 0; background: var(--teal); color: #fff; font: inherit; font-weight: 700; font-size: 15.5px; padding: 12px 22px; border-radius: 10px; cursor: pointer; }
.signup button:hover { background: var(--teal-d); }
.signup button:disabled { opacity: .7; cursor: progress; }
.signup .error { flex-basis: 100%; margin: 0; padding: 2px 12px 6px; color: var(--err); font-size: 14px; font-weight: 600; }
.signup .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.thanks { max-width: 520px; background: #fff; border: 1px solid #99f6e4; border-radius: 14px; padding: 22px; box-shadow: 0 10px 30px -12px rgba(15, 118, 110, .35); color: var(--ink); text-align: left; }
.thanks h3 { font-family: Fraunces, Georgia, serif; font-size: 24px; margin: 0 0 14px; }
.thanks h3:focus { outline: none; }
.thanks .btn { margin: 0 10px 10px 0; }
.thanks .fine { font-size: 12px; color: #64748b; margin: 6px 0 0; line-height: 1.55; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #ccfbf1 0%, transparent 60%), linear-gradient(#f8fffd, #fff); }
.hero .wrap { max-width: 1140px; margin: 0 auto; padding: 64px 24px 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.tag { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #99f6e4; color: var(--teal-d); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
h1 { font-family: Fraunces, Georgia, serif; font-size: 52px; line-height: 1.06; letter-spacing: -1px; margin: 18px 0; }
h1 em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 62%, #fde68a 62%); }
.sub { font-size: 18.5px; line-height: 1.6; color: var(--mute); margin: 0 0 26px; max-width: 560px; }
.micro { font-size: 12.5px; color: #64748b; margin: 12px 0 0; display: flex; gap: 16px; flex-wrap: wrap; }
.micro span::before { content: '✓ '; color: var(--teal); font-weight: 700; }
.note { font-size: 12px; color: #64748b; margin: 8px 0 0; max-width: 520px; }
.note a { color: var(--teal-d); }
.book-wrap { position: relative; display: flex; justify-content: center; min-height: 440px; }
.photo { position: absolute; right: -10px; top: -30px; width: 78%; height: 380px; border-radius: 18px; object-fit: cover; }
.book { position: relative; align-self: flex-end; margin-right: 120px; width: 250px; height: 330px; border-radius: 4px 12px 12px 4px; background: linear-gradient(160deg, #134e4a, #0f766e 60%, #14b8a6); color: #fff; padding: 28px 24px; box-shadow: -10px 18px 40px -10px rgba(2, 6, 23, .55), inset 8px 0 0 rgba(0, 0, 0, .18); transform: rotate(-4deg); }
.book .k { font-size: 11px; letter-spacing: 3px; color: #99f6e4; font-weight: 600; }
.book .t { font-family: Fraunces, serif; font-size: 30px; line-height: 1.05; margin: 14px 0 12px; }
.book .s { font-size: 12.5px; color: #ccfbf1; line-height: 1.5; }
.book .f { position: absolute; bottom: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 11px; color: #99f6e4; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 10px; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { font-family: Fraunces, serif; font-size: 30px; color: var(--teal); display: block; }
.fact span { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.fact small { display: block; font-size: 11.5px; color: #64748b; margin-top: 6px; }
.fact small a { color: inherit; }

/* Sections */
.block { max-width: 1140px; margin: 0 auto; padding: 80px 24px; }
.block.flush { padding-top: 0; }
.h2 { font-family: Fraunces, serif; font-size: 38px; letter-spacing: -.6px; line-height: 1.15; margin: 0 0 10px; }
.h2.sm { font-size: 32px; }
.lead { color: var(--mute); font-size: 17px; line-height: 1.6; max-width: 620px; margin: 0; }
.inside { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 38px 0 0; }
.ch { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.ch .n { width: 32px; height: 32px; border-radius: 9px; background: var(--mint); color: var(--teal); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ch h3 { margin: 14px 0 6px; font-size: 15px; }
.ch p { margin: 0; font-size: 13.5px; color: var(--mute); line-height: 1.55; }
.tool { background: var(--mint); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.tool .lead { font-size: 16px; }
.tool .btn { margin-top: 18px; }
.tool img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }
.dv { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #3730a3; }
.dv i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #4f46e5, #9333ea); display: inline-block; }
.disc { font-size: 12px; color: #64748b; line-height: 1.55; margin: 14px 0 0; }
.disc a { color: var(--teal-d); }
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.art { text-decoration: none; }
.art img { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; }
.art .c { font-size: 12px; color: var(--teal); font-weight: 700; letter-spacing: 1px; margin: 16px 0 6px; }
.art h3 { font-family: Fraunces, serif; font-size: 22px; margin: 0 0 8px; line-height: 1.2; }
.art:hover h3 { color: var(--teal); }
.art p { font-size: 14px; color: var(--mute); line-height: 1.55; margin: 0; }
.final { background: var(--ink); color: #fff; border-radius: 22px; padding: 52px; text-align: center; }
.final .h2 { color: #fff; }
.final-sub { color: #cbd5e1; margin: 0; }
.final .signup, .final .thanks { margin: 26px auto 0; }
.final .note { color: #94a3b8; margin: 12px auto 0; }
.final .note a { color: #99f6e4; }

/* Inner pages */
.page-hero { background: linear-gradient(#f8fffd, #fff); border-bottom: 1px solid var(--line); }
.page-hero .wrap, .page-body .wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.page-hero h1 { font-size: 44px; margin: 10px 0 14px; }
.page-hero .lead a { color: var(--teal-d); }
.eyebrow { font-size: 12px; color: var(--teal); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.prose { font-size: 16.5px; line-height: 1.7; color: #1e293b; }
.prose h2 { font-family: Fraunces, serif; font-size: 26px; line-height: 1.25; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--teal-d); }
.prose li { margin: 4px 0; }

/* Articles */
.post { max-width: 760px; margin: 0 auto; padding: 48px 24px 24px; }
.post > header .eyebrow a { text-decoration: none; }
.post > header h1 { font-size: 44px; margin: 10px 0 12px; }
.post .meta { font-size: 13.5px; color: #64748b; margin: 0 0 24px; }
.post .hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 16px; margin: 0 0 32px; }
.post .prose { max-width: 68ch; }
.post .prose h3 { font-size: 18px; margin: 24px 0 6px; }
.post .prose .sources { font-size: 14.5px; }
.post .prose .aside { background: var(--mint); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.post-cta { max-width: 68ch; margin: 48px 0 0; padding: 28px; border-radius: 18px; background: var(--mint); }
.post-cta h2 { font-family: Fraunces, serif; font-size: 26px; margin: 0 0 10px; }
.post-cta p { font-size: 15.5px; line-height: 1.65; color: #1e293b; margin: 0 0 14px; }
.post-cta a { color: var(--teal-d); }
.post-cta .disc { font-size: 12px; color: #64748b; }
.post-cta .signup, .post-cta .thanks { margin-top: 6px; }
.arts.list { margin: 20px 0 48px; }
.arts.list .art .meta { font-size: 12.5px; color: #64748b; margin: 10px 0 0; }
.idx h2 { font-family: Fraunces, serif; font-size: 30px; margin: 0; scroll-margin-top: 16px; }
.idx { max-width: 1140px; margin: 0 auto; padding: 48px 24px 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { max-width: 1140px; margin: 0 auto; padding: 34px 24px; font-size: 12.5px; color: #64748b; line-height: 1.7; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.site-footer p { margin: 0; }
.foot-logo { font-size: 16px; }
.foot-links { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: #334155; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  #nav.open { display: flex; }
  #nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  #nav .pill { margin-top: 12px; text-align: center; border-bottom: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .inside { grid-template-columns: repeat(2, 1fr); }
  .tool { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar { padding: 14px 16px; }
  .hero .wrap { padding: 40px 16px 48px; }
  h1 { font-size: 36px; }
  .sub { font-size: 16.5px; }
  .signup { flex-direction: column; }
  .signup .field { flex-basis: auto; }
  .signup button { width: 100%; padding: 14px; }
  .book-wrap { min-height: 0; }
  .photo { display: none; }
  .book { margin: 0 auto; align-self: center; width: 200px; height: 264px; padding: 22px 18px; }
  .book .t { font-size: 23px; }
  .book .s { font-size: 11px; }
  .book .f { left: 18px; right: 18px; bottom: 16px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 16px; }
  .fact:last-child { border-bottom: 0; }
  .block { padding: 56px 16px; }
  .h2 { font-size: 30px; }
  .h2.sm { font-size: 26px; }
  .inside { grid-template-columns: 1fr; }
  .tool { padding: 24px; gap: 24px; }
  .tool img { height: 220px; }
  .arts { grid-template-columns: 1fr; }
  .final { padding: 32px 20px; }
  .thanks .btn { display: flex; width: 100%; margin: 0 0 10px; }
  .page-hero .wrap, .page-body .wrap { padding: 40px 16px; }
  .page-hero h1 { font-size: 34px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 16px; padding: 28px 16px; }
  .post { padding: 32px 16px 16px; }
  .post > header h1 { font-size: 32px; }
  .post .hero-img { height: 220px; }
  .post-cta { padding: 20px 16px; }
  .idx { padding: 32px 16px 16px; }
}
