:root {
  --linen: #efe7da;
  --linen-2: #e4d9c7;
  --sage: #a9b98f;
  --sage-deep: #5f7549;
  --ink: #24301d;
  --ink-soft: #5b6153;
  --graphite: #3b3a36;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--linen);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 18px var(--gutter);
}
.mark {
  font: 300 0.95rem/1 var(--sans); letter-spacing: 0.22em;
  text-decoration: none; color: var(--ink);
}
.mark b { font-weight: 600; }
.bar__nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.92rem; }
.bar__nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.bar__nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  background: var(--ink); color: #f7f2e9;
  font: 500 1rem/1 var(--sans); text-decoration: none;
  border-radius: 4px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s;
}
.btn:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.link {
  font-weight: 500; text-decoration: none; padding: 12px 2px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
}

/* hero */
.hero { height: 220vh; position: relative; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}

/* the table: linen under soft window light */
.table {
  position: absolute; inset: -8% -6%; z-index: 0;
  background:
    radial-gradient(70% 80% at 72% 45%, #f6f0e6 0%, transparent 70%),
    linear-gradient(160deg, var(--linen) 0%, var(--linen-2) 100%);
}
.table::after {
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.table__sun {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(118deg,
    transparent 0 12%, rgba(255,251,240,.7) 12% 18%, transparent 18% 22%, rgba(255,251,240,.5) 22% 25%, transparent 25% 100%);
  filter: blur(22px); mix-blend-mode: soft-light;
}

.hero__copy {
  position: absolute; z-index: 6;
  left: var(--gutter); top: 50%; translate: 0 -46%;
  width: min(46vw, 720px);
}
.hero__kicker { font-size: .9rem; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 1.4rem; }
.hero__title {
  font: 400 clamp(3.4rem, 6.6vw, 7rem)/0.96 var(--serif);
  letter-spacing: -0.012em;
}
.hero__title em { font-style: italic; color: var(--sage-deep); }
.hero__lede { max-width: 31rem; margin-top: 1.6rem; color: var(--ink-soft); font-size: 1.1rem; }
.hero__ctas { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__facts { margin-top: 1.6rem; font-size: .88rem; color: var(--ink-soft); }

/* the bowl, seen from above */
.plate {
  position: absolute; z-index: 2;
  width: min(44vw, 78vh); aspect-ratio: 1180 / 1151;
  right: max(-4vw, calc(var(--gutter) - 6vw)); top: 50%; translate: 0 -46%;
}
.plate__bowl {
  width: 100%;
  filter: drop-shadow(18px 26px 22px rgba(70, 55, 30, .28)) drop-shadow(4px 6px 4px rgba(70, 55, 30, .2));
  will-change: transform;
}

/* the note: the old diet, crossed out, then taken back */
.note {
  position: absolute; z-index: 4;
  left: calc(100% - min(44vw, 78vh) - 7vw); bottom: 9vh;
  width: clamp(250px, 21vw, 320px);
  padding: 22px 24px 20px;
  background: #fbf8f1;
  rotate: -5deg;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 10px 18px 28px -10px rgba(60, 45, 20, .35), 1px 2px 3px rgba(60, 45, 20, .18);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(95, 117, 73, .18) 33px 34px);
  background-position: 0 62px;
  will-change: transform;
}
.note::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 88px; height: 24px; translate: -50% 0; rotate: 3deg;
  background: rgba(214, 205, 182, .75); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.note__title { position: relative; height: 1.9rem; font: italic 400 1.45rem/1.3 var(--serif); color: var(--graphite); margin-bottom: 10px; }
.note__old, .note__new { position: absolute; inset: 0; transition: opacity .5s, translate .5s; white-space: nowrap; }
.note__new { color: var(--sage-deep); opacity: 0; translate: 0 6px; }
.note.is-done .note__old { opacity: 0; translate: 0 -6px; }
.note.is-done .note__new { opacity: 1; translate: 0 0; }
.note__list { list-style: none; padding: 0; }
.note__list li { height: 34px; display: flex; align-items: center; }
.note__list button { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 1.05rem; color: var(--graphite); }
.note__list button::before { /* the plus that appears when included */
  content: "+"; width: 14px; font-weight: 600; color: var(--sage-deep);
  opacity: calc(1 - var(--s, 1)); transition: opacity .3s;
}
.note__word { position: relative; }
.note__word::after { /* the strike, erased right to left */
  content: ""; position: absolute; left: -4px; right: -6px; top: 50%; height: 10px; translate: 0 -45%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C40 3 70 7 110 4 S170 3 198 5' fill='none' stroke='%23332f2a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 calc((1 - var(--s, 1)) * 100%) 0 0);
}

main > section:not(.hero) { position: relative; z-index: 1; overflow-x: clip; }
.h2 { font: 400 clamp(2.6rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -0.01em; }

/* Como eu trabalho */
.jeito { background: var(--linen); padding: 0 var(--gutter); }
.jeito__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 1240px; }
.jeito__kicker { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.6rem; letter-spacing: .03em; }
.scrub { font: 400 clamp(2.2rem, 4.6vw, 4.9rem)/1.08 var(--serif); }
.scrub em { color: var(--sage-deep); }
.scrub .w { opacity: .14; }

/* Consulta */
.consulta {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 640px); justify-content: center;
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(110px, 16vh, 180px) var(--gutter); background: #f6f0e6; align-items: start;
}
.consulta__photo { position: sticky; top: 16vh; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(60,45,20,.5); }
.consulta__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 28% 40%; }
.consulta__lede { margin-top: 1.4rem; color: var(--ink); font-size: 1.25rem; line-height: 1.5; max-width: 32rem; }
.steps { list-style: none; padding: 0; margin: clamp(40px, 6vh, 60px) 0 clamp(36px, 5vh, 48px); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; padding: 28px 0; border-top: 1px solid rgba(36,48,29,.14); }
.steps li:last-child { border-bottom: 1px solid rgba(36,48,29,.14); }
.steps li::before { content: counter(s); grid-row: span 2; font: italic 400 3rem/.9 var(--serif); color: var(--sage-deep); }
.steps h3 { font: 400 clamp(1.6rem, 2.2vw, 2rem)/1.1 var(--serif); color: var(--ink); }
.steps p { color: var(--ink-soft); margin-top: 8px; font-size: 1.05rem; max-width: 30rem; }
.consulta__where { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; font-size: .95rem; color: var(--ink-soft); }
.consulta__where p { background: var(--linen); border-radius: 6px; padding: 16px 18px; }
.consulta__where strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 500; font-size: 1.02rem; }

/* Monte seu prato */
.game {
  background: #26321f; color: #e9e4d6;
  padding: clamp(110px, 16vh, 180px) var(--gutter);
  overflow: hidden;
}
.game::before { /* lamp light on the table */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 38% 58%, rgba(255,240,205,.14), transparent 70%);
}
.game__head { max-width: 1240px; margin: 0 auto 48px; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.game__head .h2 { color: #f6f0e3; }
.game__head p { max-width: 28rem; color: #b9bca9; }
.game__table { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

.tray { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px;
  border: 1px solid rgba(233,228,214,.22); border-radius: 6px; color: #f1ecdf;
  background: rgba(255,255,255,.04); touch-action: manipulation; user-select: none;
  transition: background-color .2s, border-color .2s, transform .2s, opacity .3s;
}
.chip:hover { background: rgba(255,255,255,.1); border-color: rgba(233,228,214,.45); }
.chip:active { transform: scale(.97); }
.chip.is-used { opacity: .38; text-decoration: line-through; text-decoration-color: rgba(233,228,214,.4); }

.score { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(233,228,214,.14); }
.score__dots { list-style: none; padding: 0; display: flex; gap: 10px; margin-bottom: 12px; }
.score__dots li { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(233,228,214,.35); transition: background-color .3s, border-color .3s, transform .4s cubic-bezier(.34,1.5,.64,1); }
.score__dots li.is-on { background: var(--c); border: 1.5px solid var(--c); transform: scale(1.12); }
.score__text { color: #c9cbb9; }
.win { margin-top: 28px; padding: 28px; border-radius: 6px; background: #f6f0e3; color: var(--ink); }
.win[hidden] { display: none; }
.win.is-shown { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.win__title { font: italic 400 2rem/1.1 var(--serif); color: var(--sage-deep); margin-bottom: 6px; }
.win__ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* cartoon bowl */
.game__stage { position: relative; }
.bowl { width: 100%; height: auto; overflow: visible; display: block; }
.bowl__all { transform-box: view-box; transform-origin: 300px 470px; }
.eyes { transform-box: fill-box; transform-origin: center; }
.it__in { transform-box: fill-box; transform-origin: 50% 100%; }
.game__stage.is-hover .bowl__all { filter: brightness(1.06); }
.game__stage.is-hover .bowl { transform: scale(1.02); transition: transform .2s; }
.bubble {
  position: absolute; right: 2%; top: 4%; max-width: 15rem;
  background: #fffaf0; color: var(--ink); font-weight: 500; font-size: 1.05rem; line-height: 1.3;
  padding: 12px 18px; border-radius: 18px; border: 3px solid #1f2a19;
  box-shadow: 4px 5px 0 #1f2a19;
}
.bubble::after { content: ""; position: absolute; left: 22%; bottom: -14px; width: 20px; height: 20px; background: #fffaf0; border: solid #1f2a19; border-width: 0 3px 3px 0; rotate: 45deg; translate: 0 -4px; }
.bubble[hidden] { display: none; }
.bubble.is-pop { animation: pop .38s cubic-bezier(.34, 1.6, .64, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(10px); } }
.chip__ico { width: 34px; height: 34px; flex: none; overflow: visible; }
.chip { padding-left: 8px; }
.chip.is-used { text-decoration: none; }
.chip.is-used .chip__ico { opacity: .45; }
.fly { position: fixed; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; z-index: 100; will-change: transform; }
.fly svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.score__dots li[data-dot="branco"].is-on { border-color: #cfc6b2; }

/* Depoimentos */
.depo { padding: clamp(110px, 16vh, 180px) var(--gutter); background: var(--linen); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.depo__head { position: sticky; top: 16vh; display: grid; gap: 14px; justify-items: start; }
.depo__score { color: var(--ink-soft); }
.stars { color: #c99a2e; letter-spacing: 2px; margin-right: 6px; }
.stack { display: grid; gap: 28px; padding-bottom: 6vh; }
.review {
  position: sticky; top: calc(16vh + var(--i, 0) * 22px); margin: 0;
  background: #fbf8f1; border-radius: 6px; padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset, 0 24px 50px -30px rgba(60,45,20,.45);
  min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.review:nth-child(2) { --i: 1; background: #f4eee3; }
.review:nth-child(3) { --i: 2; background: #eee6d8; }
.review blockquote { font: 400 clamp(1.45rem, 2.2vw, 2.1rem)/1.25 var(--serif); color: var(--ink); }
.review figcaption { font-size: .9rem; color: var(--ink-soft); }

/* Contato */
.contato {
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(90px, 12vh, 140px);
  background: #f6f0e6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px); align-items: center;
}
.facts { display: grid; gap: 22px; margin: 36px 0 28px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-top: 1px solid rgba(36,48,29,.14); padding-top: 16px; }
.facts dt { color: var(--ink-soft); font-size: .92rem; }
.facts dd { margin: 0; }
.facts a { text-decoration: none; border-bottom: 1px solid currentColor; }

.pad { position: relative; justify-self: center; width: min(100%, 460px); rotate: 2.5deg; }
.pad__under { position: absolute; inset: 10px -6px -10px 8px; background: #ece4d4; z-index: -1; rotate: -3deg; box-shadow: 0 20px 40px -24px rgba(60,45,20,.5); }
.pad__sheet {
  position: relative; background: #fffdf8; padding: 34px 36px 30px;
  box-shadow: 0 1px 2px rgba(60,45,20,.15), 0 30px 60px -30px rgba(60,45,20,.45);
}
.pad__sheet::before { /* torn perforation along the top */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px;
  background: radial-gradient(circle at 6px 0, transparent 3.5px, #fffdf8 4px) 0 0 / 12px 7px repeat-x;
}
.pad__head { font: 300 .85rem/1 var(--sans); letter-spacing: .22em; padding-bottom: 16px; border-bottom: 1.5px solid var(--sage-deep); display: flex; justify-content: space-between; align-items: baseline; }
.pad__head b { font-weight: 600; }
.pad__role { font: italic 400 1.05rem/1 var(--serif); letter-spacing: 0; color: var(--sage-deep); }
.pad__for { margin-top: 20px; color: var(--ink-soft); }
.pad__for span { font: italic 400 1.4rem/1 var(--serif); color: var(--ink); border-bottom: 1px solid rgba(36,48,29,.3); padding: 0 40px 0 6px; }
.pad__rx { margin-top: 22px; font: italic 400 1.6rem/1.1 var(--serif); color: var(--ink); }
.pad__opts { list-style: none; padding: 0; margin-top: 10px; }
.pad__opts a {
  display: flex; align-items: center; gap: 14px; min-height: 56px; text-decoration: none;
  border-bottom: 1px dashed rgba(36,48,29,.22); font-size: 1.05rem;
  transition: color .2s, padding .25s;
}
.pad__opts a:hover { color: var(--sage-deep); padding-left: 4px; }
.pad__box { width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 3px; flex: none; position: relative; }
.pad__opts a:hover .pad__box::after, .pad__opts a:focus-visible .pad__box::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px;
  border: solid var(--sage-deep); border-width: 0 2.5px 2.5px 0; rotate: 40deg;
}
.pad__sign { margin-top: 30px; text-align: right; font: italic 400 1.7rem/1 var(--serif); color: var(--sage-deep); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); background: var(--ink); color: #b9bca9; font-size: .85rem; letter-spacing: .02em; }
.foot b { font-weight: 600; color: #f1ecdf; letter-spacing: .2em; }
.foot a { color: #f1ecdf; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.game a:focus-visible, .game button:focus-visible { outline-color: #e9e4d6; }

@media (max-width: 860px) {
  .consulta, .depo, .contato, .game__table { grid-template-columns: 1fr; }
  .consulta__photo { position: relative; top: 0; max-width: 260px; }
  .consulta__photo img { aspect-ratio: 1 / 1; }
  .consulta__where { grid-template-columns: 1fr; }
  .depo__head { position: relative; top: 0; }
  .review { top: calc(90px + var(--i, 0) * 16px); min-height: 0; }
  .game { padding-top: 96px; padding-bottom: 96px; }
  .game__head { margin-bottom: 18px; gap: 10px; }
  .game__head p { font-size: .95rem; }
  .game__table { gap: 18px; }
  .game__stage { width: min(84vw, 44svh); justify-self: center; }
  .bubble { font-size: .95rem; padding: 10px 14px; right: -4%; }
  .chip__ico { width: 28px; height: 28px; }
  .tray { gap: 8px; justify-content: center; }
  .chip { min-height: 44px; padding: 0 12px 0 10px; font-size: .9rem; gap: 8px; }
  .score { margin-top: 18px; padding-top: 16px; text-align: center; }
  .score__dots { justify-content: center; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .pad { rotate: 1deg; }
  .pad__sheet { padding: 28px 22px 24px; }
}

@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar { justify-content: space-between; background: rgba(239, 231, 218, .94); padding-top: 12px; padding-bottom: 12px; }
  .hero { height: 190vh; }
  .hero__copy { top: 84px; translate: 0 0; width: auto; right: var(--gutter); }
  .hero__kicker { margin-bottom: .8rem; font-size: .8rem; }
  .hero__title { font-size: clamp(2.8rem, 12.5vw, 3.8rem); }
  .hero__lede { font-size: 1rem; margin-top: 1rem; }
  .hero__ctas { margin-top: 1.3rem; gap: 1rem; }
  .hero__facts { display: none; }
  .hide-sm { display: none; }
  .plate { width: 108vw; right: -30vw; top: auto; bottom: -24vw; translate: 0 0; }
  .note { left: 24px; bottom: 5svh; width: 210px; padding: 16px 18px 14px; }
  .note__title { font-size: 1.15rem; height: 1.6rem; }
  .note__list li, .note__list button { height: 30px; min-height: 30px; }
  .note__list button { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; min-height: 100svh; }
}

.bar { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.bar.is-solid { background: rgba(243, 237, 227, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(36,48,29,.08); }
