/* Cadence Cloud — pages */

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(46px, 7vw, 90px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 60% 20%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 20%, #000, transparent 78%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}

.hero-copy .h1 { max-width: 15ch; margin-top: 20px; }
.hero-copy .lede { margin-top: 20px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 12.5px; color: var(--dim); }
.hero-note .avatars { display: flex; }
.hero-note .avatars i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -7px; background: linear-gradient(140deg, #b7a8ff, #6b5cff); }
.hero-note .avatars i:nth-child(1) { margin-left: 0; background: linear-gradient(140deg, #ffd27a, #ff9a5c); }
.hero-note .avatars i:nth-child(2) { background: linear-gradient(140deg, #a8e6cf, #4fbf9f); }
.hero-note .avatars i:nth-child(3) { background: linear-gradient(140deg, #ffb3c8, #e5567f); }

.hero h1 .word { display: inline-block; }

/* ---------- logo strip ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; background: var(--bg-soft); }
.logos-head { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }

/* ---------- feature tabs ---------- */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 34px; }

.tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  z-index: 1;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s;
}

.tab[aria-selected="true"] { color: var(--ink); }
.tab:hover { color: var(--ink); }

.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.tab-panels { position: relative; }

.panel { display: none; }
.panel.is-active { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: center; animation: panel-in 0.5s var(--ease) both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel-copy .h3 { max-width: 18ch; }
.panel-copy p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 46ch; }
.panel-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.panel-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-soft); }
.panel-list li svg { position: absolute; left: 0; top: 3px; width: 15px; height: 15px; color: var(--teal); }

.panel-vis {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow-md);
}

.panel-vis .pv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-vis .pv-head h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.panel-vis .pv-head span { font-size: 10.5px; color: var(--muted); }

/* insight panel */
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.insight-cell { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.insight-cell span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.insight-cell b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; margin-top: 6px; }
.insight-cell small { font-size: 10px; color: var(--teal); }

/* ---------- comparison ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 500; background: var(--surface-2); }
.cmp tbody th { font-weight: 500; font-size: 14px; color: var(--ink); }
.cmp td { color: var(--muted); }
.cmp .col-us { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cmp .yes { color: var(--teal); font-weight: 600; }
.cmp .no { color: var(--dim); }

/* ---------- pricing ---------- */
.pricing-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); }
.pricing-head .h2 { margin-top: 16px; }
.pricing-head p { margin-top: 14px; }

.price-toggle-wrap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }

.price-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.price-toggle button { padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background 0.3s, color 0.3s; }
.price-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.save-badge { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }

.plan-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.plan.is-featured .plan-tag { color: var(--accent); }
.plan h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.plan .plan-sub { font-size: 13.5px; color: var(--muted); margin-top: -8px; }

.price { display: flex; align-items: baseline; gap: 7px; font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; }
.price .cur { font-size: 20px; align-self: flex-start; margin-top: 7px; color: var(--muted); }
.price .val { font-size: clamp(2.4rem, 4vw, 3.1rem); line-height: 1; }
.price .per { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; color: var(--muted); }
.price-note { font-size: 11.5px; color: var(--dim); margin-top: -8px; }

.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 21px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 12px; font-weight: 700; }
.plan li.muted { color: var(--dim); }
.plan li.muted::before { content: "–"; color: var(--dim); font-weight: 400; }
.plan .btn { margin-top: auto; width: 100%; }

.included { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; font-size: 13px; color: var(--muted); }
.included span { display: inline-flex; align-items: center; gap: 7px; }
.included svg { width: 14px; height: 14px; color: var(--teal); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 500; cursor: pointer; }
.faq-q svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform 0.4s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding-bottom: 22px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 72ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: start; }

.contact-card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.contact-side { display: grid; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; }
.side-card h3 { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.side-card p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.side-card a { color: var(--accent); }
.side-lines { margin-top: 14px; display: grid; gap: 10px; font-size: 13.5px; }
.side-lines div { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.side-lines dt { color: var(--dim); }

.map {
  position: relative;
  height: 190px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--surface-2);
}

.map::before, .map::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
}
.map::before { width: 42%; height: 38%; left: 8%; top: 14%; transform: rotate(-4deg); }
.map::after { width: 34%; height: 30%; right: 6%; bottom: 12%; background: color-mix(in srgb, var(--teal) 10%, transparent); border-color: color-mix(in srgb, var(--teal) 24%, transparent); transform: rotate(3deg); }

.map .road { position: absolute; left: -10%; right: -10%; top: 52%; height: 10px; background: var(--surface-3); transform: rotate(-9deg); }
.map .road.two { top: 68%; height: 6px; transform: rotate(6deg); }
.map .pin {
  position: absolute;
  left: 46%;
  top: 38%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  z-index: 2;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: pin-pulse 2.4s infinite;
}
@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
.map .map-label { position: absolute; left: 46%; top: calc(38% + 26px); transform: translateX(-50%); font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); }

/* ---------- cta band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(34px, 5vw, 62px);
  background: #12141c;
  color: #f5f6fa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

[data-theme="dark"] .cta { background: #191d28; border: 1px solid var(--line); }

.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 180%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}

.cta > * { position: relative; }
.cta h2 { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; max-width: 22ch; }
.cta p { margin-top: 12px; color: #a9b1c4; font-size: 14.5px; max-width: 44ch; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn:not(.btn-lime):not(.btn-primary) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #f5f6fa; }
.cta .btn:not(.btn-lime):not(.btn-primary):hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- page hero (inner pages) ---------- */
.page-head { padding: clamp(44px, 6vw, 76px) 0 clamp(34px, 4vw, 52px); text-align: center; }
.page-head .h1 { margin: 18px auto 0; max-width: 20ch; }
.page-head .lede { margin: 18px auto 0; max-width: 56ch; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy .h1 { max-width: 20ch; }
  .panel.is-active { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .hero { padding-top: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form-row { grid-template-columns: 1fr; }
  .hero-note { align-items: flex-start; }
  .tabs { width: 100%; justify-content: flex-start; }
  .tab { padding: 8px 13px; }
}
