:root{--paper:#fbf8f0;--ink:#232a3f;--purple:#514099;--purple-dark:#362867;--mint:#e6f3ea;--muted:#50556a;--line:#dfd9e9}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.55 "Atkinson Hyperlegible",system-ui,sans-serif}
a{color:var(--purple-dark)}
img{display:block;max-width:100%;height:auto}
.wrap{width:min(1100px,calc(100% - 40px));margin-inline:auto}
.top,.footer{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.top{border-bottom:1px solid var(--line)}
.brand{font-weight:850;text-decoration:none;color:var(--ink);white-space:nowrap}
.brand-icon{display:inline-grid;place-items:center;width:33px;height:33px;margin-right:5px;border-radius:50%;background:#f6d990;color:var(--purple-dark)}
nav{display:flex;gap:25px}nav a,.quiet{font-weight:750;text-underline-offset:4px}
.button{display:inline-block;padding:13px 21px;border-radius:11px;background:var(--purple);color:white;text-decoration:none;font-weight:800;text-align:center}
.button:hover{background:var(--purple-dark)}
.button[aria-disabled]{background:#ece8f1;color:#4c435d;cursor:default}
.compact{padding:7px 13px}
.hero{display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:50px;padding-block:58px}
.eyebrow{color:var(--purple-dark);font-size:.83rem;letter-spacing:.09em;font-weight:850;margin:0 0 10px}
h1,h2,h3{line-height:1.1;margin:0}
h1,h2{font-family:Georgia,serif;letter-spacing:-.035em}
h1{font-size:clamp(3rem,6.5vw,5.35rem)}
h1 em{color:var(--purple);font-weight:500}
h2{font-size:clamp(2.2rem,4.5vw,3.5rem);margin-bottom:28px}
h3{font-size:1.35rem}
.lede{font-size:1.19rem;color:var(--muted);margin:23px 0 27px;max-width:440px}
.quiet{display:inline-block;margin:10px 0 0 13px}
.desk{min-height:420px;isolation:isolate;background:#eadff7;border-radius:28px;position:relative;overflow:hidden}
.desk:before{content:"";position:absolute;inset:0;background:radial-gradient(#9c88b0 1px,transparent 1px);background-size:20px 20px;opacity:.28}
.sheet{position:absolute;width:45%;max-width:235px;height:auto;box-shadow:0 13px 24px #29203a38;border-radius:4px}
.back{top:11%;left:16%;transform:rotate(-14deg)}
.front{top:12%;left:43%;transform:rotate(12deg)}
.spark{position:absolute;right:8%;top:4%;color:var(--purple);font-size:3rem}
.tag{position:absolute;left:7%;bottom:7%;color:#262641;background:#fae29e;border-radius:100px;padding:8px 15px;font-weight:800;font-size:.94rem}
.section{padding-block:62px}.band{background:var(--mint)}
.tiles,.samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tiles article,.plan{border-radius:17px;padding:23px;background:white;border:1px solid #cdded2}
.tiles article>span{display:inline-block;background:#f6e4ae;border-radius:9px;padding:6px 11px;margin-bottom:15px;font-weight:900;color:var(--purple-dark)}
.tiles p,.plan>p:not(.price){margin:9px 0 0;color:var(--muted)}
.samples figure{margin:0;background:#efedf5;padding:12px;border:1px solid var(--line);border-radius:13px}
.samples img{width:100%;border-radius:5px;background:white}
figcaption{font-weight:800;padding:10px 2px 3px}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.plan{display:flex;flex-direction:column;align-items:flex-start}
.plus{border:2px solid var(--purple);background:#faf7ff}
.plan ul{padding-left:20px;margin-bottom:22px}.plan li{margin-bottom:8px}
.price{margin:auto 0 12px;font-weight:900;font-size:2rem;color:var(--purple-dark)}
.checkout-note{color:var(--muted);margin:14px 0 0}
.faq{max-width:760px}
details{border-bottom:1px solid var(--line);padding:14px 0}summary{cursor:pointer;font-weight:800}details p{color:var(--muted);margin:8px 0 0}
.footer{border-top:1px solid var(--line);flex-wrap:wrap}
a:focus-visible,summary:focus-visible{outline:3px solid #b1411c;outline-offset:4px}
@media(max-width:760px){.hero{grid-template-columns:1fr;gap:27px;padding-block:35px}.desk{min-height:370px}.sheet{width:42%;max-width:215px}.section{padding-block:42px}nav{display:none}}
@media(max-width:510px){.wrap{width:calc(100% - 28px)}.top{gap:8px}.brand{font-size:.91rem}.brand-icon{width:26px;height:26px}.compact{font-size:.9rem}.desk{min-height:305px}.sheet{width:44%}.tiles,.plans{grid-template-columns:1fr}.samples{gap:7px}.samples figure{padding:5px}.samples figcaption{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
:root{--paper:#fffaf1;--ink:#1b2c47;--purple:#174d9b;--purple-dark:#16396e;--mint:#e6f5ef;--muted:#454f64;--line:#d6dfec}
h1,h2{font-family:"Trebuchet MS",system-ui,sans-serif;letter-spacing:-.055em}
h1{font-size:clamp(2.75rem,6vw,4.8rem);font-weight:900}
h1 em{color:#1958ad;font-weight:900;font-style:normal}
.desk{background:#d9efff}.desk:before{background-image:radial-gradient(#437ac5 1px,transparent 1px)}
.sheet.back{border:5px solid #ffcd64}.sheet.front{border:5px solid #fff}
.hero-price{font-size:1.08rem;margin:0 0 14px}.hero-price strong{font-size:1.35rem}.hero-price span{color:var(--muted)}
.tiles article:nth-child(2)>span{background:#d5ebfb}.tiles article:nth-child(3)>span{background:#f7d8e6}
.sample-note{margin-top:-16px;color:var(--muted)}
.samples figure:nth-child(1){background:#fff0c8}.samples figure:nth-child(2){background:#dff6eb}.samples figure:nth-child(3){background:#f2e7ff}
.bonus{background:#fff0ce}.bonus-list{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:0}.bonus-list li{background:#fffaf0;border:1px solid #e9cf8e;border-radius:12px;padding:14px;font-weight:750}
.plan-label{background:#dff4e6;color:#20643a;padding:6px 11px;border-radius:999px;margin-bottom:13px;font-size:.86rem;font-weight:850}.plan-label.premium{background:#ffdf90;color:#482d04}
.checks{list-style:none;padding:0!important}.checks li{position:relative;padding-left:27px}.checks li:before{content:"✓";position:absolute;left:0;top:1px;color:#237944;font-weight:900;background:#e0f4e5;border-radius:50%;width:19px;height:19px;line-height:19px;text-align:center}
.plus{border-color:#1553a7;background:#f1f7ff}
.previous{text-decoration:line-through;margin:auto 0 0!important;color:var(--muted)}
.previous:not([hidden])+.price{margin-top:0}
.add-on{margin-top:20px;padding:15px 19px;background:#fff;border:1px solid #cdded2;border-radius:14px}.add-on p{margin:3px 0 0;color:var(--muted)}
@media(max-width:510px){.bonus-list{grid-template-columns:1fr 1fr}.hero-price span{display:block}}
.bonus{background:#fff6dc}.bonus h2,.bonus .eyebrow{text-align:center}
.bonus-list{gap:20px}.bonus-list li{padding:12px 12px 16px;border:1px dashed #d49327;text-align:center;background:#fffdf6}
.bonus-list h3{margin:14px 0 5px;font-size:1rem}.bonus-list p{margin:0;color:#26623c;font-size:.92rem}
.book-cover{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;border-radius:13px;padding:18px 10px 13px 21px;color:#1f3555;background:#ffe3a2;border-left:5px solid #273e62;overflow:hidden}
.book-cover:before{content:"";position:absolute;left:4px;top:10px;bottom:10px;width:9px;background:radial-gradient(ellipse,#34486a 55%,transparent 70%) 0 0/8px 15px}
.book-cover small,.kit-art small{font-size:.86rem;font-weight:850}
.book-cover strong{font-size:clamp(1.2rem,3vw,2rem);line-height:1.02;margin:12px 0}
.book-cover span{display:grid;place-items:center;min-width:47px;padding:4px 10px;border-radius:12px;background:#fff9;font-size:1.55rem;font-weight:900}
.sondagem{background:#bce8d7}.generos{background:#ffd0dc}.sequencia{background:#d9e7ff}.planner{background:#e8cbf4}.simulados{background:#ffe2bd}
.plans{grid-template-columns:1fr;gap:28px}
.plan{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:clamp(22px,5vw,55px);padding:clamp(19px,4vw,40px);align-items:start}
.plan-label{grid-column:1/-1;justify-self:start}
.plan h3{grid-column:1/-1;font-size:clamp(1.55rem,3.5vw,2.25rem);margin-bottom:20px}
.kit-art{grid-column:1;grid-row:3/span 6;min-height:315px;display:grid;justify-items:center;align-content:start;overflow:hidden;border-radius:19px;background:#cceeff;padding:16px 10px 0;color:#173d71;text-align:center}
.premium-art{background:#ffde82;color:#422846}
.kit-art>strong{font-size:clamp(2.5rem,6vw,4.6rem);line-height:1.1;letter-spacing:-.07em}
.kit-art>b{font-size:clamp(.77rem,1.8vw,1.05rem);padding-bottom:13px}
.cover-samples{display:flex;justify-content:center;padding:7px 4px 0;width:100%;gap:0}
.cover-samples img{width:34%;height:auto;align-self:start;border:3px solid #fff;box-shadow:0 4px 12px #1e2b4738;transform:rotate(-9deg)}
.cover-samples img:last-child{transform:rotate(9deg)}.premium-art img:nth-child(2){transform:translateY(-8px)}
.plan .checks,.plan .price,.plan .previous,.plan .button,.plan .difference{grid-column:2}
.plan .checks{margin:0 0 12px}
.checks li{border:1px solid #afdcc2;background:#ebfaf0;border-radius:10px;padding:9px 10px 9px 35px;margin-bottom:7px;color:#234b36}
.checks li:before{left:9px;top:9px;background:#237944;color:white}
.checks li span{display:block;font-size:.91rem;color:#345845}
.plan .price{color:#22623b;margin:0 0 8px}
.plan .difference{margin:0 0 10px;color:#594307;background:#ffefba;padding:5px 9px;border-radius:8px;justify-self:start;font-size:.93rem}
.plan .button{justify-self:start}
@media(max-width:650px){.plan{grid-template-columns:1fr}.kit-art{grid-row:auto;min-height:255px;margin-bottom:16px}.plan .checks,.plan .price,.plan .previous,.plan .button,.plan .difference{grid-column:1}.bonus-list{grid-template-columns:1fr 1fr;gap:10px}.book-cover{min-height:151px}}
.hero-books{position:absolute;inset:8% 10% auto;display:flex;justify-content:center;gap:0;align-items:center}
.hero-books .mock-book{width:45%;transform:perspective(900px) rotateY(-17deg) rotateZ(-11deg)}
.hero-books .mock-book+ .mock-book{transform:perspective(900px) rotateY(-15deg) rotateZ(10deg) translateY(15px);z-index:1}
.turma-kids{position:absolute;width:64%;right:0;bottom:0;z-index:2;filter:drop-shadow(0 8px 10px #1e304a44)}
.desk .tag{z-index:3;left:4%;bottom:5%}
.mock-book{position:relative;isolation:isolate;transform:perspective(950px) rotateY(-13deg) rotateZ(-3deg);width:min(100%,230px);border-radius:6px 10px 10px 6px;box-shadow:9px 15px 17px #192e4940}
.mock-book img{width:100%;height:auto;position:relative;z-index:1;border-radius:6px 10px 10px 6px}
.mock-book:before{content:"";position:absolute;inset:3px -12px 3px auto;width:17px;background:repeating-linear-gradient(0deg,#fff9ec 0 3px,#ded0b6 3px 4px);border-radius:0 6px 6px 0;transform:skewY(-3deg);box-shadow:2px 0 #4d5d75}
.mock-book:after{content:"";position:absolute;z-index:2;left:0;inset-block:0;width:11%;background:linear-gradient(90deg,#17283b50,transparent);border-radius:6px 0 0 6px;pointer-events:none}
.book-stage{display:grid;place-items:center;min-height:245px;padding:13px 15px 18px;background:radial-gradient(ellipse at 50% 65%,#fff9e6,#f5e6bd);border-radius:13px}
.bonus-list li:nth-child(2n) .book-stage{background:radial-gradient(ellipse at 50% 65%,#fcfbff,#e2edfa)}
.bonus-list li:nth-child(3n) .mock-book{transform:perspective(950px) rotateY(-12deg) rotateZ(3deg)}
.kit-art{place-items:center;align-content:center;min-height:340px;padding:20px 28px}
.kit-art .mock-book{width:min(78%,218px)}
@media(max-width:650px){.book-stage{min-height:0;padding:10px 13px 15px}.kit-art{min-height:245px}.kit-art .mock-book{width:min(61%,190px)}}
.hero-vitrine{margin:0}
.hero-vitrine img,.art-enviada img,.featured-addon img{border-radius:19px;box-shadow:0 12px 25px #24375524}
.hero-vitrine figcaption,.art-enviada figcaption{font-size:.89rem;color:var(--muted);font-weight:600}
.art-enviada{margin:0;text-align:left;padding:14px}
.art-enviada img{width:100%}
.featured-addon{display:grid;grid-template-columns:minmax(95px,130px) 1fr;gap:18px;align-items:center}
.activity-carousel{max-width:690px;margin:auto;background:#edf4ff;border:1px solid #cbdcf6;border-radius:20px;padding:14px}
.carousel-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}
.carousel-controls[hidden],.carousel-slides figure[hidden]{display:none}
.carousel-controls button{font:inherit;font-weight:800;border:1px solid #bed0f1;border-radius:10px;background:#fff;color:#16396e;padding:4px 12px;min-height:44px;min-width:44px;cursor:pointer}
.carousel-controls button[data-step]{font-size:1.7rem;line-height:1}
.carousel-controls button:focus-visible{outline:3px solid #b1411c;outline-offset:2px}
.carousel-controls span{min-width:45px;text-align:center;font-weight:800}
.carousel-slides figure{margin:0;text-align:center}
.carousel-slides figure+figure:not([hidden]){margin-top:14px}
.carousel-slides figure img{margin:auto;width:100%;height:clamp(360px,65vh,660px);object-fit:contain}
@media(max-width:650px){.art-enviada{margin-bottom:16px}.featured-addon{gap:11px;padding:11px}.carousel-slides figure img{height:clamp(325px,58vh,550px)}}
.activity-crop{position:relative;overflow:hidden;width:min(100%,max(240px,var(--sheet-width)),520px);aspect-ratio:var(--ratio);margin-inline:auto;background:#fff;border-radius:5px}
.carousel-slides .activity-crop img{position:absolute;left:var(--source-left);top:var(--source-top);width:var(--source-width);max-width:none;height:auto;margin:0}
/* Azul-marinho, azul vivo e verde organizam a leitura e as ações da loja. */
:root {
  --paper: #f7faff;
  --ink: #10264b;
  --purple: #1854ca;
  --purple-dark: #143875;
  --mint: #eaf2ff;
  --line: #d5e1f2;
  --shadow: 0 12px 34px #17396912;
}
body { font-family: system-ui, sans-serif; }
.wrap { width: min(1120px, calc(100% - 40px)); }
h1, h2 { font-family: system-ui, sans-serif; letter-spacing: -.055em; }
h1 { font-size: clamp(2.45rem, 5.3vw, 4.45rem); }
h1 em { color: var(--purple); display: block; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero { gap: clamp(30px, 6vw, 86px); }
.hero-vitrine {
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 52px);
  border-radius: 30px;
  background: radial-gradient(ellipse at 70% 15%, #b9e4ff, #e3efff 70%);
  border: 1px solid #d0e4ff;
}
.hero-vitrine img { width: min(100%, 340px); box-shadow: 0 16px 38px #113b7860; }
.hero-benefits { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 25px; }
.hero-benefits li { padding: 6px 11px; border-radius: 8px; background: #e7f0ff; color: #173f79; font-size: .88rem; font-weight: 700; }
.hero-benefits li:nth-child(n+3) { background: #e3f5e9; color: #145e3c; }
.hero .button, .plan .button:not([aria-disabled]) { background: #08734b; }
.hero .button:hover, .plan .button:not([aria-disabled]):hover { background: #065739; }
.button { transition: background .18s ease, transform .18s ease; }
.button:not([aria-disabled]):active { transform: scale(.97); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-filters button, .material-details, .dialog-close {
  font: inherit; font-weight: 750; min-height: 44px; cursor: pointer;
  color: var(--purple-dark); background: white; border: 1px solid #bfd1eb; border-radius: 11px; padding: 8px 14px;
}
.catalog-filters button[aria-pressed=true] { background: var(--purple-dark); border-color: var(--purple-dark); color: white; }
.catalog-count { color: var(--muted); margin: 14px 0; font-size: .9rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.material-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: white; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); animation: catalog-in .24s ease both;
}
.material-card[hidden] { display: none; }
@keyframes catalog-in { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.material-cover, .dialog-cover {
  display: grid; place-items: center; width: 100%; padding: 25px;
  background: radial-gradient(ellipse at 58% 30%, #fff, #dcecff); border: 0;
}
.material-cover { aspect-ratio: 1.38; cursor: zoom-in; }
.premium-material .material-cover { background: radial-gradient(ellipse at 58% 30%, #fffdfa, #fff1c8); }
.material-cover .mock-book { width: min(67%, 155px); transition: transform .2s ease; }
.material-cover:hover .mock-book, .material-cover:focus-visible .mock-book { transform: perspective(950px) rotateY(-6deg) translateY(-3px); }
.material-copy { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.material-copy h3 { font-size: clamp(1rem, 2vw, 1.28rem); margin-bottom: auto; }
.material-plan { margin: 0; background: #e3f5e9; color: #115636; border-radius: 8px; padding: 4px 9px; font-size: .85rem; font-weight: 750; }
.premium-material .material-plan { color: #624400; background: #ffefb5; }
.material-details:hover, .dialog-close:hover, .catalog-filters button:not([aria-pressed=true]):hover { background: #ebf4ff; }
.material-details { margin-top: 6px; }
button:focus-visible { outline: 3px solid #165bcb; outline-offset: 3px; }
.material-cover:focus-visible { outline-offset: -4px; }
.illustrated-book {
  display: grid; align-content: space-between; gap: 7%; aspect-ratio: .85; padding: 11% 9% 10% 13%;
  text-align: left; font-size: clamp(.78rem, 1.8vw, 1.1rem); line-height: 1.05;
  color: #14274a; background: #b3efce; border: 1px solid #192e4926;
}
.illustrated-book strong { font-weight: 900; overflow-wrap: break-word; }
.cover-marks { display: flex; align-items: center; justify-content: center; gap: 5%; flex-wrap: wrap; font-weight: 850; }
.cover-marks span { background: #fff; padding: .26em .35em; border-radius: .35em; box-shadow: 1px 3px #14274a30; }
.money { background: radial-gradient(circle at 52% 62%, #fff4a1, #84dbab); }
.money .cover-marks span:first-child { font-size: 1.6em; background: #ffdb58; border: 2px solid #e4a733; border-radius: 50%; }
.sequence { background: linear-gradient(155deg,#7fafff,#dfedff 60%,#84aaff); }
.sequence .cover-marks span:nth-child(2) { transform: translateY(-5px); background: #ffd669; }
.sequence .cover-marks span:nth-child(3) { transform: translateY(-10px); background: #f7a4aa; }
.planner { background: repeating-linear-gradient(0deg,#fcebd8 0 12px,#ffdebe 13px 14px); }
.planner .cover-marks span:first-child { font-size: 2em; color: #a74229; }
.exams { background: linear-gradient(150deg,#fff 43%,#c2d8ff 44%); }
.exams .cover-marks { display: grid; justify-content: stretch; color: #24457e; }
.exams .cover-marks span { padding-block: .12em; }
.english { background: linear-gradient(155deg,#ded2ff 55%,#bfb2fa 55%); }
.english .cover-marks span:first-child { color: #6449b6; font-size: 1.5em; transform: rotate(-10deg); }
.material-dialog {
  width: min(720px, calc(100% - 28px)); max-height: 90vh; border: 1px solid var(--line);
  border-radius: 20px; padding: 25px; color: var(--ink); box-shadow: 0 20px 80px #10264b55;
}
.material-dialog::backdrop { background: #0d204d99; }
.dialog-close { display: block; margin: 0 0 10px auto; font-size: 1.3rem; }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.dialog-cover { border-radius: 14px; }
.dialog-layout h2 { margin: 10px 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.dialog-layout .material-plan { display: inline-block; }
.dialog-cover .illustrated-book { font-size: clamp(1rem, 3vw, 1.6rem); }
.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plan { display: flex; flex-direction: column; align-items: stretch; min-width: 0; border-color: var(--line); border-radius: 23px; box-shadow: var(--shadow); }
.plan.plus { background: white; border: 2px solid var(--purple); }
.plan-label, .plan .difference { align-self: flex-start; }
.plan .kit-art { height: 218px; min-height: 0; margin: 0 0 19px; background: #e6f1ff; }
.plan .kit-art .mock-book { width: min(100%, 166px); }
.plan .kit-art > img { width: min(100%, 166px); }
.plan .kit-art figcaption { font-size: .82rem; text-align: center; }
.plan .checks { margin-bottom: 20px; }
.plan .price { margin-top: auto; }
.plan .previous:not([hidden]) + .price { margin-top: 0; }
.plan .button { margin-top: 8px; }
@media(max-width: 850px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
}
@media(max-width: 760px) {
  .hero-vitrine img { width: min(100%, 255px); }
}
@media(max-width: 650px) {
  .plans { grid-template-columns: 1fr; }
}
@media(max-width: 510px) {
  .wrap { width: calc(100% - 28px); }
  .material-cover { aspect-ratio: 1.02; padding: 13px; }
  .material-cover .mock-book { width: 76%; }
  .material-copy { padding: 10px; }
  .material-details { width: 100%; padding-inline: 4px; }
  .material-plan { font-size: .78rem; }
  .dialog-layout { grid-template-columns: 1fr; gap: 14px; }
  .dialog-cover .mock-book { width: min(65%, 175px); }
}
@media(max-width: 350px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .material-cover { aspect-ratio: 1.5; }
}
@media(prefers-reduced-motion:reduce) {
  .material-card { animation: none; }
  .button, .material-cover .mock-book { transition: none; }
}
/* Galeria de atividades com navegação lateral e altura estável. */
#amostras h2 { text-align: center; margin-bottom: 18px; }
.activity-carousel {
  --gallery-height: clamp(320px, 58vh, 475px);
  position: relative;
  max-width: 780px;
  padding: 0;
  background: transparent;
  border: 0;
}
.activity-carousel:has(.carousel-controls:not([hidden])) .carousel-slides {
  min-height: calc(var(--gallery-height) + 42px);
  padding-inline: 54px;
}
.carousel-slides .activity-crop {
  width: min(100%, calc(var(--gallery-height) * var(--ratio)));
  box-shadow: 0 5px 18px #17396914;
}
.carousel-controls { flex-wrap: wrap; margin: 0; gap: 6px 12px; }
.carousel-controls button[data-step] {
  position: absolute;
  top: calc(var(--gallery-height) / 2);
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #1854ca;
  color: white;
  width: 44px;
  height: 44px;
  z-index: 1;
}
.carousel-controls button[data-step="-1"] { left: 0; }
.carousel-controls button[data-step="1"] { right: 0; }
.carousel-controls button[data-step]:hover { background: #143875; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; flex-basis: 100%; }
.carousel-dots button {
  min-width: 24px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}
.carousel-dots button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8092ae;
}
.carousel-dots button[aria-current="true"]::after { width: 16px; background: #1854ca; }
@media(max-width: 510px) {
  .activity-carousel { --gallery-height: clamp(240px, 85vw, 380px); }
  .activity-carousel:has(.carousel-controls:not([hidden])) .carousel-slides { padding-inline: 38px; }
  .carousel-controls button[data-step] { width: 36px; min-width: 36px; padding-inline: 0; }
}

.upgrade-dialog { width: min(500px, calc(100% - 28px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 24px; background: white; padding: clamp(18px, 5vw, 32px); color: var(--ink); box-shadow: 0 24px 80px #10264b55; }
.upgrade-dialog::backdrop { background: #0d204da8; }
.upgrade-dialog h2 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.35rem); }
.upgrade-price { display: flex; align-items: baseline; gap: 12px; }
.upgrade-price del { color: var(--muted); }
.upgrade-price strong { color: #08734b; font-size: 2rem; }
.upgrade-dialog .button { display: block; background: #08734b; }
.upgrade-dialog .button:hover { background: #065739; }
.upgrade-dialog .quiet { display: block; text-align: center; margin: 14px 0 0; padding: 8px 0; }


.materials-summary h2 { margin-bottom: 10px; }
.materials-intro { max-width: 62ch; margin: 0 0 20px; color: var(--muted); }
.materials-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.materials-options article { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.materials-options article:last-child { border-color: #91b5ec; }
.materials-options p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 560px) { .materials-options { grid-template-columns: 1fr; } .materials-summary .quiet { margin-left: 14px; } }
