/* ============================================================
   UpgradeAirKit.com — plans.html "Free System Match"
   Upload-your-plans page. Leans on design-system.css tokens.
   ============================================================ */

/* ---------- HERO ---------- */
.plans-hero {
  position: relative;
  background: var(--grad-navy);
  color: #EAF1FB;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px) clamp(72px, 9vw, 130px);
}
.plans-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(47,168,79,.30), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.plans-hero::after {
  content: ""; position: absolute; left: -10%; bottom: -45%;
  width: 55%; height: 90%;
  background: radial-gradient(closest-side, rgba(107,224,140,.16), transparent 70%);
  filter: blur(24px); pointer-events: none;
}
.plans-hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.plans-hero h1 { color: #fff; }
.plans-hero h1 .text-green { color: #6BE08C; }
.plans-hero .lede { color: #C4D5EA; }
.plans-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
  color: #6BE08C; background: rgba(47,168,79,.14);
  border: 1px solid rgba(107,224,140,.35);
  padding: .5em 1.1em; border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 22px rgba(47,168,79,.25);
}
.plans-hero__free {
  background: var(--grad-green); color: #fff;
  padding: .12em .6em; border-radius: var(--radius-pill);
  font-size: .72rem; letter-spacing: .12em;
}
.plans-hero__lulu { position: relative; text-align: center; }
.plans-hero__lulu img {
  width: min(320px, 80%); margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(4,14,28,.55));
  animation: lulu-float 5.5s ease-in-out infinite;
}
@keyframes lulu-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.plans-hero__halo {
  position: absolute; inset: 8% 6% 2% 6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47,168,79,.35), transparent 72%);
  filter: blur(14px);
}
.plans-hero__bubble {
  position: relative; display: inline-block; margin-top: 1.1rem;
  background: #fff; color: var(--ink);
  border-radius: 16px; padding: .55em 1.1em;
  font-family: var(--font-script); font-weight: 700; font-size: 1.35rem;
  box-shadow: 0 10px 28px rgba(4,14,28,.4);
}
.plans-hero__bubble::before {
  content: ""; position: absolute; top: -11px; left: 50%; margin-left: -11px;
  border: 11px solid transparent; border-bottom-color: #fff; border-top: 0;
}
.plans-hero__bubble .heart { color: var(--rose); }

/* Hero trust cues */
.plans-hero__trust {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
}
.plans-hero__trust li {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .92rem; font-weight: 600; color: #DCE8F5;
}
.plans-hero__trust .tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 900;
  color: #fff; background: var(--grad-green);
  box-shadow: 0 0 16px rgba(47,168,79,.5);
}

/* ---------- UPLOAD CARD (overlaps hero) ---------- */
.plans-upload { padding-block: 0 clamp(48px, 7vw, 88px); }
.plans-upload .container { max-width: 880px; }
.upload-card {
  position: relative;
  margin-top: clamp(-64px, -6vw, -44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.6) inset;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}
.upload-card::before { /* gradient hairline top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, #36BE5B, #2FA84F 45%, #0E3157);
}
.upload-card h2 { margin-bottom: .2em; }
.upload-card .lede { font-size: 1rem; margin-top: 0; }

/* Dropzone */
.dropzone {
  margin-top: 1.4rem;
  border: 2.5px dashed #B9CFC2;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(47,168,79,.10), transparent 60%),
    var(--grad-air);
  padding: clamp(28px, 4vw, 44px) clamp(18px, 3vw, 32px);
  text-align: center; cursor: pointer;
  transition: border-color .2s ease, box-shadow .25s ease, transform .15s ease, background .25s ease;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--green);
  box-shadow: var(--glow-green);
}
.dropzone.is-dragover {
  border-color: var(--green);
  transform: scale(1.012);
  box-shadow: 0 0 0 4px rgba(47,168,79,.18), var(--glow-green);
  background: radial-gradient(120% 140% at 50% -20%, rgba(47,168,79,.20), transparent 60%), var(--green-light);
}
.dropzone__icon {
  width: 74px; height: 74px; margin: 0 auto .9rem;
  border-radius: 50%;
  background: var(--grad-green); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--glow-green);
  animation: dz-pulse 2.8s ease-in-out infinite;
}
@keyframes dz-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(47,168,79,.35); }
  50%      { box-shadow: 0 8px 34px rgba(47,168,79,.55), 0 0 0 10px rgba(47,168,79,.07); }
}
.dropzone__title { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.15rem; margin: 0 0 .25em; }
.dropzone__hint { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.dropzone__hint b { color: var(--green-dark); }
.dropzone__note { color: var(--ink-soft); opacity: .75; font-size: .8rem; margin: .7em 0 0; }

/* Chosen-file chip */
.file-chip {
  display: none;
  margin-top: 1rem;
  align-items: center; gap: .8em;
  background: var(--green-light);
  border: 1px solid rgba(47,168,79,.35);
  border-radius: var(--radius);
  padding: .75em 1em;
  text-align: left;
}
.file-chip.is-visible { display: flex; }
.file-chip__icon { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--grad-green); color: #fff; display: grid; place-items: center; box-shadow: var(--glow-green); }
.file-chip__name { font-weight: 700; color: var(--navy); font-size: .95rem; word-break: break-all; }
.file-chip__size { color: var(--ink-soft); font-size: .82rem; }
.file-chip__clear {
  margin-left: auto; flex: 0 0 auto;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 1.25rem; line-height: 1;
  padding: .3em .45em; border-radius: 8px;
}
.file-chip__clear:hover { color: var(--rose); background: rgba(200,36,43,.08); }
.file-chip__bigfile { flex-basis: 100%; margin: .1em 0 0; font-size: .8rem; color: var(--ink-soft); display: none; }
.file-chip.is-big { flex-wrap: wrap; }
.file-chip.is-big .file-chip__bigfile { display: block; }

/* Inline error */
.form-error {
  display: none;
  margin-top: 1rem;
  background: #FDECEC; border: 1px solid #F2B8BB; color: #8E1B20;
  border-radius: var(--radius); padding: .8em 1.1em;
  font-size: .92rem; font-weight: 600;
}
.form-error.is-visible { display: flex; align-items: flex-start; gap: .6em; }

/* Contact fields */
.plans-fields { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.plans-fields .field--full { grid-column: 1 / -1; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .85rem; color: var(--navy); margin-bottom: .35em; letter-spacing: .02em;
}
.field label .opt { font-weight: 600; color: var(--ink-soft); font-size: .78rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: var(--mist); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .78em 1em; transition: border-color .18s ease, box-shadow .2s ease, background .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 4px rgba(47,168,79,.14);
}
.field textarea { resize: vertical; min-height: 108px; }

/* Honeypot — hidden from humans, visible to bots */
.hp-field { position: absolute !important; left: -6000px !important; top: -6000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Submit row + progress */
.plans-submit-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.plans-submit-row .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.15); }
.plans-privacy { font-size: .82rem; color: var(--ink-soft); margin: 0; }

.upload-progress { display: none; margin-top: 1.4rem; }
.upload-progress.is-visible { display: block; }
.upload-progress__track {
  height: 12px; border-radius: var(--radius-pill);
  background: var(--mist-2); border: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.upload-progress__bar {
  height: 100%; width: 0%;
  background: var(--grad-green);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 14px rgba(47,168,79,.6);
  transition: width .25s ease;
  position: relative; overflow: hidden;
}
.upload-progress__bar::after { /* moving sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: bar-sheen 1.2s linear infinite;
}
@keyframes bar-sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.upload-progress__label {
  margin: .5em 0 0; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 1em;
}
.upload-progress__pct { font-family: var(--font-display); font-weight: 800; color: var(--green-dark); }

/* ---------- SUCCESS STATE ---------- */
.plans-success { display: none; text-align: center; padding: clamp(12px, 2vw, 24px) 0; }
.plans-success.is-visible { display: block; animation: success-in .5s ease both; }
@keyframes success-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.success-mark { width: 112px; height: 112px; margin: 0 auto 1.2rem; position: relative; }
.success-mark__burst {
  position: absolute; inset: -18px;
  background: radial-gradient(closest-side, rgba(47,168,79,.35), transparent 70%);
  border-radius: 50%; animation: burst 1s ease-out both .25s;
}
@keyframes burst { from { transform: scale(.4); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1.15); opacity: .8; } }
.success-mark svg { position: relative; display: block; }
.success-mark__circle {
  stroke-dasharray: 289; stroke-dashoffset: 289;
  animation: draw 0.8s ease-out forwards .15s;
}
.success-mark__check {
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw 0.45s ease-out forwards .8s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.plans-success h2 { margin-bottom: .3em; }
.plans-success .lede { margin-inline: auto; }
.plans-success .btn { margin-top: 1.4rem; }
.plans-success__lulu { width: 120px; margin: 1.4rem auto 0; filter: drop-shadow(0 10px 22px rgba(12,42,77,.25)); }

/* ---------- HOW IT WORKS STRIP ---------- */
.plans-how { background: var(--grad-air); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans-how .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); margin-top: 2rem; }
.plans-step { position: relative; padding: 1.6rem 1.4rem 1.4rem; text-align: center; }
.plans-step .num {
  width: 54px; height: 54px; margin: 0 auto .9rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-green); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
  box-shadow: var(--glow-green);
}
.plans-step h3 { font-size: 1.08rem; }
.plans-step p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.plans-step__arrow {
  position: absolute; top: 44%; right: -22px; color: var(--green);
  display: grid; place-items: center; z-index: 1;
}
.plans-how__reassure {
  margin: 2rem auto 0; max-width: 640px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; color: var(--green-dark);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .plans-hero .container { grid-template-columns: 1fr; text-align: center; }
  .plans-hero .lede { margin-inline: auto; }
  .plans-hero__trust { justify-content: center; }
  .plans-hero__lulu img { width: min(240px, 62%); }
  .plans-how .steps { grid-template-columns: 1fr; }
  .plans-step__arrow { display: none; }
}
@media (max-width: 560px) {
  .plans-fields { grid-template-columns: 1fr; }
}
