:root {
  color-scheme: light;
  --ink: #19231b;
  --muted: #535f54;
  --background: #f8faf4;
  --border: #dbe2d5;
  --lime: #c7fb73;
  --accent-text: #3b6128;
  --accent-line: #b8e764;
  --accent-hover: #b9ef61;
  --accent-light: #e4efd8;
  --accent-panel: #2d4333;
  --accent-panel-line: #4c6650;
  --accent-panel-hover: #3a543e;
  --terminal: #17231c;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

body.theme-violet {
  --ink: #231a35;
  --muted: #594e6b;
  --background: #f9f7fd;
  --border: #ddd5eb;
  --lime: #d5baff;
  --accent-text: #5f3b92;
  --accent-line: #c9a8f9;
  --accent-hover: #cba8fb;
  --accent-light: #eee2fb;
  --accent-panel: #3d2e55;
  --accent-panel-line: #665085;
  --accent-panel-hover: #4d3a6a;
  --terminal: #251b37;
  background: var(--background);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #477923; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 2; top: 12px; left: 12px; background: var(--lime); padding: 10px 15px; }

.site-header { background: #fcfdf9; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 790; font-size: 25px; letter-spacing: -.075em; white-space: nowrap; }
.brand-dot { color: var(--accent-text); }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 650; color: #435043; }
.site-header nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 1.2; font-weight: 700; }
.bag { color: var(--ink); background: transparent; border-color: var(--border); }
.bag:hover, .outline:hover { background: #eef3e8; }
.bag svg { width: 17px; height: 17px; }
.cart-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 4px; border-radius: 5px; background: #edf2e8; font-size: 12px; }
.primary { background: var(--lime); color: var(--ink); border-color: var(--accent-line); }
.primary:hover { background: var(--accent-hover); }

.hero { display: grid; grid-template-columns: 1fr 0.94fr; align-items: center; gap: clamp(35px, 6vw, 90px); padding-block: 76px 82px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 700 11px/1.5 "Cascadia Mono", Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { margin-bottom: 21px; color: var(--accent-text); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-light); }
h1 { font-size: clamp(43px, 5.45vw, 78px); font-weight: 760; line-height: .99; letter-spacing: -.075em; }
h1 em { color: var(--accent-text); font-style: normal; }
.hero-description { max-width: 440px; margin-top: 23px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px 22px; align-items: center; margin-top: 28px; }
.text-link { font-size: 14px; font-weight: 700; }
.text-link span { margin-left: 5px; }

.sandbox { background: var(--terminal); color: #eaf3e8; border: 1px solid #334538; border-radius: 15px; box-shadow: 0 16px 35px #192b191a; min-width: 0; overflow: hidden; }
.sandbox-top, .sandbox-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; }
.sandbox-top { border-bottom: 1px solid #35463a; }
.sandbox-top h2 { font: 700 14px/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: -.015em; }
.sandbox-top h2 span { margin-right: 6px; color: var(--lime); }
.sandbox-label { background: #2b3f2f; border: 1px solid #435c41; border-radius: 4px; padding: 3px 6px; color: #c6e6ac; font: 700 9px/1.4 "Cascadia Mono", Consolas, monospace; letter-spacing: .1em; }
.tabs { display: flex; gap: 7px; padding: 15px 18px 13px; }
.tabs button { min-height: 33px; padding: 4px 10px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: #bdccbf; font-size: 12px; font-weight: 650; }
.tabs button:hover, .tabs button[aria-pressed="true"] { border-color: var(--accent-panel-line); background: var(--accent-panel); color: #fff; }
.tabs button:focus-visible, .run-button:focus-visible { outline-color: var(--lime); }
.request { min-height: 149px; margin-inline: 18px; padding: 13px 14px; border: 1px solid #334438; border-radius: 7px; background: #121c15; font-family: "Cascadia Mono", Consolas, monospace; }
.request-line { display: flex; align-items: center; gap: 8px; font-size: 12px; overflow-wrap: anywhere; }
.request-line strong { color: var(--lime); font-size: 11px; }
.request-line code { font: inherit; color: #e1e9dc; }
.request pre { margin: 11px 0 0; font: 12px/1.55 "Cascadia Mono", Consolas, monospace; color: #b1c6af; white-space: pre-wrap; overflow-wrap: anywhere; }
.sandbox-foot p { font: 11px/1.45 "Cascadia Mono", Consolas, monospace; color: #bdccbf; }
.sandbox-foot p.success { color: var(--lime); }
.run-button { flex: 0 0 auto; min-height: 34px; border: 1px solid #5d8057; border-radius: 5px; background: #2c4233; color: #edf7e8; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.run-button:hover { background: var(--accent-panel-hover); }

.catalog { border-block: 1px solid var(--border); background: #eef2e9; }
.catalog-inner { padding-block: 46px 58px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-kicker { color: var(--accent-text); margin-bottom: 6px; }
.section-heading h2, .questions h2 { font-size: clamp(30px, 4vw, 43px); font-weight: 750; letter-spacing: -.055em; line-height: 1.1; }
.section-heading p:not(.eyebrow) { margin-top: 8px; color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.filters button { min-height: 38px; padding: 6px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #485748; font-size: 13px; font-weight: 680; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); background: #f9fcf7; border-color: #d5dfd1; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; padding: 20px; border: 1px solid #d7dfd3; border-radius: 12px; background: #fcfdfb; }
.product-top, .product-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 9px; }
.product-icon svg { width: 23px; height: 23px; }
.instagram { background: #f2e7ec; color: #884363; }
.whatsapp { background: #e6f0dc; color: #3e6c30; }
.email { background: #e7edf3; color: #375e7a; }
.category { align-self: flex-start; padding: 4px 7px; border: 1px solid #dfe6dc; border-radius: 5px; color: #4a5849; font: 650 10px/1.3 "Cascadia Mono", Consolas, monospace; }
.product h3 { margin-top: 17px; font-size: 20px; letter-spacing: -.035em; line-height: 1.2; }
.product > p { flex: 1; margin: 8px 0 19px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.product-detail { margin: -7px 0 14px; color: var(--accent-text); font-size: 13px; font-weight: 700; }
.product-detail:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-footer { padding-top: 14px; border-top: 1px solid #e3e9e0; }
.product-footer small, .product-footer strong { display: block; }
.product-footer small { color: var(--muted); font-size: 11px; }
.product-footer strong { margin-top: 2px; font-size: 22px; letter-spacing: -.045em; }
.outline { min-height: 40px; padding: 8px 10px; border-color: var(--border); color: var(--ink); background: var(--white); font-size: 12px; white-space: nowrap; }

.questions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 45px; padding-block: 60px; }
.question-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { padding: 15px 2px; font-weight: 680; cursor: pointer; }
details p { padding: 0 2px 15px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--border); background: #eef2e9; }
.footer-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.footer-inner .brand { font-size: 20px; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.theme-violet .site-header, .theme-violet dialog { background: #fdfbff; }
.theme-violet .site-header nav { color: var(--muted); }
.theme-violet .catalog, .theme-violet .site-footer { background: #f1ebf8; }
.theme-violet .product, .theme-violet .filters button[aria-pressed="true"] { background: #fdfaff; border-color: var(--border); }
.theme-violet .sandbox, .theme-violet .sandbox-top, .theme-violet .request { border-color: #514368; }
.theme-violet .request { background: #1b1428; }
.theme-violet .request pre, .theme-violet .sandbox-foot p, .theme-violet .tabs button { color: #d9cce8; }
.theme-violet .sandbox-foot p.success { color: var(--lime); }
.theme-violet .sandbox-label, .theme-violet .run-button { background: var(--accent-panel); border-color: var(--accent-panel-line); color: #f2eafa; }
.theme-violet .pack-option:has(:checked), .theme-violet .checkout-preview { background: var(--accent-light); border-color: var(--accent-line); }

.info-page { min-height: 66vh; padding-block: 46px 70px; }
.info-content { max-width: 740px; }
.info-page h1 { margin-top: 15px; font-size: clamp(36px, 6vw, 61px); line-height: 1.07; }
.info-intro { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.info-page section { margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--border); }
.info-page section h2 { margin-bottom: 7px; font-size: 21px; letter-spacing: -.025em; }
.info-page section p { color: var(--muted); line-height: 1.6; }
.info-page .primary { margin-top: 23px; }

dialog { width: min(100% - 32px, 480px); max-height: calc(100% - 32px); margin: auto; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fcfdf9; color: var(--ink); box-shadow: 0 18px 60px #17231c40; }
dialog::backdrop { background: #17231c91; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 27px; letter-spacing: -.04em; line-height: 1.15; }
.close { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 7px; border: 1px solid var(--border); color: var(--ink); background: transparent; font-size: 23px; }
.close:hover { background: #eef3e8; }
.full { width: 100%; margin-top: 12px; }
fieldset { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.pack-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font-size: 14px; }
.pack-option:has(:checked) { background: #eef7e6; border-color: #709354; }
input[type="radio"] { accent-color: #4a782e; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cart-lines small { display: block; margin-top: 4px; color: var(--muted); }
.line-controls { display: flex; align-items: center; gap: 9px; }
.remove { padding: 6px; border: 0; background: transparent; color: #455741; font-size: 12px; text-decoration: underline; }
.total { display: flex; justify-content: space-between; padding-block: 14px 3px; }
.checkout-preview { margin-top: 14px; padding: 13px; border-radius: 8px; background: #eaf1e5; font-size: 14px; line-height: 1.5; }
.checkout-preview p { margin-top: 4px; color: var(--muted); }
.checkout-preview form { margin-top: 13px; }
.checkout-preview input { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 1px solid var(--border); border-radius: 5px; }
#embedded-payment:not(:empty) { margin-top: 13px; }

@media (max-width: 960px) {
  .wrap { width: min(100% - 48px, 1160px); }
  .hero { gap: 28px; padding-block: 56px; }
  .product { padding: 15px; }
  .product h3 { font-size: 18px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 65px; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
  .site-header nav { order: 3; width: 100%; gap: 21px; padding-block: 3px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 29px; padding-block: 39px; }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 21px; }
  .catalog-inner { padding-block: 32px 40px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 13px; }
  .products { grid-template-columns: 1fr; gap: 12px; }
  .questions { grid-template-columns: 1fr; gap: 20px; padding-block: 39px; }
  .footer-inner { flex-wrap: wrap; padding-block: 14px; }
}

@media (max-width: 390px) {
  h1 { font-size: 39px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; padding-block: 11px; }
  .cart-lines li { grid-template-columns: 1fr; }
}
