/* Shared by the marketing pages: thirdraft.com, /pricing/ and /api/. Colors,
   type, buttons, cards, pricing cards, FAQ and footer live here so the pages
   can't drift apart. Page-specific pieces (the hero tool, code samples) stay
   in each page. The header is header.css. */

:root {
  --bg: #ffffff;
  --fg: #111118;
  --muted: #62626e;
  --line: #ececf2;
  --line-strong: #d9d9e3;
  --soft: #f7f7fa;
  --card: #ffffff;
  /* The pastel wash behind the hero, the featured plan and the closing
     call to action. */
  --wash: radial-gradient(60% 70% at 15% 20%, #fde2ef 0%, transparent 70%),
          radial-gradient(55% 65% at 85% 15%, #e3dcff 0%, transparent 70%),
          radial-gradient(60% 70% at 55% 95%, #d9e9ff 0%, transparent 70%),
          radial-gradient(40% 50% at 95% 85%, #ffe6d6 0%, transparent 70%);
  --gradient-edge: linear-gradient(135deg, #f7a8cf, #b9a6ff 45%, #8fc2ff);
  --violet: #7a5cf0;
  --shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 10px 30px rgba(17, 17, 26, .07);
  --shadow-sm: 0 1px 2px rgba(17, 17, 26, .05), 0 4px 12px rgba(17, 17, 26, .06);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
/* A heading with more than one sentence puts each on its own line, so the
   browser never breaks mid-thought ("Same request. Now / it sounds..."). */
.hl { display: block; }
code { font-family: var(--mono); font-size: .9em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; text-align: center;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--fg);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-primary { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn-primary:hover { background: #2a2a33; }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ---------- page top: the pastel wash under the floating header ---------- */
.top-bg { position: relative; margin-top: -84px; padding-top: 84px; }
.top-bg::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: var(--wash);
}
.page-hero { text-align: center; padding: 72px 0 24px; }
.page-hero h1 { max-width: 820px; margin: 0 auto; }
.page-hero .sub {
  font-size: clamp(18px, 2vw, 20px); color: var(--muted);
  max-width: 640px; margin: 20px auto 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.checks {
  list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 6px 20px; font-size: 14px; color: var(--muted);
}
.checks li::before { content: "✓"; color: #1f7a43; font-weight: 700; margin-right: 6px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
/* Two sections with the same background in a row read as one space, so
   the second skips its top padding instead of doubling the gap. */
section:not(.alt) + section:not(.alt), section.alt + section.alt { padding-top: 0; }
.alt { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.section-head a:not(.btn) { color: var(--fg); }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* A card with an icon tile, a heading and a line or two. */
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.feature a:not(.btn) { color: var(--fg); }
.icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: var(--gradient-edge); color: #fff;
}
.icon svg { width: 20px; height: 20px; }
.icon.soft { background: #f1edff; color: var(--violet); }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: var(--gradient-edge); color: #fff; font-weight: 800; font-size: 15px;
}
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--violet); background: #f1edff; border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.tag.warm { color: #8a4b12; background: #fff1e3; }

/* ---------- logo-style row of names ---------- */
.names {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #8b8b97;
}
.names-label {
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}

/* ---------- logo pills: "works with" rows ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 17px; font-weight: 600; color: var(--fg);
}
.pill img { width: 22px; height: 22px; object-fit: contain; }
.pill-more { color: var(--muted); font-weight: 500; }
@media (max-width: 620px) { .pills { gap: 10px; } .pill { padding: 9px 16px; font-size: 15px; } .pill img { width: 18px; height: 18px; } }

/* ---------- before / after ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.compare-card.after {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-edge) border-box;
}
.compare-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.compare-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.after .compare-label { color: var(--violet); }
.compare-card p { font-size: 16px; }
.compare-card .before-text { color: var(--muted); }
.compare-notes { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.compare-notes li { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 11px; }
.before .compare-notes li { color: #a8325e; background: #fde8f0; }
.before .compare-notes li::before { content: "✗ "; }
.after .compare-notes li { color: #1f5c34; background: #e6f4e8; }
.after .compare-notes li::before { content: "✓ "; }

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.testimonial .quote { font-size: 16px; margin-bottom: 20px; flex: 1; }
.testimonial .who { font-size: 14px; display: flex; align-items: center; gap: 10px; }
.testimonial .avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; background: var(--gradient-edge);
}
.testimonial .name { font-weight: 700; display: block; }
.testimonial .role { color: var(--muted); display: block; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .price { padding: 24px; } .price .amount { font-size: 38px; } }
@media (max-width: 760px) { .prices { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
.price {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-align: left;
}
.price.featured {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient-edge) border-box;
  box-shadow: 0 2px 4px rgba(17, 17, 26, .04), 0 20px 50px rgba(120, 90, 240, .16);
}
.price .badge {
  position: absolute; top: -13px; left: 30px;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--gradient-edge); color: #fff;
}
.price .plan { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.price .for { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.price .plus { margin: 20px 0 -8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.price .plus::before { content: "+"; margin-right: 8px; font-weight: 700; }
.price .amount {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; line-height: 1.1;
  font-size: 46px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 4px;
}
.price .amount span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.price ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 11px; font-size: 16px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li a { color: inherit; text-underline-offset: 3px; text-decoration-color: #c9bdfb; }
.price li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%; background: #efeaff; color: #6d4fe6; font-size: 12px; font-weight: 800;
}
.price .btn { margin-top: auto; }
.price .btn-note { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.price-foot { margin-top: 28px; text-align: center; font-size: 15px; color: var(--muted); }
.price-foot a { color: var(--fg); }

/* ---------- faq ---------- */
.faq {
  max-width: 760px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq details { padding: 20px 24px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.faq details a { color: var(--fg); }

/* ---------- closing call to action ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 32px; padding: 72px clamp(24px, 6vw, 64px); background: var(--soft);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--wash); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 640px; margin: 0 auto; }
.cta-band p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 14px auto 0; }
.cta-band p a { color: var(--fg); }
.signup {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 24px auto 0; max-width: 460px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.signup input {
  flex: 1 1 200px; min-width: 0; font: inherit; padding: 10px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--fg);
}
.signup input:focus { outline: none; }
.signup:focus-within { box-shadow: 0 0 0 3px #e3dcff, var(--shadow); }
.signup .btn { padding: 10px 22px; }
@media (max-width: 520px) {
  .signup { flex-direction: column; border-radius: 20px; padding: 8px; }
  .signup input { flex: none; padding: 12px 14px; }
  .signup .btn { width: 100%; }
}
.form-status { font-size: 15px; margin-top: 14px; min-height: 1.4em; color: var(--muted); }
.ext-note { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(17, 17, 26, .08); }
.ext-note h3 { font-size: 20px; }
.ext-note p { font-size: 16px; margin-top: 6px; }

/* ---------- footer: four columns, then the small print ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 800px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.foot-brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot-tagline { color: var(--muted); margin-top: 10px; max-width: 260px; }
.foot-col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.foot-chip {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px;
  background: #fff1e3; color: #8a4b12; vertical-align: 1px;
}
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
