/* ============================================
   BREAKLINE SECURITY — Editions & Bands
============================================ */

/* ---- hero axes chips ---- */
.axes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: var(--sp-6);
}
.axis-chip {
    font-family: var(--mono);
    font-size: 0.90rem;
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
}
.axis-chip b { color: var(--accent); font-weight: 600; }

/* ---- band selector: heading left, active band shown big on the right ---- */
.band-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 var(--sp-10);
    margin-bottom: var(--sp-8);
}
.band-head-copy { grid-column: 1; }

/* Shell-less selector — the chosen band is a big headline; the other two are quiet switchers above it */
.band-select {
    grid-column: 2;
    width: 340px;
    text-align: right;
    border-radius: 8px;
}
.band-select:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 8px; }

.band-alts {
    display: flex;
    gap: 1.4rem;
    justify-content: flex-end;
    align-items: baseline;
    min-height: 1.3rem;
    margin-bottom: 0.7rem;
}
/* Switchers read as clickable links — bright enough to signal "you can change this" */
.band-alt {
    font-family: var(--mono);
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    color: var(--text-2);
    background: transparent;
    border: 0;
    padding: 2px 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.band-alt:hover { color: var(--accent); text-decoration-color: var(--accent); }
.band-alt:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; color: var(--accent); }

.band-hero {
    font-family: var(--sans);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.band-hero-desc {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.band-caption {
    grid-column: 1 / -1;
    margin-top: var(--sp-3);
    font-family: var(--mono);
    color: var(--text-3);
}
.band-caption b { color: var(--text-2); font-weight: 600; }
.band-footnote { margin-top: var(--sp-8); }
.band-footnote b { color: var(--accent); }

/* ---- "tap to switch your type" nudge (points up at the band switchers) ---- */
.band-swap-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* selector is right-aligned on desktop */
    gap: 0.25rem;
    margin: 0.5rem 0 0.1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--text-3);
    opacity: 0.75;
}
.band-swap-hint i {
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    animation: band-swap-bob 1.8s var(--ease) infinite;
}
@media (max-width: 820px) {
    .band-swap-hint { justify-content: flex-start; } /* selector goes left-aligned */
}
@keyframes band-swap-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .band-swap-hint i { animation: none; }
}

/* ---- edition plan cards ---- */
.ed-plans {
    max-width: 1250px;
    margin: var(--sp-1) auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    align-items: start;
}
.plan {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.plan-pro {
    border-color: var(--accent-border);
    background: linear-gradient(168deg, var(--accent-soft), transparent 55%), var(--bg-2);
}

.plan-head {
    padding: var(--sp-2) var(--sp-6) var(--sp-5);
    border-bottom: 1px solid var(--border);
}
/* Name + price share one row: BASIC ······ £1,500/mo */
.plan-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3) var(--sp-4);
    flex-wrap: wrap;
}
.plan-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.plan-price .amount {
    font-family: var(--mono);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.plan-price .per { font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }
.plan-year {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-2);
    margin-top: 0.35rem;
    line-height: 1.35;
}
.plan-year b { color: var(--text-2); font-weight: 600; }
.plan-tag {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
    margin-top: var(--sp-4);
}

.plan-feat {
    list-style: none;
    margin: 0;
    padding: var(--sp-3) var(--sp-2);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}
/* Each item: a thin accent left-rule with a bright label and an optional
   muted sub-line (replaces the old em-dash "label — detail" bullets). */
.plan-feat li {
    padding-left: 0.85rem;
    border-left: 2px solid var(--accent-border);
    line-height: 1.35;
}
.plan-feat .t,
.plan-supp .t {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.3;
}
.plan-feat .s,
.plan-supp .s {
    display: block;
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.4;
    margin-top: 3px;
}
/* "Everything in Basic/Standard" summary line — gold, no rule needed to stand out */
.plan-incl { font-size: 0.88rem; font-weight: 600; color: var(--accent); border-left: 0; padding-left: 0; }
.plan-feat .plan-grp {
    margin-top: 0.3rem;
    padding: 0.15rem 0 0.45rem calc(0.85rem + 2px);
    border-left: 0;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 600;
}

/* Desktop: spread both cards' bullets across two columns so neither is a
   tall single stack. The group title spans full width above the columns. */
@media (min-width: 821px) {
    /* Wider container + airier internals on desktop only — mobile keeps its
       tighter single-column spacing untouched. */
    .plan-feat { padding: var(--sp-4) var(--sp-3); gap: 1.05rem; }
    /* Balanced multi-column flow (not grid) so short and long bullets pack
       tightly with even spacing, instead of grid rows stretching to the
       tallest cell. */
    .plan-feat {
        display: block;
        columns: 2;
        column-gap: 2rem;
    }
    .plan-feat li {
        break-inside: avoid;
        margin-bottom: 1.05rem;
    }
    .plan-feat li:last-child { margin-bottom: 0; }
    /* group title runs full width above the two columns */
    .plan-feat .plan-grp {
        column-span: all;
        margin-top: 0;
    }
}

/* ---- card body + Features/Support toggle ---- */
.plan-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.seg-wrap { display: flex; justify-content: center; padding: var(--sp-4) var(--sp-2) 0; }
.seg {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
}
.seg button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.seg button.active { background: var(--accent); color: var(--on-accent); }
.seg button:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

/* view swap with a soft fade */
.view { animation: plan-view-fade 0.28s var(--ease); }
.plan[data-view="features"] .view-supp { display: none; }
.plan[data-view="support"]  .view-feat { display: none; }
@keyframes plan-view-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* support view list */
.plan-supp-name {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: var(--sp-4) var(--sp-2) 0;
}
.plan-supp {
    list-style: none;
    margin: 0;
    padding: var(--sp-3) var(--sp-2);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}
.plan-supp li {
    padding-left: 0.85rem;
    border-left: 2px solid var(--accent-border);
    line-height: 1.35;
}
.plan-supp .plan-incl { border-left: 0; padding-left: 0; }

/* ---- partner strip (MSP band only) ---- */
.partner-strip {
    max-width: 820px;
    margin: var(--sp-5) auto 0;
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(120deg, var(--accent-soft), transparent 75%);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.partner-strip[hidden] { display: none; }
.partner-strip .ps-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}
.partner-strip h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--text); }
.partner-strip p { margin: 0; font-size: 0.86rem; color: var(--text-2); line-height: 1.5; }
.partner-strip .ps-list {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}
.partner-strip .ps-list li {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-3);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
}

/* CTA sits directly below the dark (bg-2) licensing section — drop it to the
   darker --bg so the two bands don't read as two greys. */
#cta { background: var(--bg); }

@media (max-width: 820px) {
    .band-head { grid-template-columns: 1fr; gap: var(--sp-6) 0; }
    .band-head-copy, .band-select { grid-column: 1; }
    .band-select { width: 100%; text-align: left; }
    .band-alts { justify-content: flex-start; }
    .ed-plans { grid-template-columns: 1fr; }
    .partner-strip { flex-direction: column; }
}

/* Large screens — rem restatement of this file's px layout (see redesign.css). */
@media (min-width: 1708px) {
    .band-select { width: 21.25rem; }
    .ed-plans { max-width: 78.125rem; }
    .partner-strip { max-width: 51.25rem; }
}
