/* NICE v2 — light theme, prices above the fold */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-alt: #f4f2ee;
  --line: #e6e2db;
  --line-strong: #d5cfc5;
  --fg: #1a1917;
  --fg-mid: #514d47;
  --fg-dim: #827c73;
  --accent: #1f5136;
  --accent-soft: #eaf0eb;

  --max: 1120px;
  --pad: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--fg);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--fg-mid);
}
.topnav a:hover { color: var(--fg); }

.topnav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.topnav-cta:hover { color: #fff; opacity: 0.92; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--pad) 72px;
}

.hero-head { max-width: 760px; margin-bottom: 48px; }

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--fg-mid);
  max-width: 34em;
}

/* ---------- plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan:hover {
  border-color: var(--line-strong);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 3px 14px rgba(31, 81, 54, 0.10);
}

.plan-head { margin-bottom: 18px; }

.plan h2 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.plan-for {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* price = the focal point */
.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

.price .cur {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--fg-mid);
  margin-right: 1px;
}

.price .per {
  font-size: 0.32em;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0;
  margin-left: 4px;
}

.price-ask {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  color: var(--fg-mid);
  font-weight: 600;
}

.feat {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.feat li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--fg-mid);
}

.feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  margin-top: auto;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: #17412b; }

.btn-line {
  border-color: var(--line-strong);
  color: var(--fg);
  background: var(--surface);
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

.btn-wide { min-height: 52px; padding: 0 28px; margin-top: 28px; }

.plans-note {
  margin-top: 26px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 15.5px;
  color: var(--fg-mid);
}
.plans-note strong { color: var(--fg); }

.plans-grok { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- blocks ---------- */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--pad);
  border-top: 1px solid var(--line);
}

.block-muted {
  max-width: none;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

.block-head { max-width: 760px; margin-bottom: 44px; }

.block-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 12px;
}

.block-note { font-size: 15.5px; color: var(--fg-dim); }

/* ---------- service ---------- */
.service {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.service .num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.service h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service p { font-size: 15.5px; color: var(--fg-mid); }

/* ---------- enterprise ---------- */
.block-enterprise {
  background: #f0f3ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

.ent-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.ent-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 14px;
}

.ent-copy .block-note { margin-bottom: 4px; }

.ent-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ent-cards article {
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ent-cards h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ent-cards p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--fg-mid);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 12px;
}

.contact-qr {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.contact-qr img {
  display: block;
  width: 240px;
  height: 240px;
}

.contact-qr p {
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ---------- faq ---------- */
.faq { max-width: 780px; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.02rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--fg-dim);
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { content: "–"; color: var(--accent); }

.faq details p {
  padding: 0 0 22px;
  font-size: 15.5px;
  color: var(--fg-mid);
  max-width: 62ch;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px var(--pad) 44px;
}

.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  color: var(--fg-mid);
}
.footer-links a:hover { color: var(--accent); }

.disclaimer {
  font-size: 13px;
  line-height: 1.85;
  color: var(--fg-dim);
  max-width: 76ch;
}

.copyright {
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .plan, .btn, .faq summary::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .plans, .plans-grok { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-qr { justify-self: start; }
  .ent-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .topnav { gap: 16px; font-size: 14px; }
  .topnav a:not(.topnav-cta) { display: none; }
  .plans, .plans-grok { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 26px; }
  .ent-cards { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .block { padding: 64px var(--pad); }
  .contact-qr img { width: 200px; height: 200px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
