/* Olo · Landing page — focused, editorial composition */
@import url("colors_and_type.css");

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--olo-violet-bright);
  color: var(--olo-text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

em.serif {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  color: var(--olo-text);
}

.olo-page {
  width: 100%;
  background: var(--olo-violet-bright);
  min-height: 100vh;
}
/* Full-bleed bands with content centered in a 1280px column. */
:root { --olo-content: 1280px; }

/* ─── Header ─────────────────────────────────────────────── */
.olo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  background: var(--olo-violet-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(30px, calc((100% - var(--olo-content)) / 2));
}
.olo-header__brand img { display: block; height: 44px; width: auto; }
.olo-header__nav { display: flex; align-items: center; gap: 28px; }
.olo-nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  color: var(--olo-cream);
  text-decoration: none;
  padding: 8px 4px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-nav-link:hover { opacity: 0.72; }
.olo-nav-link:focus-visible {
  outline: 2px solid var(--olo-cream);
  outline-offset: 4px;
  border-radius: 2px;
}
.olo-nav-link__dot {
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--olo-cream);
}
.olo-lang-chip {
  width: 36px; height: 36px;
  border: none; border-radius: 999px;
  background: var(--olo-cream);
  color: var(--olo-violet-deep);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  margin-left: 4px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-lang-chip:hover { opacity: 0.82; }

/* ─── Hero — single column, centered, plenty of air ─────── */
.olo-hero {
  padding: 120px 30px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}
.olo-hero__mark {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(64px, 7vw, 100px);
  line-height: 0.95;
  color: var(--olo-text);
  letter-spacing: -0.018em;
}
.olo-hero__lede {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.05;
  color: var(--olo-text);
  max-width: 760px;
  text-wrap: balance;
}
.olo-hero__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.45;
  color: var(--olo-text);
  max-width: 560px;
  text-wrap: pretty;
}

/* ─── Audit form (the single primary action) ─────────────── */
.olo-audit {
  width: 100%;
  max-width: 640px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.olo-audit-form {
  width: 100%;
  display: flex;
  align-items: stretch;
  padding: 6px;
  border: 2px solid var(--olo-violet-deep);
  border-radius: 999px;
  background: var(--olo-paper);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.olo-audit-form:focus-within {
  border-color: var(--olo-violet-deep);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--olo-violet-deep) 14%, transparent);
}
.olo-audit-form__field {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.olo-audit-form__proto {
  display: inline-flex;
  align-items: center;
  padding: 0 4px 0 20px;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--olo-text);
  opacity: 0.75;
}
.olo-audit-form__input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--olo-text);
  padding: 12px 6px;
  min-width: 0;
  text-align: left;
}
.olo-audit-form__input::placeholder {
  color: var(--olo-violet);
  opacity: 0.5;
}
.olo-audit-form__input:disabled { opacity: 0.55; }
.olo-audit-form__cta {
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--olo-violet-deep);
  color: var(--olo-cream);
  border: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-audit-form__cta:hover:not(:disabled) { opacity: 0.86; }
.olo-audit-form__cta:disabled { opacity: 0.4; cursor: not-allowed; }
.olo-audit-form__cta:focus-visible {
  outline: 2px solid var(--olo-violet-deep);
  outline-offset: 3px;
}
.olo-audit__caption {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--olo-text);
}

/* ─── Audit result region (appears in-line, narrow, centered) ── */
.olo-result {
  width: 100%;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 30px;
  animation: oloFadeIn 260ms var(--ease-out) both;
}
@keyframes oloFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Progress */
.olo-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.olo-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--olo-violet-soft);
  overflow: hidden;
}
.olo-progress__fill {
  height: 100%;
  background: var(--olo-violet);
  transition: width 110ms linear;
}
.olo-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--olo-text);
}
.olo-progress__label-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.olo-progress__pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--olo-orange);
  animation: oloPulse 1.5s var(--ease-in-out) infinite;
}
@keyframes oloPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.6); }
}
.olo-progress__pct {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--olo-text);
}

/* Results card */
.olo-card {
  background: var(--olo-paper);
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 64px -32px rgba(131, 88, 165, 0.32);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.olo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.olo-card__head-l {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
}
.olo-card__count {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: var(--olo-text);
}
.olo-card__count-label {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--olo-text);
}
.olo-card__url {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--olo-text);
  background: var(--olo-violet-bright);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.olo-card__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.olo-card__chip {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
}
.olo-card__chip strong { font-weight: 600; margin-right: 4px; }
.olo-card__chip--critico { background: var(--olo-orange); color: var(--olo-ink); }
.olo-card__chip--importante { background: var(--olo-mustard); color: var(--olo-ink); }
.olo-card__chip--suggerimento { background: var(--olo-cream); color: var(--olo-text); }

.olo-findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.olo-finding {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 18px;
  row-gap: 4px;
  padding: 16px 0;
  border-top: 1px solid color-mix(in oklch, var(--olo-violet) 22%, transparent);
}
.olo-finding:first-child { border-top: 0; padding-top: 4px; }
.olo-finding:last-child  { padding-bottom: 0; }
.olo-finding__sev {
  align-self: start;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 5px;
  text-align: center;
  white-space: nowrap;
}
.olo-finding__sev--critico { background: var(--olo-orange); color: var(--olo-ink); }
.olo-finding__sev--importante { background: var(--olo-mustard); color: var(--olo-ink); }
.olo-finding__sev--suggerimento {
  background: transparent;
  color: var(--olo-text);
  border: 1px solid var(--olo-text);
}
.olo-finding__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  color: var(--olo-text);
}
.olo-finding__where {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--olo-text);
  opacity: 0.9;
}

/* Locked teaser rows (everything after the critical findings): blurred and
   inert until the visitor unlocks the full report with their email. */
.olo-finding--locked {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Email gate */
.olo-gate {
  border-top: 2px dashed color-mix(in oklch, var(--olo-violet) 35%, transparent);
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.olo-gate__lock {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  color: var(--olo-text);
}
.olo-gate__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.olo-gate__form input {
  flex: 1 1 240px;
  padding: 13px 18px;
  border: 2px solid var(--olo-violet-deep);
  border-radius: 999px;
  background: var(--olo-paper);
  color: var(--olo-text);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  min-width: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.olo-gate__form input::placeholder { color: var(--olo-violet); opacity: 0.55; }
.olo-gate__form input:focus { border-color: var(--olo-violet-deep); }
.olo-gate__form button {
  padding: 13px 22px;
  background: var(--olo-violet-deep);
  color: var(--olo-cream);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-gate__form button:hover { opacity: 0.88; }
.olo-gate__fine {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--olo-text);
  opacity: 0.9;
}

/* Confirmation */
.olo-confirm {
  text-align: center;
  padding: 28px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: oloFadeIn 240ms var(--ease-out) both;
}
.olo-confirm__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--olo-text);
}
.olo-confirm__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--olo-text);
  opacity: 0.9;
}

.olo-again {
  background: transparent;
  border: 0;
  color: var(--olo-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  align-self: center;
  padding: 8px 16px;
  margin-top: 4px;
  border-radius: 999px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-again:hover { opacity: 0.65; }

/* ─── Pillars (3-up) ─────────────────────────────────────── */
.olo-pillars {
  background: var(--olo-cream-soft);
  margin: 64px 0 0;
  padding: 96px max(60px, calc((100% - var(--olo-content)) / 2));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.olo-pillars__cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.olo-pillars__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  color: var(--olo-text);
  text-wrap: pretty;
}
.olo-pillars__body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--olo-text);
}

/* ─── Closing band ───────────────────────────────────────── */
.olo-closing {
  background: var(--olo-violet-deep);
  padding: 112px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  color: var(--olo-cream);
}
.olo-closing__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.05;
  color: var(--olo-cream);
  max-width: 820px;
  text-wrap: balance;
}
.olo-closing__title em.serif {
  color: var(--olo-cream);
  font-weight: 600;
}
.olo-closing__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.4;
  color: var(--olo-cream);
  max-width: 540px;
}
.olo-closing__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 26px;
  background: var(--olo-cream);
  color: var(--olo-text);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-closing__cta:hover { opacity: 0.88; }

/* ─── Footer ─────────────────────────────────────────────── */
.olo-footer {
  background: var(--olo-violet-deep);
  padding: 0 max(30px, calc((100% - var(--olo-content)) / 2)) 28px;
  color: var(--olo-cream);
}
.olo-footer__rule { border: 0; border-top: 2px solid var(--olo-cream); margin: 0 0 28px; }
.olo-footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 32px;
}
.olo-footer__brand img { display: block; height: 64px; width: auto; }
.olo-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.olo-footer__col { display: flex; flex-direction: column; gap: 8px; }
.olo-footer__col a {
  display: inline-block;
  padding: 5px 0;            /* ≥24px hit area (WCAG 2.5.8 target size) */
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--olo-cream);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.olo-footer__col a:hover { opacity: 0.72; }
.olo-footer__fine {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--olo-cream);
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .olo-hero { padding: 72px 24px 64px; }
  .olo-pillars { grid-template-columns: 1fr; gap: 32px; padding: 64px 30px; }
}
@media (max-width: 720px) {
  .olo-header__nav { gap: 14px; }
  .olo-nav-link { font-size: 15px; }
  /* Stack the CTA below the URL field instead of inside the pill. */
  .olo-audit-form {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .olo-audit-form:focus-within { box-shadow: none; }
  .olo-audit-form__field {
    padding: 6px 6px 6px 0;
    border: 2px solid var(--olo-violet-deep);
    border-radius: 999px;
    background: var(--olo-paper);
    transition: box-shadow var(--dur-base) var(--ease-out);
  }
  .olo-audit-form__field:focus-within {
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--olo-violet-deep) 14%, transparent);
  }
  .olo-audit-form__cta { width: 100%; }
  .olo-finding { grid-template-columns: 1fr; gap: 8px; }
  .olo-finding__sev { justify-self: start; }
  .olo-footer__row { flex-direction: column; gap: 28px; }
  .olo-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
