/* FreeUSA — relaunch site
   Brand colours sampled from the logo: navy #0C2D5F, red #D51833 */

:root {
  --navy: #0C2D5F;
  --navy-deep: #071D40;
  --navy-ink: #0A1A33;
  --red: #D51833;
  --red-bright: #EE2B47;
  --paper: #FBFBF8;
  --mist: #EEF1F6;
  --line: #DCE2EC;
  --text: #1B2638;
  --muted: #5B6679;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Flag bar ---------- */
.flagbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  background: linear-gradient(90deg, var(--navy) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6% 100%);
  transform-origin: left;
  animation: bar-in 1.2s var(--ease-out) both;
}
@keyframes bar-in { from { transform: scaleX(0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 4px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(251, 251, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--navy);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s, transform .4s;
}
.nav.is-scrolled .nav__brand { opacity: 1; transform: none; }
.nav__brand img { width: 44px; height: auto; }
.nav__brand b { color: var(--red); font-weight: 800; }

.nav__links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 90px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 600px at 50% 35%, #fff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Wing-like streaks that sweep across the hero */
.streak {
  position: absolute;
  height: 2px;
  width: 46vw;
  border-radius: 2px;
  opacity: 0;
  transform: rotate(-28deg);
  background: linear-gradient(90deg, transparent, var(--navy), transparent);
  animation: streak 9s linear infinite;
}
.streak.s1 { top: 18%; animation-delay: 0s; }
.streak.s2 { top: 40%; animation-delay: 2.2s; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.streak.s3 { top: 64%; animation-delay: 4.1s; }
.streak.s4 { top: 84%; animation-delay: 6.3s; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.streak.s5 { top: 28%; animation-delay: 7.5s; width: 30vw; }
@keyframes streak {
  0%   { left: -50vw; opacity: 0; }
  12%  { opacity: .22; }
  60%  { opacity: .16; }
  100% { left: 110vw; opacity: 0; }
}

/* Faint star field */
.stars {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle, rgba(12,45,95,.16) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(213,24,51,.10) 1px, transparent 1.4px);
  background-size: 46px 46px, 73px 73px;
  background-position: 0 0, 23px 31px;
  mask-image: radial-gradient(ellipse at 50% 45%, transparent 22%, #000 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, transparent 22%, #000 75%);
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate3d(46px, -46px, 0); } }

.hero__inner {
  position: relative;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  position: relative;
  width: min(380px, 72vw, 42vh);
  margin-bottom: 26px;
  animation: logo-in 1.6s var(--ease-out) .15s both;
}
.hero__logo picture { position: relative; z-index: 1; }
.hero__logo img {
  filter: drop-shadow(0 18px 30px rgba(12, 45, 95, .14));
  animation: float 7s ease-in-out 1.8s infinite;
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(26px) scale(.94); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Warm glow that flickers behind the torch flame */
.flame-glow {
  position: absolute;
  z-index: 0;
  left: 73%;
  top: 14%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 43, 71, .38) 0%, rgba(255, 140, 90, .16) 40%, transparent 70%);
  filter: blur(14px);
  animation: flicker 3.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(1); }
  20%      { opacity: .95; transform: translate(-50%, -52%) scale(1.08); }
  45%      { opacity: .7;  transform: translate(-49%, -50%) scale(.97); }
  70%      { opacity: 1;   transform: translate(-51%, -53%) scale(1.12); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: 0 6px 18px -10px rgba(12, 45, 95, .4);
}
.pill__dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
}
.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(3.2); opacity: 0; }
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--navy);
}
.accent {
  color: var(--red);
  background: linear-gradient(90deg, var(--red), var(--red-bright), var(--red));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }

.hero__lede {
  max-width: 620px;
  margin: 0 0 34px;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--muted);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 26px -12px rgba(213, 24, 51, .8);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 18px 32px -12px rgba(213, 24, 51, .85); }
.btn--ghost {
  color: var(--navy);
  border: 1.5px solid var(--navy);
  background: transparent;
}
.btn--ghost:hover { background: var(--navy); color: #fff; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(12, 45, 95, .35);
  border-radius: 14px;
  animation: fade-in 1s 1.8s both;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--red);
  animation: wheel 2s ease-in-out infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Shared section bits ---------- */
section { position: relative; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}
.eyebrow--light { color: #FF6B80; }

.section-title {
  margin: 0 0 48px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy);
}
.section-title--light { color: #fff; }

/* ---------- Status / timeline ---------- */
.status { padding: clamp(80px, 12vw, 140px) 0; background: var(--paper); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.step {
  position: relative;
  padding: 30px 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -32px rgba(12, 45, 95, .45);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(12, 45, 95, .5); }

/* Connector between cards */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  left: calc(100% + 1px);
  width: 26px;
  height: 2px;
  background: var(--line);
}
.step--done:not(:last-child)::after { background: var(--navy); }

.step__marker {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--mist);
}
.step__marker svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.step--done .step__marker { background: var(--navy); border-color: var(--navy); }
.step--done.is-visible .step__marker svg { animation: draw .7s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.step--active .step__marker { border-color: var(--red); background: #fff; position: relative; }
.step--active .step__marker::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
}
.step--active .ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: ring 2s var(--ease-out) infinite;
}
@keyframes ring {
  from { transform: scale(1); opacity: .8; }
  to   { transform: scale(1.7); opacity: 0; }
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step--active { border-color: rgba(213, 24, 51, .35); }

/* ---------- Support ---------- */
.support {
  padding: clamp(90px, 13vw, 150px) 0;
  color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-ink) 100%);
  overflow: hidden;
  isolation: isolate;
}
.support__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(-28deg, rgba(255,255,255,.035) 0 2px, transparent 2px 38px),
    radial-gradient(700px 400px at 85% 0%, rgba(213, 24, 51, .35), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 255, 255, .08), transparent 70%);
  animation: slide 30s linear infinite;
  background-size: 200% 200%, 100% 100%, 100% 100%;
}
@keyframes slide { to { background-position: 100% 0, 0 0, 0 0; } }

.support__inner { max-width: 860px; text-align: center; }
.support .eyebrow::before { display: none; }
.support .section-title { margin-bottom: 22px; }
.support__text {
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, .78);
}

.email-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 28px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.email-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--red-bright) 85%, #fff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
  pointer-events: none;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }

.email-card__label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.email-card__addr {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 5vw, 38px);
  letter-spacing: -.01em;
  text-decoration: none;
  color: #fff;
  word-break: break-word;
  transition: color .3s;
}
.email-card__addr:hover { color: #FFB3BE; }

.copy {
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font: 600 13px/1 var(--font-head);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.copy:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

.privacy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
}
.privacy svg {
  flex: none;
  width: 22px; height: 22px;
  fill: none;
  stroke: #FF6B80;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 12vw, 140px) 0; background: var(--paper); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(12, 45, 95, .5); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--mist);
}
.card__icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:first-child .card__icon svg { stroke: var(--red); }
.card h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.card p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.card__link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease-out);
  word-break: break-word;
}
.card__link:hover { background-size: 100% 2px; }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.nav__brand--footer { opacity: 1; transform: none; }
.nav__brand--footer img { width: 40px; }
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-end; }
.footer__address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.footer__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.footer__links a:hover { color: var(--red); }

/* Fine print */
.disclaimer {
  font-size: 8.5px;
  line-height: 1.55;
  color: #7A8496;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.disclaimer p { margin: 0 0 3px; }
.disclaimer__box {
  display: inline-block;
  padding: 3px 7px;
  font-size: 10.5px;
  margin-bottom: 8px !important;
  border: 1px solid #9AA3B2;
  color: #4C566A;
}
.disclaimer .copyright { margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 600 14px/1 var(--font-head);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .3s, transform .4s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero items reveal on load in sequence */
.pill.reveal        { --d: .55s; }
.hero__title.reveal { --d: .7s; }
.hero__lede.reveal  { --d: .85s; }
.hero__cta.reveal   { --d: 1s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .step:not(:last-child)::after {
    top: auto;
    left: 49px;
    bottom: -19px;
    width: 2px;
    height: 18px;
  }
  .cards { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__links a { font-size: 12px; letter-spacing: .03em; }
  .nav__brand span { display: none; }
  .hero { padding-top: 96px; }
  .btn { width: 100%; }
  .hero__cta { width: 100%; }
  .step, .card { padding: 26px 22px; }
  .streak { width: 80vw; }
  .footer__contact { align-items: flex-start; text-align: left; }
  .footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .streak { display: none; }
}
