/* ═════════════════════════════════════════════════════════════════════════
   Tonix — 1:1 clone of the reference build (public/)
   Source: public/assets/index-BLUzHlYs.css (Tailwind v4) + inline JSX classes
   Every value is the resolved Tailwind output from the reference build.
   ═════════════════════════════════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --white:#FFFFFF;
  --gray-50:#F9FAFB;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-300:#D1D5DB;
  --gray-400:#9CA3AF;
  --gray-500:#6B7280;
  --gray-600:#4B5563;
  --gray-700:#374151;
  --gray-800:#1F2937;
  --gray-900:#111827;

  --blue-50:#EFF6FF;
  --blue-100:#DBEAFE;
  --blue-500:#3B82F6;
  --blue-600:#2563EB;
  --blue-700:#1D4ED8;
  --blue-900:#1E3A8A;

  --green-50:#F0FDF4;
  --green-100:#DCFCE7;
  --green-200:#BBF7D0;
  --green-500:#22C55E;
  --green-600:#16A34A;
  --green-700:#15803D;
  --green-900:#14532D;

  --purple-100:#F3E8FF;
  --purple-600:#9333EA;

  --yellow-50:#FEFCE8;
  --yellow-100:#FEF9C3;
  --yellow-500:#EAB308;
  --yellow-600:#CA8A04;
  --yellow-900:#713F12;

  --red-50:#FEF2F2;
  --red-200:#FECACA;
  --red-900:#7F1D1D;

  --font:'Google Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

  --shadow-sm:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);
  --ease-out:cubic-bezier(0.16,1,0.3,1);
}

@font-face{
  font-family:'Google Sans';
  src:url('./fonts/GoogleSans.ttf') format('truetype');
  font-weight:400 700;
  font-display:swap;
}

html{font-size:16px;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}

body{
  font-family:var(--font);
  color:var(--gray-900);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{display:block;max-width:100%}
.hidden,[hidden]{display:none!important}

/* ═════════════════════════════════════════════════════════════════════════
   Page: min-h-screen bg-gradient-to-b from-white to-gray-50
   ═════════════════════════════════════════════════════════════════════════ */
.page{
  min-height:100vh;
  min-height:100dvh;
  background:linear-gradient(to bottom,var(--white),var(--gray-50));
}

/* max-w-7xl mx-auto px-4 md:px-8 */
.container{
  max-width:80rem;
  margin-left:auto;
  margin-right:auto;
  padding-left:16px;
  padding-right:16px;
}
@media (min-width:768px){
  .container{padding-left:32px;padding-right:32px}
}

/* ═════════════════════════════════════════════════════════════════════════
   Nav: sticky top-0 z-50 bg-white px-6 md:px-8 py-4
        border-b border-gray-200 shadow-sm
   ═════════════════════════════════════════════════════════════════════════ */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  background:var(--white);
  border-bottom:1px solid var(--gray-200);
  box-shadow:var(--shadow-sm);
}
@media (min-width:768px){
  .nav{padding-left:32px;padding-right:32px}
}

.nav-brand{display:flex;align-items:center;gap:8px}

.nav-logo{
  width:32px;
  height:32px;
  border-radius:8px;
  background:var(--blue-600);
  flex-shrink:0;
}

.nav-wordmark{
  font-size:24px;
  line-height:32px;
  font-weight:700;
  color:#000000;
}

.nav-right{display:flex;align-items:center;gap:8px}

/* AppKit connect button — 40px tall, 8px radius, accent #0988F0 */
.wallet-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px;
  height:40px;
  width:116px;
  border-radius:8px;
  background:#0988F0;
  color:var(--white);
  font-size:14px;
  font-weight:500;
  line-height:16px;
  white-space:nowrap;
  transition:background 120ms var(--ease-out);
}
.wallet-btn:hover{background:#0879D8}
.wallet-btn:disabled{opacity:.5;cursor:not-allowed}

.wallet-btn-account{
  background:var(--gray-100);
  color:var(--gray-900);
  font-variant-numeric:tabular-nums;
}
.wallet-btn-account:hover{background:var(--gray-200)}

/* ═════════════════════════════════════════════════════════════════════════
   Hero: py-12 md:py-20
   grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-12 items-center
   ═════════════════════════════════════════════════════════════════════════ */
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  align-items:center;
  padding-top:48px;
  padding-bottom:48px;
}
@media (min-width:768px){
  .hero-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:48px;
    padding-top:80px;
    padding-bottom:80px;
  }
}

/* Eyebrow: inline-flex items-center gap-2 bg-blue-100 text-blue-600
            px-4 py-2 rounded-lg font-semibold mb-6 */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 16px;
  margin-bottom:24px;
  border-radius:8px;
  background:var(--blue-100);
  color:var(--blue-600);
  font-size:16px;
  font-weight:600;
  line-height:1.5;
}
.eyebrow svg{width:18px;height:18px;flex-shrink:0}

/* h1: text-3xl md:text-5xl font-bold text-gray-900 mb-4 */
.hero-h1{
  font-size:30px;
  line-height:36px;
  font-weight:700;
  color:var(--gray-900);
  margin-bottom:16px;
}
@media (min-width:768px){
  .hero-h1{font-size:48px;line-height:1}
}
.txt-blue{color:var(--blue-600)}
.txt-yellow{color:var(--yellow-500)}

/* p: text-base md:text-xl text-gray-600 mb-8 */
.hero-p{
  font-size:16px;
  line-height:24px;
  color:var(--gray-600);
  margin-bottom:32px;
}
@media (min-width:768px){
  .hero-p{font-size:20px;line-height:28px}
}

/* Trust line: flex items-center gap-2 text-gray-600 */
.trust-line{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--gray-600);
  font-size:16px;
  line-height:24px;
}
.trust-line span{font-size:14px;line-height:20px}
@media (min-width:768px){
  .trust-line{font-size:20px;line-height:28px}
  .trust-line span{font-size:16px;line-height:24px}
}
.trust-line svg{width:20px;height:20px;flex-shrink:0;color:var(--green-500)}

/* right column: relative flex justify-center items-center */
.hero-right{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* ── Disconnected prompt: text-center p-8, p.text-gray-600 ── */
.flow-disconnected{
  text-align:center;
  padding:32px;
  width:fit-content;
  max-width:100%;
  margin:0 auto;
  box-sizing:border-box;
}
.flow-disconnected p{
  color:var(--gray-600);
  font-size:16px;
  line-height:24px;
}

/* ── Wizard card: w-full max-w-md mx-auto p-6 bg-white
      rounded-lg border border-gray-200 ── */
.flow-card{
  width:100%;
  max-width:28rem;
  margin:0 auto;
  padding:24px;
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:8px;
}

/* progress: flex gap-2 mb-6; bar flex-1 h-1 rounded */
.flow-progress{display:flex;gap:8px;margin-bottom:24px}
.flow-bar{flex:1;height:4px;border-radius:4px;background:var(--gray-200);transition:background 200ms}
.flow-bar.is-done{background:var(--green-500)}
.flow-bar.is-active{background:var(--blue-500)}

/* steps */
.flow-step{display:flex;flex-direction:column;gap:16px;animation:fadeIn .2s var(--ease-out)}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}

/* h3: font-semibold text-lg */
.flow-title{
  font-size:18px;
  line-height:28px;
  font-weight:600;
  color:var(--gray-900);
}

/* p: text-sm text-gray-600 */
.flow-addr{
  font-size:14px;
  line-height:20px;
  color:var(--gray-600);
  word-break:break-all;
}

/* .bg-blue-50 p-3 rounded text-sm text-blue-900 */
.flow-info{
  padding:12px;
  border-radius:4px;
  font-size:14px;
  line-height:20px;
}
.flow-info-blue{background:var(--blue-50);color:var(--blue-900)}
.flow-info-yellow{
  background:var(--yellow-50);
  color:var(--yellow-900);
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Full-width buttons: w-full px-4 py-2 rounded-lg font-semibold */
.flow-btn{
  width:100%;
  padding:8px 16px;
  border-radius:8px;
  color:var(--white);
  font-size:16px;
  font-weight:600;
  line-height:24px;
  transition:background 120ms var(--ease-out),opacity 120ms;
}
.flow-btn:disabled{opacity:.5;cursor:not-allowed}
.flow-btn-blue{background:var(--blue-600)}
.flow-btn-blue:hover:not(:disabled){background:var(--blue-700)}
.flow-btn-green{background:var(--green-600)}
.flow-btn-green:hover:not(:disabled){background:var(--green-700)}
.flow-btn-gray{background:var(--gray-200);color:var(--gray-800)}
.flow-btn-gray:hover:not(:disabled){background:var(--gray-300)}

/* status row: flex items-center gap-2 */
.flow-status-row{display:flex;align-items:center;gap:8px}
.flow-spinner{
  width:16px;
  height:16px;
  flex-shrink:0;
  border-radius:50%;
  border:2px solid currentColor;
  border-top-color:transparent;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* tx hash: text-xs opacity-75 */
.flow-tx{font-size:12px;line-height:16px;opacity:.75;word-break:break-all}

/* processing: flex items-center justify-center gap-2 text-blue-600 */
.flow-processing{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--blue-600);
  font-size:16px;
}

/* done: space-y-4 text-center */
.flow-done{
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:center;
  align-items:stretch;
}
/* icon: flex justify-center, text-4xl text-green-500 */
.flow-check{
  display:flex;
  justify-content:center;
  color:var(--green-500);
}
.flow-check svg{width:36px;height:36px}
.flow-done-text{
  font-size:14px;
  line-height:20px;
  color:var(--gray-600);
}

/* error: mt-4 p-3 bg-red-50 border border-red-200 rounded flex gap-2
          text-sm text-red-900 */
.flow-error,
.flow-success{
  display:flex;
  gap:8px;
  margin-top:16px;
  padding:12px;
  border-radius:4px;
  font-size:14px;
  line-height:20px;
  animation:fadeIn .2s var(--ease-out);
}
.flow-error{
  background:var(--red-50);
  border:1px solid var(--red-200);
  color:var(--red-900);
}
.flow-success{
  background:var(--green-50);
  border:1px solid var(--green-200);
  color:var(--green-900);
}
.flow-error svg,
.flow-success svg{
  width:16px;
  height:16px;
  flex-shrink:0;
  margin-top:2px;
}

/* ═════════════════════════════════════════════════════════════════════════
   Features: bg-white border-t border-gray-200 py-12 md:py-16
             grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-6 md:gap-8
   ═════════════════════════════════════════════════════════════════════════ */
.features{
  background:var(--white);
  border-top:1px solid var(--gray-200);
  padding-top:48px;
  padding-bottom:48px;
}
@media (min-width:768px){
  .features{padding-top:64px;padding-bottom:64px}
}

.features-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
@media (min-width:640px){
  .features-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:768px){
  .features-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
}

/* feature: flex flex-col gap-4 */
.feature{display:flex;flex-direction:column;gap:16px}

/* icon box: w-12 h-12 rounded-lg flex items-center justify-center text-2xl */
.feature-icon{
  width:48px;
  height:48px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.feature-icon svg{width:24px;height:24px}
.feature-icon-blue{background:var(--blue-100);color:var(--blue-600)}
.feature-icon-green{background:var(--green-100);color:var(--green-600)}
.feature-icon-purple{background:var(--purple-100);color:var(--purple-600)}
.feature-icon-yellow{background:var(--yellow-100);color:var(--yellow-600)}

/* h3: font-semibold text-gray-900 text-lg */
.feature-title{
  font-size:18px;
  line-height:28px;
  font-weight:600;
  color:var(--gray-900);
}

/* p: text-gray-600 text-sm md:text-base */
.feature-text{
  font-size:14px;
  line-height:20px;
  color:var(--gray-600);
}
@media (min-width:768px){
  .feature-text{font-size:16px;line-height:24px}
}

/* ═════════════════════════════════════════════════════════════════════════
   Footer: bg-gray-50 border-t border-gray-200 py-8 md:pt-8
   ═════════════════════════════════════════════════════════════════════════ */
.footer{
  background:var(--gray-50);
  border-top:1px solid var(--gray-200);
  padding-top:32px;
  padding-bottom:32px;
}

/* p: text-center text-gray-500 text-xs md:text-sm mb-4 */
.footer-tag{
  text-align:center;
  color:var(--gray-500);
  font-size:12px;
  line-height:16px;
  margin-bottom:16px;
}
@media (min-width:768px){
  .footer-tag{font-size:14px;line-height:20px}
}

/* p: text-center text-gray-400 text-xs */
.footer-copy{
  text-align:center;
  color:var(--gray-400);
  font-size:12px;
  line-height:16px;
}

/* ═════════════════════════════════════════════════════════════════════════
   Toasts
   ═════════════════════════════════════════════════════════════════════════ */
.toast-container{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:400;
  display:flex;
  flex-direction:column;
  gap:8px;
  width:calc(100% - 32px);
  max-width:380px;
  pointer-events:none;
}
.toast{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  background:var(--gray-900);
  color:var(--white);
  border-radius:8px;
  box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  font-size:13px;
  font-weight:500;
  line-height:1.45;
  pointer-events:auto;
  cursor:pointer;
  user-select:none;
  animation:toastIn .22s var(--ease-out);
}
.toast::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  margin-top:6px;
  flex-shrink:0;
  background:var(--gray-400);
}
.toast-success::before{background:#4ADE80}
.toast-error::before{background:#F87171}
.toast-warning::before{background:#FBBF24}
.toast-info::before{background:#60A5FA}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(8px)}}
.toast.is-leaving{animation:toastOut .2s var(--ease-out) forwards}

/* ═════════════════════════════════════════════════════════════════════════
   A11y
   ═════════════════════════════════════════════════════════════════════════ */
:focus-visible{outline:2px solid var(--blue-600);outline-offset:2px;border-radius:4px}
button:focus:not(:focus-visible){outline:none}

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