/* Earlybell (CRA, EN), look B "Technical for developers" (decision #104): white background, light grey
   sections in turn, text #0F172A, accent #16A34A for CTAs, ✓ marks and links. IBM Plex Sans and IBM Plex
   Mono served from the app (OFL, app/assets/fonts/brands/earlybell), never from Google Fonts.
   Colors and fonts come from Brand#theme as --color-* and --font-* (see BrandsHelper). */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/earlybell/ibm-plex-sans-latin-400-normal-64251e64.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/earlybell/ibm-plex-sans-latin-ext-400-normal-932877a7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/brands/earlybell/ibm-plex-sans-latin-600-normal-99b2fa32.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/brands/earlybell/ibm-plex-sans-latin-ext-600-normal-23a94be9.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/earlybell/ibm-plex-mono-latin-400-normal-d803141a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/earlybell/ibm-plex-mono-latin-ext-400-normal-d3045dec.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

body.earlybell {
  margin: 0;
  font-family: var(--font-body, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text, #0f172a);
  background: var(--color-background, #ffffff);
  -webkit-font-smoothing: antialiased;
}

.earlybell h1, .earlybell h2, .earlybell h3 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.earlybell h2 { font-size: 1.75rem; margin: 0 0 1rem; }
/* Links in running text use the darker shade of the accent: #16a34a on white is below 4.5:1. */
.earlybell a { color: var(--color-primary-dark, #15803d); }
.earlybell code, .earlybell pre { font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace); }

.earlybell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1.25rem, calc((100% - 68rem) / 2));
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.earlybell .earlybell__logo { font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 1.125rem; color: inherit; text-decoration: none; }
.earlybell__logo-mark { color: var(--color-primary, #16a34a); }

/* Full-width bands, content centred at 68rem; every second band light grey. */
.section { padding: 4rem max(1.25rem, calc((100% - 68rem) / 2)); }
.earlybell__main > .section:nth-of-type(even) { background: var(--color-muted, #f8fafc); }

.section--with-code, .section--hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero__heading { font-size: clamp(2.25rem, 4vw, 3.25rem); margin: 0 0 1.25rem; }
.hero__subheading { font-size: 1.1875rem; margin: 0 0 2rem; color: var(--color-text-soft, #334155); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__cta, .signup__submit, .check__next {
  display: inline-block;
  padding: 0.75rem 1.375rem;
  border: 2px solid var(--color-primary, #16a34a);
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary, #16a34a);
  text-decoration: none;
  cursor: pointer;
}
.earlybell .hero__cta { color: #ffffff; }
.earlybell .hero__cta--secondary, .signup__submit--secondary, .check__back {
  color: var(--color-text, #0f172a);
  background: transparent;
  border-color: var(--color-text, #0f172a);
}
.hero__cta:focus-visible, .signup__submit:focus-visible, .check__next:focus-visible, .check__back:focus-visible, .check__option:focus-within {
  outline: 3px solid var(--color-primary, #16a34a);
  outline-offset: 2px;
}

/* Editor / terminal windows with sample data. */
.code-window {
  margin: 0;
  overflow: hidden;
  background: #0f172a;
  border-radius: 0.625rem;
  box-shadow: 0 1rem 2.5rem rgb(15 23 42 / 18%);
}
.code-window__bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 1rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.8125rem;
  color: #cbd5e1;
  background: #1e293b;
}
.code-window__dots { display: flex; gap: 0.375rem; }
.code-window__dots span { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #475569; }
.code-window__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-window__badge { color: #4ade80; white-space: nowrap; }
.code-window__body {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #e2e8f0;
}
.code-window__line--ok { color: #4ade80; }
.code-window__line--warn { color: #fbbf24; }

.benefits__list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.benefits__list--checks .benefits__item { padding: 0.375rem 0; }
.benefits__check { margin-right: 0.5rem; font-weight: 600; color: var(--color-primary, #16a34a); }
.benefits__list--terms { display: grid; gap: 1rem; }
.benefits__list--terms .benefits__item { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border, #e2e8f0); }
.benefits__item-title { font-family: var(--font-mono, "IBM Plex Mono", monospace); font-weight: 400; color: var(--color-primary-dark, #15803d); }
.benefits__item-text { margin: 0; }

.steps__list { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps__item { position: relative; padding: 0 0 1.25rem 3rem; counter-increment: step; }
.steps__item::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  line-height: 2rem;
  text-align: center;
  content: counter(step);
  color: var(--color-primary-dark, #15803d);
  border: 1px solid var(--color-primary, #16a34a);
  border-radius: 50%;
}
.steps__item-text { display: block; }

.pricing__card { max-width: 40rem; padding: 1.5rem 1.75rem; background: #ffffff; border: 1px solid var(--color-border, #e2e8f0); border-radius: 0.75rem; }
.pricing__price { margin: 0; font-size: 1.1875rem; }
.pricing__amount { font-weight: 600; }
.pricing__note { margin: 0.5rem 0 0; color: var(--color-primary-dark, #15803d); }
.pricing__why { max-width: 40rem; margin: 1.5rem 0 0; }

.section--box .text__body {
  max-width: 44rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-text, #0f172a);
  border-left-width: 4px;
  border-radius: 0.5rem;
}
.text__body p { margin: 0; max-width: 44rem; }

.faq__item { max-width: 48rem; padding: 1rem 0; border-top: 1px solid var(--color-border, #e2e8f0); }
.faq__question { font-weight: 600; cursor: pointer; }
.faq__answer p { margin: 0.5rem 0 0; }

.signup__form, .check__form { display: grid; gap: 1.125rem; max-width: 32rem; }
.signup__field { display: grid; gap: 0.25rem; }
.signup__field--terms { grid-template-columns: auto 1fr; align-items: start; gap: 0.625rem; }
.signup__label { font-weight: 600; }
.signup__field--terms .signup__label { font-weight: 400; }
.signup__optional { font-weight: 400; color: var(--color-text-soft, #475569); }
.signup__input {
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: inherit;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 0.5rem;
}
.signup__input:focus { outline: 2px solid var(--color-primary, #16a34a); outline-offset: 1px; }
.signup__checkbox { width: 1.125rem; height: 1.125rem; margin-top: 0.25rem; accent-color: var(--color-primary, #16a34a); }
.signup__note { margin: 0; font-size: 0.9375rem; color: var(--color-text-soft, #475569); }
.signup__errors { margin: 0; padding: 0.75rem 1rem 0.75rem 2rem; color: #9b1c1c; background: #fde8e8; border-radius: 0.5rem; }
.signup__submit { justify-self: start; }

/* The free check: one question per screen. */
.check__title { font-size: clamp(1.75rem, 3vw, 2.375rem); margin: 0 0 0.75rem; max-width: 48rem; }
.check__intro { margin: 0 0 2rem; color: var(--color-text-soft, #334155); }
.check__form { max-width: 44rem; }
.check__step { margin: 0; padding: 0; border: 0; }
.check__step[hidden] { display: none; }
.check__progress { margin: 0 0 0.5rem; font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 0.875rem; color: var(--color-primary-dark, #15803d); }
.check__question { padding: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.check__hint { margin: 0.5rem 0 0; color: var(--color-text-soft, #475569); }
.check__options { display: grid; gap: 0.625rem; margin: 1.25rem 0; }
.check__option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border, #cbd5e1);
  border-radius: 0.5rem;
  cursor: pointer;
}
.check__option:has(.check__input:checked) { border-color: var(--color-primary, #16a34a); box-shadow: inset 0 0 0 1px var(--color-primary, #16a34a); }
.check__input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.25rem; accent-color: var(--color-primary, #16a34a); }
.check__missing { margin: 0 0 1rem; color: #9b1c1c; }
.check__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.check__nav[hidden], .check__back[hidden] { display: none; }
.check__back { padding: 0.75rem 1.375rem; font: inherit; font-weight: 600; border: 2px solid; border-radius: 0.5rem; cursor: pointer; }
.check__step--email .signup__field { margin-top: 1rem; }
.check__nav--submit { margin: 1.25rem 0 0.75rem; }

.section--result { max-width: none; }
.result__label { margin: 0 0 0.5rem; font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 0.875rem; color: var(--color-primary-dark, #15803d); }
.result__headline { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 1rem; max-width: 48rem; }
.result__one-line { font-size: 1.1875rem; max-width: 48rem; }
.section--result p, .result__list, .result__note { max-width: 48rem; }
.result__list-heading { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.result__list li { margin-bottom: 0.5rem; }
.result__list ul { margin-top: 0.5rem; }
.result__note { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--color-muted, #f8fafc); border-radius: 0.5rem; }
.result__note p { margin: 0; }
.result__footer { font-size: 0.9375rem; color: var(--color-text-soft, #475569); }
.offer__form { display: grid; gap: 1rem; max-width: 44rem; }
.offer__form p { margin: 0; }
.offer__price { font-weight: 600; }
.offer__honesty { font-size: 0.9375rem; color: var(--color-text-soft, #475569); }

.section--thanks, .section--legal { min-height: 40vh; }
.thanks__title, .legal__title { font-size: 2rem; margin-top: 0; }
.legal__body { max-width: 48rem; }
.legal__body h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal__table-wrapper { overflow-x: auto; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal__table th, .legal__table td { padding: 0.5rem; text-align: left; vertical-align: top; border: 1px solid var(--color-border, #e2e8f0); }
.legal__missing { padding: 0 0.25rem; color: #7a2e0e; background: #fef0c7; }

/* Guides: cards linking to articles. */
.blog__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.earlybell .blog__card {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.75rem;
}
.earlybell .blog__card:hover, .earlybell .blog__card:focus-visible { border-color: var(--color-primary, #16a34a); }
.blog__card:focus-visible { outline: 3px solid var(--color-primary, #16a34a); outline-offset: 2px; }
.blog__title { font-weight: 600; line-height: 1.35; }
.blog__title::after { content: " →"; color: var(--color-primary-dark, #15803d); }
.blog__text { color: var(--color-text-soft, #475569); }

/* Articles: one column of running text. */
.section--article > * { max-width: 46rem; }
.article__heading { font-size: clamp(1.875rem, 3.5vw, 2.625rem); margin: 0 0 0.75rem; }
.article__date { margin: 0 0 2rem; font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 0.875rem; color: var(--color-text-soft, #475569); }
.article__body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.article__body li { margin-bottom: 0.375rem; }
.article__body code {
  padding: 0.0625rem 0.3125rem;
  font-size: 0.9em;
  background: var(--color-muted, #f1f5f9);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.25rem;
}
.article__quick-answer {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--color-primary, #16a34a);
  border-radius: 0.5rem;
}
.article__quick-answer p { margin: 0; }
.article__table { margin: 1.5rem 0; overflow-x: auto; }
.article__table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.article__table th, .article__table td { padding: 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border, #e2e8f0); }
.article__table thead th { font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 0.8125rem; font-weight: 400; color: var(--color-text-soft, #475569); border-bottom: 2px solid var(--color-text, #0f172a); }
.article__table tbody th { font-weight: 600; white-space: nowrap; }
.article__note { margin-top: 2rem; font-size: 0.9375rem; color: var(--color-text-soft, #475569); }
.article__sources { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #e2e8f0); font-size: 0.9375rem; }
.article__sources-heading { font-size: 1.25rem; }
.article__sources-list { padding-left: 1.25rem; }
.article__sources-list li { margin-bottom: 0.5rem; overflow-wrap: anywhere; }

.earlybell__main > .section--footer, .section--footer { padding-top: 2rem; padding-bottom: 2rem; font-size: 0.9375rem; background: #ffffff; border-top: 1px solid var(--color-border, #e2e8f0); }
.footer__text { margin: 0 0 0.75rem; color: var(--color-text-soft, #475569); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; }
.consent-settings { padding: 0; border: 0; font: inherit; color: var(--color-primary-dark, #15803d); background: none; text-decoration: underline; cursor: pointer; }

/* Consent banner: a panel at the bottom that never covers the whole page. Every button on a layer looks
   the same (size, color, weight) - none may stand out. */
.consent-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 10;
  max-width: 56rem;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text, #0f172a);
  background: #ffffff;
  border: 1px solid var(--color-border, #cbd5e1);
  border-radius: 0.625rem;
  box-shadow: 0 0.75rem 2rem rgb(15 23 42 / 18%);
}
.consent-banner[hidden], .consent-banner__layer[hidden] { display: none; }
.consent-banner__title { margin: 0 0 0.5rem; font-size: 1.125rem; }
.consent-banner__text { margin: 0 0 1rem; }
.consent-banner__actions { display: flex; gap: 0.5rem; }
.consent-banner__button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  background: #ffffff;
  border: 2px solid var(--color-text, #0f172a);
  border-radius: 0.5rem;
  cursor: pointer;
}
.consent-banner__button:focus-visible, .consent-category__switch:focus-visible, .consent-settings:focus-visible {
  outline: 3px solid var(--color-primary, #16a34a);
  outline-offset: 2px;
}
.consent-banner__categories { margin: 0 0 1rem; padding: 0; list-style: none; }
.consent-category { padding: 0.5rem 0; border-top: 1px solid var(--color-border, #e2e8f0); }
.consent-category__name { display: flex; gap: 0.5rem; align-items: center; margin: 0; font-weight: 600; }
.consent-category__state { font-weight: 400; }
.consent-category__text { margin: 0.25rem 0 0; font-size: 0.875rem; }
.consent-category__switch { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-primary, #16a34a); }

@media (max-width: 50rem) {
  .section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .section--with-code, .section--hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .benefits__list--terms .benefits__item { grid-template-columns: 1fr; gap: 0.25rem; }

  /* The deadlines table as one card per step, each cell under its column name. */
  .article__table thead { display: none; }
  .article__table table, .article__table tbody, .article__table tr, .article__table th, .article__table td { display: block; }
  .article__table tr { margin-bottom: 1rem; padding: 0.25rem 1rem; border: 1px solid var(--color-border, #e2e8f0); border-radius: 0.5rem; }
  .article__table tbody th { padding: 0.625rem 0; font-size: 1.0625rem; }
  .article__table td { padding: 0.625rem 0; }
  .article__table td:last-child { border-bottom: 0; }
  .article__table td::before {
    display: block;
    margin-bottom: 0.125rem;
    font-family: var(--font-mono, "IBM Plex Mono", monospace);
    font-size: 0.8125rem;
    content: attr(data-label);
    color: var(--color-text-soft, #475569);
  }
}

@media (max-width: 40rem) {
  .consent-banner { inset: auto 0.5rem 0.5rem; padding: 0.75rem; font-size: 0.875rem; line-height: 1.45; }
  .consent-banner__button { padding: 0.5rem 0.25rem; }
}
