/* Adsify captive portal — "recharge-card duotone" (proposal §8.4). LTR/English
 * only in Phase 0 (RTL deferred by decision); layout uses flex with no
 * hard-coded direction so it can flip later. Kept dependency-free and small for
 * captive-network-assistant mini-browsers. */
:root {
  --pine: #0c2b24;
  --pine-2: #14392f;
  --sand: #f1e9da;
  --mint: #4ade9c;
  --amber: #f5a623; /* reserved for ad moments only */
  --coral: #f26b4e;
  --ink: #0c2b24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 100%);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(241, 233, 218, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.screen { display: none; }
.screen.active { display: block; animation: rise 0.28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.brand { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.venue { font-size: 13px; opacity: 0.7; margin-bottom: 20px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
p.lede { opacity: 0.8; margin: 0 0 22px; font-size: 15px; }

label { display: block; font-size: 13px; opacity: 0.75; margin: 0 0 6px; }

input {
  width: 100%;
  padding: 14px 14px;
  font-size: 17px;
  border-radius: 12px;
  border: 1px solid rgba(241, 233, 218, 0.2);
  background: rgba(241, 233, 218, 0.06);
  color: var(--sand);
  margin-bottom: 16px;
}
input:focus { outline: 2px solid var(--mint); border-color: transparent; }
input.otp { letter-spacing: 0.4em; text-align: center; font-size: 22px; }

button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: var(--mint);
  color: var(--pine);
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
button.ghost { background: transparent; color: var(--sand); border: 1px solid rgba(241, 233, 218, 0.2); margin-top: 10px; }
button.ad { background: var(--amber); color: var(--pine); }

.msg { min-height: 20px; font-size: 13px; margin: 4px 0 12px; }
.msg.error { color: var(--coral); }
.msg.ok { color: var(--mint); }
.dev-code { font-size: 12px; opacity: 0.6; margin-top: 8px; }

/* WiFi signal arcs — the signature element (proposal §8.4). Used on the ad
 * screen as the "unlocking" ring and on the granted screen as celebration. */
.arcs { display: flex; justify-content: center; margin: 8px 0 20px; }
.arcs svg { width: 96px; height: 96px; }
.arc { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; opacity: 0.25; }
.arc.lit { opacity: 1; }

.ad-stage {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(135deg, #1c4d3f, #0c2b24);
  border: 1px solid rgba(245, 166, 35, 0.4);
  padding: 34px 18px;
  text-align: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.ad-stage .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.ad-stage .headline { font-size: 20px; font-weight: 700; margin: 10px 0 6px; }
.ad-stage .sub { font-size: 13px; opacity: 0.75; }
.progress { height: 6px; border-radius: 3px; background: rgba(241, 233, 218, 0.15); overflow: hidden; margin-top: 18px; }
.progress > div { height: 100%; width: 0%; background: var(--amber); transition: width 0.25s linear; }
.countdown { font-size: 13px; opacity: 0.8; margin-top: 10px; }

.granted .big { font-size: 34px; font-weight: 700; color: var(--mint); }
