/* ---------------------------------------------------------------------------
   Orro — Revenue Recovery Sprint landing page
   Base reset + globals ported from the design handoff, plus the interactive
   states (hover, FAQ accordion), the application form, the Revenue Leak Report
   visual, and scroll-triggered motion.
--------------------------------------------------------------------------- */

* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }

a { color: #1E3A2B; text-decoration: none; }
a:hover { color: #2E5140; }

/* Sticky nav is 68-72px tall; keep anchored sections clear of it */
#top, #sprint, #report, #apply, #apply-form { scroll-margin-top: 88px; }

/* Hero headline scales down on small phones (from the design's media query) */
@media (max-width: 480px) {
  #hero-headline { font-size: 29px !important; line-height: 1.1 !important; }
  #hero-sub { font-size: 15px !important; }
}

/* ---- Section eyebrow dots ----------------------------------------------- */
.dots {
  font-size: 15px;
  letter-spacing: 0.4em;
  color: #B4BCAF;
  line-height: 1;
  margin-bottom: 14px;
}
.dots-light { color: rgba(247, 245, 240, 0.38); }

/* ---- Buttons ------------------------------------------------------------ */
/* The design used non-standard `style-hover` attributes; those are replaced
   by these real CSS classes. Size (padding/font-size) stays inline per button. */
.btn {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: #1E3A2B; color: #F7F5F0; box-shadow: 0 1px 2px rgba(30,58,43,.18); }
.btn-primary:hover { background: #2E5140; color: #F7F5F0; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30,58,43,.22); }
.btn-secondary { background: #FFFFFF; color: #22201A; border: 1px solid #DAD6CB; }
.btn-secondary:hover { border-color: #1E3A2B; color: #22201A; transform: translateY(-1px); }
.btn-light { background: #F7F5F0; color: #1E3A2B; }
.btn-light:hover { background: #FFFFFF; color: #1E3A2B; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.footer-link { color: #6B6B60; }
.footer-link:hover { color: #1E3A2B; }

/* ---- Ambient depth washes ----------------------------------------------- */
.hero-band::before,
.report-band::before,
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-band::before {
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(30,58,43,.07), transparent 70%),
    radial-gradient(45% 40% at 8% 8%, rgba(184,220,187,.22), transparent 70%);
}
.report-band { position: relative; }
.report-band::before {
  background: radial-gradient(70% 50% at 50% 40%, rgba(30,58,43,.05), transparent 72%);
}
.final-cta { background: #1E3A2B; position: relative; overflow: hidden; }
.final-cta::before {
  background: radial-gradient(50% 60% at 50% 0%, rgba(184,220,187,.14), transparent 70%);
}

/* ---- Hero stacking ------------------------------------------------------ */
/* Desktop keeps the two-column auto-fit grid. Below 700px we force a single
   column so the text + CTA block (first in the DOM) always stacks ABOVE the
   phone mockup, matching the design's mobile order. */
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr !important; }
}

/* ---- Phone mockup accents ------------------------------------------------ */
.phone-wrap { position: relative; }
.phone-glow {
  position: absolute;
  inset: -12% -14%;
  background: radial-gradient(closest-side, rgba(30,58,43,.13), transparent 72%);
  filter: blur(6px);
  z-index: 0;
}
.phone-badge {
  position: absolute;
  top: -14px;
  right: -4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  color: #1E3A2B;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #E4E0D6;
  box-shadow: 0 6px 18px rgba(30,40,30,.14);
  animation: float 5s ease-in-out infinite;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4E8A63;
  box-shadow: 0 0 0 0 rgba(78,138,99,.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78,138,99,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(78,138,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(78,138,99,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ---- Icons -------------------------------------------------------------- */
.ico { width: 21px; height: 21px; flex: none; margin-top: 1px; }
.ico-check { color: #1E3A2B; }
.ico-dash { color: #B4B0A4; }

/* Icon tiles: soft gradient chip with an inner highlight, replacing the flat
   swatch in the handoff so the marks read as crafted rather than stock. */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 20px;
  color: #1E3A2B;
  background: linear-gradient(150deg, #EDF3EB 0%, #DCE7DA 100%);
  border: 1px solid rgba(30,58,43,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 6px rgba(30,58,43,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile-ico { width: 26px; height: 26px; }
.sprint-card:hover .icon-tile,
.sprint-wide:hover .icon-tile {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px rgba(30,58,43,.14);
}

/* ---- Cards -------------------------------------------------------------- */
.sprint-card,
.sprint-wide,
.fit-card,
.offer-card,
.form-card,
.leak-item {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sprint-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DE;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 1px 2px rgba(30,40,30,.04);
}
.sprint-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30,40,30,.10);
  border-color: #DFE7DC;
}
.sprint-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid #ECE8DE;
  border-top: 3px solid #1E3A2B;
  border-radius: 16px;
  padding: 32px;
  margin-top: 20px;
  box-shadow: 0 1px 2px rgba(30,40,30,.04);
}
.sprint-wide:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,40,30,.10); }

.leak-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #F7F5F0;
  border: 1px solid #ECE8DE;
  border-left: 3px solid #1E3A2B;
  border-radius: 14px;
  padding: 22px 24px;
}
.leak-item:hover { transform: translateX(3px); border-left-color: #2E5140; }
.leak-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1E3A2B;
  color: #F7F5F0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fit-card {
  background: #F7F5F0;
  border: 1px solid #ECE8DE;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 1px 2px rgba(30,40,30,.04);
}
.fit-row { display: flex; gap: 13px; align-items: flex-start; }
.fit-row span:not(.ico) { font-size: 15px; line-height: 1.5; color: #42423A; }
.fit-row-muted span:not(.ico) { color: #77776C; }

.offer-card {
  max-width: 620px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E7E3D9;
  border-top: 3px solid #1E3A2B;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 52px);
  box-shadow: 0 4px 12px rgba(30,40,30,.08), 0 40px 90px rgba(30,40,30,.16);
}
.form-card {
  max-width: 620px;
  margin: 24px auto 0;
  background: #FFFFFF;
  border: 1px solid #E7E3D9;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 52px);
  box-shadow: 0 4px 12px rgba(30,40,30,.08);
}

/* ---- Revenue Leak Report card ------------------------------------------- */
.report-card {
  max-width: 940px;
  margin: 0 auto;
  background: linear-gradient(158deg, #24422F 0%, #1A3325 60%, #16291F 100%);
  border: 1px solid rgba(247,245,240,.10);
  border-radius: 22px;
  padding: clamp(22px, 3.2vw, 34px);
  box-shadow: 0 6px 18px rgba(20,35,25,.18), 0 44px 90px rgba(20,35,25,.28);
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(247,245,240,.12);
}
.report-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 21px;
  color: #F7F5F0;
  letter-spacing: -0.01em;
}
.report-meta { font-size: 12.5px; color: rgba(247,245,240,.52); margin-top: 4px; }
.report-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(247,245,240,.72);
  background: rgba(247,245,240,.07);
  border: 1px solid rgba(247,245,240,.12);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-live { color: #CFE5CE; }
.chip-live .pulse-dot { background: #8FD09A; }

.report-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 3.4vw, 40px);
  align-items: start;
}
.metric-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,245,240,.5);
  margin-bottom: 10px;
}
.metric-value {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 54px);
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric-delta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9FD0A6;
  margin-top: 10px;
}
.chart { width: 100%; height: auto; margin-top: 18px; display: block; overflow: visible; }
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(247,245,240,.38);
  margin-top: 10px;
}

.list-head {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,245,240,.5);
  margin-bottom: 16px;
}
.leak-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.leak-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.leak-rank {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(247,245,240,.09);
  color: rgba(247,245,240,.6);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.leak-name { flex: 1; font-size: 14px; line-height: 1.35; color: rgba(247,245,240,.88); }
.leak-amt {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.leak-bar { height: 6px; border-radius: 999px; background: rgba(247,245,240,.09); overflow: hidden; }
.leak-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, #4E8A63, #B8DCBB);
}
.leak-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247,245,240,.12);
  font-size: 13px;
  color: rgba(247,245,240,.6);
}
.leak-total-amt {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 600;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.report-note {
  text-align: center;
  font-size: 12.5px;
  color: #9A9A8E;
  margin: 20px 0 0;
}

@media (max-width: 760px) {
  .report-body { grid-template-columns: 1fr; }
}

/* ---- Scroll-reveal motion ----------------------------------------------- */
/* Base CSS shows the finished state, so the page is fully readable with no JS.
   main.js adds `js-anim` to <html>, which arms the pre-animation state. */
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
html.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
html.js-anim .leak-bar span { width: 0; }
html.js-anim .is-visible .leak-bar span {
  width: var(--w);
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0s);
}
html.js-anim .chart-line { stroke-dasharray: 900; stroke-dashoffset: 900; }
html.js-anim .is-visible .chart-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease-out; }
html.js-anim .chart-area, html.js-anim .chart-dot, html.js-anim .chart-dot-halo { opacity: 0; }
html.js-anim .is-visible .chart-area { opacity: 1; transition: opacity 1s ease .4s; }
html.js-anim .is-visible .chart-dot { opacity: 1; transition: opacity .5s ease 1.5s; }
html.js-anim .is-visible .chart-dot-halo { opacity: .2; transition: opacity .5s ease 1.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim [data-reveal] { opacity: 1; transform: none; }
  html.js-anim .leak-bar span { width: var(--w); }
  html.js-anim .chart-line { stroke-dashoffset: 0; }
  html.js-anim .chart-area, html.js-anim .chart-dot { opacity: 1; }
  html.js-anim .chart-dot-halo { opacity: .2; }
  .phone-badge, .pulse-dot { animation: none; }
  .btn, .sprint-card, .sprint-wide, .leak-item, .icon-tile { transition: none; }
}

/* ---- FAQ accordion (native <details>) ----------------------------------- */
.faq {
  background: #F7F5F0;
  border: 1px solid #ECE8DE;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq[open] { border-color: #DFE7DC; box-shadow: 0 4px 14px rgba(30,40,30,.06); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid #1E3A2B; outline-offset: -2px; border-radius: 14px; }
.faq-q { font-size: 16px; font-weight: 600; color: #22201A; }
.faq-sign {
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: #1E3A2B;
  line-height: 1;
}
.faq-sign::after { content: "+"; }
.faq[open] .faq-sign::after { content: "\2212"; } /* minus sign */
.faq-a { margin: 0; padding: 0 24px 24px; font-size: 15px; line-height: 1.6; color: #6B6B60; }

/* ---- Application form ---------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: #42423A;
  margin-bottom: 7px;
}
.field .req { color: #1E3A2B; }
.field input,
.field select,
.field textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #22201A;
  background: #FBFAF6;
  border: 1px solid #DAD6CB;
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #1E3A2B;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(30,58,43,0.12);
}
.field input::placeholder,
.field textarea::placeholder { color: #A6A69A; }

/* Invalid state only after the user has interacted / attempted submit */
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #B4402E;
  background: #FDF6F4;
}

/* ---- Form status message ------------------------------------------------ */
.form-status {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
  min-height: 0;
}
.form-status.is-error { color: #9A3324; }
.form-status.is-success { color: #1E3A2B; font-weight: 600; }
.form-status.is-pending { color: #6B6B60; }

/* Success replacement panel */
.form-thanks {
  text-align: center;
  padding: 8px 0 4px;
}
.form-thanks h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #22201A;
  font-size: 24px;
  margin: 0 0 12px;
}
.form-thanks p { font-size: 15px; line-height: 1.6; color: #6B6B60; margin: 0; }

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .phone-badge { top: -10px; right: 2px; font-size: 11.5px; padding: 7px 12px; }
}
