/* SubmitCatch. Self-hosted OFL fonts: Fraunces, IBM Plex Sans, IBM Plex Mono. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-normal-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/fraunces-normal-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-italic-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-italic-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-sans-normal-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-sans-normal-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-sans-normal-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-normal-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-mono-normal-500-latin.woff2") format("woff2");
}

:root {
  --bg: #fffdf8;
  --ink: #171512;
  --muted: #4e4a43;
  --rule: #171512;
  --navy: #1d2a5a;
  --navy-ink: #fffdf8;
  --vermilion: #d63e12;
  --vermilion-dark: #b13210;
  --highlight: #ffe37a;
  --wash: #eef1f6;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--highlight);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--vermilion-dark);
}

:focus-visible {
  outline: 3px solid var(--vermilion);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.2rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  font-weight: 500;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 2px solid var(--rule);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0 0.95rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark em {
  font-style: italic;
  font-weight: 600;
  color: var(--vermilion-dark);
}

.mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1rem;
  border: 2px solid var(--rule);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
}

.btn-primary {
  background: var(--navy);
  color: var(--navy-ink);
  border-color: var(--navy);
  box-shadow: 3px 3px 0 var(--rule);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--rule);
}

.btn-ghost:hover {
  background: var(--highlight);
  color: var(--ink);
}

.hero {
  padding: 3.4rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1rem 1.5rem;
  align-items: end;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.35rem, 5.6vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 12.5ch;
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.lede strong {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 0.9rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-art {
  justify-self: end;
  width: min(100%, 22rem);
  margin: 0 -1.2rem -2.2rem 0;
  pointer-events: none;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.band {
  background: var(--wash);
  border-block: 2px solid var(--rule);
  padding: 2.8rem 0 3rem;
}

.section {
  padding: 3rem 0;
}

.section h2,
.band h2,
.cta h2 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-intro {
  margin: 0 0 1.4rem;
  max-width: 38rem;
  color: var(--ink);
}

.form-block {
  width: min(100%, 52rem);
  margin-left: auto;
}

.not-live {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.05rem 0.35rem;
  background: var(--highlight);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.code-panel {
  background: var(--navy);
  color: var(--navy-ink);
  border: 2px solid var(--rule);
  box-shadow: 5px 5px 0 var(--rule);
}

.code-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem 0.6rem;
  border-bottom: 1px solid rgba(255, 253, 248, 0.22);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #c9d0e3;
}

.code-panel pre {
  margin: 0;
  padding: 1rem 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

.code-panel code {
  font-family: inherit;
}

.tok-tag { color: #f3c6b6; }
.tok-attr { color: #ffe37a; }
.tok-val { color: #f7f2e4; }
.tok-plain { color: #e8ecf6; }

.benefits {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.15rem 1.4rem;
  align-items: stretch;
}

.benefit {
  margin: 0;
  padding: 0;
}

.benefit h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.benefit p {
  margin: 0;
}

.benefit-spam {
  background: var(--navy);
  color: var(--navy-ink);
  padding: 1.3rem 1.25rem 1.4rem;
  border: 2px solid var(--rule);
}

.benefit-spam h3 {
  font-style: italic;
  font-weight: 600;
}

.benefit-sites {
  padding: 1.05rem 0.2rem 0.2rem 0;
  border-top: 4px solid var(--vermilion);
  margin-top: 0.35rem;
}

.benefit-data {
  grid-column: 2;
  grid-row: 2;
  max-width: 28rem;
  justify-self: end;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
}

.benefit-price {
  grid-column: 1;
  grid-row: 2;
  border: 2px solid var(--rule);
  padding: 1.15rem 1.2rem;
  background: var(--bg);
  box-shadow: 4px 4px 0 var(--highlight);
}

.plans-wrap {
  width: min(100%, 48rem);
}

.plans {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 0;
}

.plans caption {
  text-align: left;
  font-weight: 500;
  margin: 0 0 0.7rem;
  color: var(--muted);
  caption-side: top;
}

.plans th,
.plans td {
  text-align: left;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

.plans th {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--rule);
  padding-top: 0;
}

.plans td:nth-child(2),
.plans th:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

.plans td:nth-child(3),
.plans th:nth-child(3) {
  text-align: right;
  padding-right: 0;
}

.plan-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.plan-price {
  font-weight: 600;
}

.pricing-footnote {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.cta {
  padding: 3.1rem 0 3.3rem;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.7fr);
  gap: 1.5rem 2.5rem;
  align-items: end;
  border-top: 2px solid var(--rule);
  padding-top: 2.1rem;
}

.cta p {
  margin: 0 0 0.85rem;
  max-width: 36rem;
}

.cta p:last-child {
  margin-bottom: 0;
}

.mail {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration-color: var(--vermilion);
}

.site-footer {
  border-top: 2px solid var(--rule);
  padding: 1.3rem 0 1.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.site-footer a {
  color: inherit;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr 7.6rem;
    align-items: start;
    gap: 0.15rem 0.7rem;
  }

  .hero-grid > div:first-child {
    grid-column: 1;
    padding-right: 0;
  }

  .hero-art {
    grid-column: 2;
    grid-row: 1;
    width: 8.1rem;
    margin: 0;
    justify-self: end;
  }

  .benefits,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.7rem;
  }

  .hero h1 {
    max-width: none;
  }

  .benefit-data,
  .benefit-price,
  .benefit-sites,
  .benefit-spam {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    max-width: none;
  }

  .form-block {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0.85rem 0 0.8rem;
  }

  .wordmark {
    font-size: 1.2rem;
  }

  .plans th:first-child,
  .plans td:first-child {
    width: 32%;
  }

  .code-url {
    display: none;
  }
}
