/* OLOC — Oracle License Optimization Calculator.
   Brand tokens reused from oracle-cloud.css (navy/blue gradient, Manrope type). */

/* ---------- Hero (two-column: copy left, calculator widget right) ---------- */

.oloc-hero--with-header {
  /* Clears the main site's fixed glassmorphism header (72px tall). */
  padding-top: 150px;
}

.oloc-hero--with-header .oc-hero__grid > div:first-child { padding-top: 4px; }

.oloc-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 10px;
}

/* OLOC has to pop: big, as heavy as Manrope goes (800), then fattened a
   little further with a same-color stroke, plus a soft glow behind it. */
.oloc-logo__text {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
  -webkit-text-stroke: 0.035em #fff;
  paint-order: stroke fill;
  text-shadow: 0 0 36px rgba(122, 160, 255, 0.45);
}

.oloc-logo__badge {
  width: clamp(3.2rem, 6.6vw, 4.7rem);
  height: clamp(3.2rem, 6.6vw, 4.7rem);
  border-radius: 50%;
  background: linear-gradient(100deg, #4dc8fe, #6a5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.04em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 10px 32px rgba(110, 120, 255, 0.6);
}

.oloc-logo__badge svg { width: 56%; height: 56%; stroke-width: 2.2; }

.oloc-logo__caption {
  color: var(--accent-light);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0 0 28px;
}

.oloc-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Always a fixed 3-column grid — never wraps to 2+1, at any viewport width,
   so the third item can't end up orphaned/left-aligned on its own row. */
.oloc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0 32px;
}

.oloc-stats--hero {
  gap: 10px;
  margin: 28px 0 20px;
  max-width: 480px;
}

.oloc-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0; /* let long labels wrap inside their own grid column instead of overflowing it */
}

.oloc-stats__item .oloc-stats__ico {
  width: 72px;
  height: 72px;
  margin: 0 0 4px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(143, 130, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 16px rgba(120, 110, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.oloc-stats__ico svg {
  display: block;
  flex: none;
  width: 44%;
  height: 44%;
  margin: 0;
}

.oloc-stats__item strong {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

/* Labels only — must not match .oloc-stats__ico (also a <span>), or its
   display:block overrides the icon's flex centring and the icon drops to
   the top of its circle. */
.oloc-stats__item > span:not(.oloc-stats__ico) {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.oloc-stats__item > span.oloc-stats__range {
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ---------- Full copy section (below the fold) ---------- */

.oloc-copy-section {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}

.oloc-copy-section p { margin: 0 0 16px; }

.oloc-copy-section__cta-line {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-3);
  margin-top: 24px !important;
}

/* ---------- Client logos marquee ---------- */

.oloc-marquee {
  overflow: hidden;
  padding: 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.oloc-marquee__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.oloc-marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  align-items: center;
  animation: oloc-marquee-scroll 32s linear infinite;
}

.oloc-marquee:hover .oloc-marquee__track { animation-play-state: paused; }

.oloc-marquee__track img {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.15s ease, filter 0.15s ease;
  flex: none;
}

.oloc-marquee__track img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes oloc-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .oloc-marquee__track { animation: none; }
}

/* ---------- Testimonials ---------- */

.oloc-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .oloc-testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- Beyond the estimate ---------- */

.oloc-beyond {
  max-width: 720px;
  text-align: center;
}

.oloc-beyond h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 16px;
}

.oloc-beyond p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 16px;
}

.oloc-beyond__tagline {
  font-weight: 700;
  color: var(--navy-3);
  font-size: 1.1rem;
}

.oloc-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* ---------- Calculator widget ---------- */

.oloc-calculator {
  --oloc-primary: var(--accent-blue-2);
  --oloc-primary-dark: var(--accent-blue);
  --oloc-primary-gradient: linear-gradient(135deg, var(--oloc-primary-dark), var(--oloc-primary));
  --oloc-heading: var(--navy-1);
  --oloc-text: var(--ink);
  --oloc-muted: var(--muted);
  --oloc-border: var(--border);
  --oloc-selected-bg: rgba(74, 150, 246, 0.08);
  --oloc-error: #dc2626;

  padding: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.oloc-calculator * { box-sizing: border-box; }

.oloc-calculator .oloc-step h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--oloc-heading);
  font-family: "Manrope", sans-serif;
}

.oloc-calculator .oloc-step p {
  margin: 0 0 16px;
  color: var(--oloc-text);
  line-height: 1.5;
}

.oloc-calculator .oloc-disclaimer {
  margin: 0 auto;
}

.oloc-calculator .oloc-progress { margin-bottom: 24px; }

.oloc-calculator .oloc-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: #e5e8ef;
  overflow: hidden;
}

.oloc-calculator .oloc-progress__fill {
  height: 100%;
  background: var(--oloc-primary-gradient);
  transition: width 200ms ease;
}

.oloc-calculator .oloc-progress__label {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--oloc-muted);
}

.oloc-calculator .oloc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.oloc-calculator .oloc-option {
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--oloc-border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  color: var(--oloc-text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 100ms ease;
}

.oloc-calculator .oloc-option:hover { border-color: var(--oloc-primary); }
.oloc-calculator .oloc-option:active { transform: scale(0.99); }

.oloc-calculator .oloc-option:focus,
.oloc-calculator .oloc-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 150, 246, 0.25);
}

.oloc-calculator .oloc-option.is-selected {
  border-color: var(--oloc-primary);
  background: var(--oloc-selected-bg);
  color: var(--oloc-primary-dark);
  font-weight: 700;
}

.oloc-calculator .oloc-field { margin-bottom: 16px; }

.oloc-calculator .oloc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--oloc-text);
}

.oloc-calculator .oloc-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--oloc-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--oloc-text);
  background: #fff;
  transition: border-color 150ms ease;
}

.oloc-calculator .oloc-field input:focus {
  outline: none;
  border-color: var(--oloc-primary);
}

.oloc-calculator .oloc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.oloc-calculator .oloc-error {
  color: var(--oloc-error);
  font-size: 0.875rem;
  margin: -8px 0 16px;
}

.oloc-calculator .oloc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.oloc-calculator .oloc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.oloc-calculator .oloc-btn--primary {
  background: var(--oloc-primary-gradient);
  color: #fff;
  margin-left: auto;
  box-shadow: 0 8px 20px rgba(74, 150, 246, 0.3);
}

.oloc-calculator .oloc-btn--primary:hover,
.oloc-calculator .oloc-btn--primary:focus,
.oloc-calculator .oloc-btn--primary:visited {
  color: #fff;
  background: var(--oloc-primary-gradient);
}

.oloc-calculator .oloc-btn--primary:hover:not([disabled]) {
  transform: translateY(-1px);
}

.oloc-calculator .oloc-btn--primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.oloc-calculator .oloc-btn--ghost {
  background: transparent;
  color: var(--oloc-muted);
  padding-left: 12px;
  padding-right: 12px;
}

.oloc-calculator .oloc-btn--ghost:hover {
  color: var(--oloc-text);
  background: transparent;
}

.oloc-calculator .oloc-step--loading {
  text-align: center;
  padding: 40px 0;
  color: var(--oloc-text);
}

.oloc-calculator .oloc-step--result { text-align: center; }

.oloc-calculator .oloc-result-figure {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  color: var(--oloc-primary-dark);
  margin: 8px 0 16px;
  animation: oloc-figure-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.oloc-calculator .oloc-step {
  animation: oloc-step-in 320ms ease both;
}

.oloc-calculator .oloc-step--result.oloc-reveal {
  animation: oloc-result-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes oloc-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes oloc-result-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes oloc-figure-pop {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.oloc-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

@media (prefers-reduced-motion: reduce) {
  .oloc-calculator .oloc-step,
  .oloc-calculator .oloc-step--result.oloc-reveal,
  .oloc-calculator .oloc-result-figure {
    animation: none;
  }
}

.oloc-calculator .g-recaptcha { margin-bottom: 16px; }

@media (max-width: 640px) {
  .oloc-calculator { padding: 24px 20px; }
  .oloc-calculator .oloc-result-figure { font-size: 1.6rem; }
  .oloc-copy { text-align: left; }
  .oloc-stats { gap: 8px; }
  .oloc-stats__item .oloc-stats__ico { width: 60px; height: 60px; }
  .oloc-stats__item strong { font-size: 1.3rem; }
  .oloc-stats__item > span:not(.oloc-stats__ico) { font-size: 0.68rem; }
}

/* Opportunity Report: note + download/demo actions on the result step */
.oloc-calculator .oloc-report-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--oloc-text);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.oloc-calculator .oloc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.oloc-calculator .oloc-actions .oloc-btn--primary {
  margin-left: 0;
}

.oloc-calculator .oloc-btn--secondary,
.oloc-calculator .oloc-btn--secondary:visited {
  background: #fff;
  color: #04004d;
  border: 1.5px solid #c9d6f2;
}

.oloc-calculator .oloc-btn--secondary:hover,
.oloc-calculator .oloc-btn--secondary:focus {
  color: #04004d;
  border-color: #4a96f6;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .oloc-calculator .oloc-actions .oloc-btn {
    width: 100%;
  }
}
