/* ============================================================================
   destul.com — Petition landing page · UI kit styles
   Imports the design tokens, then component styles. Mobile-first.
   ============================================================================ */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* ---- App frame ---------------------------------------------------------- */
.app { min-height: 100%; }
.main { }

/* ============================ CTA BUTTON ================================== */
.cta {
  border: 0; cursor: pointer; font-family: var(--font-sans);
  color: #fff; background: var(--magenta);
  font-weight: var(--w-bold); text-transform: uppercase; letter-spacing: var(--ls-cta);
  font-size: var(--fs-btn); line-height: 1;
  border-radius: var(--r-md); box-shadow: var(--shadow-cta);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 32px;
  transition: transform var(--t-base) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.cta:hover { background: var(--magenta-press); transform: scale(1.03); box-shadow: var(--shadow-cta-hover); }
.cta:active { background: var(--magenta-press); transform: scale(0.99); box-shadow: none; }
.cta:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--magenta-tint), var(--shadow-cta); }
.cta__arrow { font-size: 1.1em; }
.cta--block { width: 100%; }
.cta--compact { padding: 12px 20px; font-size: 0.9375rem; box-shadow: none; }
.cta--compact:hover { box-shadow: none; }
@media (min-width: 768px) {
  .cta { padding: 20px 48px; }
  .cta--compact { padding: 12px 24px; }
}

/* ============================ HEADER ===================================== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  transition: box-shadow var(--t-base) var(--ease-out);
}
.hdr--scrolled { box-shadow: var(--shadow-header); }
.hdr__inner {
  max-width: var(--maxw-page); margin: 0 auto;
  height: var(--header-h-mobile);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.hdr__brand { display: flex; align-items: baseline; gap: 10px; }
.hdr__tag { font-size: var(--fs-xs); color: var(--muted-2); display: none; }
.hdr__cta-long { display: none; }
.hdr__cta-short { display: inline; }
@media (min-width: 768px) {
  .hdr__inner { height: var(--header-h); padding: 0 24px; }
  .hdr__tag { display: inline; }
  .hdr__cta-long { display: inline; }
  .hdr__cta-short { display: none; }
}

/* ============================ HERO ======================================= */
.hero { background: var(--white); }
.hero__media { position: relative; }
.hero__photo { width: 100%; height: 58vw; max-height: 380px; object-fit: cover; object-position: 50% 38%; display: block; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--overlay-scrim), transparent 55%);
}
.hero__credit {
  position: absolute; left: 14px; bottom: 10px; margin: 0;
  font-size: 11px; color: rgba(255,255,255,0.82); max-width: 90%; letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero__text { padding: 28px 16px 36px; }
.hero__headline {
  font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: var(--ls-tight);
  margin: 10px 0 16px; text-wrap: pretty;
}
.hero__sub {
  font-size: var(--fs-lead); line-height: 1.5; color: var(--muted);
  margin: 0 0 24px; max-width: 32ch; text-wrap: pretty;
}
.hero__reassure { font-size: var(--fs-sm); color: var(--muted-2); margin: 14px 0 0; }

/* --- Split route (default): photo beside text on desktop --- */
@media (min-width: 880px) {
  .hero--split { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
  .hero--split .hero__media { order: 2; }
  .hero--split .hero__photo { height: 100%; max-height: none; min-height: 520px; }
  .hero--split .hero__text { order: 1; align-self: center; padding: 72px 56px; max-width: 620px; }
  .hero--split .hero__sub { margin-bottom: 32px; }
}

/* --- Full-bleed route: photo behind, text overlaid (light on dark) --- */
.hero--bleed { position: relative; isolation: isolate; }
.hero--bleed .hero__media { position: absolute; inset: 0; z-index: -1; }
.hero--bleed .hero__photo { width: 100%; height: 100%; max-height: none; }
.hero--bleed .hero__scrim {
  background: linear-gradient(to top, rgba(10,10,10,0.92), rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.55));
}
.hero--bleed .hero__credit { color: rgba(255,255,255,0.7); }
.hero--bleed .hero__text {
  position: relative; min-height: 78vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px 18px 44px; max-width: 720px;
}
.hero--bleed .hero__headline, .hero--bleed .hero__sub { color: #fff; }
.hero--bleed .hero__sub { color: rgba(255,255,255,0.92); max-width: 28ch; }
.hero--bleed .hero__reassure { color: rgba(255,255,255,0.7); }
.hero--bleed .eyebrow { color: #fff; }
@media (min-width: 880px) {
  .hero--bleed .hero__text { min-height: 88vh; max-height: 760px; padding: 64px 56px 64px; max-width: 760px; }
}

/* ============================ CONTENT BLOCKS ============================= */
.block { padding: 64px 16px; }
.block--alt { background: var(--surface-alt); }
.block__inner { max-width: 680px; margin: 0 auto; }
.block__head {
  font-family: var(--font-display); font-weight: var(--w-semi);
  font-size: var(--fs-h2); line-height: var(--lh-snug); margin: 10px 0 18px; text-wrap: pretty;
}
.block__body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); max-width: var(--maxw-prose); }
.block__body p { margin: 0 0 16px; }
.block__body em { font-style: italic; font-weight: var(--w-bold); }
.block__cta { margin-top: 28px; }
.eyebrow { font-family: var(--font-sans); font-weight: var(--w-semi); font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--magenta); margin: 0; }
@media (min-width: 768px) { .block { padding: 96px 24px; } }

/* ---- Demands list ---- */
.demands { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 20px; }
.demand { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); }
.demand__n { font-family: var(--font-mono); font-weight: 700; color: var(--magenta); font-size: 1.25rem; line-height: 1.2; }
.demand__t { font-size: var(--fs-h3); font-weight: var(--w-bold); margin: 0 0 6px; }
.demand__d { font-size: var(--fs-body); line-height: 1.5; color: var(--muted); margin: 0; }

/* ============================ COUNTER ==================================== */
.counter { padding: 56px 16px; text-align: center; background: var(--white); }
.counter__num { font-family: var(--font-mono); font-weight: 700; color: var(--magenta);
  font-size: clamp(2.75rem, 1.5rem + 6vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.counter__of { font-size: var(--fs-lead); color: var(--muted); margin: 10px 0 22px; }
.counter__of strong { color: var(--ink); }
.counter__track { max-width: 540px; margin: 0 auto; height: 14px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden; }
.counter__fill { height: 100%; background: var(--magenta); border-radius: var(--r-pill);
  transition: width 1.4s var(--ease-out); }
.counter__pct { font-size: var(--fs-sm); color: var(--muted-2); margin: 12px 0 0; }

/* ============================ FORM ======================================= */
.form-section { padding: 64px 16px; background: var(--surface-alt); }
.form-section__inner { max-width: 620px; margin: 0 auto; }
.form-section__head { text-align: center; margin-bottom: 8px; }
.form-section__sub { text-align: center; color: var(--muted); font-size: var(--fs-body); margin: 0 auto 28px; max-width: 44ch; }
.form {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 24px;
}
.form__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.fld { display: flex; flex-direction: column; }
.fld__label { font-size: 13px; font-weight: var(--w-semi); margin-bottom: 6px; }
.fld__req { color: var(--magenta); margin-left: 2px; }
.fld__hint { font-size: 12px; color: var(--muted-2); margin: 6px 0 0; }
.inp {
  width: 100%; height: 48px; font-size: 16px; font-family: var(--font-sans); color: var(--ink);
  padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); -webkit-appearance: none; appearance: none;
}
select.inp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.inp:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-tint); }

/* CNP expander */
.cnp { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.cnp__toggle { background: none; border: 0; cursor: pointer; color: var(--magenta);
  font-family: var(--font-sans); font-weight: var(--w-semi); font-size: 15px; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.cnp__plus { font-size: 18px; line-height: 1; }
.cnp__desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.cnp__open { display: grid; gap: 0; }
.cnp__lock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--success); margin: 8px 0 0; }
.cnp__collapse { align-self: start; margin-top: 10px; background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }

/* Consents */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  margin-top: 16px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--magenta); flex: none; }

.submit { margin-top: 22px; }
.submit.is-disabled { opacity: 0.5; box-shadow: none; }
.submit.is-disabled:hover { transform: none; background: var(--magenta); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Thank-you */
.thanks { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 36px 24px; text-align: center; }
.thanks__check { width: 56px; height: 56px; border-radius: 50%; background: var(--success-tint);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.thanks__check img { filter: invert(28%) sepia(64%) saturate(580%) hue-rotate(85deg) brightness(92%) contrast(90%); }
.thanks__h { font-family: var(--font-display); font-weight: var(--w-bold); font-size: var(--fs-h3); margin: 0 0 10px; }
.thanks__p { font-size: var(--fs-body); color: var(--muted); line-height: 1.55; margin: 0 auto 22px; max-width: 40ch; }
.thanks__p em { font-style: italic; font-weight: var(--w-bold); color: var(--ink); }

/* ============================ SHARE ====================================== */
.share { padding: 56px 16px; text-align: center; }
.share--compact { padding: 0; }
.share__head { text-align: center; }
.share__targets { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.share--compact .share__targets { margin-top: 0; }
.share__t { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--white);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast); }
.share__t:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.share__t img { width: 26px; height: 26px; }

/* ============================ FAQ ======================================== */
.faq__list { list-style: none; padding: 0; margin: 8px 0 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-family: var(--font-sans); font-weight: var(--w-semi); font-size: var(--fs-body); color: var(--ink); }
.faq__chev { font-size: 22px; color: var(--magenta); line-height: 1; flex: none; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease-out); }
.faq__item.is-open .faq__a { max-height: 240px; }
.faq__a p { margin: 0 0 20px; color: var(--muted); font-size: var(--fs-body); line-height: 1.55; max-width: 60ch; }
.faq__cta { margin-top: 28px; }

/* ============================ FOOTER ===================================== */
.ftr { background: var(--ink); color: #fff; padding: 48px 16px 96px; }
.ftr__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.ftr__mark { color: #fff; font-size: 1.5rem; }
.ftr__found { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); margin: 14px 0 18px; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 18px; }
.ftr__links a { color: #fff; font-size: var(--fs-sm); text-decoration: none; opacity: 0.85; }
.ftr__links a:hover { opacity: 1; text-decoration: underline; }
.ftr__gdpr { font-size: var(--fs-xs); color: rgba(255,255,255,0.5); margin: 0; line-height: 1.5; }

/* ============================ MOBILE BAR ================================= */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--mobilebar-h); border: 0; cursor: pointer;
  background: var(--magenta); color: #fff; box-shadow: var(--shadow-bar-up);
  font-family: var(--font-sans); font-weight: var(--w-bold); font-size: 17px;
  letter-spacing: var(--ls-cta); text-transform: uppercase;
  transition: transform var(--t-base) var(--ease-out);
}
.mobilebar--hidden { transform: translateY(100%); }
@media (min-width: 768px) { .mobilebar { display: none; } }
/* keep content clear of the fixed bar on mobile */
@media (max-width: 767px) { .ftr { padding-bottom: calc(48px + var(--mobilebar-h)); } }

/* ============================ ADDITIONS ================================== */
/* Demands — second-line note under each ask */
.demand__note { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); margin: 8px 0 0; }
.demand__note em { font-style: italic; font-weight: var(--w-bold); color: var(--magenta); }
.demand__d strong { font-weight: var(--w-bold); }

/* Counter eyebrow + form trust strip */
.counter__eyebrow { margin: 0 0 8px; }
.form-section__targets {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  text-align: center; color: var(--muted); font-size: var(--fs-sm); margin: 0 auto 22px; max-width: 46ch;
}
.form-section__targets strong { color: var(--ink); font-weight: var(--w-semi); }
.form__legal { font-size: var(--fs-xs); color: var(--muted-2); line-height: 1.5; margin: 14px 0 0; text-align: center; }
.fld--full { grid-column: 1 / -1; }

/* Validation errors */
.fld__error { font-size: 13px; color: var(--magenta); margin: 6px 0 0; font-weight: var(--w-semi); }
.inp--error { border-color: var(--magenta); }
.inp--error:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-tint); }
.form__error { font-size: 13px; color: var(--magenta); font-weight: var(--w-medium); margin: 8px 0 0; }

/* Prominent validation banner at the top of the form. Base visibility never
   depends on the animation (tab throttling can strand a fade at opacity:0);
   only a slide is animated, opacity is always 1. */
.form__alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--magenta); border: 1px solid var(--magenta-press);
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 20px;
  color: #fff; font-size: var(--fs-body); font-weight: var(--w-semi); line-height: 1.45;
  box-shadow: var(--shadow-cta);
  opacity: 1; animation: alertIn 280ms var(--ease-out);
}
.form__alert-ic { flex: none; margin-top: 1px;
  filter: brightness(0) invert(1); }
@keyframes alertIn {
  0% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Share sub-line + thank-you follow link */
.share__sub { color: var(--muted); font-size: var(--fs-body); margin: 6px auto 0; max-width: 40ch; }
.thanks__more { margin: 22px 0 0; }
.thanks__more a { color: var(--magenta); font-weight: var(--w-semi); font-size: var(--fs-sm); text-decoration: none; }
.thanks__more a:hover { text-decoration: underline; }

/* Toast (share confirmation) */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--mobilebar-h) + 18px); transform: translate(-50%, 12px);
  z-index: 80; background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: var(--w-medium);
  padding: 12px 18px; border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(10,10,10,0.25);
  max-width: min(92vw, 420px); text-align: center; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .toast { bottom: 24px; } }

/* Tweak: bold-sans display route (overrides the serif headline family) */
[data-display="sans"] {
  --font-display: var(--font-sans);
}
[data-display="sans"] .hero__headline,
[data-display="sans"] .block__head,
[data-display="sans"] .thanks__h,
[data-display="sans"] .h-hero,
[data-display="sans"] .h1,
[data-display="sans"] .h2 {
  font-weight: var(--w-black); letter-spacing: -0.035em;
}

/* When tweaks are off, hide the panel entirely */
.tweaks-host[hidden] { display: none !important; }
/* keep content clear of the fixed bar on mobile */
@media (max-width: 767px) { .ftr { padding-bottom: calc(48px + var(--mobilebar-h)); } }
