/* =========================================================
   Pricing — SaaS-agency style page-specific styles
   ========================================================= */

/* ---------- PLAN CARDS ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.35), 0 12px 28px -18px rgba(0,0,0,0.2);
}
.plan.is-featured {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow: 0 28px 60px -22px rgba(230,58,42,0.40), 0 10px 28px -14px rgba(0,0,0,0.3);
  transform: translateY(-6px);
}
.plan.is-featured:hover { transform: translateY(-10px); }

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}

.plan-head {
  padding: 28px 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.plan-head::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.plan-head-cyan   { background: linear-gradient(135deg, var(--brand-sky) 0%, var(--brand-blue) 100%); }
.plan-head-orange { background: linear-gradient(135deg, var(--brand-coral) 0%, var(--brand-red) 100%); }
.plan-head-navy   { background: linear-gradient(135deg, var(--brand-navy) 0%, #051628 100%); }

.plan-head-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.plan-head .plan-tag,
.plan-head .plan-name,
.plan-head .plan-fit { position: relative; z-index: 1; }

.plan-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.plan-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.plan-fit {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.92;
  position: relative;
  z-index: 1;
  text-wrap: pretty;
}

.plan-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.plan-meta {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--text);
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.plan-feat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.plan-feat li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.plan-feat .check {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-cta {
  justify-content: center;
  margin-top: auto;
}

.plans-note {
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  margin: 40px auto 0;
  max-width: 60ch;
  text-wrap: pretty;
}

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.is-featured { transform: none; }
}

/* ---------- INCLUDED-IN-EVERY ---------- */
.included {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.incl-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.incl-card:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
  transform: translateY(-2px);
}
.incl-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.incl-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.incl-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  margin: 4px 0 0;
}
.incl-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .included { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .included { grid-template-columns: 1fr; }
}

/* ---------- GROWTH PATHS ---------- */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.path-card {
  text-align: left;
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(63,193,240,0.10) 0%, rgba(255,107,59,0.06) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.path-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent-2) 50%, var(--line));
  box-shadow: 0 24px 48px -22px rgba(63,193,240,0.35);
}
.path-card:hover::before { opacity: 1; }
.path-card > * { position: relative; z-index: 1; }

.path-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}
.path-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 22px;
  line-height: 1.15;
}
.path-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 2px;
}
.path-arrow {
  margin-top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .25s ease, background .25s ease;
}
.path-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.path-card:hover .path-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px) rotate(-12deg);
}

@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .paths { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq details {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--line);
}
.faq details:nth-child(odd)  { border-right: 1px solid var(--line); }
.faq details:nth-child(even) { padding-left: 24px; padding-right: 0; }
.faq summary {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  color: var(--text-dim);
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 56ch;
}
@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; }
  .faq details, .faq details:nth-child(odd), .faq details:nth-child(even) {
    border-right: 0;
    padding: 22px 0;
  }
}

/* ---------- CONSULTATION MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,12,20,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFade .2s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.6), 0 18px 40px -16px rgba(0,0,0,0.3);
  animation: modalIn .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
  z-index: 2;
}
.modal-close:hover { background: var(--line); color: var(--text); }

.modal-head {
  padding: 32px 32px 16px;
}
.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.modal-path {
  background: linear-gradient(95deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 10px 0 0;
}

.modal-form {
  padding: 16px 32px 32px;
  display: grid;
  gap: 14px;
}
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-field {
  display: grid;
  gap: 6px;
}
.modal-field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.modal-field input,
.modal-field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.modal-field textarea {
  resize: vertical;
  min-height: 84px;
}
.modal-field input:focus,
.modal-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.modal-submit {
  justify-content: center;
  margin-top: 8px;
}
.modal-fine {
  font-size: 12.5px;
  color: var(--text-mute);
  text-align: center;
  margin: 4px 0 0;
}

@media (max-width: 480px) {
  .modal-row { grid-template-columns: 1fr; }
  .modal-head, .modal-form { padding-inline: 24px; }
}
