/* ==========================================================================
   AviChat — main.css
   Translated 1:1 from the Claude Design handoff (site/Home.dc.html + Nav,
   Proof Bar, Hero Loop, Closing CTA, Footer components).
   ========================================================================== */

/* ---------- Base ---------- */
html, body { margin: 0; background: #FFFFFF; }
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1E2532;
  -webkit-font-smoothing: antialiased;
}
a { color: #2E9BF7; }
a:hover { color: #1B7FD9; }
img { border: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #1E2532;
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #FFFFFF; }

/* ---------- Animations ---------- */
@keyframes chipPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,155,247,0); }
  45%  { box-shadow: 0 0 0 7px rgba(46,155,247,.13), 0 0 24px 5px rgba(46,155,247,.26); }
  100% { box-shadow: 0 0 0 0 rgba(46,155,247,0); }
}
@keyframes hlBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes hlDot {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%         { transform: translateY(-4px); opacity: 1; }
}
@keyframes hlPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,155,247,0); }
  45%  { box-shadow: 0 0 0 8px rgba(46,155,247,.14), 0 0 28px 6px rgba(46,155,247,.30); }
  100% { box-shadow: 0 0 0 0 rgba(46,155,247,0); }
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: #2E9BF7;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary:hover { background: #1B84E0; color: #FFFFFF; }
.btn-secondary {
  display: inline-block;
  background: #FFFFFF;
  color: #1E2532;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 15px 27px;
  border-radius: 8px;
  border: 1px solid #C9C5BB;
}
.btn-secondary:hover { border-color: #1E2532; color: #1E2532; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E7E5DF;
}
.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 16.5px;
  font-weight: 600;
  color: #1E2532;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: #2E9BF7; }
.nav-dd { position: relative; }
.nav-dd-btn {
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: #1E2532;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dd-btn:hover { color: #2E9BF7; }
.nav-dd-caret { font-size: 11px; color: #8A867B; }
.nav-dd-menu[hidden] { display: none; }
.nav-dd-menu {
  position: absolute;
  top: 64px;
  left: -16px;
  background: #FFFFFF;
  border: 1px solid #E7E5DF;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(30,37,50,.10);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 190px;
}
.nav-dd-menu a {
  font-size: 16px;
  font-weight: 600;
  color: #1E2532;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 7px;
}
.nav-dd-menu a:hover { background: #FAFAF8; color: #2E9BF7; }
.nav-cta {
  flex-shrink: 0;
  background: #2E9BF7;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 8px;
}
.nav-cta:hover { background: #1B84E0; color: #FFFFFF; }
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: #1E2532; }
.nav-mobile {
  background: #FFFFFF;
  border-bottom: 1px solid #E7E5DF;
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  font-size: 18px;
  font-weight: 600;
  color: #1E2532;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid #F1EFE9;
}
.nav-mobile-heading {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A867B;
  padding: 14px 0 4px;
}
.nav-mobile a.nav-mobile-sub { padding: 11px 0 11px 14px; border-bottom: none; }
.nav-mobile a.nav-mobile-sub-last { border-bottom: 1px solid #F1EFE9; }
.nav-mobile a.nav-mobile-last { border-bottom: none; }
.nav-mobile a.nav-mobile-cta {
  margin-top: 12px;
  background: #2E9BF7;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 8px;
  text-align: center;
  border-bottom: none;
}
.nav-mobile a.nav-mobile-cta:hover { background: #1B84E0; color: #FFFFFF; }
@media (max-width: 1150px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 1151px) {
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: #FFFFFF; }
.hero-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 40px 56px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.hero-sub {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: #3D4454;
  max-width: 620px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-onepager {
  font-size: 16px;
  font-weight: 500;
  color: #5A6272;
  text-decoration: none;
}
.hero-onepager:hover { color: #2E9BF7; }
.hero-visual {
  height: min(74vh, 700px);
  min-height: 480px;
}
.hero-trust-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.hero-trust {
  border-top: 1px solid #E7E5DF;
  padding-top: 22px;
  font-size: 16px;
  color: #6E6A5F;
}

/* ---------- Proof bar (container query: switches by its own width) ---------- */
.pb {
  container-type: inline-size;
  display: block;
  width: 100%;
  font-size: 15.5px;
  font-weight: 600;
  color: #1E2532;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.pb-wide { display: flex; align-items: center; column-gap: 14px; }
.pb-wide span { white-space: nowrap; }
.pb-dot { color: #C6C2B6; }
.pb-narrow {
  display: none;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 26px;
  row-gap: 10px;
}
.pb-narrow > span {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.pb-bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2E9BF7;
  flex-shrink: 0;
}
@container (max-width: 544px) {
  .pb-wide { display: none !important; }
  .pb-narrow { display: grid !important; }
}

/* ---------- Hero loop (phone demo) ---------- */
.hl-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}
.hl-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 470px;
  height: 980px;
  transform: translate(-50%, -50%);
}
.hl-frame-pos {
  position: absolute;
  left: 20px;
  top: 31px;
  width: 430px;
  height: 918px;
}
.hl-frame {
  width: 100%;
  height: 100%;
  background: #0b0d12;
  border-radius: 60px;
  padding: 13px;
  box-sizing: border-box;
  box-shadow: 0 40px 90px rgba(30,37,50,.28), 0 8px 22px rgba(30,37,50,.16);
}
.hl-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hl-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 114px;
  height: 32px;
  background: #0b0d12;
  border-radius: 17px;
  z-index: 40;
}
.hl-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 30px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1E2532;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.hl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
  flex-shrink: 0;
}
.hl-header img { width: 38px; height: 38px; display: block; }
.hl-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F4F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2E9BF7;
  font-size: 21px;
}
.hl-chat {
  flex: 1;
  padding: 8px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}
.hl-inputbar { padding: 8px 16px 26px; flex-shrink: 0; }
.hl-inputrow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid #DCE1EA;
  border-radius: 28px;
  padding: 13px 8px 13px 19px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30,37,50,.05);
}
.hl-inputfield {
  flex: 1;
  min-height: 28px;
  font-size: 19px;
  line-height: 1.42;
  padding: 2px 0;
}
.hl-placeholder {
  color: #9AA4B5;
  white-space: pre-wrap;
  word-break: break-word;
}
.hl-caret {
  display: none;
  width: 2px;
  height: 23px;
  background: #2E9BF7;
  vertical-align: -4px;
  animation: hlBlink 1s steps(1) infinite;
}
.hl-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2E9BF7;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  transition: transform .12s ease, background .12s ease;
}

/* ---------- Sections ---------- */
.section { background: #FFFFFF; border-top: 1px solid #E7E5DF; }
.section-alt { background: #FAFAF8; }
.container { max-width: 1280px; margin: 0 auto; padding: 84px 24px; }
.container-faq { max-width: 1020px; }
.kicker {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8A867B;
  font-variant-numeric: tabular-nums;
}
.lede {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 940px;
  text-wrap: pretty;
}
.section-title {
  margin: 0 0 40px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-title-security { max-width: 840px; text-wrap: pretty; }
.section-title-steps { line-height: 1.18; max-width: 880px; text-wrap: pretty; }
.section-title-faq { margin: 0 0 24px; }
.section-sub {
  margin: -22px 0 44px;
  font-size: 18px;
  line-height: 1.55;
  color: #3D4454;
  max-width: 780px;
  text-wrap: pretty;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(46,155,247,.4);
  color: #2E9BF7;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 15.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip-lede { margin-top: 28px; }
.scenario .chip-lede { margin-top: 0; }
.chip-sm { padding: 8px 15px; font-size: 15px; }

/* ---------- 02 Who It Serves ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.card {
  background: #FAFAF8;
  border: 1px solid #E7E5DF;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-alt .card { background: #FFFFFF; }
.card-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8A867B;
}
.card h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.card-body { margin: 0; font-size: 17.5px; line-height: 1.55; color: #3D4454; }
.card-strong { margin: 0; font-size: 17.5px; line-height: 1.55; font-weight: 600; color: #1E2532; }

/* ---------- 03 Security ---------- */
.sec-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border-top: 2px solid #1E2532;
  padding-top: 20px;
}
.sec-item-gold { border-top-color: #9C7C3C; }
.sec-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sec-item p { margin: 0; font-size: 17.5px; line-height: 1.55; color: #3D4454; }
.sec-more {
  display: inline-block;
  margin-top: 36px;
  font-size: 17.5px;
  font-weight: 600;
  color: #2E9BF7;
  text-decoration: none;
}
.sec-more:hover { text-decoration: underline; color: #1B7FD9; }

/* ---------- 04 Scenario ---------- */
.scenario {
  max-width: 900px;
  border-left: 3px solid #9C7C3C;
  padding-left: clamp(20px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.scenario-quote {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  color: #1E2532;
  text-wrap: pretty;
  font-variant-numeric: tabular-nums;
}
.scenario-note { margin: 0; font-size: 15px; color: #8A867B; max-width: 700px; }

/* ---------- 05 How It Gets Built ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #D8D4C9;
  padding-top: 18px;
}
.step-num {
  font-size: 15px;
  font-weight: 700;
  color: #8A867B;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0; font-size: 20px; font-weight: 700; }
.step p { margin: 0; font-size: 17.5px; line-height: 1.55; color: #3D4454; }

/* ---------- 06 FAQ ---------- */
#faq { scroll-margin-top: 90px; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid #E7E5DF; }
.faq-list details.faq-last { border-bottom: 1px solid #E7E5DF; }
.faq-list summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary span {
  color: #8A867B;
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-list details p {
  margin: 0;
  padding: 0 0 26px;
  font-size: 18px;
  line-height: 1.6;
  color: #3D4454;
  max-width: 790px;
}
.faq-link { color: #2E9BF7; font-weight: 600; }
.faq-link:hover { color: #1B7FD9; }

/* ---------- 07 Who's Behind ---------- */
.about {
  max-width: 790px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about p {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: #1E2532;
  text-wrap: pretty;
}
.about .about-tagline { font-weight: 600; color: #9C7C3C; }

/* ---------- Closing CTA ---------- */
.closing-inner { max-width: 1280px; margin: 0 auto; padding: 88px 24px 96px; }
.closing-inner h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 790px;
}
.closing-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: start;
}
.closing-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.closing-col-alt { gap: 10px; padding-top: 6px; }
.closing-note { margin: 0; font-size: 16px; line-height: 1.55; color: #5A6272; max-width: 420px; }
.closing-kit { font-size: 17.5px; font-weight: 600; color: #2E9BF7; text-decoration: none; }
.closing-kit:hover { color: #1B7FD9; text-decoration: underline; }
.closing-note-sm { margin: 0; font-size: 15px; line-height: 1.5; color: #8A867B; }

/* ---------- Footer ---------- */
.footer { background: #FFFFFF; border-top: 1px solid #E7E5DF; color: #1E2532; }
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-brand a { display: inline-block; }
.footer-brand img { height: 26px; width: auto; display: block; }
.footer-brand p { margin: 0; font-size: 16px; line-height: 1.5; color: #5A6272; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer-heading {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A867B;
}
.footer-col a { color: #1E2532; text-decoration: none; }
.footer-col a:hover { color: #2E9BF7; }
.footer-bottom-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px 36px; }
.footer-bottom {
  border-top: 1px solid #EEECE6;
  padding-top: 20px;
  font-size: 14.5px;
  color: #8A867B;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Video embed component (see js/video-embed.js) ---------- */
avi-video {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0d12;
  border-radius: 12px;
  overflow: hidden;
}
avi-video .av-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
avi-video .av-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: rgba(30,37,50,.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
avi-video .av-play:hover { background: #2E9BF7; transform: scale(1.05); }
avi-video .av-play svg { display: block; }
avi-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
