/* =========================================================================
   feature.css · Automatic Email Manager website
   Shared by every page (home, features, pricing, help…). Load it after bulmaAEM.css:
   <link rel="stylesheet" href="~/css/bulmaAEM.css" />
   <link rel="stylesheet" href="~/css/feature.css" asp-append-version="true" />
   Only Bulma variables are used, so colours and fonts follow bulmaAEM.css.
   ========================================================================= */


/* 1. Utilities ------------------------------------------------------------ */

/* Small uppercase label above a title: <p class="eyebrow is-size-7 …">FEATURE · PRINT</p> */
.eyebrow { letter-spacing: .08em; text-transform: uppercase; }

/* Raised card used for the hero illustration or video */
.card-elevated { box-shadow: 0 24px 48px -12px rgba(13, 38, 51, .25); overflow: hidden; }


/* 2. FAQ · <details class="box"><summary>Question<span class="faq-plus">+</span></summary> */

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq-plus { flex: none; transition: transform .15s ease-out; }
details[open] .faq-plus { transform: rotate(45deg); }


/* 3. Product illustrations ------------------------------------------------ */

/* Fake input inside an illustrated settings window */
.mock-input {
  border: 1px solid var(--bulma-border);
  border-radius: var(--bulma-radius);
  background: var(--bulma-scheme-main);
  padding: 8px 10px;
  font-size: .9rem;
}

/* Inline field token, e.g. "AI result" */
.ai-token {
  font-family: var(--bulma-family-sans-serif);
  font-size: .85em;
  background: var(--bulma-primary-light);
  color: var(--bulma-primary-light-invert);
  border: 1px solid var(--bulma-primary);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* Arrow between the steps of a flow */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bulma-text-weak);
}

/* Printed page (A4 or receipt) with text lines, stamp and QR code */
.sheet {
  position: relative;
  background: #fff;
  border: 1px solid var(--bulma-border);
  box-shadow: 0 10px 24px -8px rgba(13, 38, 51, .25);
  padding: 14px 12px;
}
.sheet-line {
  height: 6px;
  border-radius: 3px;
  background: var(--bulma-border-weak);
  margin-bottom: 7px;
}
.sheet-stamp {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.sheet-stamp span {
  font-family: var(--bulma-family-sans-serif);
  font-size: 9px;
  color: var(--bulma-primary-on-scheme);
  border: 1px solid var(--bulma-primary);
  border-radius: 3px;
  padding: 1px 4px;
  background: #fff;
}
.qr {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #1c2b3a;
  background: conic-gradient(#1c2b3a 25%, #fff 0 50%, #1c2b3a 0 75%, #fff 0) 0 0 / 6px 6px;
}


/* 4. Video (YouTube iframe or <video>) ------------------------------------ */

.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bulma-dark); }
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* 5. Example tabs · CSS only, no JavaScript, up to 6 tabs ------------------
   Markup: the radios are DIRECT children of .tryit, in the same order as the
   labels and the panels.
   <div class="container tryit">
     <input type="radio" name="tryit" id="t-1" checked>
     <input type="radio" name="tryit" id="t-2">
     <div class="buttons has-addons is-centered tryit-tabs">
       <label class="button is-medium" for="t-1">Tab 1</label>
       <label class="button is-medium" for="t-2">Tab 2</label>
     </div>
     <div class="tryit-panels"><div>Panel 1</div><div>Panel 2</div></div>
   </div>
   Without :has() support (old browsers): tabs hidden, all panels shown.     */

.tryit > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tryit-tabs { display: none; }
.tryit-tabs label { cursor: pointer; }
.tryit-panels > * + * { margin-top: 48px; }

@supports selector(:has(*)) {
  .tryit-tabs { display: flex; }
  .tryit-panels > * { display: none; }
  .tryit-panels > * + * { margin-top: 0; }
  .tryit:has(> input:nth-of-type(1):checked) .tryit-panels > :nth-child(1) { display: block; }
  .tryit:has(> input:nth-of-type(2):checked) .tryit-panels > :nth-child(2) { display: block; }
  .tryit:has(> input:nth-of-type(3):checked) .tryit-panels > :nth-child(3) { display: block; }
  .tryit:has(> input:nth-of-type(4):checked) .tryit-panels > :nth-child(4) { display: block; }
  .tryit:has(> input:nth-of-type(5):checked) .tryit-panels > :nth-child(5) { display: block; }
  .tryit:has(> input:nth-of-type(6):checked) .tryit-panels > :nth-child(6) { display: block; }
  .tryit:has(> input:nth-of-type(1):checked) .tryit-tabs > :nth-child(1) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); z-index: 2; }
  .tryit:has(> input:nth-of-type(2):checked) .tryit-tabs > :nth-child(2) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); z-index: 2; }
  .tryit:has(> input:nth-of-type(3):checked) .tryit-tabs > :nth-child(3) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); z-index: 2; }
  .tryit:has(> input:nth-of-type(4):checked) .tryit-tabs > :nth-child(4) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); z-index: 2; }
  .tryit:has(> input:nth-of-type(5):checked) .tryit-tabs > :nth-child(5) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); z-index: 2; }
  .tryit:has(> input:nth-of-type(6):checked) .tryit-tabs > :nth-child(6) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); z-index: 2; }
  .tryit:has(> input:nth-of-type(1):focus-visible) .tryit-tabs > :nth-child(1) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .tryit:has(> input:nth-of-type(2):focus-visible) .tryit-tabs > :nth-child(2) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .tryit:has(> input:nth-of-type(3):focus-visible) .tryit-tabs > :nth-child(3) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .tryit:has(> input:nth-of-type(4):focus-visible) .tryit-tabs > :nth-child(4) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .tryit:has(> input:nth-of-type(5):focus-visible) .tryit-tabs > :nth-child(5) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .tryit:has(> input:nth-of-type(6):focus-visible) .tryit-tabs > :nth-child(6) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
}


/* 6. Filter buttons · CSS only, no JavaScript, "All" + up to 8 groups ------
   The first radio shows every group; radio n+1 shows only group n.
   <div class="container filterset">
     <input type="radio" name="filter" id="f-0" checked>   (All)
     <input type="radio" name="filter" id="f-1">           (group 1)
     <div class="buttons filterset-tabs">
       <label class="button" for="f-0">All</label>
       <label class="button" for="f-1">Group 1</label>
     </div>
     <div class="filterset-groups"><div>Group 1</div><div>Group 2</div></div>
   </div>
   Without :has() support: buttons hidden, every group shown.               */

.filterset > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filterset-tabs { display: none; }
.filterset-tabs label { cursor: pointer; }

@supports selector(:has(*)) {
  .filterset-tabs { display: flex; }
  .filterset:has(> input:nth-of-type(2):checked) .filterset-groups > :not(:nth-child(1)) { display: none; }
  .filterset:has(> input:nth-of-type(3):checked) .filterset-groups > :not(:nth-child(2)) { display: none; }
  .filterset:has(> input:nth-of-type(4):checked) .filterset-groups > :not(:nth-child(3)) { display: none; }
  .filterset:has(> input:nth-of-type(5):checked) .filterset-groups > :not(:nth-child(4)) { display: none; }
  .filterset:has(> input:nth-of-type(6):checked) .filterset-groups > :not(:nth-child(5)) { display: none; }
  .filterset:has(> input:nth-of-type(7):checked) .filterset-groups > :not(:nth-child(6)) { display: none; }
  .filterset:has(> input:nth-of-type(8):checked) .filterset-groups > :not(:nth-child(7)) { display: none; }
  .filterset:has(> input:nth-of-type(9):checked) .filterset-groups > :not(:nth-child(8)) { display: none; }
  .filterset:has(> input:nth-of-type(1):checked) .filterset-tabs > :nth-child(1) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(2):checked) .filterset-tabs > :nth-child(2) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(3):checked) .filterset-tabs > :nth-child(3) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(4):checked) .filterset-tabs > :nth-child(4) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(5):checked) .filterset-tabs > :nth-child(5) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(6):checked) .filterset-tabs > :nth-child(6) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(7):checked) .filterset-tabs > :nth-child(7) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(8):checked) .filterset-tabs > :nth-child(8) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(9):checked) .filterset-tabs > :nth-child(9) { background: var(--bulma-primary); border-color: var(--bulma-primary); color: var(--bulma-primary-invert); }
  .filterset:has(> input:nth-of-type(1):focus-visible) .filterset-tabs > :nth-child(1) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(2):focus-visible) .filterset-tabs > :nth-child(2) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(3):focus-visible) .filterset-tabs > :nth-child(3) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(4):focus-visible) .filterset-tabs > :nth-child(4) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(5):focus-visible) .filterset-tabs > :nth-child(5) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(6):focus-visible) .filterset-tabs > :nth-child(6) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(7):focus-visible) .filterset-tabs > :nth-child(7) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(8):focus-visible) .filterset-tabs > :nth-child(8) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
  .filterset:has(> input:nth-of-type(9):focus-visible) .filterset-tabs > :nth-child(9) { outline: 3px solid var(--bulma-primary); outline-offset: 2px; }
}

/* 7. Image zoom · CSS only (checkbox + label), no JavaScript -------------
   Click the image: it opens full screen. Click anywhere (or the ✕): it closes.
   <div class="zoom">
     <input type="checkbox" id="zoom-1" class="zoom-toggle">
     <label for="zoom-1" class="zoom-thumb" title="Click to enlarge"><img src="…" alt="…"></label>
     <label for="zoom-1" class="zoom-overlay" title="Click to close"><img src="…" alt=""><span class="zoom-close" aria-hidden="true">✕</span></label>
   </div>
   Use a unique id per image on the page. ------------------------------------ */
.zoom { position: relative; }
.zoom-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.zoom-thumb { display: block; position: relative; cursor: zoom-in; border-radius: var(--bulma-radius); }
.zoom-thumb img { display: block; width: 100%; height: auto; border-radius: inherit; }
.zoom-thumb::after {
  content: "⤢"; position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 61, 80, .8); color: #fff; font-size: 16px;
  opacity: .85; transition: opacity .2s, transform .2s;
}
.zoom-thumb:hover::after { opacity:1; transform: scale(1.08); }
.zoom-toggle:focus-visible + .zoom-thumb { outline: 3px solid var(--bulma-primary); outline-offset: 3px; }
.zoom-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(10, 22, 32, .8); cursor: zoom-out;
}
.zoom-overlay > img, .zoom-overlay > figure {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--bulma-radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.zoom-overlay > figure { width: min(1200px, 92vw); }
.zoom-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px;
}
.zoom-toggle:checked ~ .zoom-overlay { display: flex; }
body:has(.zoom-toggle:checked) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .zoom-thumb::after { transition: none; } }
