/* Basic reset */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; 
}

:root{
  --accent:#9da5ac;
  --bg:#ffffff;
  --text:#000000;
  --muted:#d7dadd;
}

/* layout */
.container{ max-width:1000px; margin:24px auto; padding:16px; background:var(--bg); }

/* header */
.header{ display:flex; justify-content:space-between; align-items:center; padding:12px 0; }
.brand{ display:flex; align-items:center; gap:10px; }
.header .logo{ width:46px; height:46px; border-radius:8px; background:var(--accent); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; }
/* .logo{ width:46px; height:46px; border-radius:8px; background:var(--accent); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; } */
.nav a{ margin-left:12px; color:var(--text); text-decoration:none; font-weight:600; }

/* hero */
.hero{ 
  background:linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02)); 
  border-radius:12px; 
  padding:28px; 
  display:flex; 
  gap:20px; 
  align-items:center; 
}
.hero h1{ font-size:22px; color:var(--accent); margin-bottom:6px; }
.hero p{ color:var(--text); line-height:1.5; }

/* buttons */
.btn{ 
  display:inline-block; 
  padding:10px 16px; 
  border-radius:8px; 
  text-decoration:none; 
  border:none; 
  cursor:pointer; 
  font-weight:700; 
}
.btn-primary{ background:var(--accent); color:#fff; }
.btn-outline{ background:#fff; color:var(--accent); border:1.5px solid var(--accent); }
.btn-outline:hover{ background:var(--accent); color:#fff; transition:0.2s ease-in-out; }

/* cards grid */
.grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:12px; margin-top:16px; }
.card{ 
  border-radius:10px; 
  padding:12px; 
  background:#fff; 
  box-shadow: 0 4px 14px rgba(0,0,0,0.05); 
  cursor:pointer; 
  display:flex; 
  flex-direction:column; 
  gap:8px; 
  align-items:start; 
  transition:transform .14s ease; 
  border:1px solid var(--muted);
}
.card:hover{ transform:translateY(-6px); }
.card .icon{ 
  width:56px; 
  height:56px; 
  border-radius:8px; 
  background:rgba(157,165,172,0.1); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-weight:700; 
  color:var(--accent); 
}

/* chat */
.chat-header{ display:flex; justify-content:space-between; align-items:center; padding:12px; border-bottom:1px solid var(--muted); background:var(--bg); }
.chat-body{ height:60vh; overflow:auto; padding:12px; display:flex; flex-direction:column; gap:10px; background:#f9f9f9; }
.msg{ max-width:78%; padding:10px 12px; border-radius:10px; }
.msg.user{ margin-left:auto; background:var(--accent); color:white; }
.msg.bot{ margin-right:auto; background:#e9ebed; color:var(--text); }

/* input */
.chat-input{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--muted); background:var(--bg); }
.chat-input textarea{ flex:1; min-height:44px; resize:vertical; padding:8px; border-radius:8px; border:1px solid var(--muted); }

/* mobile */
@media (max-width:600px){
  .hero{ flex-direction:column; align-items:flex-start; }
  .chat-body{ height:50vh; }
}

/* selected state style */
.card.selected {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 20px rgba(157,165,172,0.2);
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(157,165,172,0.08), #fff);
}
.state-card { 
  text-align:left; 
  display:flex; 
  flex-direction:column; 
  align-items:flex-start; 
  padding:12px; 
  border:none; 
}
.state-card:focus { outline: 3px solid rgba(157,165,172,0.25); outline-offset:3px; }

/* optional muted text tweaks */
h1,h2,h3,h4,p,span,div{ color:var(--text); }


/* ===========================
   Login page: Glassy / Modern
   Paste at the END of styles.css
   =========================== */

/* Stronger page-level subtle background to show through the frosted card */
body {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Center container vertically on taller screens while keeping responsiveness */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;       /* centers vertically */
  min-height: calc(100vh - 48px);
  padding: 28px;
  background: transparent;        /* keep original bg behavior */
}

/* Frosted glass card override for the login box */
.container .card {
  width: 100%;
  max-width: 520px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.28));
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition: transform .16s ease, box-shadow .16s ease;
}

/* Subtle lift on hover/focus to hint interactivity */
.container .card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(15,23,42,0.10); }

/* Heading */
.container h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1f2937;
  letter-spacing: -0.01em;
}

/* Inputs: modern, accessible */
.container input[type="email"],
.container input[type="password"],
.container input[type="text"],
.container textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(125,130,137,0.16);
  background: rgba(255,255,255,0.9);
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: box-shadow .14s ease, border-color .14s ease, transform .12s ease;
  box-shadow: 0 4px 10px rgba(18,24,30,0.03) inset;
}


/* Placeholder color */
.container input::placeholder { color: rgba(30,41,59,0.4); }

/* Input focus state (keeps accessibility intact) */
.container input:focus,
.container textarea:focus {
  border-color: rgba(0,133,204,0.9);
  box-shadow: 0 6px 22px rgba(0,133,204,0.08);
  transform: translateY(-1px);
}

/* Buttons: boosted glassy appearance but same classes as before */
.btn.btn-primary {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #0085cc 0%, #0073b3 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 26px rgba(1, 92, 150, 0.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.btn-primary:active { transform: translateY(1px); }

/* Google button: keep btn-outline class but enhance visuals */
.btn.btn-outline {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.72));
  border: 1px solid rgba(157,165,172,0.18);
  color: #2c3e50;
  box-shadow: 0 6px 18px rgba(25,40,56,0.06);
}
.btn.btn-outline:hover {
  background: linear-gradient(180deg, rgba(0,133,204,0.08), rgba(0,133,204,0.03));
  color: #fff;
  box-shadow: 0 12px 34px rgba(0,115,179,0.12);
}

/* Status message styling */
#status {
  margin-top: 10px;
  color: rgba(31,41,55,0.9);
  font-size: 14px;
  min-height: 18px;
  line-height: 18px;
}

/* Signup link: subtle underline on hover */
.card p a {
  color: #0b5fcc;
  text-decoration: none;
  font-weight: 600;
}
.card p a:hover { text-decoration: underline; color: #004e8a; }

/* Small-screen tweaks */
@media (max-width: 600px) {
  .container { padding: 18px; min-height: auto; }
  .container .card { padding: 18px; border-radius: 12px; }
  .btn { width: 100%; display: block; }
  #googleSignInBtn { margin-top: 8px; }
}

/* ============================
   Country page: Visual polish
   (Append this block at the END of styles.css)
   ============================ */

/* Make the country grid centered and slightly larger cards */
.grid {
  justify-items: center;         /* center cards within each grid cell */
  align-items: start;
  gap: 16px;
  margin-top: 18px;
}

/* Bigger, glassy country cards for easier selection */
.card {
  width: 100%;
  max-width: 340px;             /* control card width */
  padding: 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(250,250,251,0.80));
  border: 1px solid rgba(157,165,172,0.12);
  box-shadow: 0 12px 30px rgba(20,30,40,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.12s ease;
}

/* Slight lift for hover */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(20,30,40,0.10);
  border-color: rgba(157,165,172,0.22);
}

/* Icon style: circular badge with stronger accent color */
.card .icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(157,165,172,0.08), rgba(157,165,172,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 20px;
}

/* country title (bolder) */
.card > div[style*="font-weight:700"] {
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #111827;
}

/* helper text smaller and more muted */
.card div[style*="font-size:13px"] {
  font-size: 13px;
  color: rgba(30,41,59,0.5);
}

/* selected state (keep existing .selected behavior but visual tweak) */
.card.selected {
  border: 2px solid rgba(0,133,204,0.95);
  box-shadow: 0 20px 50px rgba(0,115,179,0.12);
  background: linear-gradient(180deg, rgba(0,133,204,0.03), rgba(255,255,255,0.96));
  transform: translateY(-8px);
}

/* Make header area slightly more compact for the country selection flow */
.header {
  padding: 10px 0;
}

/* smaller nav links for this flow */
.nav a {
  margin-left: 10px;
  font-size: 14px;
}

/* Responsive - stack nicely on small screens */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card { max-width: 100%; padding: 14px; border-radius: 12px; }
  .card .icon { width: 56px; height: 56px; font-size: 18px; }
}

/* ================
   Username panel
   (append to end of styles.css)
   ================ */

   .user-panel { display: flex; align-items: center; gap: 10px; }

   .user-name {
     font-weight: 700;
     font-size: 15px;
     color: #0b5fcc;   /* blue link color matching theme */
     text-decoration: none;
     padding: 6px 8px;
     border-radius: 8px;
     transition: background .12s ease, transform .12s ease;
   }
   
   .user-name:hover {
     background: rgba(11,95,204,0.08);
     transform: translateY(-2px);
   }
   
   #logoutBtn {
     border-radius: 8px;
     font-weight: 600;
     cursor: pointer;
   }
   
   /* unify header spacing across country, state, chat pages */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-top: 12px;
}

/* brand layout fix */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* =========================
   Glass / Liquid Top Panel
   ========================= */

/* Container for the frosted glass nav */
nav {
  position: fixed;
  top: 1px;
  left: 24px;
  right: 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 1100;

  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(250,250,251,0.30) 100%);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(10, 20, 30, 0.12), inset 0 1px 0 rgba(255,255,255,0.6);

  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);

  background-color: rgba(255,255,255,0.85);
  transition: transform 0.22s cubic-bezier(.2,.9,.25,1), box-shadow 0.22s ease;
}

nav:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(10, 20, 30, 0.15), inset 0 1px 0 rgba(255,255,255,0.65);
}

@media (max-width: 767px) {
  nav {
      left: 12px;
      right: 12px;
      padding: 0 14px;
      height: 60px;
  }
}

.nav-left { display: flex; align-items: center; gap: 12px; }
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--near-black);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(0,0,0,0.06));
  color: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.06);
}

.nav-center { display: flex; gap: 22px; align-items: center; }

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: rgba(26,26,26,0.88);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.18s;
}

.nav-link:hover {
  color: var(--primary-blue);
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.nav-right { display: flex; align-items: center; gap: 14px; }

.sign-in {
  color: rgba(26,26,26,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.sign-in:hover {
  color: var(--primary-blue);
  background: rgba(0,0,0,0.03);
}

.btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.16s;
}

.btn-outline {
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06));
  color: var(--primary-blue);
  border: 1px solid rgba(0,133,204,0.12);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(0,133,204,0.95), rgba(0,115,179,0.95));
  color: white;
}


/* Pricing */
.pricing-section { padding: 80px 0; }
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.price { font-size: 48px; font-weight: 700; margin: 16px 0; font-family: var(--font-serif); }
.period { color: var(--medium-gray); margin-bottom: 24px; }
.features-list { list-style: none; margin: 24px 0; text-align: left; }
.features-list li { padding: 8px 0; display: flex; align-items: center; gap: 12px; }
.checkmark { color: var(--primary-blue); font-size: 18px; }
.pricing-note { text-align: center; margin-top: 40px; color: var(--medium-gray); font-size: 14px; }

/* Glassy button base (used by Get Started) */
.btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: transform 0.16s cubic-bezier(.2,.9,.25,1), box-shadow 0.16s ease, background 0.16s ease;
  backdrop-filter: none;
}

/* Outline button reworked as glassy pill */
.btn-outline {
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06));
  color: var(--primary-blue);
  border: 1px solid rgba(0,133,204,0.12);
  box-shadow: 0 6px 18px rgba(0, 133, 204, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: linear-gradient(180deg, rgba(0,133,204,0.08), rgba(0,133,204,0.04));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,133,204,0.12);
}

/* Primary button (stronger glass + accent) */
.btn-primary {
  background: linear-gradient(180deg, rgba(0,133,204,0.95), rgba(0,115,179,0.95));
  color: var(--white);
  border: none;
  box-shadow: 0 10px 30px rgba(0,115,179,0.20);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0,115,179,0.28);
}

/* Keep small visual balance on mobile */
@media (max-width: 480px) {
  .nav-center { display: none; }
  .logo { font-size: 16px; }
  .logo-icon { width: 28px; height: 28px; font-size: 12px; border-radius: 6px; }
  .btn { padding: 8px 12px; font-size: 14px; }
}

/* ============================
   Comparison Chat (4 columns)
   ============================ */

   .comparison-chat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
  }
  
  .comparison-chat-column {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border-gray);
    padding: 18px 20px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    text-align: center;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  
  /* Subtle gradient top borders (different per column) */
  .comparison-chat-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
  }
  
  /* 1: Without FlipDry – warm orange/yellow */
  .comparison-chat-column:nth-child(1)::before {
    background: linear-gradient(90deg, #fb923c, #facc15);
  }
  
  /* 2: With FlipDry – blue/teal */
  .comparison-chat-column:nth-child(2)::before {
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
  }
  
  /* 3: For individuals – purple/pink */
  .comparison-chat-column:nth-child(3)::before {
    background: linear-gradient(90deg, #a855f7, #ec4899);
  }
  
  /* 4: For teams – indigo/blue */
  .comparison-chat-column:nth-child(4)::before {
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
  }
  
  /* Hover elevation */
  .comparison-chat-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  }
  
  .comparison-chat-column h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .comparison-chat-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
  }
  
  /* Centered text with icon to the left */
  .comparison-chat-column li {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
  }
  
  /* Base bullet icon style */
  .comparison-chat-column li::before {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
  }
  
  /* Column-specific icons */
  .comparison-chat-column:nth-child(1) li::before {
    content: "•";
  }
  
  .comparison-chat-column:nth-child(2) li::before {
    content: "✓";
  }
  
  .comparison-chat-column:nth-child(3) li::before {
    content: "✦";
  }
  
  .comparison-chat-column:nth-child(4) li::before {
    content: "→";
  }
  
  /* ============ Responsive tweaks ============ */
  
  @media (max-width: 960px) {
    .comparison-chat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }
  }
  
  @media (max-width: 640px) {
    .comparison-chat-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
  
    .comparison-chat-column {
      padding: 14px 16px 16px;
      border-radius: 14px;
    }
  
    .comparison-chat-column h3 {
      font-size: 16px;
      margin-bottom: 10px;
    }
  
    .comparison-chat-column li {
      font-size: 13px;
    }
  }
  
  .help-search-notice {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: #6366f1;
    background: #eef2ff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.08);
  }
  
 /* Legal page heading styles */
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2937;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 6px;
  color: #374151;
}

.legal-content p,
.legal-content ul li {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.legal-content ul {
  margin-top: 4px;
  padding-left: 18px;
}
 