/* UBEC Morning Brief: Carpathian dawn. Mist, pine, and one rising sun. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/static/fonts/literata-latin-opsz-normal.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: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/static/fonts/literata-latin-ext-opsz-normal.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: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --mist: #EDF1EE;      /* morning fog: page background */
  --paper: #FAFBF9;     /* surfaces you write on or read from */
  --pine: #1E3A2F;      /* ink and the dark land */
  --ridge: #2F5444;     /* far mountains */
  --moss: #55705F;      /* quiet text */
  --rule: #C3CEC6;
  --dawn: #E39B2D;      /* the sun; used for the sun and the main action only */
  --dawn-deep: #C9821A;
  --error: #A3362A;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--pine); font-family: var(--serif);
  font-size: 1.125rem; line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-variation-settings: "opsz" 48; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow > * { max-width: 44rem; }

/* ---------- top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 76rem; margin: 0 auto; padding: 1.1rem 1.5rem; font-family: var(--sans); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.top-cta { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.lang-switch { display: flex; gap: .6rem; color: var(--moss); }
.lang-switch a[aria-current] { color: var(--pine); font-weight: 600; text-decoration: none; }

/* ---------- hero */
.hero { max-width: 76rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 1.5rem 0;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); font-weight: 560; line-height: 1.02;
  letter-spacing: -0.025em; font-variation-settings: "opsz" 72; max-width: 11ch; margin-bottom: .45em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: var(--measure); }
.note { font-family: var(--sans); font-size: .9rem; color: var(--moss); }

.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem;
  background: var(--dawn); color: var(--pine); text-decoration: none; padding: .85rem 1.5rem;
  border-radius: 999px; border: 0; cursor: pointer; }
.button:hover { background: var(--dawn-deep); }
.button:disabled { opacity: .6; cursor: progress; }

/* the example brief: a narrow email, as it arrives */
.example { margin: 0; padding-top: .5rem; }
.mail { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.4rem 1.5rem 1.2rem; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: .95rem; line-height: 1.5; color: #2e3a33; transform: rotate(.6deg);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(30, 58, 47, .45); }
.mail-date { color: var(--moss); font-size: .8rem; margin-bottom: .2rem; }
.mail-subject { font-weight: 600; font-size: 1.05rem; color: var(--pine); margin-bottom: .9rem; }
.mail-quote { margin: 0 0 1rem; padding: .6rem .9rem; border-left: 3px solid var(--dawn);
  font-family: Georgia, serif; font-style: italic; font-size: 1.02rem; line-height: 1.45; }
.mail h3 { font-family: inherit; font-size: .95rem; margin: .9rem 0 .25rem; padding-bottom: .2rem;
  border-bottom: 1px solid #e2e7e3; }
.mail p { margin: 0 0 .4rem; }
.mail-link { text-decoration: underline; color: var(--ridge); }
.example figcaption { font-family: var(--sans); font-size: .85rem; color: var(--moss); margin-top: 1rem; text-align: center; }

/* ---------- the dawn: ridge line with the sun rising once */
.dawn { line-height: 0; margin-bottom: -1px; }
.dawn svg { width: 100%; height: max(110px, 15.28vw); }
.sun { fill: var(--dawn); transform-box: fill-box; transform-origin: center;
  animation: rise 2.4s cubic-bezier(.2, .7, .2, 1) .3s both; }
.ridge-far { fill: var(--ridge); }
.ridge-near { fill: var(--pine); }
@keyframes rise { from { transform: translateY(70%); opacity: .2; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sun { animation: none; } }

/* ---------- the land: dark section under the ridge */
.land { background: var(--pine); color: var(--mist); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.land h2 { margin-bottom: 1.6rem; }
.land h2 + .land-p { margin-top: -.6rem; }
.land-p { color: #b9c9bf; max-width: var(--measure); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 4rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; border-top: 1px solid rgba(237, 241, 238, .25); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 300;
  font-variation-settings: "opsz" 72; color: var(--dawn); line-height: 1; margin-bottom: .6rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: #c9d6ce; font-size: 1.02rem; }
.include { columns: 2 18rem; column-gap: 3rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.include li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid rgba(237, 241, 238, .14); }

/* ---------- plans */
.plans { padding: clamp(3rem, 7vw, 6rem) 0 1rem; }
.section-p { color: var(--moss); max-width: var(--measure); margin-top: .6rem; }
.plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.2rem;
  border-top: 2px solid var(--pine); }
.plan { padding: 1.4rem 1.6rem 1.6rem 0; }
.plan + .plan { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-size: 2.4rem; color: var(--pine); font-weight: 400; font-variation-settings: "opsz" 72; margin: .4rem 0 .6rem; line-height: 1; }
.plan .price span { font-family: var(--sans); font-size: .95rem; color: var(--moss); margin-left: .35rem; }
.plan p { font-size: 1rem; color: #33493e; }

/* ---------- sign-up form */
.signup { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.signup-form { margin-top: 2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 2.25rem); font-family: var(--sans); font-size: 1rem; }
.field { margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { display: block; color: var(--moss); font-size: .9rem; margin-top: .3rem; }
.req { color: var(--moss); font-weight: 400; font-size: .85rem; margin-left: .3rem; }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; font-size: 1.02rem; color: var(--pine);
  background: #fff; border: 1.5px solid var(--rule); border-radius: 5px; padding: .62rem .75rem; }
input[type=file] { font: inherit; font-size: .95rem; color: var(--moss); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--pine); background: #fff;
  border: 1.5px solid var(--rule); border-radius: 5px; padding: .45rem .9rem; margin-right: .8rem; cursor: pointer; }
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ridge); }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.25rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; margin: 0; }
.check input { margin-top: .3rem; accent-color: var(--pine); width: 1.05rem; height: 1.05rem; flex: none; }
.plan-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.plan-choice label { border: 1.5px solid var(--rule); border-radius: 6px; padding: .7rem .8rem; margin: 0;
  font-weight: 400; cursor: pointer; background: #fff; }
.plan-choice label:has(input:checked) { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.plan-choice input { accent-color: var(--pine); margin: 0 .4rem 0 0; }
.plan-choice strong { font-weight: 600; }
.plan-choice small { display: block; color: var(--moss); margin-top: .15rem; font-size: .88rem; }
.consent { margin: 1.6rem 0; }
.errors { border-left: 3px solid var(--error); background: #fbefed; padding: .8rem 1rem; margin-bottom: 1.5rem; color: var(--error); }
.errors ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.field-error { color: var(--error); font-size: .9rem; margin-top: .3rem; display: block; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- questions */
.faq { padding: 1rem 0 clamp(3rem, 7vw, 5rem); }
.faq h2 { margin-bottom: 1rem; }
details { border-bottom: 1px solid var(--rule); padding: .9rem 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style-position: outside; }
details p { margin: .6rem 0 .2rem; max-width: var(--measure); }

/* ---------- message and legal pages */
.message { padding: clamp(3rem, 10vw, 7rem) 0; min-height: 55vh; }
.message h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-variation-settings: "opsz" 60; margin-bottom: 1rem; }
.message h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.message p, .message li { max-width: var(--measure); }
.text-link { font-family: var(--sans); font-weight: 600; }

/* ---------- footer */
.foot { background: var(--pine); color: #b9c9bf; font-family: var(--sans); font-size: .92rem; padding: 2rem 0; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; max-width: 76rem; }
.foot nav { display: flex; gap: 1.2rem; }
.foot a { color: var(--mist); }

/* ---------- small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .mail { transform: none; }
  .steps, .plan-list { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding-bottom: 1.6rem; }
  .plan, .plan + .plan { padding: 1.3rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .top-nav .lang-switch { display: none; }
  .field-row, .checks, .plan-choice { grid-template-columns: 1fr; }
}
