
/*
Theme Name: TWA Coming Soon (FR/EN + Countdown + Thank You + Progress + Mailchimp/Brevo)
Theme URI: https://tradewithawareness.com
Author: TWA
Author URI: https://tradewithawareness.com
Description: Coming-soon theme with FR/EN, countdown, gradient, Thank You page, progress bar, and email capture via Formspree or Mailchimp/Brevo (proxy via AJAX).
Version: 2.3.1
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: twa-coming-soon
*/

:root {
  --c1: #1c3f90;
  --c2: #0b2a6b;
  --c3: #081a4a;
  --btn: #5fb0ff;
  --text: #ffffff;
  --bar-bg: rgba(255,255,255,.18);
  --bar-fill: #5fb0ff;
}

html, body { height: 100%; margin: 0; }
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 20%, var(--c1) 0%, var(--c2) 45%, var(--c3) 100%);
}

.twa-wrap { text-align: center; padding: 2rem; max-width: 780px; }
.twa-logo { width: 120px; height: auto; margin: 0 auto 1rem; }
.twa-subbrand { opacity: .9; margin: 1rem 0 0; }

/* Headings */
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; margin: .2rem 0 .6rem; }
p.lead { opacity: .92; margin: 0 0 1.2rem; font-size: clamp(1.05rem, 2.2vw, 1.2rem); }

/* Language switcher */
.twa-lang { display:flex; gap:.4rem; justify-content:center; margin-bottom: .8rem; }
.twa-lang button {
  background: transparent; border:1px solid rgba(255,255,255,.4); color: var(--text);
  padding:.35rem .6rem; border-radius: 999px; font-weight:600; cursor:pointer; font-size:.9rem;
}
.twa-lang button.active { background: rgba(255,255,255,.15); }

/* Countdown */
#twa-countdown { display:flex; gap:1rem; justify-content:center; margin: .6rem 0 1.1rem; }
#twa-countdown .unit { text-align:center; }
#twa-countdown .num { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 800; }
#twa-countdown .lbl { font-size:.8rem; opacity:.85; margin-top:.1rem; }

/* Progress bar */
.twa-progress { margin: .4rem auto 1.1rem; width: 90%; max-width: 560px; }
.twa-progress .track { height: 10px; border-radius: 999px; background: var(--bar-bg); overflow: hidden; }
.twa-progress .fill { height: 100%; width: 0%; background: var(--bar-fill); transition: width .6s ease; }
.twa-progress .percent { font-size: .85rem; opacity: .9; margin-top: .35rem; }

/* Form */
.twa-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.twa-form input[type="email"] {
  padding: .9rem 1rem; border-radius: 12px; border: 0; width: min(380px, 90%);
}
.twa-form button {
  padding: .9rem 1.1rem; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700;
  background: var(--btn); color:#06162f;
}
.twa-form button[disabled] { opacity:.7; cursor: progress; }
.twa-form button:hover { filter: brightness(1.06); }
.twa-disclaimer { font-size: .85rem; opacity: .8; margin: .7rem 0 0; }

/* Thank you page */
.twa-thanks .twa-card{
  background: rgba(0,0,0,.25); border-radius: 16px; padding: 1.2rem 1.4rem;
}
.twa-thanks a { color: #cde3ff; text-decoration: underline; }

/* Accessibility helpers */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Version: 2.4.0 */
