:root {
  color-scheme: light dark;
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --text: #374151;
  --muted: #6b7280;
  --page: #ffffff;
  --card: #ffffff;
  --soft: #e5e7eb;
  --line: #d1d5db;
  --input: #ffffff;
  --orange: #ff6a0d;
  --orange-dark: #c94b00;
  --green: #168660;
  --danger: #b53b32;
  --danger-soft: #fff1ef;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.fc-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 32px 18px;
}

.fc-link-card {
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .08);
}

.fc-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-decoration: none;
}

.fc-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.fc-brand-mark img { display: block; width: 100%; height: 100%; }

.fc-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  color: var(--white);
  background: #171717;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.fc-secure span { color: #55d89c; font-size: 9px; }

.fc-card-body { padding: 34px 36px 30px; }

.fc-device-icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 106, 13, .34);
  border-radius: 18px;
  background: rgba(255, 106, 13, .1);
}

.fc-device-icon span {
  display: block;
  width: 27px;
  height: 34px;
  border: 2px solid var(--orange);
  border-radius: 5px;
}

.fc-device-icon--desktop span { width: 34px; height: 23px; border-radius: 4px; }
.fc-device-icon--desktop span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 26px auto 0;
  background: var(--orange);
  box-shadow: 0 -4px 0 -1px var(--orange);
}
.fc-device-icon--tablet span { width: 28px; height: 36px; border-radius: 5px; }

.fc-eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.fc-intro {
  margin: 13px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.fc-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 23px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
}

.fc-trust-note p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.45; }
.fc-trust-note strong { color: var(--ink); }
.fc-trust-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.fc-alert {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 38%, transparent);
  border-radius: 12px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
  line-height: 1.45;
}

.fc-form { margin-top: 25px; }
.fc-form label {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.fc-form label span { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.fc-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--input);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fc-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 13, .14); }
.fc-form input::placeholder { color: var(--muted); }
.fc-field-help { margin: 7px 2px 0; color: var(--muted); font-size: 11px; }

.fc-primary-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  border: 0;
  border-radius: 13px;
  color: var(--black);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 106, 13, .25);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.fc-primary-button:hover { background: var(--orange-dark); box-shadow: 0 12px 28px rgba(201, 75, 0, .28); transform: translateY(-1px); }
.fc-primary-button:focus-visible { outline: 3px solid rgba(255, 106, 13, .3); outline-offset: 3px; }
.fc-primary-button--link { margin-top: 27px; }

.fc-expiry { margin: 17px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.fc-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--white);
  background: var(--danger);
  font-size: 24px;
  font-weight: 800;
}
.fc-state-icon--complete { background: var(--green); }
.fc-state-icon--loading {
  box-sizing: border-box;
  border: 4px solid rgba(255, 255, 255, .5);
  border-top-color: var(--white);
  animation: fc-pair-spin .8s linear infinite;
}
@keyframes fc-pair-spin { to { transform: rotate(360deg); } }

.fc-card-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
}
.fc-card-footer a { color: var(--text); text-decoration: none; }
.fc-card-footer a:hover { color: var(--orange-dark); }
.fc-page-foot { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ffffff;
    --text: #ffffff;
    --muted: #aeb4be;
    --page: #000000;
    --card: #171717;
    --soft: #242424;
    --line: #343434;
    --input: #171717;
    --green: #55d89c;
    --danger: #ff8174;
    --danger-soft: #321816;
  }

  .fc-link-card { box-shadow: none; }
  .fc-trust-icon,
  .fc-state-icon--complete { color: var(--black); }
  .fc-form input { color-scheme: dark; }
}

@media (max-width: 520px) {
  .fc-shell { padding: 16px 10px; place-content: center; }
  .fc-link-card { border-radius: 20px; }
  .fc-brandbar { padding: 16px 18px; }
  .fc-card-body { padding: 28px 22px 25px; }
  .fc-secure { padding: 6px 8px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
