/* =====================================================================
   THE ARKCLIP: CALCULATOR STYLESHEET (styles/calculator.css)
   Complements site.css "Editorial Bold" design system.
   ===================================================================== */

.calc-page-main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--announce-h) + 80px);
}

/* ---------- 1. Hero & Preset Bar ---------- */
.calc-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 10% 20%, rgba(158, 135, 252, 0.08) 0%, transparent 60%);
}

.calc-title {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.calc-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--ink-2);
  max-width: 44rem;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.preset-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: fit-content;
  max-width: 100%;
}

.preset-label {
  font-size: 0.78rem;
  color: var(--ink-3);
  
  
  font-weight: 500;
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  transition: all 0.2s var(--ease);
}

.preset-btn:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.preset-btn.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 4px 14px -3px rgba(11, 11, 15, 0.35);
}

/* ---------- 2. Workspace & Layout ---------- */
.calc-workspace {
  padding: 3.5rem 0 5rem;
}

.calc-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

/* ---------- 3. Left Column: Input Card ---------- */
.calc-inputs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2.5rem;
  box-shadow: 0 16px 40px -20px rgba(11, 11, 15, 0.07);
}

.card-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow-sm {
  font-size: 0.76rem;
  
  color: var(--ink-3);
  
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--violet-text);
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse 2s infinite;
}

.input-group {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.input-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-header label strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.input-hint {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.4;
}

.val-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.35rem 0.8rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.val-badge span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

/* Custom Range Input */
.range-wrap {
  position: relative;
  margin-top: 0.5rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--violet-btn);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(107, 82, 238, 0.45);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8B74F8;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--violet-btn);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(107, 82, 238, 0.45);
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-3);
}

.param-annotation {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 0.85rem;
  background: var(--paper);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--violet);
}

/* Interactive Toggles */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
}

.toggle-item:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.toggle-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: #d8d6cf;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s var(--ease);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease);
}

.toggle-item input[type="checkbox"]:checked + .toggle-switch {
  background: var(--violet-btn);
}

.toggle-item input[type="checkbox"]:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.toggle-text {
  flex: 1;
}

.toggle-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.toggle-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.toggle-saving {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--violet-text);
  background: var(--violet-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- 4. Right Column: Sticky Results Card ---------- */
.calc-results-card {
  position: sticky;
  top: calc(var(--announce-h) + 80px);
}

.results-sticky {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: 0 24px 60px -15px rgba(11, 11, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.results-sticky::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 135, 252, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.primary-metric-box {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-eyebrow {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  
  margin-bottom: 0.4rem;
}

.metric-huge {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.metric-huge .display {
  font-size: clamp(3.2rem, 4.5vw, 4.4rem);
  font-weight: 600;
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
}

.metric-unit {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--violet);
  font-weight: 500;
}

.metric-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.metric-sub strong {
  color: #fff;
}

/* Dollar Box */
.dollar-metric-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
}

.dollar-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.dollar-huge {
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.dollar-badge {
  font-size: 0.85rem;
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}

.dollar-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Breakdown Ledger */
.savings-breakdown {
  margin-bottom: 1.75rem;
}

.breakdown-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  
  
  margin-bottom: 0.75rem;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.breakdown-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
}

.dot-ind {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-val {
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
}

/* Efficiency Badges */
.efficiency-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.eff-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.eff-pill strong {
  font-size: 1.3rem;
  color: var(--violet);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.eff-pill span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.results-cta {
  text-align: center;
}

.results-guarantee {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.75rem;
}

/* ---------- 5. Point-to-Point Section ---------- */
.point-to-point-section {
  padding: 5rem 0 6rem;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.p2p-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

.p2p-head .lead {
  margin: 1.25rem auto 0;
}

.p2p-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.p2p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(11, 11, 15, 0.05);
}

.p2p-card-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.p2p-badge {
  display: inline-block;
  font-size: 0.72rem;
  
  color: var(--violet-text);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.p2p-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.p2p-summary {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.p2p-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  divide-x: 1px solid var(--line);
}

.p2p-col {
  padding: 2rem;
}

.col-manual {
  background: #FCFAF6;
  border-right: 1px solid var(--line);
}

.col-ark {
  background: #FFFFFF;
}

.col-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tag-manual {
  background: #FEE2E2;
  color: #991B1B;
}

.cross-icon {
  font-weight: 600;
  font-size: 0.9rem;
}

.tag-ark {
  background: #EDE9FE;
  color: #5B21B6;
}

.check-icon {
  font-weight: 600;
  font-size: 0.95rem;
}

.p2p-steps {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.p2p-steps li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
  position: relative;
  padding-left: 1.25rem;
}

.p2p-steps li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ink-3);
  font-size: 1.2rem;
  line-height: 1;
}

.col-ark .p2p-steps li::before {
  color: var(--violet);
}

.p2p-steps li strong {
  color: var(--ink);
  font-weight: 600;
}

.p2p-verdict {
  padding: 1rem 2rem;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
}

.p2p-verdict strong {
  color: var(--violet-text);
  font-weight: 700;
}

/* ---------- 6. FAQ & Philosophy ---------- */
.calc-faq {
  padding: 5rem 0 6rem;
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- 7. Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .calc-grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calc-results-card {
    position: static;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .calc-hero {
    padding: 2rem 0;
  }

  .calc-title {
    font-size: 2.3rem;
  }

  .calc-inputs-card,
  .results-sticky {
    padding: 1.5rem 1.25rem;
  }

  .p2p-columns {
    grid-template-columns: 1fr;
  }

  .col-manual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .p2p-col {
    padding: 1.5rem 1.25rem;
  }

  .p2p-verdict {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .efficiency-pills {
    grid-template-columns: 1fr;
  }

  .preset-bar {
    width: 100%;
  }
}
