/* ── Showcase-specific styles (page-local) ───────────────────────────
     Built on top of /assets/site.css design tokens. Pill-tab switcher,
     tier-section editorial labels, show-card grid, "coming-soon" panel. */

  /* Hero — tight; just kicker + title + sub. The pill switcher lives in
     its own bar below the hero so it stays visible as a primary control. */
  .showcase-hero {
    position: relative;
    padding: var(--s-8) 0 var(--s-6);
    text-align: center;
    overflow: hidden;
  }
  .showcase-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 50% at 20% 20%, rgba(13, 169, 169, 0.16), transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 70%, rgba(13, 169, 169, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
  }
  .showcase-hero > .container { position: relative; z-index: 1; }
  .showcase-hero h1 {
    font-size: var(--t-4xl);
    margin: var(--s-4) auto var(--s-4);
    max-width: 820px;
    background: linear-gradient(180deg, #ffffff 0%, #b8d6d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .showcase-hero h1 em {
    font-style: normal;
    color: var(--teal-glow);
    -webkit-text-fill-color: var(--teal-glow);
  }
  .showcase-hero p {
    font-size: var(--t-md);
    color: var(--type-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.55;
  }

  /* ── Pill-tab switcher (top-level showcase selector) ──────────────────
     Scales to 5–8 showcases without restructuring. Coming-soon state
     reduces opacity + adds a small badge so users know it's not live. */
  .showcase-tabs {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(10, 15, 15, 0.85);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
  }
  .showcase-tabs__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .showcase-tabs__label {
    font-family: var(--body);
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--type-faint);
    margin-right: var(--s-1);
  }
  .showcase-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-5);
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--type-muted);
    font-family: var(--body);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--d-1) var(--ease),
                background var(--d-1) var(--ease),
                border-color var(--d-1) var(--ease);
  }
  .showcase-tab:hover { color: var(--ink); border-color: var(--teal-deep); }
  .showcase-tab[aria-selected="true"] {
    color: #ffffff;
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 8px 24px -10px rgba(13, 169, 169, 0.55);
  }
  .showcase-tab__badge {
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    color: var(--type-faint);
  }
  .showcase-tab[aria-selected="true"] .showcase-tab__badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: transparent;
  }

  /* ── Showcase panels — only one visible at a time ──────────────────── */
  .showcase-panel { display: none; padding: var(--s-9) 0 var(--s-10); }
  .showcase-panel.is-active { display: block; }

  /* ── Sub-tabs — Light / Standard / Active / Customer Sites ─────────
     Lives just inside the Website Showcase panel. Smaller than the
     main pill tabs so the hierarchy reads as: top tabs = product
     showcase type, sub-tabs = group within that showcase. */
  .sub-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: var(--s-7);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sub-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-5);
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--type-muted);
    font-family: var(--body);
    font-size: var(--t-md);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--d-1) var(--ease),
                background var(--d-1) var(--ease),
                border-color var(--d-1) var(--ease);
  }
  .sub-tab:hover { color: var(--ink); }
  .sub-tab[aria-selected="true"] {
    color: var(--ink);
    background: var(--bg-elev);
    border-color: var(--line);
  }
  .sub-tab__count {
    font-family: var(--body);
    font-size: var(--t-2xs);
    font-weight: 700;
    color: var(--type-faint);
    margin-left: 2px;
  }
  .sub-tab__badge {
    font-family: var(--body);
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 99px;
    background: var(--bg-elev);
    color: var(--type-faint);
    border: 1px solid var(--line-soft);
  }

  .group-panel { display: none; }
  .group-panel.is-active { display: block; }
  .group-panel__head {
    display: grid;
    gap: var(--s-3);
    max-width: 820px;
    margin-bottom: var(--s-7);
  }
  .group-panel__title {
    font-family: var(--display);
    font-size: var(--t-3xl);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.1;
  }
  .group-panel__title em { font-style: normal; color: var(--teal-glow); }
  .group-panel__sub {
    font-size: var(--t-md);
    color: var(--type);
    line-height: 1.55;
    max-width: 64ch;
  }

  /* ── Tier section — editorial annotation, not a heading. Generous
     vertical rhythm between tiers to read as "premium gallery" not "SaaS." */
  .tier-section { padding: var(--s-9) 0; }
  .tier-section:first-child { padding-top: 0; }
  .tier-section__head {
    display: grid;
    gap: var(--s-2);
    margin-bottom: var(--s-7);
    max-width: 720px;
  }
  .tier-section__label {
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .tier-section__title {
    font-family: var(--display);
    font-size: var(--t-2xl);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
  }
  .tier-section__title em { font-style: normal; color: var(--teal-glow); }
  .tier-section__sub {
    font-size: var(--t-sm);
    color: var(--type-muted);
    max-width: 56ch;
  }

  /* ── Show-card grid ─────────────────────────────────────────────────── */
  .show-grid {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .show-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    padding: 0;
    transition: transform var(--d-1) var(--ease),
                border-color var(--d-1) var(--ease),
                box-shadow var(--d-2) var(--ease);
  }
  .show-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
    box-shadow: 0 22px 48px -22px rgba(13, 169, 169, 0.45);
  }
  .show-card.is-active {
    border-color: var(--teal-glow);
    box-shadow: 0 0 0 2px rgba(20, 197, 197, 0.45),
                0 22px 48px -22px rgba(13, 169, 169, 0.55);
  }

  /* Thumbnail screenshot at the top — generated via headless Chrome. */
  .show-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-elev);
    overflow: hidden;
  }
  .show-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--d-3) var(--ease);
  }
  .show-card:hover .show-card__thumb img { transform: scale(1.03); }
  /* Subtle fade at the bottom of the thumb so the badge row is readable. */
  .show-card__thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 50%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(10, 15, 15, 0.55) 0%, transparent 100%);
  }

  .show-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-5) var(--s-5);
  }
  .show-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
  }
  .show-card__tier {
    font-family: var(--body);
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--type-faint);
  }
  .show-card__badge {
    font-family: var(--body);
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 99px;
    color: #ffffff;
    background: var(--teal);
  }
  .show-card.is-active .show-card__badge { background: var(--teal-glow); color: #0a1414; }
  .show-card__name {
    font-family: var(--display);
    font-size: var(--t-lg);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
    line-height: 1.2;
  }
  .show-card__desc {
    font-size: var(--t-sm);
    color: var(--type-muted);
    line-height: 1.5;
  }

  /* ── Preview frame + control bar ─────────────────────────────────────
     A single iframe at the bottom of the panel that swaps to the
     selected showcase. Control bar above the iframe handles
     per-category page picker, device size, open-in-new-tab. */
  .preview-region {
    margin-top: var(--s-9);
    padding-top: var(--s-7);
    border-top: 1px solid var(--line-soft);
    scroll-margin-top: 140px;
  }
  .preview-region__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
  }
  .preview-region__label {
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .preview-region__title {
    font-family: var(--display);
    font-size: var(--t-xl);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
  }
  .preview-region__title #liveDot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal-glow);
    margin-right: var(--s-2);
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(20, 197, 197, 0.7);
  }

  .preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: var(--s-4);
    font-size: var(--t-sm);
  }
  .preview-bar__group {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
  }
  .preview-bar__group-label {
    font-family: var(--body);
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--type-faint);
  }
  .preview-bar__sep { color: var(--line); }
  .preview-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--type-muted);
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--d-1) var(--ease),
                background var(--d-1) var(--ease),
                border-color var(--d-1) var(--ease);
  }
  .preview-pill:hover { color: var(--ink); border-color: var(--teal-deep); }
  .preview-pill.is-active {
    color: #ffffff;
    background: var(--teal);
    border-color: var(--teal);
  }
  .preview-bar__open {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--type);
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
  }
  .preview-bar__open:hover { color: var(--teal-glow); border-color: var(--teal); }

  .preview-frame {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    /* Internal padding gives the embedded showcase site breathing room
       from the wrapper edges so site headers don't butt against the
       frame walls. The dark bg-elev reads as "browser chrome" around the
       white site below. */
    padding: var(--s-3);
    overflow: hidden;
    margin: 0 auto;
    transition: max-width var(--d-2) var(--ease), height var(--d-2) var(--ease);
  }
  .preview-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
    border-radius: var(--r-md);
  }
  /* Device sizing — desktop = full panel width; tablet/mobile constrain
     the wrapper so the iframe renders at that constrained viewport.
     Heights include the wrapper padding (box-sizing: border-box). */
  .preview-frame.is-desktop { max-width: 100%; height: 844px; }
  .preview-frame.is-tablet  { max-width: 844px; height: 744px; }
  .preview-frame.is-mobile  { max-width: 444px; height: 804px; }

  /* ── Coming-soon panel (Service Showcase, etc.) ──────────────────────
     Single full-width panel. No fake cards — clean dead-end with a way
     to indicate interest so we know what to build next. */
  .coming-soon-panel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--s-9) var(--s-7);
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
  }
  .coming-soon-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 20% 0%, rgba(20, 197, 197, 0.12), transparent 60%),
      radial-gradient(ellipse 70% 60% at 80% 100%, rgba(13, 169, 169, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
  }
  .coming-soon-panel__label {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--teal);
    border-radius: 999px;
    background: var(--teal-pale);
    margin-bottom: var(--s-5);
  }
  .coming-soon-panel__label .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal-glow);
    box-shadow: 0 0 8px rgba(20, 197, 197, 0.7);
    animation: dot-pulse 1.8s ease-in-out infinite;
  }
  @keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
  }
  @media (prefers-reduced-motion: reduce) {
    .coming-soon-panel__label .dot { animation: none; }
  }
  .coming-soon-panel h2 {
    font-size: var(--t-3xl);
    margin: 0 auto var(--s-4);
    max-width: 520px;
  }
  .coming-soon-panel p {
    color: var(--type-muted);
    font-size: var(--t-md);
    max-width: 56ch;
    margin: 0 auto var(--s-6);
    line-height: 1.55;
  }
  .coming-soon-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
  }
