/* CSS da página rygu.com.br: só o que fica dentro dos visuais e o kit não tem (taste-skill system.md). */

/* ---------- Logo no menu e no rodapé ---------- */
.nav__logo rygu-logo { color: var(--ink); }
.nav__logo { display: inline-flex; align-items: center; }

/* ---------- Menu com cards: a logo de cada sistema ---------- */
.menu-logo { display: grid; place-items: center; background: color-mix(in oklab, var(--pc) 22%, #0d0f12) !important; }
.menu-logo img { width: 58%; height: auto; }
/* cinco sistemas no menu, lado a lado */
.nav__menu .menu-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav__menu .menu-5 > .menu-card { grid-column: auto; }
.menu-logo__nome { font: var(--display-weight) 28px/1 var(--font-display); letter-spacing: var(--display-tracking); color: #fff; }

/* ---------- Colagem da abertura: peças de UI em unidades do contêiner ---------- */
.ly-collage { container-type: inline-size; }
.ly-collage .ly-piece { box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 28px 60px -28px rgb(0 0 0 / .8); }
.ly-collage .pc { --pc-c: var(--p-accent); background: #f7f8fa; color: #121417; padding: 3cqw 3.4cqw; display: grid; gap: 1.6cqw; align-content: start;
      font: 400 max(12px, 1.95cqw)/1.35 var(--font-text); }
.pc__head { display: flex; align-items: center; gap: 1.4cqw; font: 500 max(12px, 1.7cqw)/1 var(--font-mono); color: #5d636c; letter-spacing: 0; }
.pc__dot { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--pc-c); flex: none; }
.pc__dot--wa { background: #25D366; }
.pc__dot--q { background: #F2A541; }
.ly-collage .pc--kardeo { --pc-c: #c2410c; }
.ly-collage .pc--quartia { --pc-c: #2A3F9E; }
.ly-collage .pc--kds, .ly-collage .pc--cardapio { --pc-c: #0B6F8A; }
.pc__search { display: flex; justify-content: space-between; align-items: center; border: 1px solid #d9dde3; border-radius: 1cqw; padding: 1.6cqw 2cqw;
              font: 500 max(12px, 2.3cqw)/1 var(--font-mono); }
.pc__search span { font-size: max(11px, 1.5cqw); color: #5d636c; border: 1px solid #d9dde3; border-radius: .6cqw; padding: .4cqw .9cqw; }
.pc__row { display: grid; grid-template-columns: 1fr auto; gap: .4cqw 2cqw; padding-top: 1.6cqw; border-top: 1px solid #e6e9ee; }
.pc__row b { font-weight: 500; }
.pc__row em { font-style: normal; font-weight: 500; color: #9a3412; }
.pc__row small { grid-column: 1 / -1; color: #5d636c; font-size: max(11px, 1.7cqw); }
.pc__row--alerta b { color: #9a3412; }
.ly-collage .pc--chat { background: #ffffff; }
.pc__msg { margin: 0; background: #eef0f3; border-radius: 1.4cqw 1.4cqw 1.4cqw .4cqw; padding: 1.6cqw 2cqw; max-width: 88%; }
.pc__msg--ia { justify-self: end; background: #e3fbff; border-radius: 1.4cqw 1.4cqw .4cqw 1.4cqw; display: grid; gap: .8cqw; }
.pc--chat-q .pc__msg--ia { background: #eef1fd; }
.pc--chat-r .pc__msg--ia { background: #e6f6fa; }
.pc__msg small { color: #5d636c; font-size: max(11px, 1.5cqw); font-family: var(--font-mono); }
.pc__mapa { display: grid; grid-template-columns: 6cqw repeat(7, 1fr); gap: 1cqw .6cqw; align-items: center; padding-top: .6cqw;
            background: repeating-linear-gradient(90deg, transparent 0 calc((100% - 6cqw) / 7 - 1px), #e6e9ee 0 calc((100% - 6cqw) / 7)) 6cqw 0 / calc(100% - 6cqw) 100% no-repeat; }
.pc__q { grid-column: 1; font: 500 max(11px, 1.7cqw)/1 var(--font-mono); color: #5d636c; }
.pc__res { grid-column: calc(var(--a) + 1) / calc(var(--b) + 1); background: #2A3F9E; color: #fff; border-radius: .8cqw; padding: 1.1cqw 1.4cqw;
           font-size: max(11px, 1.55cqw); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.pc__res--in { background: #F2A541; color: #3b2306; }
.pc__res--bloq { background: repeating-linear-gradient(135deg, #d9dde3 0 6px, #eceff3 6px 12px); color: #454b54; }
.ly-collage .pc--nota { background: #0E1430; color: #fff; gap: .6cqw; }
.ly-collage .pc--nota-k { background: #431407; }
.pc--nota-k small { color: #fed7aa !important; }
.pc--nota small { color: #c8d0ec; font-size: max(11px, 1.55cqw); }
.pc__ticket { display: flex; justify-content: space-between; background: #111; color: #fff; border-radius: .8cqw; padding: 1.2cqw 1.8cqw; font: 500 max(12px, 1.8cqw)/1 var(--font-mono); }
.pc__ticket em { font-style: normal; color: #40B8D2; }
.pc__item { margin: 0; font-size: max(12px, 2.2cqw); padding-bottom: 1.2cqw; border-bottom: 1px solid #e6e9ee; }
.pc__item b { font-weight: 600; margin-right: 1cqw; }
.pc__item--obs { color: #0B6F8A; border: 0; font-size: max(11px, 1.8cqw); }
.pc__prato { font: var(--display-weight) max(14px, 3.4cqw)/1.05 var(--font-display); letter-spacing: -0.02em; }
.pc--cardapio small { color: #5d636c; font-size: max(11px, 1.7cqw); }
.pc__preco { display: flex; justify-content: space-between; align-items: center; }
.pc__preco em { font-style: normal; font-weight: 600; font-size: max(12px, 2.3cqw); }
.pc__preco span { background: #0B6F8A; color: #fff; border-radius: .8cqw; padding: 1.1cqw 2cqw; font-weight: 500; font-size: max(11px, 1.7cqw); }

/* ---------- Sistemas ---------- */
.sistema { --p-h: 168px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: var(--s-3); }
.sistema > .panel { order: -1; margin: 0 0 var(--s-4); }
.sistema__logo { height: var(--p-h); display: grid; place-items: center; overflow: hidden; position: relative;
                 background: radial-gradient(120% 90% at 50% 120%, color-mix(in oklab, var(--pc) 30%, transparent), transparent 70%), #111317 !important;
                 border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.sistema__logo img { width: 56%; height: auto; transition: transform var(--dur, .3s) var(--ease, ease); }
.sistema:hover .sistema__logo img { transform: scale(1.03); }
.sistema__nome { font: var(--display-weight) 40px/1 var(--font-display); letter-spacing: var(--display-tracking); color: #fff; }
.sistema__setor { color: var(--pc); }
.sistema h3 { font: var(--display-weight) var(--t-card)/1.25 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.sistema p { margin: 0; }
.sistema__url { margin-top: auto; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Abertura: texto e botões à esquerda (span-5), colagem à direita (span-6 start-7) ---------- */
@media (min-width: 1024px) {
  .hero--triptych .hero__grid { grid-template-rows: 1fr auto auto 1fr; }
  .hero--triptych .hero__grid > .hero__texto { grid-column: 1 / span 5; grid-row: 2; align-self: end; }
  .hero--triptych .ly-collage { grid-column: 7 / span 6; grid-row: 1 / span 4; }
  .hero--triptych .hero__cta { grid-column: 1 / span 5; grid-row: 3; align-self: start; justify-content: flex-start; margin-top: var(--s-7); }
}
.hero--triptych .hero__lead { max-width: 44ch; font-size: var(--t-lead); }
.hero--triptych .hero__cta .btn-row { flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.hero__ver { font-weight: 500; }
.hero--triptych .hero__cta .btn { height: 56px; font-size: var(--t-body); }
@media (max-width: 639px) {
  .hero--triptych .hero__lead { font-size: var(--t-body); }
}

/* Mestreo na colagem */
.ly-collage .pc--chat-m .pc__msg--ia { background: #fdf3d3; }
.pc__audio { display: flex; align-items: center; gap: 1.6cqw; font-family: var(--font-mono); font-size: max(11px, 1.6cqw); color: #3d4248; }
.pc__onda { width: 14cqw; height: 3.2cqw; flex: none;
            background: repeating-linear-gradient(90deg, #1a9e4b 0 .5cqw, transparent .5cqw 1.1cqw);
            -webkit-mask: radial-gradient(60% 100% at 50% 50%, #000 60%, transparent 100%);
            mask: radial-gradient(60% 100% at 50% 50%, #000 60%, transparent 100%); }
.ly-collage .pc--pdf { --pc-c: #8A5D00; }
.pc--pdf .pc__item { display: flex; justify-content: space-between; gap: 2cqw; }
.pc__val { font-weight: 500 !important; margin: 0 !important; white-space: nowrap; }
.pc--pdf .pc__preco span { background: #8A5D00; }
.ly-collage .pc--nota-m { background: #3a2a05; }
.pc--nota-m small { color: #f7dd94 !important; }

/* ---------- Dúvidas: o que o dono pensa (em destaque) e o fato que responde ---------- */
.duvidas .rows__name { font: var(--display-weight) var(--t-card)/1.3 var(--font-display); letter-spacing: -0.01em; }
.duvidas .rows > li > p { margin: var(--s-2) 0 0; }
@media (min-width: 1024px) { .duvidas__lista { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
  .duvidas__lista > li { grid-column: 1 / span 5; } .duvidas__lista > li:nth-child(even) { grid-column: 6 / span 7; } .duvidas__lista > li:nth-child(2) { padding-top: 0; } }
@media (min-width: 1024px) { .duvidas .rows > li { padding-block: var(--s-6); } .duvidas .rows > li:first-child { padding-top: 0; } }

/* ---------- Rotina: o momento "é isso mesmo", em tipo grande ---------- */
.rotina { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-7); }
.rotina__texto { margin: 0; max-width: 32ch; font: var(--display-weight) clamp(26px, 1.6vw + 18px, 40px)/1.2 var(--font-display);
                 letter-spacing: var(--display-tracking); text-wrap: pretty; }
.rotina__fecho { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3) var(--s-5); font-size: var(--t-lead); max-width: 64ch; }
.rotina__link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }

/* ---------- Sistemas: o card do sob medida leva a logo RYGU ---------- */
.sistema--medida .sistema__logo rygu-logo { color: #F3F5F7; }
@media (min-width: 1024px) { #sistemas .sistema > .sistema__logo { --p-h: 60px; flex: none; } #sistemas .sistema > .panel { margin-bottom: var(--s-2); } #sistemas .sistemas { row-gap: var(--s-5); } #sistemas .sistema__logo img { width: auto; height: 34px; } #sistemas .sistema__logo rygu-logo { transform: scale(.82); } }
@media (min-width: 640px) and (max-width: 1023px) { #sistemas { --h: 2; } #sistemas .sistemas > .sistema { grid-column: span 6; } }
@media (max-width: 639px) {
  #sistemas .sistemas > .sistema { grid-column: 1 / -1; }
  #sistemas .sistema { gap: var(--s-1); } #sistemas .sistema > .sistema__logo { --p-h: 64px; flex: none; }
  #sistemas .sistema > .panel { margin-bottom: var(--s-2); }
  #sistemas .sistema__logo img { width: 36%; }
  #sistemas .sistema__logo rygu-logo { transform: scale(.7); }
  #sistemas .sistemas { row-gap: var(--s-5); }
  #sistemas .sistema__setor { display: none; }
}

/* ---------- IA: painel com o chat ---------- */
.ia__regras { align-self: start; }
.ia__regras p { margin: var(--s-2) 0 0; color: var(--muted); }
.ia__painel { height: 100%; min-height: 360px; }
@media (max-width: 639px) { .ia__painel { min-height: 260px; } .ly-collage .pc__msg { max-width: 100%; } }

/* ---------- Fecho e rodapé mínimo ---------- */
.closing__nao { margin: 0; color: var(--muted); font-size: var(--t-body); }
.footer__sistemas { display: flex !important; flex-wrap: wrap; gap: var(--s-3) var(--s-6) !important; }

/* ---------- Depoimentos (só com autorização por escrito; ver o <template> no index) ---------- */
.depoimento { margin: 0; display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.depoimento blockquote { margin: 0; font: var(--display-weight) var(--t-card)/1.4 var(--font-display); }
.depoimento figcaption { display: grid; gap: var(--s-1); font-size: var(--t-small); color: var(--muted); }
.depoimento figcaption b { color: var(--ink); font-weight: 500; }

/* ---------- Movimento: a abertura entra uma vez e o olho termina no botão principal ----------
   Uma só vez, no carregamento (raro: vale gastar um momento). Só transform e opacity, ease-out forte,
   40 a 80 ms entre as peças. A seta do botão principal dá dois toques de 3 px quando tudo assentou.
   Com movimento reduzido: só a opacidade, curta, e a seta fica parada. */
:root { --rg-ease-out: cubic-bezier(0.23, 1, 0.32, 1); --rg-ease-io: cubic-bezier(0.77, 0, 0.175, 1); }
@media (prefers-reduced-motion: no-preference) {
  .hero .entra { animation: rg-entra 640ms var(--rg-ease-out) both; }
  .hero h1.entra { animation-delay: 60ms; }
  .hero .hero__lead.entra { animation-delay: 120ms; }
  .hero .hero__cta.entra { animation-delay: 200ms; }
  .hero .entra--tela { animation: rg-tela 800ms var(--rg-ease-out) 160ms both; }
  .hero__cta .btn--primary .m-arrow { animation: rg-seta 520ms var(--rg-ease-io) 1100ms 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .entra { animation: rg-aparece 200ms ease both; }
}
@keyframes rg-entra { from { opacity: 0; transform: translateY(12px); } }
@keyframes rg-tela { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes rg-aparece { from { opacity: 0; } }
@keyframes rg-seta { 50% { transform: translateX(3px); } }
@media (min-width: 640px) and (max-width: 1023px) { #sistemas .sistema > .sistema__logo { --p-h: 96px; flex: none; } }
/* celular: a colagem só com as duas peças maiores, sem a nota pequena por cima delas */
@media (max-width: 639px) { .hero--triptych .ly-collage .ly-piece:nth-child(3) { display: none; } }

/* 1024 a 1279 e telas baixas: os sistemas em duas telas; 640 a 1023 só quando a tela é baixa */
@media (min-width: 1024px) and (max-width: 1279px), (min-width: 1024px) and (max-height: 860px) { #sistemas, #duvidas { --h: 2; } }
/* rodapé: no celular a marca em cima, os sistemas embaixo */
@media (max-width: 1023px) { .closing__links .footer__marca, .closing__links .footer__col { grid-column: 1 / -1; } }
/* celular: a abertura leva aos sistemas (a ação principal é a barra fixa), as peças da colagem cabem na tela */
@media (max-width: 639px) {
  /* a ação principal no celular é a barra fixa ao pé da tela, sempre visível */
  .hero--triptych .hero__cta { display: none; }
  .hero--triptych .ly-collage__set > .ly-piece:nth-child(1) { left: 0 !important; width: 74% !important; }
  .hero--triptych .ly-collage__set > .ly-piece:nth-child(2) { left: 22% !important; top: 34% !important; width: 78% !important; }
  .hero--triptych .ly-collage .pc__msg small { display: none; }
  .rotina__fecho { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) { .duvidas .rows > li:nth-child(2) { padding-top: 0; } }
