/* ── Service-picker sub-tabs (one box per service) ─────────────────
     Lives just under the hero. Each "tab" is a clickable box with the
     service name + a price hint. Active tab shows that service's
     pricing detail + FAQ in the panel below. */
  .pricing-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-3);
  }
  .pricing-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-5);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--type);
    text-align: left;
    font-family: var(--body);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--d-1) var(--ease),
                border-color var(--d-1) var(--ease),
                background var(--d-1) var(--ease),
                box-shadow var(--d-2) var(--ease);
  }
  /* Left accent bar — invisible by default, slides in when the tab is active. */
  .pricing-tab::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--teal);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform var(--d-1) var(--ease);
  }
  /* Soft teal glow that grows in on hover — gives the card depth without
     heavy shadows. */
  .pricing-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at 100% 0%, rgba(20, 197, 197, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity var(--d-2) var(--ease);
    pointer-events: none;
    z-index: -1;
  }
  .pricing-tab:hover {
    transform: translateY(-2px);
    border-color: var(--teal-deep);
  }
  .pricing-tab:hover::after { opacity: 1; }
  .pricing-tab[aria-selected="true"] {
    background: var(--bg);
    border-color: var(--teal);
    box-shadow: 0 0 0 1px rgba(20, 197, 197, 0.30),
                0 22px 48px -22px rgba(13, 169, 169, 0.50);
  }
  .pricing-tab[aria-selected="true"]::before { transform: scaleY(1); }
  .pricing-tab[aria-selected="true"]::after { opacity: 1; }

  .pricing-tab__main {
    display: grid;
    gap: var(--s-1);
    min-width: 0;
  }
  .pricing-tab__name {
    font-family: var(--display);
    font-size: var(--t-md);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.005em;
  }
  .pricing-tab__price {
    font-size: var(--t-xs);
    color: var(--type-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .pricing-tab[aria-selected="true"] .pricing-tab__price {
    color: var(--teal-glow);
  }
  /* Chevron — moves right on hover/active, gives a "click me" affordance. */
  .pricing-tab__chevron {
    flex-shrink: 0;
    color: var(--type-faint);
    transition: color var(--d-1) var(--ease), transform var(--d-1) var(--ease);
  }
  .pricing-tab:hover .pricing-tab__chevron,
  .pricing-tab[aria-selected="true"] .pricing-tab__chevron {
    color: var(--teal-glow);
    transform: translateX(3px);
  }

  /* ── Per-service panel (one shown at a time) ─────────────────────── */
  .pricing-panel { display: none; }
  .pricing-panel.is-active { display: block; }
  .pricing-panel__head {
    display: grid;
    gap: var(--s-3);
    max-width: 760px;
    margin-bottom: var(--s-7);
  }
  .pricing-panel__kicker {
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
  }
  .pricing-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;
  }
  .pricing-panel__title em { font-style: normal; color: var(--teal-glow); }
  .pricing-panel__sub {
    font-size: var(--t-md);
    color: var(--type);
    line-height: 1.55;
    max-width: 64ch;
  }

  /* Quote-priced services: prominent price summary card */
  .quote-summary {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: 1fr;
    padding: var(--s-7) var(--s-7);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: var(--s-7);
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .quote-summary::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
      radial-gradient(ellipse 60% 80% at 0% 0%, rgba(20, 197, 197, 0.10), transparent 60%),
      radial-gradient(ellipse 60% 80% at 100% 100%, rgba(13, 169, 169, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
  }
  @media (min-width: 720px) {
    .quote-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-7); }
  }
  .quote-summary__price {
    font-family: var(--display);
    font-size: var(--t-2xl);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
  }
  .quote-summary__price-detail {
    margin-top: var(--s-2);
    color: var(--type-muted);
    font-size: var(--t-sm);
    line-height: 1.55;
  }
  .quote-summary__cta {
    white-space: nowrap;
    font-size: var(--t-md);
    padding: var(--s-3) var(--s-6);
  }

  /* Pricing-card grid for the website-design panel (tier cards) */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-5);
    margin-bottom: var(--s-7);
  }
  /* Cards stretch to the tallest in the row (CSS Grid does this); making
     each card a flex column lets us push the Get-started button to the
     bottom with margin-top: auto so buttons align across all 4 cards
     regardless of bullet-list length. */
  .pricing-card {
    display: flex;
    flex-direction: column;
    padding: var(--s-7) var(--s-6);
  }
  .pricing-card__pay {
    /* Override .btn's `display: inline-flex` so `width: 100%` is honored
       on a true block-level element — fixes the Standard button visually
       overflowing the featured card. */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    white-space: normal;
    text-align: center;
  }
  /* `hidden` attribute on tier buttons must beat .pricing-card__pay's
     display: flex — otherwise the inactive interval links stack visible. */
  .pricing-card__pay[hidden],
  [data-monthly][hidden],
  [data-quarterly][hidden],
  [data-annual][hidden] { display: none !important; }
  /* Card body list — the bullets above the button — gets some bottom
     breathing room before the auto-margined button. */
  .pricing-card .tier-card__list { margin-bottom: var(--s-5); }
  .pricing-card--featured {
    position: relative;
    border-width: 2px;
  }
  .pricing-card--featured::before {
    content: "Most popular";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: #ffffff;
    padding: var(--s-1) var(--s-3);
    border-radius: 999px;
    font-size: var(--t-2xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  /* Interval toggle */
  .interval-toggle {
    display: inline-flex;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 4px;
    margin: 0 auto var(--s-7);
  }
  .interval-toggle button {
    padding: var(--s-2) var(--s-5);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--type-muted);
    border-radius: var(--r-sm);
    transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease);
  }
  .interval-toggle button.is-active {
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--teal-deep), 0 2px 12px -2px rgba(20, 197, 197, 0.35);
  }
  .save-badge {
    display: inline-block;
    margin-left: var(--s-2);
    padding: 2px var(--s-2);
    background: var(--teal-pale);
    color: var(--teal-deep);
    font-size: var(--t-2xs);
    font-weight: 700;
    border-radius: var(--r-sm);
  }
  .toggle-row { text-align: center; }

  /* Pricing FAQ section inside each panel */
  .pricing-faq { max-width: 800px; margin: var(--s-8) auto 0; }
  .pricing-faq__head {
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--type-faint);
    margin-bottom: var(--s-4);
  }
  details.faq {
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) 0;
  }
  details.faq summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--display);
    font-size: var(--t-lg);
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  details.faq summary::after {
    content: "+";
    font-size: var(--t-xl);
    color: var(--teal-deep);
    transition: transform var(--d-1) var(--ease);
  }
  details.faq[open] summary::after { transform: rotate(45deg); }
  details.faq p {
    color: var(--type-muted);
    margin-top: var(--s-3);
    line-height: 1.6;
  }

  /* How-to-choose block — two-column rows with tier label + description,
     editorial spacing, subtle dividers. */
  .how-to-pick {
    max-width: 880px;
    margin: var(--s-8) auto;
    padding: var(--s-7) var(--s-7) var(--s-6);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .how-to-pick::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 0% 0%, rgba(20, 197, 197, 0.06), transparent 60%);
    pointer-events: none;
    z-index: -1;
  }
  .how-to-pick__kicker {
    font-family: var(--body);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: var(--s-2);
  }
  .how-to-pick__title {
    font-family: var(--display);
    font-size: var(--t-2xl);
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: var(--s-6);
  }
  .how-to-pick__list {
    display: grid;
    gap: 0;
  }
  .how-to-pick__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--s-5);
    padding: var(--s-5) 0;
    border-top: 1px solid var(--line-soft);
    align-items: start;
  }
  .how-to-pick__row:first-child { border-top: none; padding-top: var(--s-3); }
  @media (max-width: 600px) {
    .how-to-pick__row { grid-template-columns: 1fr; gap: var(--s-2); }
  }
  .how-to-pick__tier {
    font-family: var(--display);
    font-size: var(--t-lg);
    font-weight: 600;
    color: var(--teal-glow);
    letter-spacing: -0.005em;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
  }
  .how-to-pick__tier::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px rgba(20, 197, 197, 0.55);
    margin-right: var(--s-2);
    transform: translateY(-2px);
  }
  .how-to-pick__row p {
    font-size: var(--t-md);
    color: var(--type);
    line-height: 1.6;
    margin: 0;
  }
  .how-to-pick__row p em { font-style: normal; color: var(--teal-glow); font-weight: 600; }
  .how-to-pick__note {
    margin-top: var(--s-6);
    padding: var(--s-4) var(--s-5);
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: var(--r-sm);
    color: var(--type-muted);
    font-size: var(--t-sm);
    line-height: 1.55;
  }
  .how-to-pick__note strong { color: var(--ink); font-weight: 600; }
