:root {
  --main: #2d6cdf;
  --accent: #ff9900;
  --bg: #f7f7fb;
  --text: #222;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

section {
  padding: 60px 20px;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
}
h1,
h2,
h3 {
  line-height: 1.4;
  font-weight: 700;
}
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.6rem;
}
p {
  font-size: 1rem;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
}
.btn-main {
  background: var(--main);
  color: #fff;
}
.btn-line {
  background: #06c755;
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--main);
  color: var(--main);
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  text-align: center;
}

header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
header .logo {
  font-size: 1.1rem;
  font-weight: 700;
}
nav a {
  margin-left: 15px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
}

.hero {
  background: linear-gradient(180deg, #eef3ff, #fff);
  text-align: center;
  padding: 70px 20px 60px;
}
.hero h1 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 25px;
}
.hero .cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.grid3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid2 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.badge {
  display: inline-block;
  background: #e8f0ff;
  color: var(--main);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

/* price */
.plan {
  border: 2px solid #ddd;
  border-radius: 18px;
  padding: 16px;
}
.plan.recommend {
  border-color: var(--main);
  box-shadow: 0 10px 25px rgba(45, 108, 223, 0.15);
}
.plan h3 {
  margin-top: 0;
}
.price {
  font-size: 1.6rem;
  font-weight: 700;
}
ul.check {
  padding-left: 16px;
}
ul.check li {
  margin: 6px 0;
}

/* accordion */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}
.faq-q {
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
.faq-a {
  display: none;
  padding: 14px;
  border-top: 1px solid #eee;
  background: #fafafa;
  font-size: 0.9rem;
}

/* popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.popup {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  max-width: 420px;
  width: 90%;
}
.popup h3 {
  margin-top: 0;
}
.popup .close {
  text-align: right;
  font-size: 0.9rem;
  cursor: pointer;
}

/* fixed CTA */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  z-index: 90;
}
.fixed-cta a {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
}

/* footer */
footer {
  background: #f1f3f8;
  padding: 40px 20px 70px;
  font-size: 0.85rem;
}

/* responsive */
@media (min-width: 900px) {
  .hero h1 {
    font-size: 2rem;
  }
}
