/*
 * Minimus stores: the public pages and the customer portal.
 * Colours, fonts and corners come from the store's theme as custom
 * properties (`--c-*`, `--font-*`, `--radius`, `storefront.presets.theme_vars`),
 * every text colour already checked for contrast. Three templates lay the same
 * markup out differently: `.tpl-classic`, `.tpl-bold`, `.tpl-minimal`.
 * No inline style anywhere (the CSP allows only this file and the theme's
 * one nonce'd block); no web font (font stacks the device has).
 */

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--c-primary); color: var(--c-on-primary); border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.muted { color: var(--c-muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 2.5rem); }
@media (max-width: 480px) { .wrap, .wrap.narrow { width: calc(100% - 2rem); } }

.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(1.8rem, 1rem + 2vw, 3rem); }
.section-head.left { text-align: start; margin-inline-start: 0; }
.section-head p { color: var(--c-muted); font-size: 1.08rem; margin: 0; }
.section + .section { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.75rem; padding: 0.6rem 1.15rem; border-radius: var(--radius);
  border: 2px solid transparent; font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--c-primary) 86%, var(--c-text)); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 86%, var(--c-text)); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary-text); background: transparent; }
.btn-outline:hover { background: var(--c-primary-soft); }
.btn-ghost { color: var(--c-text); background: transparent; border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-surface); }
.btn-danger { color: #fff; background: #b42318; }
.btn-lg { min-height: 3.2rem; padding: 0.8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { min-height: 2.25rem; padding: 0.35rem 0.8rem; font-size: 0.9rem; }
/* A full-width button wraps: plan names brought from another panel can be long ("1 Month - USA/Lat Package | Multi
   Connection +18"), and a button that never wraps pushes a phone's page sideways. */
.btn-block { width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 600; }
.badge { display: inline-block; padding: 0.2em 0.65em; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; background: var(--c-accent); color: var(--c-on-accent); vertical-align: middle; }

/* ── Ribbons and notices ──────────────────────────────────────────── */
.ribbon { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.55rem 1rem; font-size: 0.9rem; background: #fff4d6; color: #5c3d00; text-align: center; }
.ribbon-preview { background: var(--c-primary-soft); color: var(--c-text); }
.notice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); margin: 0 auto 1.5rem; max-width: 46rem; }
.notice .icon { margin-top: 0.2em; color: var(--c-primary-text); }
.notice.warn { background: #fff4d6; color: #5c3d00; border-color: #f1d48a; }
.notice.warn .icon { color: inherit; }
.notice.ok { background: #e7f6ec; color: #11512a; border-color: #b6e2c4; }
.notice.ok .icon { color: inherit; }
.notice.error { background: #fdecea; color: #7a1c14; border-color: #f4c3bd; }
.notice.error .icon { color: inherit; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--c-border); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-text); text-decoration: none; font-weight: 750; font-family: var(--font-heading); font-size: 1.15rem; margin-inline-end: auto; min-width: 0; }
.brand-logo { max-height: 2.4rem; width: auto; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: calc(var(--radius) * 0.8); background: var(--c-primary); color: var(--c-on-primary); font-size: 1.1rem; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--c-text); text-decoration: none; font-weight: 550; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--c-primary); }
.nav-actions { display: flex; gap: 0.6rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: transparent; color: var(--c-text); cursor: pointer; }
/* On a phone the main button stays in the header, beside the menu. */
.phone-cta { display: none; flex: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .phone-cta { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem; background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.35); display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav ul a { display: block; padding: 0.65rem 0; border-bottom: 1px solid var(--c-border); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.hero-glow { display: none; }
.hero-grid { position: relative; display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero.has-picture .hero-grid { grid-template-columns: 1.05fr 1fr; }
.hero-center .hero-grid { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
.hero-title { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); margin-bottom: 0.4em; }
.hero-text { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--c-muted); max-width: 38rem; }
.hero-center .hero-text { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-center .hero-actions { justify-content: center; }
.hero-picture { margin: 0; }
.hero-picture img { width: 100%; border-radius: calc(var(--radius) * 1.4); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45); }
@media (max-width: 860px) { .hero.has-picture .hero-grid { grid-template-columns: 1fr; } .hero-picture { order: -1; } }

/* ── Features, steps, stats, devices ──────────────────────────────── */
.feature-grid, .device-grid, .quote-grid, .gallery-grid, .plan-cards, .contact-list { list-style: none; margin: 0; padding: 0; }
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feature-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
@media (min-width: 900px) { .feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 1.5rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
.feature p, .device p, .step p { color: var(--c-muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: calc(var(--radius) * 0.9); background: var(--c-primary-soft); color: var(--c-primary-text); margin-bottom: 1rem; }
.feature-icon .icon { width: 1.4rem; height: 1.4rem; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: step; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.step-number { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary); font-weight: 800; font-family: var(--font-heading); }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0; }
.stat { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--c-surface); }
.stat dd { margin: 0; font-family: var(--font-heading); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color: var(--c-primary-text); line-height: 1.1; order: -1; }
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat dt { color: var(--c-muted); font-weight: 600; }
.device-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.device { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-bg); }
.device img { max-height: 9rem; width: auto; margin-bottom: 1rem; border-radius: calc(var(--radius) * 0.6); }
.device .text-link { margin-top: 0.8rem; }

/* ── Picture + text, gallery, quotes ──────────────────────────────── */
.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.side-left .split-picture { order: -1; }
.split-picture { margin: 0; }
.split-picture img { border-radius: calc(var(--radius) * 1.2); width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-picture { order: -1; } }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-grid figcaption { font-size: 0.9rem; color: var(--c-muted); margin-top: 0.45rem; }
.quote-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.quote { margin: 0; padding: 1.5rem; height: 100%; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.quote p { font-size: 1.05rem; margin: 0; }
.quote footer { display: flex; flex-direction: column; font-size: 0.92rem; }
.quote footer span { color: var(--c-muted); }

/* ── Plans ────────────────────────────────────────────────────────── */
.period-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; width: max-content; max-width: 100%; margin: 0 auto 2rem; padding: 0.3rem; border-radius: calc(var(--radius) + 0.3rem); background: var(--c-surface-2); }
.period-tabs button { font: inherit; font-weight: 650; min-height: 2.5rem; padding: 0.45rem 1.1rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--c-muted); cursor: pointer; }
.period-tabs button[aria-selected="true"] { background: var(--c-bg); color: var(--c-text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); }
.plan-group[hidden] { display: none; }
.group-title { text-align: center; margin: 2rem 0 1rem; }
.plan-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 22rem)); justify-content: center; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border-radius: calc(var(--radius) * 1.2); background: var(--c-bg); border: 1px solid var(--c-border); }
.plan-card.featured { border: 2px solid var(--c-primary); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--c-primary) 70%, transparent); }
.plan-badge { position: absolute; top: -0.8rem; inset-inline-start: 1.5rem; }
.plan-name { font-size: 1.2rem; margin-bottom: 0.6rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin: 0 0 1rem; }
.plan-price .amount { font-family: var(--font-heading); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.plan-price .per { color: var(--c-muted); font-weight: 600; }
.plan-price .compare { color: var(--c-muted); font-size: 1rem; }
.plan-meta { display: flex; gap: 0.5rem; align-items: center; color: var(--c-muted); font-size: 0.92rem; margin: 0 0 0.4rem; }
.plan-desc { margin-top: 0.6rem; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.checks li { display: flex; gap: 0.55rem; align-items: flex-start; }
.checks .icon { color: var(--c-primary-text); margin-top: 0.2em; }
.plan-cta { margin-top: auto; padding-top: 1.5rem; }
.unavailable { display: block; text-align: center; padding: 0.7rem; color: var(--c-muted); font-weight: 600; border: 1px dashed var(--c-border); border-radius: var(--radius); }
.unavailable.soon { border-style: solid; background: var(--c-surface); }
.plan-table { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.2fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--c-border); }
.plan-row:first-child { border-top: 0; }
.plan-row-head { background: var(--c-surface); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.plan-row.featured { background: var(--c-primary-soft); }
@media (max-width: 720px) {
  .plan-row-head { display: none; }
  .plan-row { grid-template-columns: 1fr 1fr; }
  .plan-row .plan-name { grid-column: 1 / -1; }
  .plan-row [data-label]::before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--c-muted); }
}

/* ── Questions, help ──────────────────────────────────────────────── */
.accordion { display: grid; gap: 0.6rem; }
.qa { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); }
.qa > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 650; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after { content: ''; flex: none; width: 0.6rem; height: 0.6rem; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-25%); transition: transform 0.15s; }
.qa[open] > summary::after { transform: rotate(-135deg); }
.qa > .prose { padding: 0 1.2rem 1rem; color: var(--c-muted); }
.more { margin-top: 1.5rem; }
.search { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 2rem; padding-block: 0.4rem 0.4rem; padding-inline: 1rem 0.4rem; border: 1px solid var(--c-border); border-radius: calc(var(--radius) + 0.2rem); background: var(--c-surface); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; padding: 0.5rem 0; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.search-icon { color: var(--c-muted); }
.help-fab { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 50; }
.help-fab > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.75rem 1.1rem; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5); }
.help-fab > summary::-webkit-details-marker { display: none; }
/* On a phone the Help button is a small round icon, clear of the cards' edges. */
@media (max-width: 640px) {
  .help-fab { inset-inline-end: 0.75rem; bottom: 0.75rem; }
  .help-fab > summary { width: 3rem; height: 3rem; padding: 0; justify-content: center; }
  .help-fab > summary > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main { padding-bottom: 4.5rem; }
}
.help-panel { position: absolute; inset-inline-end: 0; bottom: calc(100% + 0.6rem); width: min(23rem, calc(100vw - 2rem)); max-height: min(32rem, 70vh); overflow: auto; padding: 1rem; border-radius: calc(var(--radius) + 0.2rem); background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.5); }
.help-title { font-weight: 750; margin-bottom: 0.6rem; }
.help-list { display: grid; gap: 0.4rem; }
.help-item > summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; }
.help-item .prose { color: var(--c-muted); padding-bottom: 0.4rem; }
.help-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ── Trial band, contact, guides ──────────────────────────────────── */
.cta-band { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: clamp(1.75rem, 1rem + 3vw, 3rem); border-radius: calc(var(--radius) * 1.5); background: var(--c-primary); color: var(--c-on-primary); }
.cta-band h2 { margin-bottom: 0.3rem; }
.cta-band p { margin: 0; opacity: 0.92; }
.cta-band .notice { color: var(--c-text); margin: 0; }
.contact-list { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 2rem; }
.contact-card { display: flex; gap: 0.9rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; background: var(--c-surface); }
.contact-card:hover { border-color: var(--c-primary); }
.contact-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary-text); flex: none; }
.contact-kind { display: block; font-size: 0.8rem; color: var(--c-muted); font-weight: 600; }
.contact-value { display: block; font-weight: 650; word-break: break-word; }
.contact-ticket { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.25rem; border-radius: var(--radius); background: var(--c-primary-soft); }
.contact-ticket p { margin: 0; flex: 1 1 18rem; }
.guide-tabs { display: grid; gap: 0.6rem; }
.guide { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); }
.guide > summary { list-style: none; display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; cursor: pointer; font-weight: 650; }
.guide > summary::-webkit-details-marker { display: none; }
.guide-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: calc(var(--radius) * 0.8); background: var(--c-primary-soft); color: var(--c-primary-text); }
.guide-body { padding: 0 1.1rem 1.1rem; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Text ─────────────────────────────────────────────────────────── */
.prose { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1em; }
.prose li + li { margin-top: 0.3em; }
.prose code, .prose kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--c-surface-2); }
.prose pre { overflow: auto; padding: 1rem; border-radius: var(--radius); background: var(--c-surface-2); }
.prose pre code { padding: 0; background: none; }
.prose blockquote { margin: 0 0 1em; padding-inline-start: 1rem; border-inline-start: 3px solid var(--c-primary); color: var(--c-muted); }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 0.5rem 0.7rem; text-align: start; }
.prose.small { font-size: 0.92rem; }
.spacer.spacer-small { padding-block: 0.75rem; }
.spacer.spacer-medium { padding-block: 2rem; }
.spacer.spacer-large { padding-block: 4rem; }
.spacer hr { display: none; border: 0; border-top: 1px solid var(--c-border); margin: 0; }
.spacer.with-line hr { display: block; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { padding-top: 3rem; border-top: 1px solid var(--c-border); background: var(--c-surface); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; padding-bottom: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { font-family: var(--font-heading); font-weight: 750; font-size: 1.15rem; margin-bottom: 0.4rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a, .footer-legal a { color: var(--c-text); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { text-decoration: underline; }
.pay-methods { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pay-methods li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-bg); font-size: 0.82rem; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.25rem; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.closed { min-height: 70vh; display: grid; place-items: center; }
.closed-logo { max-height: 4rem; width: auto; margin: 0 auto 2rem; }
.brand-name.big { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; }

/* ── Forms (sign-up, checkout, portal) ────────────────────────────── */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-weight: 650; font-size: 0.95rem; }
.field .hint { font-size: 0.86rem; color: var(--c-muted); }
.field .error { font-size: 0.88rem; color: #b42318; font-weight: 600; }
.mode-dark .field .error { color: #ff8a80; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=search], .field input[type=number], .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.85rem; font: inherit; color: var(--c-text); background: var(--c-bg);
  border: 1px solid color-mix(in srgb, var(--c-border) 60%, var(--c-muted)); border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--c-primary) 55%, transparent); outline-offset: 1px; border-color: var(--c-primary); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
.check-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.check-row input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--c-primary); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.code-input { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 1.6rem !important; letter-spacing: 0.5em; text-align: center; }

/* ── Cards and panels (checkout, portal) ──────────────────────────── */
.card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: calc(var(--radius) * 1.2); background: var(--c-bg); border: 1px solid var(--c-border); }
.card + .card { margin-top: 1.25rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-title h2, .card-title h3 { margin: 0; }
.auth-shell { min-height: calc(100vh - 4.25rem); display: grid; place-items: center; padding: clamp(1.5rem, 1rem + 4vw, 4rem) 1rem; background: radial-gradient(70% 60% at 50% 0%, var(--c-primary-soft), transparent 70%); }
.auth-card { width: min(28rem, 100%); }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.3rem; }
.auth-card .lead { color: var(--c-muted); margin-bottom: 1.5rem; }
.auth-switch { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); text-align: center; font-size: 0.95rem; }
.facts { display: grid; gap: 0.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 0; }
.facts dt { font-size: 0.82rem; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0.15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.summary-line.total { border-top: 1px solid var(--c-border); margin-top: 0.4rem; padding-top: 0.8rem; font-weight: 800; font-size: 1.1rem; }
.choice-list { display: grid; gap: 0.6rem; }
.choice { display: flex; gap: 0.8rem; align-items: center; padding: 0.95rem 1.1rem; border: 1px solid var(--c-border); border-radius: var(--radius); cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--c-primary); background: var(--c-primary-soft); }
.choice input { accent-color: var(--c-primary); width: 1.15rem; height: 1.15rem; }
.choice .choice-text { display: grid; }
.choice .choice-text small { color: var(--c-muted); }
.status-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--c-surface-2); color: var(--c-text); }
.status-pill.ok { background: #e7f6ec; color: #11512a; }
.status-pill.warn { background: #fff4d6; color: #5c3d00; }
.status-pill.bad { background: #fdecea; color: #7a1c14; }
.secret { display: flex; gap: 0.5rem; align-items: center; }
.secret code, .copy-value { font-family: ui-monospace, Menlo, Consolas, monospace; padding: 0.35rem 0.6rem; border-radius: calc(var(--radius) * 0.6); background: var(--c-surface-2); overflow-wrap: anywhere; }
.copy-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.copy-row .copy-value { flex: 1 1 14rem; min-width: 0; }
.qr { width: 11rem; height: 11rem; background: #fff; padding: 0.4rem; border-radius: calc(var(--radius) * 0.6); }
.spinner { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 3px solid var(--c-border); border-top-color: var(--c-primary); animation: spin 0.9s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Portal layout */
.portal { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; padding-block: 2rem 4rem; align-items: start; }
.portal-nav { position: sticky; top: 5.5rem; display: grid; gap: 0.2rem; }
.portal-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem; border-radius: var(--radius); color: var(--c-text); text-decoration: none; font-weight: 600; }
.portal-nav a:hover { background: var(--c-surface); }
.portal-nav a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-text); }
.portal-main { min-width: 0; }
.portal-main > h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .portal-nav { position: static; display: flex; overflow-x: auto; gap: 0.3rem; padding-bottom: 0.4rem; scrollbar-width: thin; }
  .portal-nav a { white-space: nowrap; padding: 0.5rem 0.75rem; border: 1px solid var(--c-border); }
}
.line-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.line-card { display: flex; flex-direction: column; gap: 0.6rem; }
.line-card .days { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: start; padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--c-border); }
  .table.stack td { border: 0; padding: 0.15rem 0; }
  .table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--c-muted); }
}
.toggle-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--c-border); }
.toggle-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 3rem; height: 1.7rem; flex: none; }
.switch input { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border); cursor: pointer; transition: background 0.15s; }
.switch input::after { content: ''; position: absolute; top: 0.18rem; inset-inline-start: 0.2rem; width: 1.2rem; height: 1.2rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.35); transition: transform 0.15s; }
.switch input:checked { background: var(--c-primary); border-color: var(--c-primary); }
.switch input:checked::after { transform: translateX(1.3rem); }
[dir="rtl"] .switch input:checked::after { transform: translateX(-1.3rem); }
.thread { display: grid; gap: 0.8rem; margin-bottom: 1.5rem; }
.message { max-width: 85%; padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); }
.message.mine { justify-self: end; background: var(--c-primary-soft); }
.message .meta { font-size: 0.8rem; color: var(--c-muted); margin-bottom: 0.3rem; }

/* ── Template: Classic (light, friendly, soft cards) ──────────────── */
.tpl-classic .hero { background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%); }
.tpl-classic .features, .tpl-classic .faq { background: var(--c-surface); }
.tpl-classic .feature { background: var(--c-bg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -16px rgb(0 0 0 / 0.18); border-color: transparent; }
.tpl-classic .plan-card { box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -20px rgb(0 0 0 / 0.25); }
.tpl-classic .section + .section.features, .tpl-classic .section + .section.faq { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }

/* ── Template: Bold (dark, vivid, centred, glowing) ───────────────── */
.tpl-bold body { letter-spacing: 0.005em; }
.tpl-bold h1, .tpl-bold h2 { font-weight: 800; text-transform: none; letter-spacing: -0.03em; }
.tpl-bold .hero { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); }
.tpl-bold .hero-glow { display: block; position: absolute; inset: -30% -10% auto; height: 120%;
  background: radial-gradient(45% 45% at 30% 30%, color-mix(in srgb, var(--c-primary) 45%, transparent), transparent 70%),
              radial-gradient(40% 40% at 75% 25%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 70%);
  filter: blur(10px); pointer-events: none; }
.tpl-bold .hero-title { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); line-height: 1.02; }
.tpl-bold .hero.has-picture .hero-picture img { box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--c-primary) 60%, transparent); }
.tpl-bold .feature, .tpl-bold .plan-card, .tpl-bold .quote, .tpl-bold .device, .tpl-bold .qa, .tpl-bold .guide { background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface)); border-color: color-mix(in srgb, var(--c-border) 70%, var(--c-primary)); }
.tpl-bold .plan-card.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 22%, var(--c-surface)), var(--c-surface)); }
.tpl-bold .cta-band { background: linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 55%, var(--c-accent))); color: var(--c-on-primary); }
.tpl-bold .step-number { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); }
.tpl-bold .stat dd { background: linear-gradient(90deg, var(--c-primary-text), var(--c-accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tpl-bold .site-footer { background: var(--c-bg); }

/* ── Template: Minimal (quiet, fine lines, serif headings) ────────── */
.tpl-minimal h1, .tpl-minimal h2, .tpl-minimal h3 { font-weight: 500; letter-spacing: -0.01em; }
.tpl-minimal .hero-title { font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
.tpl-minimal .section-head { text-align: start; margin-inline-start: 0; }
.tpl-minimal .section { border-top: 1px solid var(--c-border); }
.tpl-minimal .hero { border-top: 0; }
.tpl-minimal .feature, .tpl-minimal .device, .tpl-minimal .quote, .tpl-minimal .stat { background: transparent; border: 0; border-top: 1px solid var(--c-text); border-radius: 0; padding-inline: 0; }
.tpl-minimal .feature-icon { background: transparent; width: auto; height: auto; color: var(--c-text); }
.tpl-minimal .plan-card { border-radius: var(--radius); box-shadow: none; }
.tpl-minimal .plan-card.featured { border: 1px solid var(--c-text); box-shadow: none; }
.tpl-minimal .btn { font-weight: 600; letter-spacing: 0.01em; }
.tpl-minimal .btn-primary { background: var(--c-text); color: var(--c-bg); }
.tpl-minimal .cta-band { background: transparent; color: var(--c-text); border: 1px solid var(--c-text); }
.tpl-minimal .cta-band .btn-accent { background: var(--c-text); color: var(--c-bg); }
.tpl-minimal .step-number { background: transparent; color: var(--c-text); border: 1px solid var(--c-text); }
.tpl-minimal .site-header { background: var(--c-bg); }
.tpl-minimal .site-footer { background: var(--c-bg); }
.tpl-minimal .period-tabs { background: transparent; border: 1px solid var(--c-border); margin-inline-start: 0; }

/* Preview: the section the builder points at */
[data-preview-origins] [data-section] { position: relative; }
[data-preview-origins] [data-section].preview-hover { outline: 2px dashed var(--c-primary); outline-offset: -2px; cursor: pointer; }
[data-preview-origins] [data-section].preview-selected { outline: 3px solid var(--c-primary); outline-offset: -3px; }
/* Words the seller can change right in the preview (`preview.js`). */
.previewing [data-edit] { cursor: text; border-radius: 4px; }
.previewing [data-edit]:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-primary) 45%, transparent); }
.previewing [data-edit].preview-editing { outline: 2px solid var(--c-primary); outline-offset: 4px; box-shadow: none; }

/* ── In-house drawings (`templates/storefront/art/`) in the store's colours ── */
.hero-art { display: flex; align-items: center; justify-content: center; }
.art { width: 100%; height: auto; display: block; overflow: visible; }
.art .fr { fill: color-mix(in srgb, var(--c-text) 88%, var(--c-primary)); }
.art .sc { fill: var(--c-surface); }
.art .tile { fill: color-mix(in srgb, var(--c-border) 70%, var(--c-surface-2)); }
.art .p { fill: var(--c-primary); }
.art .a, .art .tile.a { fill: var(--c-accent); }
.art .on-p { fill: var(--c-on-primary); }
.art .on-a { fill: var(--c-on-accent); }
.art .base { fill: color-mix(in srgb, var(--c-text) 55%, var(--c-bg)); }
.art .glow { fill: color-mix(in srgb, var(--c-primary) 14%, transparent); }
.mode-dark .art .fr { fill: color-mix(in srgb, var(--c-surface-2) 60%, #000); }
.mode-dark .art .sc { fill: var(--c-surface-2); }
.mode-dark .art .tile { fill: color-mix(in srgb, var(--c-text) 14%, var(--c-surface-2)); }
.mode-dark .art .base { fill: color-mix(in srgb, var(--c-text) 30%, var(--c-bg)); }
.art .line { fill: none; stroke: var(--c-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art .line-a { fill: none; stroke: var(--c-accent-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-center .hero-art { width: min(100%, 46rem); margin-inline: auto; }
@media (max-width: 860px) { .hero-art { max-width: 26rem; margin-inline: auto; } .hero-picture.hero-art { order: 0; } }

@media print { .site-header, .help-fab, .ribbon, .nav-toggle { display: none !important; } }

/* ── Portal and checkout extras ───────────────────────────────────── */
.h3 { font-size: 1.15rem; }
.machine { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; }
.narrow-card { max-width: 36rem; }
.portal-signout { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--c-border); }
.portal-nav-button { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.65rem 0.85rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--c-muted); font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.portal-nav-button:hover { background: var(--c-surface); color: var(--c-text); }
@media (max-width: 860px) { .portal-signout { margin: 0; padding: 0; border: 0; } .portal-nav-button { white-space: nowrap; padding: 0.5rem 0.75rem; border: 1px solid var(--c-border); } }
.card-link { color: inherit; text-decoration: none; transition: border-color 0.15s; }
.card-link:hover { border-color: var(--c-primary); }
.checkout-grid { display: grid; grid-template-columns: 1fr 22rem; gap: 1.25rem; align-items: start; }
.checkout-main .card + .card { margin-top: 1.25rem; }
.checkout-summary { position: sticky; top: 5.5rem; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { position: static; } }
.inline-field { display: flex; gap: 0.5rem; }
.inline-field input { flex: 1; min-width: 0; }
.order-mini { padding: 0.9rem 1rem; margin: 0.5rem 0 1.25rem; border-radius: var(--radius); background: var(--c-primary-soft); }
.order-mini p { margin: 0; }
.links-block { display: grid; gap: 0.9rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); }
.qr-figure { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.crypto { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin-bottom: 1rem; }
.crypto .facts { flex: 1 1 16rem; }
.creds .copy-row form { display: inline; }
.order-facts { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); }
.switch-wrap { display: inline-flex; align-items: center; gap: 0.6rem; }
.form-actions.centered { justify-content: center; }
.resend { margin-top: 1rem; }
.card .form-actions:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .help-fab { inset-inline-end: 0.75rem; bottom: 0.75rem; }
  .help-fab > summary { padding: 0.8rem; }
  .help-fab > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.portal-main .notice { max-width: none; margin-inline-start: 0; margin-inline-end: 0; }
.checkout-summary .btn-block { margin-top: 1rem; }
.card .facts + .form-actions, .card .facts + p.form-actions { margin-top: 1.25rem; }
