/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CLAW-SPECIFIC STYLES — /claw (Services page)
   Calculator, tiers, ROI grid, service pricing,
   scope, guarantee, tech requirements, etc.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── ROI Grid ────────────────────────────── */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.roi-card {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.25s;
}
.roi-card:hover { background: var(--bg-alt); }
.roi-val {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.roi-label {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  font-weight: 300;
}
@media (max-width: 580px) {
  .roi-grid { grid-template-columns: 1fr; }
}

.notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── Capabilities Grid ───────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.25s;
  cursor: default;
}
.cap-card:hover { background: var(--bg-alt); }
.cap-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.cap-card:hover .cap-icon { transform: scale(1.1); }
.cap-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.cap-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Hardware Tiers ──────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 760px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  user-select: none;
}
.tier-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tier-card.selected {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light), var(--shadow);
  transform: translateY(-4px);
}

.tier-selected-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tier-card.selected .tier-selected-badge { opacity: 1; }

.tier-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.tier-card.selected .tier-label { color: var(--accent); }

.tier-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.tier-hw {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.5;
}
.tier-price-main {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.tier-card.selected .tier-price-main { color: var(--accent); }
.tier-price-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  margin-bottom: 22px;
}

.tier-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.tier-feature-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: background 0.25s, color 0.25s;
}
.tier-feature-check.yes {
  background: #e2f0e2;
  color: #2d7a2d;
}
.tier-card.selected .tier-feature-check.yes {
  background: var(--accent-light);
  color: var(--accent);
}
.tier-feature.dim { color: var(--text-3); }

.tier-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  opacity: 0;
}
.tier-card.selected .tier-expanded {
  max-height: 200px;
  opacity: 1;
}
.tier-expanded-inner {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
}
.tier-expanded-inner p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.tier-select-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 20px;
}

/* ── Service Pricing ─────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
}
.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.service-icon {
  font-size: 26px;
  margin-bottom: 16px;
  display: block;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.service-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.service-price-note {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Investment Calculator ───────────────── */
.calc-shell {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.calc-header {
  background: var(--text);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.calc-header-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.calc-total {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.calc-monthly-display {
  text-align: right;
}
.calc-monthly-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.8);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.calc-body { padding: 28px 36px; }

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}
.calc-row:last-child { border-bottom: none; }
.calc-row-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}
.calc-row-sublabel {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.calc-row-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  transition: all 0.35s ease;
}
.calc-row-val.highlight { color: var(--accent); }

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toggle-label {
  font-size: 15px;
  color: var(--text);
}
.toggle-sublabel {
  font-size: 12px;
  color: var(--text-3);
}
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
input:checked + .toggle-slider { background: var(--accent); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

.calc-tier-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.calc-tier-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}
.calc-tier-btn:hover { border-color: var(--accent-border); color: var(--text); }
.calc-tier-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Scope Grid ──────────────────────────── */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .scope-grid { grid-template-columns: 1fr; } }

.scope-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
}
.scope-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.scope-card.included h3 { color: var(--accent); }
.scope-card.phase2 h3   { color: var(--text-3); }
.scope-list { display: flex; flex-direction: column; gap: 10px; }
.scope-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.scope-card.included .scope-list li::before { content: '\2713'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.scope-card.phase2 .scope-list li::before   { content: '\2192'; color: var(--text-3); font-weight: 700; flex-shrink: 0; }

/* ── Guarantee ───────────────────────────── */
.guarantee-card {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.guarantee-icon {
  font-size: 44px;
  flex-shrink: 0;
}
.guarantee-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 12px;
}
.guarantee-card p {
  font-size: 16px;
  color: #2e5e36;
  line-height: 1.7;
  font-weight: 300;
}
.guarantee-card p strong { color: var(--green); font-weight: 600; }
@media (max-width: 640px) {
  .guarantee-card { flex-direction: column; padding: 28px 24px; gap: 16px; }
}

/* ── Tech Requirements Grid ──────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 580px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.25s;
}
.tech-card:hover { background: var(--bg-alt); }
.tech-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.tech-card:hover .tech-icon { transform: scale(1.15); }
.tech-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.tech-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Claw hero guarantee line ────────────── */
.hero-guarantee {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.30s both;
}
