/* =========================================================
   FieldOps | página do produto
   Usa os tokens e componentes de style.css. Aqui só o que é novo.
   ========================================================= */

/* ---------- HERO ---------- */
.fo-hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy-900);
  padding: calc(var(--nav-h) + 28px) 0 72px;
}
.fo-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 78% 40%, rgba(31, 176, 255, .28), transparent 70%),
    radial-gradient(40% 35% at 20% 90%, rgba(255, 107, 26, .16), transparent 70%),
    linear-gradient(rgba(143, 196, 255, .06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(143, 196, 255, .06) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(90% 80% at 60% 40%, #000, transparent);
  mask-image: radial-gradient(90% 80% at 60% 40%, #000, transparent);
}
.fo-hero__grid { position: relative; display: grid; gap: 48px; }
.fo-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--muted-d); }
.fo-back:hover { color: #fff; }
.fo-back span:first-child { font-size: 22px; line-height: 1; }
.fo-brand { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.fo-brand .app__icon { width: 48px; height: 48px; margin: 0; font-size: 24px; border-radius: 13px; }
.fo-brand .eyebrow { margin: 0; }
.fo-hero h1 { font-size: clamp(38px, 9.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; }
.fo-hero__sub { margin-top: 18px; max-width: 560px; font-size: 18px; color: #b9c9da; }
.fo-hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }

/* ---------- Ilustração: painel + celular ---------- */
/* painel à esquerda, celular à direita encostando nele um pouco mais abaixo */
.mock { position: relative; width: min(100%, 560px); margin: 0 auto; display: flex; align-items: flex-start; }
.mock__desk {
  flex: 1; min-width: 0; margin-top: 12px; padding: 16px 40px 20px 18px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(18, 54, 92, .92), rgba(7, 27, 51, .96));
  border: 1px solid rgba(143, 196, 255, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(31, 176, 255, .12);
}
.mock__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock__bar i:first-child { background: var(--orange); }
.mock__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 10px; }
.mock__head small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.mock__head b { font-size: clamp(15px, 3.6vw, 19px); }
.pill { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(31, 176, 255, .16); color: #8fd6ff; border: 1px solid rgba(31, 176, 255, .35); }
.mock__team { display: flex; align-items: center; margin: 16px 0 18px; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-right: -6px; font-size: 11px; font-weight: 700; background: #1d4a78; border: 2px solid #0b2744; color: #cfe7ff; }
.av--lead { background: var(--orange); color: #1a0d04; }
.mock__team em { margin-left: 16px; font-style: normal; font-size: 12px; color: var(--muted-d); }
.mock__fin { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mock__fin li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 12px; color: #c7d7e7; }
.b { height: 8px; border-radius: 99px; display: block; transform-origin: left; animation: grow 1.2s var(--ease) both .3s; }
.b--rev { width: 100%; background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
.b--cost { width: 58%; background: linear-gradient(90deg, #e2510a, var(--orange)); }
.b--res { width: 42%; background: linear-gradient(90deg, #22c55e, #6ee7a8); }
@keyframes grow { from { transform: scaleX(0); } }

.phone {
  position: relative; z-index: 1; flex: 0 0 clamp(150px, 42%, 226px); margin: 64px 0 0 -26px;
  padding: 26px 12px 14px; border-radius: 30px;
  background: #050f1d; border: 1.5px solid rgba(143, 196, 255, .3);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 6px #0b1a2c, 0 0 50px rgba(255, 107, 26, .18);
  font-size: 12px; color: #dbe7f2;
  animation: float 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 9px; left: 50%; width: 54px; height: 8px; margin-left: -27px; border-radius: 99px; background: #13253b; }
.phone__day { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.job { padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(143, 196, 255, .14); margin-bottom: 7px; }
.job--on { border-color: rgba(255, 107, 26, .55); background: rgba(255, 107, 26, .08); }
.job b { display: block; font-size: 12.5px; line-height: 1.25; margin-top: 3px; }
.job__tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.job__tag--h { color: var(--blue); }
.job__btn { display: block; margin-top: 8px; text-align: center; padding: 6px; border-radius: 99px; background: var(--orange); color: #1a0d04; font-weight: 700; font-size: 11.5px; }
.phone__label { margin: 10px 0 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.shots span {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 3px;
  font-size: 8.5px; font-weight: 600; color: #cfe2f3;
  background: linear-gradient(150deg, #1b4f80, #0b2744); border: 1px solid rgba(143, 196, 255, .2);
}
.shots span:nth-child(2) { background: linear-gradient(150deg, #9b4a1c, #3b1d0b); }
.shots span:nth-child(3) { background: linear-gradient(150deg, #1e6a52, #0b2a22); }
.shots span:nth-child(4) { background: linear-gradient(150deg, #48506a, #1a1f2e); }
.phone__send { display: block; margin-top: 10px; text-align: center; padding: 7px; border-radius: 99px; border: 1px solid var(--blue); color: var(--blue); font-weight: 600; font-size: 11.5px; }

/* ---------- O PROBLEMA ---------- */
.fo-pain { background: var(--light); color: var(--ink); }
.fo-pain .head h2, .fo-pillars .head h2, .fo-who .head h2 { color: var(--ink); }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pain { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 22px 22px; }
.pain p { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.pain__x { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff1e8; position: relative; margin-top: 1px; }
.pain__x::before, .pain__x::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.pain__x::after { transform: rotate(-45deg); }

/* ---------- CICLO ---------- */
.fo-flow { background: radial-gradient(80% 50% at 50% 0%, #0d2f52, var(--navy-900) 70%); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.flow__step { position: relative; padding: 0 0 28px 64px; }
.flow__step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--blue), rgba(31, 176, 255, .1)); }
.flow__step:last-child::before { display: none; }
.flow__n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff;
  background: var(--navy-700); border: 1px solid rgba(31, 176, 255, .45); box-shadow: 0 0 20px rgba(31, 176, 255, .25);
}
.flow__step:last-child .flow__n { background: var(--orange); color: #1a0d04; border-color: var(--orange); box-shadow: 0 0 24px rgba(255, 107, 26, .5); }
.flow__step h3 { font-size: 21px; padding-top: 8px; }
.flow__step p { color: var(--muted-d); font-size: 16px; margin-top: 4px; }

/* ---------- PILARES ---------- */
.fo-pillars { background: var(--light); }
.pillars { display: grid; gap: 14px; }
.pillar { background: #fff; border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.pillar--1::after { background: var(--blue-2); }
.pillar--2::after { background: var(--orange); }
.pillar--3::after { background: #22c55e; }
.pillar__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-800); color: #fff; font-weight: 700; margin-bottom: 16px; }
.pillar h3 { font-size: 26px; margin-bottom: 8px; }
.pillar p { color: var(--muted-l); }

/* ---------- MÓDULOS ---------- */
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mod { padding: 24px 22px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.mod:hover { border-color: rgba(31, 176, 255, .45); background: rgba(31, 176, 255, .06); transform: translateY(-3px); }
.mod svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.mod:nth-child(3n+2) svg { stroke: var(--orange); }
.mod h3 { font-size: 19px; margin-bottom: 6px; color: #fff; }
.mod p { font-size: 15px; color: var(--muted-d); }

/* ---------- Blocos de duas colunas (app e financeiro) ---------- */
.fo-split { display: grid; gap: 48px; align-items: center; }
.fo-split h2 { font-size: clamp(34px, 8vw, 56px); line-height: 1.06; margin-bottom: 16px; }
.fo-split__copy { text-align: center; }
.fo-split__copy .lead { max-width: 560px; margin: 0 auto; }

.fo-app { background: linear-gradient(180deg, var(--navy-900), #0a2340); color: #fff; }
.fo-split__art { display: flex; justify-content: center; }
.phone--big { margin: 0; flex: none; width: min(78vw, 300px); padding: 34px 16px 18px; font-size: 14px; border-radius: 40px; }
.phone--big .phone__day { font-size: 24px; }
.phone--big .job b { font-size: 15px; }
.phone--big .job__btn, .phone--big .phone__send { font-size: 13px; padding: 9px; }
.phone--big .shots { grid-template-columns: repeat(4, 1fr); }
.phone--big .shots span { font-size: 9px; }
.checks { list-style: none; padding: 0; margin: 26px auto 0; display: grid; gap: 10px; text-align: left; max-width: 560px; }
.checks li { position: relative; padding: 14px 16px 14px 48px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--orange); }
.checks li::after { content: ""; position: absolute; left: 22.5px; top: 50%; width: 7px; height: 4px; margin-top: -3px; border: solid #1a0d04; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.fo-fin { background: var(--light); color: var(--ink); }
.fo-fin .lead { color: var(--muted-l); }
.fo-note { margin: 18px auto 0; max-width: 520px; padding: 14px 18px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }
.ledger { width: min(100%, 460px); margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 30px 70px rgba(11, 26, 44, .12); }
.ledger__title { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 18px; }
.ledger__billed, .ledger__total, .ledger__costs li { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; font-size: 15px; }
.ledger__billed { font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line-l); }
.ledger__billed i { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
.ledger__costs { list-style: none; margin: 0; padding: 14px 0; display: grid; gap: 12px; border-bottom: 1px solid var(--line-l); }
.ledger__costs li { color: var(--muted-l); }
.ledger__costs i { display: block; height: 8px; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #e2510a, var(--orange)); }
.ledger__total { padding-top: 16px; font-weight: 700; }
.ledger__total i { height: 12px; width: 32%; border-radius: 99px; background: linear-gradient(90deg, #16a34a, #4ade80); }
.ledger.in .ledger__costs i, .ledger.in .ledger__total i, .ledger.in .ledger__billed i { animation: grow 1.1s var(--ease) both; }

/* ---------- ORIGEM ---------- */
.fo-orig { background: radial-gradient(90% 60% at 50% 0%, #0d2f52 0%, var(--navy-900) 70%); }
.fo-orig h2 { font-size: clamp(34px, 8vw, 56px); line-height: 1.06; margin-bottom: 18px; }

/* ---------- PARA QUEM ---------- */
.who { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.who li { padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-l); font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---------- CONTATO ---------- */
.fo-fine { margin: 26px auto 0; max-width: 520px; font-size: 13px; color: var(--muted-d); }

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 640px) {
  .pains { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mods { grid-template-columns: 1fr 1fr; gap: 14px; }
  .flow { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .mock__desk { padding: 20px 44px 24px 24px; }
}

@media (min-width: 900px) {
  .pains { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mods { grid-template-columns: repeat(3, 1fr); }
  .fo-split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .fo-split__copy { text-align: left; }
  .fo-split__copy .lead, .fo-note { margin-left: 0; }
  .checks { margin-left: 0; }
  .fo-split--rev .ledger { order: -1; }
  .fo-orig .ia__copy { text-align: left; }

  /* ciclo em 4 colunas, com linha horizontal ligando os passos */
  .flow { grid-template-columns: repeat(4, 1fr); column-gap: 20px; row-gap: 44px; }
  .flow__step { padding: 64px 0 0; }
  .flow__step::before { left: 44px; right: -20px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue), rgba(31, 176, 255, .15)); }
  .flow__step:nth-child(4n)::before { display: none; }
}

@media (min-width: 1024px) {
  .fo-hero { padding: calc(var(--nav-h) + 56px) 0 96px; min-height: min(100svh, 900px); display: flex; align-items: center; }
  .fo-hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; max-width: 1240px; }
  .fo-hero h1 { font-size: clamp(52px, 5.4vw, 80px); }
  .mods { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .b, .ledger i { animation: none !important; }
}
