/* bica a bica — agendas que se montam, dia a dia. Demo por Blank Studios. */

/* Identidade: creme, verde garrafa, azul azulejo e castanhos. Caveat nos títulos, DM Sans no texto. */
:root {
  --bg: #F4EDE1;        /* creme */
  --paper: #FBF7EE;
  --ink: #2F4A3C;       /* verde garrafa */
  --accent: #C9B99A;    /* bege caqui (fundos com texto escuro) */
  --deep: #3E5F8A;      /* azul azulejo (texto e destaques) */
  --soft: #E9DFCB;
  --sky: #D5DFE9;
  --mint: #DAE3D3;
  --butter: #EDE2CB;
  --sage: #E3E8D8;
  --muted: #4B5E52;
  --focus: var(--ink);
  --radius: 28px;
  --nav-h: 68px;
  --font-display: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "DM Sans", system-ui, sans-serif;
  /* argola: motivo repetido nos separadores e cartões */
  --ring-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30' viewBox='0 0 34 30'%3E%3Crect x='12' y='2' width='10' height='26' rx='5' fill='none' stroke='%232F4A3C' stroke-width='2.5'/%3E%3C/svg%3E");
  /* coração desenhado à mão */
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5F8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5C5 15.5 3 11.5 3 8.6 3 6 5 4.2 7.4 4.2c1.9 0 3.6 1 4.6 2.7 1-1.7 2.7-2.7 4.6-2.7C19 4.2 21 6 21 8.6c0 2.9-2 6.9-9 11.9z'/%3E%3C/svg%3E");
  --heart-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9B99A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5C5 15.5 3 11.5 3 8.6 3 6 5 4.2 7.4 4.2c1.9 0 3.6 1 4.6 2.7 1-1.7 2.7-2.7 4.6-2.7C19 4.2 21 6 21 8.6c0 2.9-2 6.9-9 11.9z'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--bg); background-image: radial-gradient(rgba(47, 74, 60, .13) 1.1px, transparent 1.5px); background-size: 22px 22px; color: var(--ink);
  font: 400 1rem/1.55 var(--font-body); overflow-x: clip;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1; text-wrap: balance; }
h2 em { font-style: normal; color: var(--deep); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
h2 { font-size: clamp(3rem, 7.4vw, 6rem); }
.kicker { font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 10px; height: 18px; border: 2px solid var(--deep); border-radius: 6px; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--muted); }
.lead--sm { font-size: 1.0625rem; }
.fine { font-size: 0.875rem; color: var(--muted); }
.noscript { padding: 16px 0; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.btn--ink:hover { background: var(--deep); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.btn--line { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--sky); }
.btn--line:hover { background: var(--sky); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--deep); }
.btn--accent:hover { background: var(--paper); }
.nav .btn { box-shadow: none; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: rgba(244, 237, 225, .94); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--ink); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { font: 700 2.1rem/1 var(--font-display); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.logo__img { height: 56px; width: auto; display: block; }
.footer .logo__img { height: 64px; }
.logo__text { display: none; align-items: center; white-space: nowrap; }
.nav .nav__cta2 { display: none; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a:hover { background: var(--soft); }
.nav__toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 18px; }
.nav__cta { min-height: 44px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(3.8rem, 10.5vw, 8.2rem); line-height: 0.9; }
.hero mark { background: var(--accent); color: var(--ink); padding: 0 0.1em 0.04em; border-radius: 0.16em; display: inline-block; transform: rotate(-1.6deg); }
.tagline { font: 700 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--font-display); color: var(--deep); display: flex; align-items: center; gap: 8px; }
.tagline svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stage { display: grid; gap: 10px; justify-items: center; }
.hero__swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.hero__stage, .hero__copy { min-width: 0; }
.dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; position: relative; border-radius: 50%; }
.dot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); transition: transform .15s; }
.dot--flowers::before, .swatch__dot--flowers { background-image: radial-gradient(#F4EDE1 1.7px, transparent 2.1px); background-size: 9px 9px; }
.dot--azulejo::before, .swatch__dot--azulejo { background-image: repeating-linear-gradient(45deg, #3E5F8A 0 1.4px, transparent 1.4px 7px), repeating-linear-gradient(-45deg, #3E5F8A 0 1.4px, transparent 1.4px 7px); }
.dot:hover::before { transform: scale(1.12); }
.dot[aria-pressed="true"]::before { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.hero__art { position: relative; width: 100%; max-width: 500px; margin-inline: auto; aspect-ratio: 1 / 1.08; display: grid; place-items: center; overflow: clip; }
.hero__disc { position: absolute; inset: 4% 2% 8% 2%; background: var(--soft); border-radius: 50%; }
.hero__agenda { position: relative; width: 82%; transform: rotate(-3deg); filter: drop-shadow(10px 14px 0 rgba(47, 74, 60, .14)); }
.sticker { position: absolute; bottom: 0; right: 0; width: clamp(108px, 27%, 150px); animation: spin 22s linear infinite; }
.sticker text { font: 700 17px var(--font-display); fill: var(--ink); letter-spacing: 0.08em; }
@keyframes spin { to { transform: rotate(360deg); } }

.doodle { position: absolute; width: var(--s, 32px); height: var(--s, 32px); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(6deg); } }
.hand { font: 700 2rem/1 var(--font-display); color: var(--deep); display: inline-flex; align-items: flex-end; gap: 6px; }
.hand svg { width: 40px; height: 34px; flex: none; fill: none; stroke: var(--deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section-head h2::after, .refill h2::after { content: ""; display: inline-block; width: .34em; height: .34em; margin-left: .12em; vertical-align: .5em; background: var(--heart) center / contain no-repeat; }
.refill h2::after { background-image: var(--heart-light); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); overflow: hidden; padding-block: 22px; border-block: 1.5px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; gap: 14px; padding-right: 14px; }
.marquee li {
  font: 700 clamp(1.9rem, 3.8vw, 2.7rem)/1 var(--font-display); text-transform: lowercase;
  padding: 10px 30px 14px 24px; border-radius: 6px 20px 20px 6px; background: var(--t, #fff); color: var(--ink);
}
.marquee li:nth-child(1) { --t: #3E5F8A; color: var(--bg); }
.marquee li:nth-child(2) { --t: #C9B99A; }
.marquee li:nth-child(3) { --t: #4A3426; color: var(--bg); }
.marquee li:nth-child(4) { --t: #A9B79C; }
.marquee li:nth-child(5) { --t: #ABBBC7; }
.marquee li:nth-child(6) { --t: #2F4A3C; color: var(--bg); box-shadow: inset 0 0 0 2px var(--bg); }
.marquee li:nth-child(7) { --t: #7F6048; color: var(--bg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Folhas com argolas (motivo repetido) ---------- */
.sheet { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 44px 28px 28px; }
.sheet::before { content: ""; position: absolute; left: 20px; right: 20px; top: -15px; height: 30px; background: var(--ring-tile) center / 34px 30px; background-repeat: space no-repeat; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; padding-top: 14px; }
.steps .num { font: 700 5.2rem/0.9 var(--font-display); display: block; margin-bottom: 12px; }
.steps h3 { font-size: 2.4rem; margin-bottom: 10px; }
.steps p { color: var(--ink); }
.steps .sheet:nth-child(1) { background: var(--sky); }
.steps .sheet:nth-child(2) { background: var(--mint); }
.steps .sheet:nth-child(3) { background: var(--butter); }
.sets .sheet:nth-child(1) { background: var(--butter); }
.sets .sheet:nth-child(2) { background: var(--sage); }
.sets .sheet:nth-child(3) { background: var(--sky); }

/* ---------- Construtor ---------- */
.builder__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.preview { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 20px; }
.preview__stage { background: var(--soft); border-radius: var(--radius); padding: 28px 28px 20px; }
.preview__info { display: grid; gap: 6px; }
.spec { font: 700 1.8rem/1.1 var(--font-display); }
.period { font-size: 0.9375rem; color: var(--muted); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 10px; }
.total span { font-weight: 600; }
.total strong, .sum-total strong { font: 700 clamp(2.4rem, 4.6vw, 3.2rem)/1 var(--font-num); letter-spacing: -0.03em; }

.panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 28px; }
.panel__title { font-size: clamp(2.2rem, 4vw, 3.2rem); outline-offset: 6px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--soft); border-radius: 999px; gap: 4px; }
.mode__btn { min-height: 48px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; transition: background-color .2s, color .2s; }
.mode__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mode__btn[aria-pressed="false"]:hover { background: rgba(47, 74, 60, .1); }

.steps-list { counter-reset: step; display: grid; gap: 36px; }
.step { counter-increment: step; display: grid; gap: 14px; }
.step h3 { font-size: 2.1rem; display: flex; align-items: center; gap: 12px; }
.step h3::before { background: var(--sky); content: counter(step, decimal-leading-zero); font-size: 0.9rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 999px; }
.help { color: var(--muted); font-size: 0.9375rem; }
.hint { color: var(--muted); font-size: 0.875rem; font-weight: 400; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 64px; cursor: pointer; }
.swatch input, .month input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch__dot { width: 48px; height: 48px; border-radius: 50%; background-color: var(--c); border: 1.5px solid var(--ink); transition: box-shadow .15s; }
.swatch__name { font-size: 0.8125rem; font-weight: 500; }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); }
.swatch input:focus-visible + .swatch__dot { outline: 3px solid var(--focus); outline-offset: 7px; }

.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 0.9375rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 12px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #5C6C61; }
input[aria-invalid="true"] { border-color: #A8200A; border-width: 2.5px; }
.err { color: #A8200A; font-size: 0.875rem; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.err-summary { background: #F6DDD3; color: #7A1606; padding: 12px 16px; border-radius: 12px; font-weight: 600; }

.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.month { position: relative; }
.month span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--ink); border-radius: 12px; font-weight: 600; transition: background-color .15s, color .15s; }
.month:hover span { background: var(--soft); }
.month input:checked + span { background: var(--ink); color: var(--paper); }
.month input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left;
  min-height: 72px; padding: 12px 16px 12px 12px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px;
  transition: background-color .2s, color .2s;
}
.opt:not([aria-pressed="true"]):hover { background: var(--soft); }
.opt__tab { width: 14px; align-self: stretch; min-height: 44px; border-radius: 4px 9px 9px 4px; background: var(--tab); border: 1.5px solid var(--ink); }
.opt:not(:has(.opt__tab)) { grid-template-columns: 1fr auto; padding-left: 18px; }
.opt__text { display: grid; gap: 2px; }
.opt__name { font-weight: 600; line-height: 1.25; }
.opt__desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
.opt__price { font: 700 1.05rem/1 var(--font-num); white-space: nowrap; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.opt[aria-pressed="true"] .opt__desc { color: #DCD3BF; }
.opt[aria-pressed="true"] .opt__tab { border-color: var(--paper); }

.summary { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 24px; }
.summary h3, .order-sum__title { font: 700 2.1rem/1 var(--font-display); }
.lines { display: grid; gap: 8px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px dashed rgba(47, 74, 60, .4); }
.lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.lines li span:last-child { font-weight: 600; white-space: nowrap; }
.lines__empty { color: var(--muted); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; }
.sum-total span { font-weight: 600; }
.order-sum { display: grid; gap: 14px; padding: 20px; background: var(--bg); border-radius: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.field--wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#panel-order form { display: grid; gap: 4px; }
.order-text { margin: 0; padding: 20px; background: var(--ink); color: #F4EDE1; border-radius: 16px; font: 400 0.8125rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.order-text:focus-visible { outline-color: var(--accent); }

/* ---------- Componente da agenda (SVG) ---------- */
.agenda { display: block; width: 100%; height: auto; overflow: visible; }
.agenda .cover { fill: var(--cover); stroke: transparent; stroke-width: 2; transition: fill .35s, stroke .35s; }
.agenda .flowers { opacity: 0; transition: opacity .35s; }
.agenda .flowers.on { opacity: 1; }
.agenda .tiles { opacity: 0; transition: opacity .35s; }
.agenda .tiles.on { opacity: 1; }
.agenda .spine { fill: var(--spine); transition: fill .35s; }
.agenda .crease { stroke: rgba(0, 0, 0, .22); stroke-width: 1.5; fill: none; }
.agenda .pages { fill: #FFFFFF; stroke: #E3D9C6; stroke-width: 1.5; }
.agenda .pages-edge { stroke: #E3D9C6; stroke-width: 1.5; fill: none; }
.agenda .plaque { transition: opacity .3s; }
.agenda .plaque rect:first-child { fill: #F4EDE1; stroke: var(--ink); stroke-width: 2.2; }
.agenda .plaque rect + rect { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.agenda .plaque text { fill: var(--ink); font: 700 68px var(--font-display); }
.agenda .plaque use { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agenda .name { fill: var(--on-cover); stroke: var(--cover); stroke-width: 8px; stroke-linejoin: round; paint-order: stroke; font: 700 28px var(--font-display); letter-spacing: 0.02em; transition: opacity .3s; }
.agenda .refill-label { fill: var(--ink); font: 700 42px var(--font-display); opacity: 0; transition: opacity .3s; }
.agenda .pen { opacity: 0; transition: opacity .3s; }
.agenda .pen.on { opacity: 1; }
.agenda .pen-body { fill: #F4EDE1; stroke: var(--ink); stroke-width: 1.6; }
.agenda .pen-tip { fill: #7F6048; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.agenda .pen-clip { fill: #C9B99A; stroke: var(--ink); stroke-width: 1.2; }
.agenda .strap { fill: var(--band); stroke: var(--ink); stroke-width: 1.4; transition: fill .35s; }
.agenda .pocket { fill: rgba(255, 255, 255, .6); stroke: var(--ink); stroke-width: 1.5; opacity: 0; transition: opacity .3s; }
.agenda .pocket.on { opacity: 1; }
.agenda .stickers { opacity: 0; transition: opacity .3s; }
.agenda .stickers.on { opacity: 1; }
.agenda .stickers rect:first-child { fill: #FBF7EE; stroke: var(--ink); stroke-width: 1.5; }
.agenda .stickers use { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.agenda .stickers .stk { fill: #C9B99A; stroke: var(--ink); stroke-width: 1.2; }
.agenda .ring { fill: none; stroke: #A4ABA6; stroke-width: 5; }
.agenda .ring-hi { fill: none; stroke: #F4EDE1; stroke-width: 1.6; }
.agenda .tab { transition: transform .5s cubic-bezier(.2, .9, .25, 1), opacity .3s; }
.agenda .tab text { font: 700 23px var(--font-display); }
.agenda.is-refill .cover { fill: transparent; stroke: var(--ink); stroke-dasharray: 9 8; }
.agenda.is-refill .spine, .agenda.is-refill .crease, .agenda.is-refill .plaque, .agenda.is-refill .flowers, .agenda.is-refill .tiles, .agenda.is-refill .name { opacity: 0; }
.agenda.is-refill .refill-label { opacity: 1; }

/* ---------- Conjuntos ---------- */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; padding-top: 14px; }
.set { display: grid; grid-template-rows: auto 1fr auto auto; gap: 20px; }
.set h3 { font-size: 2.9rem; }
.set__list { display: grid; gap: 10px; align-content: start; }
.set__list li { display: flex; align-items: center; gap: 12px; }
.set__tab { flex: none; width: 10px; height: 20px; border-radius: 3px 6px 6px 3px; background: var(--tab); border: 1.5px solid var(--ink); }
.set__tab--fin { background: transparent; border-style: dashed; }
.set__price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; border-top: 2px solid var(--ink); padding-top: 14px; }
.set__price strong { font: 700 2.4rem/1 var(--font-num); letter-spacing: -0.03em; }
.set__price span { color: var(--muted); font-size: 0.875rem; }

/* ---------- Recargas ---------- */
.refill { --focus: #fff; position: relative; background: var(--ink); color: var(--paper); padding-block: clamp(64px, 10vw, 128px); }
.refill::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 16px; background: radial-gradient(circle at 50% 0, var(--bg) 13px, transparent 13.5px) 0 0 / 30px 16px repeat-x; }
.refill__in > * { min-width: 0; }
.refill__in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.refill .kicker::before { border-color: var(--accent); }
.refill h2 { color: var(--paper); margin: 18px 0 22px; font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: 0.95; }
.refill h2, .refill .lead { max-width: 14em; }
.refill h2 em { color: var(--accent); }
.refill .lead { color: #DCD3BF; max-width: 30em; margin-bottom: 30px; }
.swap { display: grid; gap: 18px; padding: 28px; border: 1.5px dashed rgba(244, 237, 225, .55); border-radius: var(--radius); }
.swap__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 700 1.5rem/1 var(--font-display); }
.tag--old { border: 1.5px solid #8FA091; color: #DCD3BF; text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.tag--new { background: var(--accent); color: var(--ink); }
.tag--cover { border: 1.5px solid var(--paper); }
.swap__arrow { width: 36px; height: 2px; background: var(--paper); position: relative; }
.swap__arrow::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--paper); border-right: 2px solid var(--paper); transform: rotate(45deg); }
.swap__price { font-size: 1.125rem; }
.swap__price strong { font-family: var(--font-num); font-weight: 700; }
.swap__note { font-size: 0.875rem; color: #DCD3BF; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 12px; font: 700 clamp(1.7rem, 3.2vw, 2.2rem)/1.1 var(--font-display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: 500 1.4rem/1 var(--font-body); transition: transform .25s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq details p { padding: 0 56px 22px 0; color: var(--muted); max-width: 40em; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1.5px solid var(--ink); padding-block: 40px 48px; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 30px; background: var(--bg) var(--ring-tile) center / 34px 30px; background-repeat: space no-repeat; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; padding-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.footer__credit { font-size: 0.9375rem; color: var(--muted); }
.footer__credit a { color: var(--ink); font-weight: 600; }

/* ---------- Módulos incluídos e seletor de ano ---------- */
.incl { display: grid; gap: 8px; padding: 14px 16px; background: var(--bg); border-radius: 16px; }
.incl__item { display: flex; align-items: center; gap: 12px; }
.incl__item .opt__desc { display: block; }
.months--years { grid-template-columns: repeat(2, minmax(0, 120px)); }

/* ---------- Desenho à mão ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.agenda .art { transition: opacity .3s; }
.agenda.is-refill .art { opacity: 0; }
.draws { display: grid; gap: 10px; }
.draw { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); }
.draw__thumb { display: grid; place-items: center; width: 132px; height: 64px; background: var(--soft); border-radius: 10px; overflow: hidden; }
.draw--cover .draw__thumb { width: 64px; height: 104px; }
.draw__thumb svg { max-width: 100%; max-height: 100%; display: block; }
.draw__empty { width: 34px; height: 34px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.draw__text { display: grid; gap: 2px; min-width: 0; }
.draw__btns { display: grid; justify-items: end; gap: 4px; }
.draw__btns .btn { min-height: 44px; padding: 0 18px; }
.downloads { display: grid; gap: 8px; justify-items: start; margin: 10px 0 18px; }

dialog { border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 20px; }
dialog::backdrop { background: rgba(47, 74, 60, .6); }
.draw-dlg { width: min(96vw, 600px); max-height: 94vh; overflow: auto; }
.draw-dlg[open] { display: grid; grid-auto-rows: max-content; align-content: start; gap: 12px; }
.draw-dlg h3 { font-size: 2.2rem; }
.draw__stage { position: relative; justify-self: center; align-self: start; width: min(100%, calc(min(46vh, 460px) * var(--aspect, .56))); aspect-ratio: var(--aspect, .56); background: var(--stage-bg, #fff); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.draw__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.draw__guide { position: absolute; left: 19.2%; top: 34.1%; width: 67.2%; height: 24.2%; border: 2px dashed var(--guide, #888); border-radius: 10px; display: grid; place-items: center; pointer-events: none; color: var(--guide, #888); font: 700 1.1rem/1 var(--font-display); opacity: .85; }
.draw__stage[data-kind="page"] .draw__guide { display: none; }
.draw__tools { display: grid; gap: 8px; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 0; padding: 0; margin: 0; min-width: 0; }
.chip, .pcolor { position: relative; display: inline-grid; }
.chip input, .pcolor input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.pcolor { width: 44px; height: 44px; }
.pcolor span { width: 32px; height: 32px; margin: 6px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.pcolor input:checked + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.chip input:focus-visible + span, .pcolor input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.draw__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: sticky; bottom: -20px; margin: 0 -20px -20px; padding: 12px 20px 20px; background: var(--paper); border-top: 1px solid rgba(47, 74, 60, .18); }

/* ---------- Página de texto legal ---------- */
.doc { max-width: 780px; margin-inline: auto; padding-block: clamp(40px, 6vw, 80px); }
.doc h1 { font-size: clamp(3.4rem, 9vw, 5.6rem); margin: 14px 0 8px; }
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 44px 0 10px; }
.doc p, .doc li { max-width: 66ch; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-top: 12px; }
.doc a { text-underline-offset: 3px; }
.ph { background: var(--butter); color: var(--ink); padding: 0 .3em; border-radius: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin-top: 18px; font-weight: 400; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--ink); }
.check input[aria-invalid="true"] { outline: 3px solid #A8200A; outline-offset: 2px; }
.check a { text-underline-offset: 3px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1240px) {
  .footer__in { grid-template-columns: 1fr; justify-items: start; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; left: 0; right: 0; top: var(--nav-h); margin: 0; padding: 8px 16px 16px; flex-direction: column; background: var(--bg); border-bottom: 1.5px solid var(--ink); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 8px; font-size: 1.125rem; }

  .hero { grid-template-columns: 1fr; }
  .hero__stage { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero__art { max-width: 420px; }
  .steps, .sets { grid-template-columns: 1fr; }
  .refill__in { grid-template-columns: 1fr; }

  .builder__grid { grid-template-columns: 1fr; gap: 20px; }
  /* Pré-visualização fixa no topo, em formato compacto: agenda à esquerda, resumo à direita */
  .preview { top: var(--nav-h); z-index: 10; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 10px 0; background: var(--bg); border-bottom: 1.5px solid var(--ink); }
  .preview__stage { background: none; padding: 0; }
  .preview .agenda-host { height: min(26vh, 200px); }
  .preview .agenda { height: 100%; width: auto; }
  .preview__info { min-width: 0; }
  .total { margin-top: 4px; padding-top: 6px; flex-wrap: wrap; gap: 0 12px; }
  .total strong { font-size: 2rem; }
  .spec { font-size: 1.4rem; }
  .period { font-size: 0.8125rem; }
  .builder__grid.is-ordering .preview { position: static; border-bottom: 0; }
}
@media (max-width: 600px) {
  .logo__img { display: none; }
  .logo__text { display: inline-flex; }
  .logo { font-size: 1.75rem; }
  .opts, .form-grid { grid-template-columns: 1fr; }
  .months { grid-template-columns: repeat(4, 1fr); }
  .nav__cta { padding: 0 14px; font-size: 0.875rem; }
  .faq details p { padding-right: 0; }
  .swatch { min-width: 56px; }
  .swap { padding: 20px; }
  .swap__row { flex-wrap: nowrap; gap: 8px; }
  .tag { padding: 0 14px; font-size: 1.3rem; }
  .swap__arrow { width: 20px; flex: none; }
  .nav__in { gap: 10px; }
  .draw-dlg { padding: 16px; }
  .draw__actions { flex-wrap: nowrap; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px 16px; }
  .draw__actions .btn { flex: 1; padding: 0 10px; }
  .draw__stage { width: min(100%, calc(min(36vh, 460px) * var(--aspect, .56))); }
  .draw { grid-template-columns: auto 1fr; }
  .draw__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .draw__btns .opt__price { order: -1; margin-right: auto; }
}
@media (max-width: 380px) {
  .swap__row { flex-wrap: wrap; }
  .logo { font-size: 1.5rem; }
  .nav__toggle { padding: 0 12px; font-size: 0.875rem; }
  .nav__cta { display: none; }
  .nav .nav__cta2 { display: inline-flex; margin-top: 8px; }
  .preview { gap: 10px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .sticker, .doodle { animation: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee ul[aria-hidden="true"] { display: none; }
}
