/* Styles for the /guide page (resources/views/landing/guide.blade.php):
   the category carousel, its tabbed panels, and the step cards inside. */

/* ── Category carousel (same peek/prev-next pattern as the pricing cards) ── */
.gcar {
  position: relative;
  display: flex;
  align-items: center;
  margin: 8px 0 4px;
}
.gcar__viewport {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.gcar__track {
  display: flex;
  gap: 20px;
  padding: 14px 0 8px;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
  align-items: stretch;
}
.gcar__slide { flex: 0 0 250px; }
.gcard {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 20px;
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-xl, 20px);
  text-align: center;
  cursor: pointer;
  font: inherit;
  opacity: .42;
  transform: scale(.87);
  transition: opacity .4s, transform .4s, border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.gcar__slide.is-adjacent .gcard { opacity: .72; transform: scale(.95); }
.gcar__slide.is-active .gcard {
  opacity: 1;
  transform: scale(1);
  border-color: var(--brick-600);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.gcard__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brick-50);
  color: var(--brick-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.gcard__icon .icon { width: 24px; height: 24px; }
.gcar__slide.is-active .gcard__icon { background: var(--brick-600); color: #fff; }
.gcard__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
}
.gcard__blurb { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-500); }
.gcard__steps {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brick-600);
  background: var(--brick-50);
  padding: 3px 10px;
  border-radius: 999px;
}
.gcar__slide.is-active .gcard__steps { background: var(--brick-50); }

.gcar__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-400, #d4c8b8);
  background: #fff;
  color: var(--brick-700);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s, box-shadow .18s, opacity .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  z-index: 2;
}
.gcar__arrow:hover { background: var(--brick-50); border-color: var(--brick-400); box-shadow: 0 4px 14px rgba(95,28,22,.15); }
.gcar__arrow--prev { margin-right: 12px; }
.gcar__arrow--next { margin-left: 12px; }
.gcar__arrow[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.gcar__arrow[disabled]:hover { background: #fff; border-color: var(--cream-400, #d4c8b8); }

.gcar__dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 20px 0 32px; }
.gcar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-400, #d4c8b8);
  cursor: pointer;
  transition: background .25s, width .25s, border-radius .25s;
  border: none;
  padding: 0;
}
.gcar__dot.is-active { background: var(--brick-600); width: 24px; border-radius: 4px; }

@media (max-width: 700px) {
  .gcar { flex-wrap: wrap; row-gap: 12px; justify-content: center; }
  .gcar__viewport { flex: 0 0 100%; order: -1; -webkit-mask-image: none; mask-image: none; }
  .gcar__slide { flex: 0 0 min(220px, calc(100vw - 96px)); }
  .gcar__arrow { width: 40px; height: 40px; font-size: 16px; }
  .gcar__arrow--prev { margin-right: 0; }
  .gcar__arrow--next { margin-left: 0; }
}

/* ── Panels ─────────────────────────────────────────────── */
.guide-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.guide-panel.is-active { display: block; }
.guide-panel.is-shown { opacity: 1; transform: translateY(0); }

.gtour-panel {
  background: linear-gradient(180deg, var(--cream-50, #fffaf0) 0%, var(--cream-100, #fff3de) 100%);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-2xl, 28px);
  padding: 32px clamp(18px, 4vw, 40px) 40px;
  box-shadow: var(--shadow-sm);
}

/* ── Sub-guide tabs (e.g. "Add Customer" / "Delete Customer") ───────── */
.gtour-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.gtour-subnav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-200);
  background: #fff;
  color: var(--ink-600);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.gtour-subnav__btn .icon { width: 15px; height: 15px; }
.gtour-subnav__btn:hover { border-color: var(--brick-300); color: var(--brick-700); }
.gtour-subnav__btn.is-active {
  background: var(--brick-600);
  border-color: var(--brick-600);
  color: #fff;
}

.gtour-sub { display: none; }
.gtour-sub.is-active { display: block; animation: gtourSubFade .3s var(--ease-out); }
@keyframes gtourSubFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step groups (alternate scenarios inside one sub-guide, e.g.
   "Unsettled — Can't Delete" vs "Settled — Can Delete"). Each group
   restarts its own Step 1 / Step 2 numbering, since they aren't one
   continuous flow. ───────────────────────────────────────────── */
.gtour-group + .gtour-group {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--ink-200);
}
.gtour-group__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
}
.gtour-group__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-400);
  flex-shrink: 0;
}
.gtour-group--danger .gtour-group__dot { background: var(--brick-600); }
.gtour-group--success .gtour-group__dot { background: var(--color-success, #2f8f5b); }
.gtour-group__note { margin: 4px 0 0; font-size: 13px; color: var(--ink-500); }

.gtour-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.gtour-panel__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brick-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(192,57,43,.28);
}
.gtour-panel__icon .icon { width: 26px; height: 26px; }
.gtour-panel__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick-600);
  background: var(--brick-50);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.gtour-panel__head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.gtour-panel__head p { margin: 0; font-size: 14px; color: var(--ink-500); }

/* ── Steps ──────────────────────────────────────────────── */
/* flex: 0 (no grow) keeps every card — and its screenshot — at a fixed,
   readable size, whether a category has 2 steps or 4; cards wrap and
   stay centered instead of stretching to fill the row. */
.gtour-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  row-gap: 32px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.gtour-step {
  flex: 0 1 200px;
  max-width: 200px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 18px;
  padding: 16px 16px 0;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.gtour-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gtour-step__badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brick-600);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.gtour-step__title {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-900);
}
.gtour-step__desc {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-600);
}
/* Keep each screenshot at its real ratio so tap highlights line up with
   the image pixels, including taller form screenshots. */
.gtour-step__phone {
  position: relative;
  margin-top: auto;
  width: 100%;
  max-width: 148px;
  margin-inline: auto;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-xs);
}
.gtour-step__phone img { width: 100%; height: auto; display: block; }

/* Highlights the exact button/area to tap for that step, positioned via
   inline top/left/width/height percentages set per step in the data. */
.gtour-step__tap {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 8px;
  outline: 2px solid var(--brick-600);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, .22);
  pointer-events: none;
  animation: gtourTapPulse 1.7s ease-in-out infinite;
}
@keyframes gtourTapPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(192, 57, 43, .28); }
  50%      { box-shadow: 0 0 0 7px rgba(192, 57, 43, .05); }
}

/* Connector: a dashed line running into a small circle, showing the
   steps flow in order — rotates to a vertical line when cards stack. */
.gtour-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brick-50);
  color: var(--brick-600);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gtour-arrow .icon { width: 16px; height: 16px; }
.gtour-arrow::before,
.gtour-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 2px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(to right, var(--brick-300) 0 4px, transparent 4px 9px);
}
.gtour-arrow::before { right: 100%; }
.gtour-arrow::after { left: 100%; }

@media (max-width: 780px) {
  .gtour-steps { flex-direction: column; align-items: center; row-gap: 4px; }
  .gtour-step { flex: 1 1 auto; width: 100%; max-width: 260px; }
  .gtour-step__phone { max-width: 100%; }
  .gtour-arrow { margin: -6px 0; transform: rotate(90deg); }
}
@media (max-width: 620px) {
  .gtour-panel { padding: 26px 18px 30px; border-radius: var(--radius-xl, 20px); }
  .gtour-panel__head { gap: 12px; }
  .gtour-panel__icon { width: 44px; height: 44px; }
}

/* ── Still-stuck help band ──────────────────────────────── */
/* Overrides the generic .section--tight padding-block, which left too
   much empty space above and below this band. */
#guide-help { padding-block: 16px 32px; }
.guide-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-xl, 20px);
  padding: 28px clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.guide-help__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brick-50);
  color: var(--brick-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-help__icon .icon { width: 26px; height: 26px; }
.guide-help__text { flex: 1 1 320px; }
.guide-help__text h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink-900);
}
.guide-help__text p { margin: 0; font-size: 14px; color: var(--ink-500); max-width: 56ch; }
.guide-help__ctas { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 560px) {
  .guide-help { padding: 22px 18px; }
  .guide-help__ctas { width: 100%; }
  .guide-help__ctas .btn { flex: 1; }
}

/* =========================================================
   GUIDE SECTION - RESPONSIVE BASE
   ========================================================= */

.guide-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

.guide-section .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.guide-lang-switcher {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: -45px;
    /* A flat, universal inset from the container's own right edge — kept
       the same at every screen size, instead of the old per-breakpoint
       transform: translateX() values (some of which pushed it EVEN
       further into the corner). This is what actually keeps the button
       off the corner everywhere: PC, tablet, and phone alike. */
    padding-right: 16px;
    box-sizing: border-box;
    z-index: 20;
}


.guide-lang-dropdown {
    position: relative;
    left: auto;
    right: auto;
    box-sizing: border-box;
}

.guide-lang-dropdown > summary {
    list-style: none;
    outline: none;
    cursor: pointer;
}

.guide-lang-dropdown > summary::-webkit-details-marker {
    display: none;
}

.guide-lang-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 120px;
    width: 120px;
    height: 40px;
    padding: 0 14px 0 16px;
    box-sizing: border-box;
    border: 1px solid rgba(95, 28, 22, 0.18);
    border-radius: 10px;
    background: rgba(255, 248, 239, 0.75);
    color: #5f1c16;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(95, 28, 22, 0.05);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.guide-lang-button:hover {
    background: #f8e8d7;
    border-color: rgba(200, 59, 45, 0.35);
    box-shadow: 0 4px 10px rgba(95, 28, 22, 0.08);
}

.guide-lang-arrow {
    color: #c83b2d;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.guide-lang-dropdown[open] .guide-lang-arrow {
    transform: rotate(180deg);
}

.guide-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    width: max-content;
    min-width: 140px;
    /* Caps the list at roughly 4 visible rows — the rest scrolls, instead
       of the menu growing tall enough to reach content further down the
       page. */
    max-height: min(172px, calc(100vh - 140px));
    overflow-y: auto;
    padding: 6px;
    /* Warm cream tint (--cream-50), same family as the closed button's
       own rgba(255,248,239,.75) fill, used consistently across every
       screen size so the open menu never looks like a bare white box
       dropped onto this page's brick/cream palette. */
    background: var(--cream-50, #fffaf0);
    border: 1px solid rgba(95, 28, 22, 0.14);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(95, 28, 22, 0.18);
    box-sizing: border-box;
    /* Thin, rounded scrollbar (Firefox) instead of the browser's default
       square-edged one — Chromium/WebKit get the same look below. */
    scrollbar-width: thin;
    scrollbar-color: var(--brick-300, #eca194) transparent;
}

.guide-lang-menu::-webkit-scrollbar {
    width: 7px;
}

.guide-lang-menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
    border-radius: 999px;
}

.guide-lang-menu::-webkit-scrollbar-thumb {
    background: var(--brick-300, #eca194);
    border-radius: 999px;
    border: 1px solid var(--cream-50, #fffaf0);
}

.guide-lang-menu::-webkit-scrollbar-thumb:hover {
    background: var(--brick-400, #e2776a);
}

.guide-lang-option {
    display: block;
    padding: 8px 10px;
    margin: 1px 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #5f1c16;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.guide-lang-option:hover {
    background: var(--brick-50, #fdf1ea);
    color: #c83b2d;
}

.legal__header {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center !important;
    overflow-wrap: break-word;
}

.legal__header .guide-title {
    display: block;
    width: min(850px, 100%);
    max-width: 850px;
    margin: 16px auto 0 !important;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center !important;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.legal__header .body-lg {
    display: block;
    width: 100%;
    max-width: 60ch;
    margin: 16px auto 0 !important;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center !important;
    overflow-wrap: break-word;
}

@media (min-width: 1200px) {

    .guide-lang-switcher {
        margin-top: -45px;
    }
    .legal__header .guide-title {
        width: min(850px, 100%);
        max-width: 850px;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {

    .guide-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .guide-lang-switcher {
        margin-top: -35px;
    }

    .legal__header .guide-title {
        width: min(800px, 100%);
        max-width: 800px;
    }
}

@media (min-width: 577px) and (max-width: 992px) {

    .guide-section .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }


    .guide-lang-switcher {
        margin-top: -25px;
    }

    .guide-lang-button {
        min-width: 110px;
        width: 110px;
        height: 38px;
        padding: 0 12px 0 14px;
        gap: 14px;
        font-size: 13px;
    }

    .guide-lang-arrow {
        font-size: 16px;
    }

    .guide-lang-menu {
        min-width: 110px;
        max-width: calc(100vw - 32px);
        max-height: min(140px, calc(100vh - 140px));
    }

    .guide-lang-option {
        padding: 5px 4px;
        font-size: 13px;
    }

    .legal__header .guide-title {
        width: 100%;
        max-width: 700px;
        padding-left: 20px;
        padding-right: 20px;
        font-size: clamp(36px, 5vw, 56px);
        line-height: 1.15;
    }

    .legal__header .body-lg {
        max-width: 60ch;
        padding-left: 16px;
        padding-right: 16px;
    }
}


@media (max-width: 576px) {

    .guide-section {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .guide-section .container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .guide-lang-switcher {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: -20px;
        margin-right: 0;
        transform: none;
        box-sizing: border-box;
    }

    .guide-lang-dropdown {
        position: relative;
        left: auto;
        right: auto;
        max-width: 100%;
    }

    .guide-lang-button {
        min-width: 92px;
        width: 92px;
        height: 34px;
        padding: 0 10px 0 11px;
        gap: 8px;
        border-radius: 8px;
        font-size: 12px;
    }

    .guide-lang-arrow {
        font-size: 14px;
    }

    .guide-lang-menu {
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        min-width: 130px;
        max-width: calc(100vw - 24px);
        max-height: min(148px, calc(100vh - 120px));
        width: max-content;
    }

    .guide-lang-option {
        padding: 7px 9px;
        margin: 1px 0;
        font-size: 12px;
        line-height: 1.45;
        white-space: nowrap;
    }

    .legal__header {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        box-sizing: border-box;
    }

    .legal__header .eyebrow-pill {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .legal__header .guide-title {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 16px auto 0 !important;
        padding: 0 12px;
        box-sizing: border-box;
        font-size: clamp(27px, 8vw, 40px);
        line-height: 1.2;
        text-align: center !important;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .legal__header .body-lg {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 14px auto 0 !important;
        padding: 0 12px;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 1.6;
        text-align: center !important;
        overflow-wrap: break-word;
    }
}

@media (max-width: 380px) {

    .guide-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .guide-lang-button {
        min-width: 88px;
        width: 88px;
        height: 32px;
        padding: 0 9px 0 10px;
        font-size: 11px;
    }

    .guide-lang-arrow {
        font-size: 14px;
    }

    .guide-lang-menu {
        min-width: 95px;
        max-width: calc(100vw - 20px);
        max-height: min(118px, calc(100vh - 100px));
    }

    .guide-lang-option {
        font-size: 11px;
        padding: 4px 3px;
    }

    .legal__header .guide-title {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.2;
    }

    .legal__header .body-lg {
        padding-left: 8px;
        padding-right: 8px;
    }
}