/* 7heaven.cloud — components. Shared by the marketing site and the Blesta theme.
   Radii: block 20px · segment/field 12px · button/chip/nav pill · 3D plate 4px. No shadows. */

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover { border-color: var(--ink-muted); background: var(--surface-2); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.btn--primary:hover { background: var(--ember-hover); border-color: var(--ember-hover); }
/* Dark button for ember / dawn / light surfaces */
.btn--dark { background: var(--on-ember); border-color: var(--on-ember); color: var(--paper); }
.btn--dark-dawn { background: var(--on-ember); border-color: var(--on-ember); color: var(--dawn); }
.btn--dark:hover, .btn--dark-dawn:hover { background: var(--dark-hover); border-color: var(--dark-hover); }

.btn--md { min-height: 46px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { border-color: var(--hairline-strong); background: var(--surface-2); }

/* ---------- Cell (bento block) ---------- */

.cell {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  transition: transform .45s var(--ease-out), border-color .35s ease;
}
/* Brandbook: on hover a block rises 4px. Ember / dawn blocks keep their own border. */
@media (hover: hover) {
  .cell--lift:hover { transform: translateY(-4px); }
  .cell--lift:not(.cell--ember, .cell--dawn):hover { border-color: var(--hairline-strong); }
}
/* At most one ember and one dawn block per grid */
.cell--ember { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.cell--ember .eyebrow { color: var(--on-ember); }
.cell--dawn { background: var(--dawn); border-color: var(--dawn); color: var(--on-ember); }
.cell--dawn .eyebrow { color: var(--on-dawn-muted); }
.cell--flush { padding: 0; }

@media (max-width: 700px) { .cell { padding: 24px; } .cell--flush { padding: 0; } }

/* ---------- Tag (domain zone, small mono pill) ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
}

/* ---------- Status chip (client area) ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.chip--active   { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.chip--progress { background: color-mix(in srgb, var(--ember) 16%, transparent);   color: var(--ember-text); }
.chip--due      { background: color-mix(in srgb, var(--danger) 14%, transparent);  color: var(--danger); }
.chip--progress .dot { background: var(--ember); }

/* ---------- Status dot ---------- */

.dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--success);
}

/* Eyebrow pill with a live dot (hero) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .08em;
  color: var(--ink-muted);
}

/* ---------- Check list ---------- */

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--ember); flex: none; }
.cell--dawn .checks li::before { color: var(--ember-deep); }

/* ---------- Price ---------- */

.price { display: flex; align-items: baseline; gap: 6px; }
.price__value { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 44px; line-height: 1; }
.price__unit { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.cell--dawn .price__unit { color: var(--on-dawn-muted); }

/* ---------- Segmented choice (aria-pressed) ---------- */

.segs {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 8px;
}
.seg {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.2;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease;
}
.seg:hover { border-color: var(--hairline-strong); background: var(--surface-2); }
.seg:active { transform: scale(.97); }
.seg[aria-pressed="true"] { background: var(--dawn); border-color: var(--dawn); color: var(--on-ember); }
@media (max-width: 700px) {
  .segs { grid-template-columns: repeat(var(--cols-sm, 2), minmax(0, 1fr)); }
}

/* Pill toggle (billing period): the light pill slides to the pressed option */
.toggle {
  position: relative;
  display: flex;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--ground);
}
.toggle::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform .4s var(--ease-out);
}
.toggle:has(button:last-child[aria-pressed="true"])::before { transform: translateX(100%); }
.toggle button {
  position: relative;
  flex: 1 1 0;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: color .3s ease;
}
.toggle button[aria-pressed="true"] { color: var(--ground); }
.toggle__note { font-family: var(--font-mono); font-size: 11px; color: var(--ember); transition: color .3s ease; }
.toggle button[aria-pressed="true"] .toggle__note { color: var(--ember-deep); }
@supports not selector(:has(*)) {
  .toggle::before { display: none; }
  .toggle button[aria-pressed="true"] { background: var(--ink); }
}

/* ---------- Switch (role="switch") ---------- */

.switch {
  position: relative;
  flex: none;
  display: flex;
  justify-content: flex-start;
  width: 64px;
  height: 36px;
  padding: 4px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--hairline);
  transition: background-color .2s ease;
}
.switch::before { content: ""; position: absolute; inset: -4px; } /* 44px hit area */
.switch::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  transition: transform .35s var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--ember); }
.switch[aria-checked="true"]::after { transform: translateX(28px); }

/* ---------- Range ---------- */

.range {
  --fill: 0%;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--ember) var(--fill), var(--hairline) var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: var(--radius-pill); background: var(--hairline); }
.range::-moz-range-progress { height: 6px; border-radius: var(--radius-pill); background: var(--ember); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 6px solid var(--ember);
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform .2s var(--ease-out);
}
.range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 6px solid var(--ember);
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform .2s var(--ease-out);
}
.range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.range:active::-webkit-slider-thumb { transform: scale(1.22); }
.range:hover::-moz-range-thumb { transform: scale(1.12); }
.range:active::-moz-range-thumb { transform: scale(1.22); }
.range:focus-visible { outline: 2px solid var(--dawn); outline-offset: 4px; border-radius: 8px; }
.range-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* ---------- Field ---------- */

.field-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-muted);
}
.input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.input::placeholder { color: var(--ink-muted); opacity: .7; }

/* Pill search: input + button inside one capsule */
.search {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition: border-color var(--t-fast);
}
.search:hover { border-color: var(--ink-muted); }
.search:focus-within { border-color: var(--dawn); }
.search .input {
  flex: 1 1 auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-mono);
  outline: none;
}
.search .btn { min-height: 48px; }

/* ---------- Accordion (details/summary) ---------- */

.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .35s ease;
}
.faq-item[open], .faq-item:hover { border-color: var(--hairline-strong); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 24px 28px;
  font-size: 18px;
  line-height: 26px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ember);
  transition: transform .4s var(--ease-out);
}
.faq-item summary:hover::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-lg); }
.faq-item__body {
  padding: 0 28px 24px;
  max-width: 68ch;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.faq-item[open] .faq-item__body { opacity: 1; transform: none; }
.faq-item__body p + p { margin-top: 12px; }

/* Smooth open/close where the browser supports animating <details> (Chromium 131+) */
@supports selector(::details-content) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

@media (max-width: 700px) {
  .faq-item summary { padding: 20px; font-size: 16px; line-height: 22px; }
  .faq-item__body { padding: 0 20px 20px; }
}

/* ---------- Terminal ---------- */

.terminal {
  margin: 0;
  padding: 40px;
  background: var(--ground-deep);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 28px;
  white-space: pre-wrap;
}
.terminal .ok { color: var(--success); }
.terminal .go { color: var(--ember); }
.terminal .caret {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--ember);
  vertical-align: -3px;
}

/* ---------- Isometric 3D plates (generated by tools/iso.py) ---------- */

.iso { display: block; overflow: visible; }

/* ---------- Brand mark + wordmark ---------- */

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.brand__tld { font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--ink-muted); }
