/* The sales page (jambalaia.com home), identical to the approved design (Daniel, 12/10/2026: "gostei da página de
   venda, pode fazer, IDÊNTICO"; designs in tmp/ui/jambalaia/venda/). Two layouts, as in the design:
   - computer: sizes measured on the 1920 px design and scaled with the screen width (px / 19.2 = vw), never under 1rem;
     then 15% smaller letters and 20% smaller everything, and a smaller wordmark (Daniel, 12/10/2026: "letras um
     pouco menores"; "logo muito grande; desktop: pode reduzir +20%");
   - phone: sizes measured on the 430 px design, with the text that was smaller raised to 1rem.
   Colours sampled from the design. */
.sale { max-width: none; padding: 0 4.4vw 2rem; gap: clamp(2.5rem, 4.0vw, 4.8rem); }

/* top */
.sale-top { display: flex; align-items: center; gap: clamp(1rem, 1.28vw, 1.6rem); padding: clamp(1rem, 1.92vw, 2.2rem) 4.4vw; }
.sale-top .brand img { width: clamp(9rem, 12vw, 15rem); }
.sale-menu { display: flex; gap: .25rem; margin-left: auto; background: #f1ebfd; border-radius: 999px; padding: .5rem clamp(1rem, 1.28vw, 1.6rem); }
.sale-menu a { font: 800 clamp(1rem, 0.918vw, 1.105rem) var(--title); color: var(--brand); padding: .5rem clamp(.75rem, 1.28vw, 1.6rem); border-radius: 999px; }
.sale-menu a:hover { background: #fff; }
.sale-enter { display: flex; align-items: center; gap: .6rem; font: 800 clamp(1rem, 0.918vw, 1.105rem) var(--title); color: var(--brand); background: #f1ebfd; border-radius: 999px; padding: .5rem clamp(1rem, 1.6vw, 2.0rem) .5rem .5rem; }
.sale-enter img { width: clamp(2rem, 2.32vw, 2.8rem); }
.sale-buy { font-size: clamp(1rem, 1.135vw, 1.36rem); padding: clamp(.6rem, 0.8vw, 0.88rem) clamp(1.5rem, 2.32vw, 2.8rem); }

/* opening */
.hero { position: relative; display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 2vw;
  margin: clamp(1.5rem, 2.4vw, 3.2rem) 0 clamp(1.5rem, 2.8vw, 3.6rem); }   /* room from the menu and from the content (Daniel, 12/10/2026) */
.clouds { position: absolute; left: -4.4vw; top: 0; width: 70vw; max-width: none; opacity: .9; z-index: 0; pointer-events: none; }
.hero-text { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 6.25rem); line-height: 1.08; color: var(--ink); }   /* the design's size (Daniel: "esse pode voltar para o tamanho que estava") */
.hero-buttons { display: flex; flex-wrap: wrap; gap: clamp(.75rem, 1.04vw, 1.2rem); margin: clamp(1.5rem, 2.4vw, 2.8rem) 0 0; }
.hero-buttons .button { font-size: clamp(1.125rem, 1.224vw, 1.53rem); padding: clamp(.8rem, 1.04vw, 1.28rem) clamp(1.5rem, 3.2vw, 4.0rem); }
.play-today { background: #ede6fd; color: var(--brand); }
.hero-art { position: relative; z-index: 1; }
.hero-art img { width: 100%; }

/* sections */
.panel { scroll-margin-top: 1rem; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(.75rem, 0.96vw, 1.2rem); }
.sale h2 { font-size: clamp(1.75rem, 2.55vw, 3.06rem); }
.sec-line { font: 700 clamp(1.125rem, 1.275vw, 1.53rem) var(--title); color: #8a7aa8; margin: -.25rem 0 clamp(1rem, 1.6vw, 2.0rem); }
.sale .more { font-size: clamp(1rem, 1.135vw, 1.36rem); padding: clamp(.5rem, 0.72vw, 0.88rem) clamp(1rem, 1.92vw, 2.2rem); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem clamp(2rem, 3.2vw, 4.0rem); padding: 0; margin: 0 0 clamp(1rem, 1.6vw, 2.0rem); }
.facts li { display: flex; align-items: center; gap: clamp(.5rem, 0.8vw, 1.0rem); font: 800 clamp(1.125rem, 1.275vw, 1.53rem) var(--title); color: var(--brand); }
.facts img { width: clamp(2.5rem, 3.36vw, 4.0rem); }
.sale .row.games, .sale .row.stories { grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 2.0rem); }
.sale .games .cover img { aspect-ratio: 16 / 9; }
.sale .name { font-size: clamp(1.125rem, 1.275vw, 1.53rem); padding: clamp(.75rem, 1.12vw, 1.4rem) clamp(1rem, 1.28vw, 1.6rem) 0; }
.sale .card > :last-child { padding-bottom: clamp(.75rem, 1.12vw, 1.4rem); }
.sale .tag { font-size: clamp(1rem, 1.135vw, 1.36rem); padding: .3rem clamp(.8rem, 1.28vw, 1.6rem); top: 1.2vw; left: 1.2vw; background: #34a83a; }

/* daily games: a board picture on top and the name under it (computer); on the phone, a coloured tile with the piece
   beside the name */
.dtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.6vw, 2.0rem); }
.dtile { display: grid; background: var(--card); border-radius: 1.5rem; box-shadow: var(--shadow); overflow: hidden; }
.dpic { display: grid; aspect-ratio: 9 / 8; padding: 12%; }
.dname { font: 800 clamp(1.125rem, 1.275vw, 1.53rem) var(--title); color: var(--brand); padding: clamp(.75rem, 1.12vw, 1.4rem) clamp(1rem, 1.28vw, 1.6rem); }
.coroas .dpic { background: #a572e4; }
.sol-e-lua .dpic { background: #345b9d; }
.trilha .dpic { background: #e69950; }
.sudoku .dpic { background: #f6ad60; }
.board3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4%; }
.board3 i { display: grid; place-items: center; border-radius: 12%; }
.coroas .board3 i { background: #8e55d0; }
.sol-e-lua .board3 i { background: #4a73b8; }
.board3 img { width: 74%; }
.path-in { position: relative; display: block; }
.path-in svg { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fbe7cc; border-radius: 8%; }
.path-in path { fill: none; stroke: var(--orange); stroke-width: .42; stroke-linecap: round; stroke-linejoin: round; }
.path-in b { position: absolute; transform: translate(-50%, -50%); width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font: 900 clamp(1rem, 1.02vw, 1.19rem) var(--title); }
.sud { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); background: #fffaf0; border: 3px solid var(--ink); padding: 0; margin: 12%; border-radius: 6%; overflow: hidden; }
.sud i { display: grid; place-items: center; font: 800 clamp(1rem, 0.85vw, 1.02rem) var(--title); font-style: normal; color: var(--ink); border-right: 1px solid #d8cdb8; border-bottom: 1px solid #d8cdb8; }
.sud i:nth-child(3n) { border-right: 2px solid var(--ink); }
.sud i:nth-child(6n) { border-right: 0; }
.sud i:nth-child(n+7):nth-child(-n+12), .sud i:nth-child(n+19):nth-child(-n+24) { border-bottom: 2px solid var(--ink); }
.sudoku .dpic.sud { aspect-ratio: auto; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 1.6vw, 2.0rem); }
.plan { background: var(--card); border-radius: 1.5rem; box-shadow: var(--shadow); padding: clamp(1.5rem, 1.92vw, 2.4rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(.75rem, 1.12vw, 1.4rem) clamp(1rem, 1.6vw, 2.0rem); align-items: center; }
.plan.family { background: #f5effe; outline: 3px solid #d9b9fd; }
.plan-icon { width: clamp(5rem, 7.68vw, 9.2rem); }
.plan h3 { font: 900 clamp(1.25rem, 1.564vw, 1.87rem) var(--title); color: var(--ink); margin: 0; }
.price { margin: .2rem 0 0; font: 800 clamp(1.25rem, 1.564vw, 1.87rem) var(--title); color: var(--ink); }
.price strong { font-size: clamp(2rem, 2.55vw, 3.06rem); font-weight: 900; margin-right: .4em; }
.profiles { margin: .2rem 0 0; font: 700 clamp(1rem, 1.275vw, 1.53rem) var(--title); color: #8a7aa8; }
.checks { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(.5rem, 0.72vw, 0.8rem); }
.checks li { display: flex; align-items: center; gap: clamp(.6rem, 0.96vw, 1.2rem); font: 600 clamp(1rem, 1.135vw, 1.36rem) var(--body); color: #6b5a86; }
.checks li::before { content: ""; flex: none; width: clamp(1.4rem, 1.84vw, 2.2rem); aspect-ratio: 1; background: url(/j/img/venda/icone-check.png) center / contain no-repeat; }
.buy { grid-column: 1 / -1; font-size: clamp(1.125rem, 1.414vw, 1.7rem); padding: clamp(.8rem, 1.12vw, 1.4rem); }

/* questions */
.faqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 2.0rem); margin-top: clamp(1rem, 1.6vw, 2.0rem); }
.q { background: var(--card); border-radius: 1.5rem; box-shadow: var(--shadow); padding: clamp(1.25rem, 1.76vw, 2.2rem); }
.q h3 { font: 900 clamp(1.125rem, 1.275vw, 1.53rem) var(--title); color: var(--ink); margin: 0 0 .75rem; }
.q p { margin: 0; font-size: clamp(1rem, 1.135vw, 1.36rem); color: #7a6a95; line-height: 1.5; }

/* bottom */
.sale-bottom { margin: 0 4.4vw; padding: clamp(2rem, 3.2vw, 3.6rem) 0; border-top: 2px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.sale-bottom .brand img { width: clamp(8rem, 10vw, 12rem); }
.sale-links { display: flex; flex-wrap: wrap; gap: .75rem clamp(1.5rem, 2.64vw, 3.2rem); justify-content: center; font: 800 clamp(1rem, 1.061vw, 1.275rem) var(--title); color: var(--brand); }
.sale-legal { text-align: right; color: #8a7aa8; font: 700 clamp(1rem, 0.918vw, 1.105rem) var(--title); }
.sale-legal p { margin: 0 0 .6rem; }
.sale-legal a { margin-left: clamp(1rem, 1.6vw, 2.0rem); }

/* phone: the computer's layout rearranged for a small screen (Daniel, 12/10/2026: "por que o modo responsivo mudou
   tanto? não gostei"; the first phone version copied a phone design with another structure). Same look as the
   computer, stacked; text at least 1rem. */
@media (max-width: 760px) {
  .sale { padding: 0 1rem 1.5rem; gap: 3.25rem; }   /* room between sections ("não dá para saber quando começa um e termina o outro") */
  .sale-top { flex-wrap: wrap; padding: .75rem 1rem; gap: .5rem; }
  .sale-top .brand img { width: 8rem; }
  .sale-enter { margin-left: auto; padding: .35rem .9rem .35rem .35rem; font-size: 1rem; gap: .4rem; }
  .sale-enter img { width: 1.75rem; }
  .sale-buy { font-size: 1rem; padding: .5rem 1.1rem; }
  .sale-menu { order: 5; width: 100%; margin: .35rem 0 0; justify-content: space-between; padding: .3rem; }
  .sale-menu a { font-size: 1rem; padding: .45rem .7rem; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; margin: 1.25rem 0 1.5rem; }   /* the opening ends well before the content ("sem respiro") */
  .clouds { width: 160vw; left: -30vw; top: -2rem; }
  .hero h1 { font-size: 2.125rem; }
  .hero-text { display: contents; }   /* the buttons go under the picture (Daniel: "esses botões para depois do banner") */
  .hero h1 { order: 1; position: relative; z-index: 1; }
  .hero-art { order: 2; }
  .hero-buttons { order: 3; position: relative; z-index: 1; margin-top: 0; gap: .6rem; }
  .hero-buttons .button { flex: 1 1 auto; font-size: 1.0625rem; padding: .8rem 1.1rem; }
  .sec-head { margin-bottom: .6rem; }
  .sale h2 { font-size: 1.625rem; }
  .sec-line { font-size: 1.0625rem; margin: 0 0 .9rem; }
  .sale .more { font-size: 1rem; padding: .45rem .9rem; }
  .facts { gap: .6rem 1.25rem; margin-bottom: .9rem; }
  .facts li { font-size: 1rem; gap: .45rem; }
  .facts img { width: 2rem; }
  .sale .row.games, .sale .row.stories { grid-template-columns: none; grid-auto-columns: 64%; gap: .75rem; }
  .sale .row.stories { grid-auto-columns: 78%; }
  .sale .name { font-size: 1.0625rem; padding: .6rem .8rem 0; }
  .sale .card > :last-child { padding-bottom: .75rem; }
  .sale .tag { font-size: 1rem; top: .5rem; left: .5rem; padding: .2rem .7rem; }
  .dtiles { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .dtile { border-radius: 1.1rem; }
  .dname { font-size: 1.0625rem; padding: .6rem .8rem; }
  .path-in b, .sud i { font-size: 1rem; }
  .sud { margin: 10%; }
  .plans { grid-template-columns: 1fr; gap: .9rem; }
  .plan { padding: 1.1rem; gap: .75rem 1rem; border-radius: 1.1rem; }
  .plan-icon { width: 4.5rem; }
  .plan h3 { font-size: 1.375rem; }
  .price { font-size: 1.125rem; }
  .price strong { font-size: 2rem; }
  .profiles { font-size: 1rem; }
  .checks li { font-size: 1rem; }
  .checks li::before { width: 1.4rem; }
  .buy { font-size: 1.125rem; padding: .8rem; }
  .faqs { grid-template-columns: 1fr; gap: .75rem; margin-top: .9rem; }
  .q { padding: 1rem 1.1rem; border-radius: 1.1rem; }
  .q h3 { font-size: 1.125rem; margin-bottom: .4rem; }
  .q p { font-size: 1rem; }
  .sale-bottom { grid-template-columns: 1fr; justify-items: start; gap: 1rem; padding: 1.75rem 0 2rem; margin: 0 1rem; }
  .sale-bottom .brand img { width: 7.5rem; }
  .sale-links { justify-content: flex-start; font-size: 1rem; gap: .5rem 1.25rem; }
  .sale-legal { text-align: left; font-size: 1rem; }
  .sale-legal a { margin: 0 1.25rem 0 0; }
}
