/*
 * Freklo Business Admin on the site: its page (/business-admin) and its block on /tools.
 * The console is shown through real captures in a browser window (.win, site.css). On a phone each
 * capture is the console's own phone layout, so the words in it stay readable.
 */

/* ---------- /tools ---------- */
.adm-note { color: var(--fg-soft); max-width: 34em; }
.adm-grid .tl-head .actions { margin-top: 6px; }
.adm-rows { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- hero ---------- */
.adm-hero { padding-bottom: 0; }
.adm-hero .page-hero-in { max-width: 46em; }
.adm-hero h1 { max-width: none; }
.adm-hero .actions { margin-top: 8px; }
.adm-hero-shot { margin-top: clamp(32px, 5vw, 64px); padding: clamp(14px, 2.4vw, 32px) clamp(14px, 2.4vw, 32px) 0; border-radius: var(--radius-l) var(--radius-l) 0 0; background: linear-gradient(180deg, var(--pale), color-mix(in srgb, var(--pale) 40%, #FFFFFF)); }
.adm-hero-shot .win { border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: none; }

/* ---------- the areas: one stage, six screens ---------- */
.adm-stage { margin-top: clamp(28px, 4vw, 44px); }
.adm-tabs { display: none; }
.adm-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(28px, 4vw, 64px); align-items: start; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--border); }
.adm-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.adm-kicker { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--blue-press, var(--blue)); }
.adm-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.12; letter-spacing: -0.02em; }
.adm-copy > p:not(.adm-kicker) { color: var(--fg-soft); max-width: 34em; }
.adm-ticks { display: grid; gap: 10px; margin-top: 4px; }
.adm-ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--fs-small); }
.adm-ticks svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.adm-sample { margin-top: 20px; font-size: var(--fs-small); color: var(--fg-soft); }

/* With :has() the six panels become one stage and the radio buttons its tabs. Without it (or without
   scripts: none are involved) the panels simply follow one another, each under its own name. */
@supports selector(:has(*)) {
  .adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 32px); }
  .adm-tab { position: relative; }
  .adm-tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .adm-tab label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: #FFFFFF; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--fg); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
  .adm-tab input:checked + label { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
  .adm-tab input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) { .adm-tab input:not(:checked):hover + label { border-color: color-mix(in srgb, var(--fg) 45%, transparent); } }
  .adm-panel { display: none; padding: 0; border-top: 0; }
  .adm-kicker { display: none; }
  .adm-stage:has(#adm-a1:checked) .adm-panel[data-a="1"],
  .adm-stage:has(#adm-a2:checked) .adm-panel[data-a="2"],
  .adm-stage:has(#adm-a3:checked) .adm-panel[data-a="3"],
  .adm-stage:has(#adm-a4:checked) .adm-panel[data-a="4"],
  .adm-stage:has(#adm-a5:checked) .adm-panel[data-a="5"],
  .adm-stage:has(#adm-a6:checked) .adm-panel[data-a="6"] { display: grid; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports selector(:has(*)) {
    .adm-panel { animation: adm-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    @keyframes adm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  }
}
@media (max-width: 999px) { .adm-panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- what stays in the app ---------- */
.adm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--border); }
.adm-facts li { padding: clamp(18px, 2.2vw, 26px) 0; border-bottom: 1px solid var(--border); }
.adm-facts h3 { font-size: var(--fs-h3); }
.adm-facts p { margin-top: 6px; color: var(--fg-soft); max-width: 40em; }
@media (max-width: 760px) { .adm-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- three steps ---------- */
.adm-steps { counter-reset: adm; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 44px); }
.adm-steps li { counter-increment: adm; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 18px; border-top: 2px solid var(--ink); }
.adm-steps li::before { content: counter(adm); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; color: var(--blue); }
.adm-steps h3 { font-size: var(--fs-h3); }
.adm-steps p { color: var(--fg-soft); }
.adm-steps .arrow-link { margin-top: auto; padding-top: 6px; }
@media (max-width: 860px) { .adm-steps { grid-template-columns: minmax(0, 1fr); } }

.adm-feedback { font-size: var(--fs-small); color: var(--fg-soft); }
.adm-feedback a { color: inherit; text-underline-offset: 3px; }
