/* =========================================================
   iMoowe para nutricionistas
   Usa base.css (identidade do iMoowe) e acrescenta só o que é desta página.
   ========================================================= */

/* navbar: selo "para nutricionistas" */
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__tag { font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); padding: 6px 8px; border-radius: 8px; background: var(--paper-2); white-space: nowrap; }
@media (max-width: 400px) { .nav__tag { display: none; } }

/* hero */
.nutri .hero__title { font-size: clamp(2.5rem, 9.6vw, 5.4rem); }
.nutri .hero__photo img { object-position: 50% 35%; animation: kenburns 22s ease-in-out infinite alternate; }
.nutri .field-row { grid-template-columns: 1fr; }
@media (min-width: 560px) { .nutri .field-row { grid-template-columns: 1fr 1fr; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; max-width: 250px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px -18px rgba(38, 37, 39, .45); font-size: .78rem; line-height: 1.25; color: var(--ink-2);
  opacity: 0; animation: cardIn .7s var(--ease) forwards, floaty 5s ease-in-out infinite;
}
.float-card b { display: block; color: var(--ink); font-size: .84rem; }
.float-card--a { left: 12px; top: 14px; animation-delay: .6s, 1.4s; }
.float-card--b { right: 12px; top: 42%; animation-delay: .85s, 2s; }
.float-card--c { left: 12px; bottom: 14px; animation-delay: 1.1s, 2.6s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.fc-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); position: relative; }
.fc-ic::after { content: ""; position: absolute; inset: 8px; background: var(--lime); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.fc-ic--ok { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.fc-ic--ai { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z'/%3E%3C/svg%3E"); }
.fc-ic--cal { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3zm-1 8v10h12V10z'/%3E%3C/svg%3E"); }
@media (min-width: 960px) {
  .float-card--a { left: -36px; top: 48px; }
  .float-card--b { right: -28px; top: 46%; }
  .float-card--c { left: -24px; bottom: 56px; }
}

/* faixa em movimento: um pouco mais sóbria que no site principal */
.nutri .marquee { transform: rotate(-1.2deg); }

/* comparativo hoje x iMoowe */
.compare__grid { display: grid; gap: 14px; }
.compare__col { border-radius: var(--r-lg); padding: 26px; }
.compare__col ul { display: grid; gap: 14px; margin-top: 18px; }
.compare__col li { position: relative; padding-left: 30px; }
.compare__label { display: flex; align-items: center; gap: 10px; font: 500 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.compare__col--before { background: var(--paper-2); color: var(--ink-2); }
.compare__col--before .compare__label { color: var(--mute); }
.compare__col--before li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 14px; height: 2px; background: var(--mute); border-radius: 2px; }
.compare__col--after { background: var(--ink); color: rgba(246, 245, 238, .85); }
.compare__col--after .compare__label { color: var(--lime); }
.compare__col--after b { color: var(--paper); }
.compare__col--after li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262527' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (min-width: 860px) { .compare__grid { grid-template-columns: 1fr 1fr; } .compare__col { padding: 34px; } }

/* painel interativo */
.panel { background: var(--paper-2); }
.panel__tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; }
.panel__tabs::-webkit-scrollbar { display: none; }
.panel__tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .94rem; white-space: nowrap; transition: background-color .25s, color .25s; }
.panel__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 420px) { .panel__tabs button { padding: 0 12px; font-size: .86rem; } }
.panel__grid { display: grid; gap: 32px; }
.panel__copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.panel__title { font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.05; letter-spacing: -.025em; }
.panel__list { display: grid; gap: 10px; width: 100%; }
.panel__list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--paper); animation: swap .45s var(--ease) both; }
.panel__list li::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262527' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.panel__list b { display: block; font-weight: 700; }
.panel__list span { color: var(--ink-2); font-size: .94rem; }
@media (min-width: 960px) { .panel__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }

/* janela conceitual */
.window { border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -40px rgba(38, 37, 39, .5), 0 0 0 1px var(--line); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-3); }
.window__bar span { margin-left: 10px; font: 500 .72rem var(--f-mono); color: var(--mute); }
.window__screen { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; position: relative; }
.window__screen > img { grid-column: 1 / -1; width: 100%; height: 100%; object-fit: cover; }
.window__screen:has(> img) > :not(img) { display: none; }
.win-side { display: grid; align-content: start; gap: 10px; padding: 14px 12px; background: var(--ink); }
.win-side b { width: 32px; height: 32px; border-radius: 10px; background: var(--lime); margin-bottom: 8px; }
.win-side i { width: 32px; height: 10px; border-radius: 6px; background: rgba(246, 245, 238, .18); }
.win-side i.on { background: rgba(246, 245, 238, .7); }
.win-main { position: relative; padding: 18px; }
.v { position: absolute; inset: 18px; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.window__screen[data-view="clinica"] .v--clinica,
.window__screen[data-view="rotina"] .v--rotina,
.window__screen[data-view="ia"] .v--ia,
.window__screen[data-view="financeiro"] .v--financeiro { opacity: 1; transform: none; }
.win-row { display: flex; gap: 8px; }
.pill { height: 26px; width: 72px; border-radius: 999px; background: var(--paper-2); }
.pill--ink { background: var(--ink); }
.meal { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px; border-radius: 14px; background: var(--paper); }
.meal b, .prompt b, .tax b { font: 600 .74rem var(--f-body); color: var(--ink); }
.meal span { height: 8px; border-radius: 6px; background: var(--paper-3); }
.meal span:nth-child(3) { width: 70%; } .meal span:nth-child(4) { width: 50%; }
.meal--hl { box-shadow: inset 0 0 0 2px var(--lime); }
.macro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macro i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) calc(var(--p) * 100%), var(--paper-2) 0); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 8px; background: var(--paper); }
.cal i.on { background: var(--lime); }
.chat { display: grid; gap: 6px; }
.chat span, .bot span { height: 26px; border-radius: 14px; width: 70%; }
.chat .in, .bot .in { background: var(--paper-2); }
.chat .out, .bot .out { background: var(--ink); justify-self: end; width: 55%; }
.chat .in--short { width: 40%; }
.trend svg { width: 100%; height: 50px; }
.trend path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.prompt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ink); }
.prompt span { flex: 1; height: 10px; border-radius: 6px; background: rgba(246, 245, 238, .3); }
.prompt b { color: var(--lime); }
.sugg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sugg i { height: 70px; border-radius: 14px; background: linear-gradient(160deg, var(--lime-soft), var(--paper)); box-shadow: inset 0 0 0 1px var(--line); }
.sugg--b { grid-template-columns: repeat(2, 1fr); }
.sugg--b i { height: 40px; background: var(--paper); }
.bot { display: grid; gap: 6px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis i { height: 54px; border-radius: 14px; background: var(--paper); }
.kpis i:first-child { background: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 10px; border-radius: 14px; background: var(--paper); }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; background: var(--ink); }
.bars i:last-child { background: var(--lime); }
.tax { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--lime); }
.tax span { flex: 1; height: 8px; border-radius: 6px; background: var(--paper-3); }
.tax em { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); }
.window__note { padding: 10px 14px; font: 500 .7rem var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .window__screen { min-height: 400px; grid-template-columns: 64px 1fr; } }

/* pacientes */
.patients__grid { display: grid; gap: 36px; align-items: center; }
.patients__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3.2; }
.patients__photo img { width: 100%; height: 100%; object-fit: cover; }
.patients__copy .h2 { margin-bottom: 16px; }
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262527' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.patients__note { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--lime); color: var(--ink-2); }
@media (min-width: 960px) { .patients__grid { grid-template-columns: 1.05fr 1fr; gap: 72px; } }

/* computador e celular */
.devices { background: var(--paper-2); }
.devices__grid { display: grid; gap: 32px; align-items: center; }
.devices__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.devices__chips span { padding: 9px 14px; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--line); }
.devices__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3 / 2; }
.devices__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .devices__grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

/* formulário: 2 colunas no cartão da lista em telas médias */
.nutri .lead--card .lead__step--1 { gap: 12px; }

/* navbar: links só quando cabem numa linha */
.nutri .nav__links a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1139px) {
  .nutri .nav__links { display: none; }
  .nutri .nav__toggle { display: grid; }
  .nutri .nav.is-open .nav__links { display: grid; }
}

/* perguntas que aparecem ao terminar nome e CRN */
.more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease), margin .45s var(--ease); margin-top: -10px; }
.more.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.more__inner { min-height: 0; overflow: hidden; display: grid; gap: 10px; }
.more.is-open .more__inner { overflow: visible; padding: 12px; margin: 0 -12px; border-radius: 16px; background: var(--lime-soft); animation: moreGlow 1.6s var(--ease) 1; }
@keyframes moreGlow { 0% { box-shadow: 0 0 0 0 rgba(189, 241, 3, .8); } 100% { box-shadow: 0 0 0 14px rgba(189, 241, 3, 0); } }
.field-row .more { grid-column: 1 / -1; }
@media (min-width: 560px) { .more__inner { grid-template-columns: 1fr 1fr; } }
.field select {
  width: 100%; min-height: 52px; padding: 0 40px 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262527' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  font-size: 16px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.field select:invalid { color: #a3a198; }
.field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(189, 241, 3, .45); }
.field select[aria-invalid="true"] { border-color: #b3261e; }
