:root{
  --blue:#2c7ef1;
  --text:#04060C;
  --bg:#f7f9fc;
  --muted:#667085;
  --card:#ffffff;
  --footer:#f3f7ff;
  --ring: rgba(44,126,241,0.35);
  --radius: 16px;
  --shadow: 0 6px 24px rgba(4,6,12,0.06), 0 2px 8px rgba(4,6,12,0.04);
}
*{box-sizing:border-box}
html{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.6;color:var(--text);}
body{margin:0;background:var(--bg)}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1120px;margin:0 auto;padding:24px}
.header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid #eaeef5}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:18px;color:var(--text);}
.brand img{height:28px;width:28px}
.menu{display:flex;gap:14px;align-items:center}
.menu a{padding:10px 12px;border-radius:10px}
.menu a.active{background:#edf4ff;color:#0b57d0}
.cta{padding:10px 16px;border-radius:14px;background:var(--blue);color:#fff;box-shadow:var(--shadow)}
.burger{display:none;background:none;border:0;font-size:20px;padding:10px;border-radius:10px}
.hero{display:grid;place-items:center;padding:72px 24px;background:linear-gradient(180deg,#fff, #f7f9fc)}
.hero h1{font-size:44px;line-height:1.1;margin:0 0 14px 0;text-align:center;letter-spacing:-0.02em}
.hero p{font-size:18px;color:#475467;max-width:760px;text-align:center;margin:0 auto 24px}
.badges{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.badge{background:#fff;border:1px solid #e6ebf3;padding:8px 12px;border-radius:999px;font-size:14px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid #e6ebf3;padding:22px;border-radius:var(--radius);box-shadow:var(--shadow)}
.card h3{margin:0 0 8px 0}
.card p{margin:0;color:#475467}
.notice{border-left:4px solid var(--blue);background:#eef5ff;padding:16px;border-radius:12px}
.kbd{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;background:#f1f4f9;border:1px solid #e3e8f2;padding:2px 6px;border-radius:8px}
.section{padding:40px 24px}
.section h2{margin-top:0;margin-bottom:12px}
.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th,.table td{text-align:left;padding:12px 14px;background:#fff;border:1px solid #eceff5}
.table th:first-child,.table td:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}
.table th:last-child,.table td:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}
.pricing{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.price-card{background:#fff;border:1px solid #e6ebf3;border-radius:18px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.price-card h3{margin:0 0 8px}
.price{font-size:28px;font-weight:800;margin:4px 0 12px}
.features{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.features li{display:flex;gap:8px;align-items:flex-start}
.features li::before{content:"•";margin-top:2px}
.footer{background:var(--footer);border-top:1px solid #e6ebf3;padding:32px 24px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 2fr;gap:16px}
.footer h4{margin:0 0 10px 0}
.footer small{color:#6b7280}
.copyright{text-align:center;margin-top:18px;color:#6b7280}
.allowed-prohibited{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.allowed-prohibited .card h3{display:flex;align-items:center;gap:8px}
.tag{display:inline-block;padding:6px 10px;background:#eef2ff;border:1px solid #e0e7ff;border-radius:999px;font-size:12px;margin-right:6px}
/* Responsive */
@media (max-width: 1024px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .pricing{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .menu{display:none;flex-direction:column;align-items:flex-start;background:#fff;position:absolute;left:0;right:0;top:64px;padding:10px 16px;border-bottom:1px solid #eaeef5}
  .menu.open{display:flex}
  .burger{display:inline-block}
  .hero{padding:56px 16px}
  .hero h1{font-size:32px}
  .grid{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
  .allowed-prohibited{grid-template-columns:1fr}
}
input, textarea, select, button{font:inherit}
input, textarea{width:100%;padding:12px 14px;border:1px solid #e3e8f2;border-radius:12px;background:#fff}
input:focus, textarea:focus{outline: none;box-shadow:0 0 0 4px var(--ring);border-color:var(--blue)}
button{cursor:pointer;border:none}
.form{display:grid;gap:14px}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form .row > div{display:flex;flex-direction:column;gap:8px}
.badgelist{display:flex;gap:8px;flex-wrap:wrap}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23667085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px;
  border: 1px solid #e3e8f2;
  padding: 12px 40px 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--ring);
}

select:hover {
  border-color: #c3d4f6;
}

/* --- Footer mobile fixes --- */
@media (max-width: 640px){
  .footer-grid{grid-template-columns:1fr !important}
  .footer{padding:24px 16px}
  .footer h4{font-size:16px}
  .footer p, .footer li, .footer small{font-size:14px}
  .footer a{word-break:break-word}
  .footer .table{width:100%; border-collapse:separate; border-spacing:0 8px}
  .footer .table tr{display:block; margin-bottom:8px}
  .footer .table th, .footer .table td{
    display:block;
    width:100%;
    padding:10px 12px;
    border-radius:12px !important;
    border:1px solid #e6ebf3;
    background:#fff;
  }
  .footer .table th{
    background:#f8fafc;
  }
}

/* --- Fix CTA active bug --- */
.menu a.cta.active{
  background: var(--blue) !important;
  color: #fff !important;
}

/* --- Pricing page enhancements --- */
.hero{padding:72px 0;background:linear-gradient(180deg,#ffffff, #f6f9ff);}
.hero-wrap{max-width:920px;margin:auto;text-align:center}
.lead{font-size:1.125rem;color:var(--muted);margin-top:8px}
.billing-toggle{display:inline-flex;gap:6px;background:#fff;border:1px solid #e6ebf3;padding:6px;border-radius:999px;box-shadow:var(--shadow);margin-top:20px}
.toggle-btn{border:0;background:transparent;padding:10px 14px;border-radius:999px;cursor:pointer;font-weight:600}
.toggle-btn.active{background:#eef4ff;color:#0b56d0;box-shadow:inset 0 0 0 1px var(--ring)}
.badge{font-size:.75rem;font-weight:700;margin-left:8px;background:#e8f3ff;border:1px solid #cfe4ff;border-radius:999px;padding:2px 8px}
.trust{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.pill{border:1px solid #e6ebf3;border-radius:999px;padding:6px 10px;background:#fff;color:#475467;font-size:.9rem}

.plans{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.plan{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;position:relative;border:1px solid #edf1f7}
.plan .plan-head h3{margin:0 0 4px}
.plan .muted{color:var(--muted);margin:0 0 10px}
.price{font-size:2.4rem;font-weight:800;margin:10px 0 14px}
.price .currency{font-weight:700;opacity:.9;margin-right:4px}
.price .period{font-size:1rem;font-weight:500;color:var(--muted);margin-left:6px}
.price.enterprise{font-size:2rem;color:#0b56d0}
.features{list-style:none;padding:0;margin:0 0 16px}
.features li{padding-left:24px;position:relative;margin:8px 0}
.features li::before{content:'✓';position:absolute;left:0;top:0;color:#0a7a2f;font-weight:800}
.btn{display:inline-block;text-align:center;font-weight:700;border-radius:12px;padding:12px 16px;border:1px solid #dbe3ef;background:#fff;color:#0b56d0}
.btn:hover{text-decoration:none;box-shadow:0 2px 8px rgba(4,6,12,0.08)}
.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn.w-full{width:100%}
.plan .footnote{font-size:.85rem;color:var(--muted);margin-top:10px}
.featured{border:2px solid #cfe4ff;transform:translateY(-4px)}
.ribbon{position:absolute;top:10px;right:10px;background:#0b56d0;color:#fff;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:700}

.note .notice{margin-top:8px}
.nolist{list-style:none;padding:0;margin:0}
.two-col{columns:2;gap:24px}
.alt{background:var(--footer)}

.table-wrap{overflow:auto;border:1px solid #edf1f7;border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.table.compare{width:100%;border-collapse:collapse}
.table.compare th,.table.compare td{padding:12px;border-bottom:1px solid #edf1f7;text-align:left}
.table.compare thead th{background:#f3f7ff}
.table.compare tr:nth-child(even) td{background:#fbfdff}

.faqs{display:grid;gap:10px;margin-top:10px}
.faq{background:#fff;border:1px solid #e6ebf3;border-radius:12px;padding:12px}
.faq summary{cursor:pointer;font-weight:600;list-style:none}
.faq[open]{box-shadow:var(--shadow)}
.faq p{margin:8px 0 0}
.notice.slim{padding:10px 12px}

@media (max-width: 1100px){
  .plans{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 660px){
  .plans{grid-template-columns:1fr}
  .two-col{columns:1}
  .price{font-size:2rem}
}

/* Keep featured card on same level */
.featured{ transform: none !important; }
