/* El Meridiano brand: navy #1E3A5F, copper #C4622D, sand #D4A574, ground #F5F5F0, gray #6B6B6B.
   Fonts are self-hosted from /assets/fonts (SIL OFL, see OFL.txt there): no third-party request. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ground: #f5f5f0;
  --panel: #ffffff;
  --navy: #1e3a5f;
  --nameplate: #162b4e; /* background of the banner artwork */
  --ink: #1f2933;
  --copper: #c4622d; /* rules, numerals and text 24px or larger only: 3.7:1 on the ground */
  --copper-ink: #a8501f; /* copper for small text and focus rings: 5.0:1 on the ground */
  --sand: #d4a574;
  --gray: #6b6b6b;
  --rule: #d9d6cc;
  --field: #8c939c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--copper-ink); }
:focus-visible { outline: 3px solid var(--copper-ink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); }
h2 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.4rem 0 0.3rem; }

.wrap { max-width: 1228px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 24px; border-top: 1px solid var(--rule); }
/* Inside the content width the rule stops at the text edges, not the padding. */
.wrap.section { border-top: 0; background: linear-gradient(var(--rule), var(--rule)) top center / calc(100% - 48px) 1px no-repeat; }
.tiers-band + .section, body > main.section { background: none; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 56px; align-items: start; }
.split > * { min-width: 0; }
.split h2 { margin-bottom: 0; }
.lead { font-size: 1.15rem; }
.split p:first-child, .split ul:first-child { margin-top: 0; }
.note { color: var(--gray); font-size: 0.95rem; }
.small h2 { font-size: 1.5rem; }
.small h3 { font-family: var(--sans); font-size: 1rem; color: var(--ink); margin-bottom: 0.1rem; }
.small h3:first-child { margin-top: 0; }
.small p { margin-top: 0.1rem; font-size: 0.95rem; }

/* Masthead: topbar and banner share the banner's own navy, so there is no seam. */
.masthead { background: var(--nameplate); }
.masthead :focus-visible { outline-color: var(--sand); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ground); font: 600 1.15rem var(--serif); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand:hover { color: #fff; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { color: #dce3ec; text-decoration: none; font-size: 1rem; padding: 6px 0; }
.topbar nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sand); }
.banner { display: block; width: 100%; max-width: 1180px; margin: 0 auto; }

.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.hero-grid > * { min-width: 0; }
.badge { margin: 0 0 18px; color: var(--copper-ink); font-weight: 600; font-size: 1rem; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.lede { margin: 22px 0 0; font-size: 1.3rem; line-height: 1.5; max-width: 34em; }
.hero-aside { border-top: 3px solid var(--navy); padding-top: 22px; }
.actions { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hero .note { margin: 16px 0 0; }
.placeholder-banner { margin: 0 0 18px; padding: 8px 12px; background: var(--sand); color: var(--navy); font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; background: var(--navy); color: #fff; font: 600 1rem/1.25 var(--sans); text-align: center; text-decoration: none; border: 2px solid var(--navy); border-radius: 2px; cursor: pointer; }
.button:hover { background: var(--nameplate); border-color: var(--nameplate); color: #fff; }
.button.ghost { background: transparent; color: var(--navy); }
.button.ghost:hover { background: var(--navy); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: wait; }

.ticks { padding-left: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.5em; margin: 0.5em 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.75em; height: 2px; background: var(--copper); }

.steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--navy); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font: 600 2.6rem/1 var(--serif); color: var(--copper); }
.steps h3 { margin-top: 0.8rem; }
.steps p { margin: 0.4rem 0 0; }

.sample { margin: 0 0 1rem; padding: 20px 24px; background: var(--panel); border: 1px solid var(--rule); font: 1.05rem/1.6 var(--serif); }
.todo { padding: 12px; border: 2px dashed var(--copper-ink); color: var(--gray); font-family: var(--sans); }

/* Tiers as one rate card: columns divided by rules, prices set as figures. */
.tiers-band { background: var(--panel); border-bottom: 1px solid var(--rule); padding-left: 0; padding-right: 0; }
.tiers-band .note { max-width: 62em; margin-top: 0; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.8rem; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--rule); }
.tier { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 28px; }
.tier + .tier { border-left: 1px solid var(--rule); }
.tier h3 { margin: 0; font-size: 1.5rem; }
.price-line { margin: 0.9rem 0 0; }
.price { font: 600 2.75rem/1 var(--serif); color: var(--navy); white-space: nowrap; }
.period { color: var(--gray); white-space: nowrap; }
.price-label { margin: 0.4rem 0 1rem; color: var(--copper-ink); font-size: 0.95rem; font-weight: 600; }
.for { margin: 0 0 0.4rem; font-weight: 600; }
.tier .ticks { flex: 1; font-size: 1rem; margin: 0.4rem 0 0; }
.tier .button { margin-top: 20px; background: transparent; color: var(--navy); }
.tier .button:hover { background: var(--navy); color: #fff; }

.form { background: var(--panel); border: 1px solid var(--rule); padding: 28px 32px 32px; }
.form fieldset { border: 0; margin: 1.2rem 0 0; padding: 0; min-width: 0; }
.form legend.field { margin-top: 0; padding: 0; }
.field { display: block; margin-top: 1.2rem; font-weight: 600; color: var(--navy); }
.form > .field:first-of-type { margin-top: 0; }
.opt { font-weight: 400; color: var(--gray); }
.form input[type="email"], .form input:not([type]), .form select { width: 100%; min-height: 46px; margin-top: 0.35rem; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 2px; }
.form input:focus-visible, .form select:focus-visible { border-color: var(--navy); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5em, 1fr)); gap: 4px 20px; margin-top: 0.3rem; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 0.4rem; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0.2em 0 0; accent-color: var(--navy); }
.form > .choice { margin-top: 1.2rem; }
.consent { font-size: 0.95rem; }
.form .button { margin-top: 1.6rem; }
.error { margin: 0.25rem 0 0; color: #b3261e; font-size: 0.9rem; }
.error:empty { display: none; }
.status { font-weight: 700; }
.status.ok { color: #2e7d32; }
.status.fail { color: #b3261e; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
details:first-child { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 0.6rem 0 0.2rem; }

.footer { background: var(--nameplate); padding: 28px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer a { color: #dce3ec; text-decoration-color: var(--sand); }
.footer a:hover { color: #fff; }
.footer :focus-visible { outline-color: var(--sand); }

@media (max-width: 820px) {
  .split, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 20px; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 48px 18px; }
  .wrap.section { background-size: calc(100% - 36px) 1px; }
  .tiers-band + .section { background: none; }
  .tiers-band { padding-left: 0; padding-right: 0; }
  .hero { padding: 40px 0 48px; }
  .lede { font-size: 1.15rem; }
  h2 { font-size: 1.6rem; }
  .nav-newsletter { display: none; }
  .brand { white-space: nowrap; }
  .tier { padding: 22px 0 26px; }
  .form { padding: 22px 18px 24px; margin: 0 -6px; }
}
