/* Red White Blue Ag Drones: digital team card */
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url(fonts/work-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url(fonts/work-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 700; font-display: swap; src: url(fonts/work-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy: #0F1F3D;
  --navy-2: #1A2F52;
  --navy-ink: rgba(15, 31, 61, .72);
  --navy-soft: rgba(15, 31, 61, .08);
  --navy-line: rgba(15, 31, 61, .14);
  --red: #B22234;
  --red-dark: #951C2B;
  --gold: #C8960C;
  --gold-soft: #E3B84A;
  --cream: #F8F5EF;
  --white: #FFFFFF;
  --head: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.ico { flex: none; }

.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--cream);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, .35);
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-2) 0%, var(--navy) 70%);
  padding: calc(28px + var(--safe-t)) 24px 56px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--white) 33.3% 66.6%, var(--navy-2) 66.6%);
  opacity: .9;
}
.hero-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-35deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px);
}
.badge {
  position: relative;
  width: min(58vw, 208px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}

/* Card body */
.card { padding: 0 22px 8px; position: relative; }
.avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -62px;
  margin-bottom: 14px;
}
.avatar {
  width: 124px; height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 3px var(--gold), 0 10px 24px rgba(15,31,61,.25);
  background: var(--navy);
}
.avatar-initials {
  display: grid; place-items: center;
  color: var(--gold);
  font: 700 42px/1 var(--head);
  letter-spacing: .02em;
}
.icon-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--navy-line);
  background: var(--white);
  color: var(--navy);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,31,61,.08);
}
.icon-btn:active { transform: scale(.96); }

.name {
  font: 700 32px/1.1 var(--head);
  letter-spacing: -.01em;
  margin: 6px 0 6px;
}
.title, .company {
  font: 600 18px/1.3 var(--head);
  margin: 0;
}
.company { color: var(--navy-ink); font-weight: 500; }
.badge-line {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 14px 0 0;
  font: 600 12px/1 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.badge-line .bar { width: 26px; height: 4px; border-radius: 2px; background: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 12px 20px;
  font: 700 16px/1 var(--head);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-lg { padding: 16px 22px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 18px rgba(178,34,52,.28); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }

.primary-actions {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  margin: 22px 0 18px;
}

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
  font: 600 13px/1 var(--head);
  color: var(--navy);
  padding: 4px 0;
}
.quick-ico {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
}

.details {
  list-style: none; margin: 0; padding: 4px 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--navy-line);
}
.details li + li { border-top: 1px solid var(--navy-soft); }
.details a, .details .d-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  text-decoration: none;
}
.d-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-soft); color: var(--navy);
  flex: none;
}
.d-txt { display: flex; flex-direction: column; min-width: 0; }
.d-txt strong { font: 600 16px/1.3 var(--body); overflow-wrap: anywhere; }
.d-txt small { font-size: 13px; color: var(--navy-ink); }

.bio {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.bio p { margin: 0; font-size: 15.5px; color: var(--navy); }

/* Lead form */
.lead {
  margin: 26px 0 0;
  padding: 28px 22px 30px;
  background: var(--navy);
  color: var(--white);
}
.lead h2 {
  font: 700 25px/1.15 var(--head);
  color: var(--gold-soft);
  margin: 0 0 6px;
}
.lead-sub { margin: 0 0 18px; color: rgba(255,255,255,.86); font-size: 15px; }
.lead-form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; font: 600 14px/1.2 var(--head); color: var(--white); border: 0; padding: 0; margin: 0; min-width: 0; }
.f legend { padding: 0; margin-bottom: 8px; }
.opt { font: 400 12px var(--body); color: rgba(255,255,255,.65); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .f-row { grid-template-columns: 1fr; } }
.f input, .f select, .f textarea {
  width: 100%;
  font: 400 16px/1.3 var(--body);
  color: var(--navy);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 13px;
  appearance: none;
}
.f select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip { position: relative; }
.f .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  font: 500 14px/1 var(--body);
  color: var(--white);
  cursor: pointer;
  user-select: none;
}
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.88); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.consent-sms span { font-size: 13px; line-height: 1.5; }
.consent-sms strong { color: var(--gold); }
.form-note { margin: 0; font-size: 12.5px; line-height: 1.5; text-align: center; color: rgba(255,255,255,.75); }
.form-note a { color: inherit; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--white); color: var(--red); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-done { text-align: center; padding: 10px 0; }
.done-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-grid; place-items: center; margin-bottom: 10px; }
.lead-done p { margin: 0; color: rgba(255,255,255,.88); }

/* Footer */
.foot {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 24px 22px calc(28px + var(--safe-b));
  text-align: center;
}
.slogan { margin: 0 0 10px; display: grid; gap: 4px; font: 700 15px/1.2 var(--head); letter-spacing: .08em; }
.slogan .s1 { color: var(--white); }
.slogan .s2 { color: var(--gold); }
.foot-meta { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.foot-meta a { color: var(--white); text-decoration: none; }

/* Share sheet */
.sheet {
  position: fixed; inset: 0;
  background: rgba(8, 16, 32, .72);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50;
  animation: fade .18s ease;
}
.sheet-panel {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--cream);
  border-radius: 24px 24px 0 0;
  padding: 26px 22px calc(24px + var(--safe-b));
  animation: rise .22s ease;
  max-height: 100vh; overflow-y: auto;
}
.sheet h2 { font: 700 22px/1.2 var(--head); margin: 0 50px 16px 0; }
.sheet-close { position: absolute; top: 18px; right: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-soft); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg-btn { border: 0; background: transparent; border-radius: 999px; padding: 10px; font: 600 14px/1 var(--head); color: var(--navy); cursor: pointer; }
.seg-btn.is-on { background: var(--navy); color: var(--white); }
.qr-wrap { background: var(--white); border-radius: 20px; padding: 18px; border: 1px solid var(--navy-line); display: grid; place-items: center; }
.qr { width: min(72vw, 280px); aspect-ratio: 1; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-help { text-align: center; font-size: 14px; color: var(--navy-ink); margin: 12px 0 16px; }
.sheet-actions { display: grid; gap: 10px; }
.sheet-tip { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--navy-ink); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%);
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 999px;
  font: 600 14px var(--head); z-index: 60; box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-panel { animation: none; } }

/* Share-only mode for the home screen app */
body.share-mode .sheet { background: var(--navy); align-items: center; }
body.share-mode .sheet-panel { border-radius: 24px; margin: 16px; width: calc(100% - 32px); }

/* Missing card */
.missing { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; color: var(--white); }
.missing h1 { font: 700 26px var(--head); margin: 12px 0 0; }
.missing p { margin: 0 0 12px; color: rgba(255,255,255,.8); }

/* Team directory */
.dir { max-width: 720px; margin: 0 auto; padding: 32px 18px 48px; color: var(--white); }
.dir-head { text-align: center; margin-bottom: 26px; }
.dir-head img { width: 150px; margin: 0 auto 12px; }
.dir-head h1 { font: 700 30px/1.15 var(--head); margin: 0 0 6px; }
.dir-head p { margin: 0; color: rgba(255,255,255,.8); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dir-card { background: var(--cream); color: var(--navy); border-radius: var(--radius); padding: 20px 16px; text-align: center; text-decoration: none; display: grid; justify-items: center; gap: 4px; }
.dir-card .avatar { width: 96px; height: 96px; margin-bottom: 8px; box-shadow: 0 0 0 3px var(--gold); border-width: 3px; }
.dir-card .avatar-initials { font-size: 32px; }
.dir-card strong { font: 700 19px var(--head); }
.dir-card span { font-size: 14px; color: var(--navy-ink); }
.dir-slogan { margin-top: 30px; text-align: center; }

@media (min-width: 520px) {
  body { padding: 24px 0; }
  .page { border-radius: 24px; overflow: hidden; min-height: auto; }
}

/* Step two */
.lead-grid { display: grid; gap: 14px; }
.step2 { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.step2-h { font: 700 18px/1.25 var(--head); color: var(--white); margin: 0; }
.step2-note { margin-top: 8px !important; color: var(--gold-soft) !important; font-weight: 600; }
.crop-row { margin-bottom: 8px; }
.crop-row select, .crop-row input { width: 100%; }
