/* scrapewithclaude.com — shared component layer (Anthropic design language)
   Plain CSS so it works alongside Tailwind Play CDN utilities. */

:root {
  --cream: #FAF9F5;
  --ink: #141413;
  --mid: #73726C;
  --faint: #B0AEA5;
  --panel: #E8E6DC;
  --clay: #D4A27F;
  --clay-soft: #F0E6D6;
  --coral: #D97757;
  --coral-ink: #BC5B3F;
  --rule: #E6E3DA;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

/* serif for editorial headlines */
.serif { font-family: 'Fraunces', Georgia, ui-serif, serif; font-optical-sizing: auto; }

/* coral underline accent on a hero word */
.u-coral {
  background-image: linear-gradient(transparent 60%, rgba(217,119,87,0.32) 60%);
  padding: 0 1px;
}
.u-coral-line {
  border-bottom: 3px solid var(--coral);
  padding-bottom: 1px;
}

/* eyebrow label */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral-ink);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1; padding: 13px 22px;
  border-radius: 8px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--coral-ink); }

/* cards */
.card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--rule); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(20,20,19,0.08); border-color: var(--clay); }
.card-visual {
  height: 132px; display: flex; align-items: center; justify-content: center;
  background: var(--clay-soft); border-bottom: 1px solid var(--rule); position: relative;
}
.card-visual .ic { width: 46px; height: 46px; color: var(--coral-ink); }
.card-visual.alt { background: #F3EFE7; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 8px; }
.card-desc { font-size: 15px; color: var(--mid); margin: 0; flex: 1; }
.card-go { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--coral-ink); display: inline-flex; align-items: center; gap: 6px; }
.card-go .arr { transition: transform .15s ease; }
.card:hover .card-go .arr { transform: translateX(4px); }
.card.ext .card-go::after { content: "↗"; font-size: 12px; }

/* clay panel band */
.panel-clay {
  background: var(--clay-soft);
  border: 1px solid #EBDFCB;
  border-radius: 20px;
}

/* soft inline "data" sample, NOT a terminal */
.sample {
  width: 100%; border-collapse: collapse; font-size: 14px; background: #fff;
}
.sample th, .sample td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.sample th { font-size: 11px; font-weight: 600; color: var(--mid); text-transform: uppercase; letter-spacing: 0.07em; background: #FBFAF6; }
.sample tr:last-child td { border-bottom: none; }
.sample .tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: #EFE7DA; color: var(--coral-ink); border: 1px solid #E6D8C2; }
.sample .tag.blue { background: #E7EEF6; color: #2E5A85; border-color: #CFE0F0; }
.sample-wrap { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; }
.sample-cap { background: #F3EFE7; padding: 11px 16px; font-size: 12px; letter-spacing: 0.04em; color: var(--mid); border-bottom: 1px solid var(--rule); }
.sample-foot { background: #FBFAF6; padding: 11px 16px; font-size: 12.5px; color: var(--mid); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* soft code (used sparingly, plain not neon) */
.snippet {
  background: #F4F1EA; border: 1px solid var(--rule); border-radius: 12px;
  padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.6; color: #3A3833; overflow-x: auto; white-space: pre;
}
.snippet .c { color: #97948B; }       /* comment */
.snippet .k { color: var(--coral-ink); } /* keyword */
.snippet .s { color: #5E7A3E; }        /* string */

/* prose */
.prose p { font-size: 18px; color: var(--ink); margin: 0 0 16px; }
.prose p.lead { font-size: 20px; }
.prose h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink); margin: 40px 0 16px; }
.prose h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 28px 0 10px; }
.prose ol, .prose ul { font-size: 18px; padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 2px; }

/* stat row */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; }
.stat .n { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; }
.stat .l { font-size: 13px; color: var(--mid); margin-top: 6px; }

/* how-it-works step */
.step { }
.step .num {
  width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 1px solid var(--clay);
  color: var(--coral-ink); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h4 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.step p { font-size: 15.5px; color: var(--mid); margin: 0; }

/* nav */
.nav { border-bottom: 1px solid var(--rule); }
.wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.wordmark .blob { width: 18px; height: 18px; border-radius: 6px; background: var(--coral); display: inline-block; }
.navlinks { display: flex; align-items: center; gap: 26px; }
.navlinks a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .15s; }
.navlinks a:hover { color: var(--coral-ink); }
.navlinks a.navcta { background: var(--coral); color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 600; }
.navlinks a.navcta:hover { background: var(--coral-ink); color: #fff; }
@media (max-width: 560px) {
  .navlinks { gap: 16px; }
  .navlinks a:not(.navcta) { display: none; }
}

/* footer */
.foot { border-top: 1px solid var(--rule); color: var(--mid); font-size: 14.5px; }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot a:hover { border-bottom-color: var(--ink); }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--rule);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(217,119,87,0.15); }
.field textarea { min-height: 96px; resize: vertical; }

/* related */
.related a { display: block; border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.related a:hover { border-color: var(--clay); transform: translateY(-2px); }
.related .rn { font-size: 16px; font-weight: 700; margin-top: 4px; }
.related .rk { font-size: 12px; color: var(--coral-ink); font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 720px) {
  .statrow { grid-template-columns: repeat(2, 1fr); }
}
