/* ==========================================================================
   A2Z Website – Enterprise page (enterprise.html)
   Hero "make it your own" stage, ribbon mock-ups, steps, plan card
   ========================================================================== */

/* ── Hero ───────────────────────────────────────────────────────────────── */

.ent-hero {
    position: relative;
    padding: calc(var(--space-4) + 56px) 0 var(--space-8);
    overflow: hidden;
    text-align: center;
}

.ent-hero__glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(26, 180, 232, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.ent-hero .container { position: relative; }

.ent-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: var(--space-1);
}

.ent-hero .label { margin-bottom: var(--space-1); }

.ent-hero__sub {
    color: var(--text-secondary);
    font-size: var(--text-base);
    max-width: 800px;
    margin: 0 auto var(--space-3);
}

.ent-hero__label,
.ent-hero h1,
.ent-hero__sub { animation: fadeInUp 0.8s ease-out both; }
.ent-hero h1       { animation-delay: 0.12s; }
.ent-hero__sub     { animation-delay: 0.24s; }

/* ── Stage: A2Z ribbon  →  big arrow  →  ERT ribbon ─────────────────────── */

.ent-stage {
    --ert: #f59e0b;
    --ert-hue: 193deg;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    row-gap: var(--space-1);
    align-items: center;
    text-align: left;
}

.ent-card { min-width: 0; animation: fadeInUp 0.9s ease-out both; }
.ent-card--a2z { grid-column: 1 / 8;  grid-row: 1; animation-delay: 0.35s; }
.ent-card--ert { grid-column: 6 / 13; grid-row: 3; animation-delay: 0.75s; }

.ent-tilt {
    transition: transform 0.6s var(--ease);
    will-change: transform;
}

.ent-card--a2z .ent-tilt {
    transform: perspective(1600px) rotateY(14deg) rotateX(4deg) rotateZ(-5deg);
    transform-origin: left center;
}

.ent-card--ert .ent-tilt {
    transform: perspective(1600px) rotateY(-8deg) rotateX(3deg) rotateZ(-2deg);
    transform-origin: right center;
}

.ent-card:hover .ent-tilt { transform: none; }

.ent-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.ent-card__title img { height: 38px; width: auto; }

.ent-card__name {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ent-card__name small {
    display: block;
    margin-top: 2px;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ent-card--ert .ent-card__name sup {
    color: var(--ert);
    font-size: 0.9em;
    line-height: 0;
    transition: color 0.4s;
}

.ent-mono {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    white-space: nowrap;
    border-radius: var(--radius-md);
    background: var(--ert);
    color: #1b2632;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background 0.4s;
}

.ent-frame {
    background: #1f2733;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(11, 95, 132, 0.18);
}

.ent-card--ert .ent-frame {
    border-color: color-mix(in srgb, var(--ert) 55%, transparent);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 70px color-mix(in srgb, var(--ert) 28%, transparent);
    transition: border-color 0.4s, box-shadow 0.4s;
}

/* ── Big arrow ─────────────────────────────────────────────────────────── */

.ent-arrow {
    grid-column: 3 / 11;
    grid-row: 2;
    justify-self: center;
    width: min(440px, 100%);
    animation: fadeInUp 0.9s ease-out 0.55s both;
}

.ent-arrow__glow {
    transform: rotate(7deg);
    filter: drop-shadow(0 12px 28px rgba(26, 180, 232, 0.35));
}

.ent-arrow__shape {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22% 0 6%;
    background: linear-gradient(90deg, #0b5f84 0%, #1ab4e8 55%, var(--ert) 100%);
    clip-path: polygon(0 22%, 80% 22%, 80% 0, 100% 50%, 80% 100%, 80% 78%, 0 78%);
    color: #fff;
    font-size: clamp(1.25rem, 2.3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* ── Ribbon mock-ups (container-query units so they scale like a picture) ─ */

.ent-ribbon {
    container-type: inline-size;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #394352;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ent-tabs {
    display: flex;
    background: #232b38;
    font-size: 1.9cqw;
    color: rgba(255, 255, 255, 0.7);
}

.ent-tabs span {
    padding: 0.6em 1.2em;
    white-space: nowrap;
    border-top: 0.3cqw solid transparent;
}

.ent-tabs .is-active {
    background: #394352;
    color: #fff;
    border-top-color: #1ab4e8;
}

.ent-card--ert .ent-tabs .is-active {
    border-top-color: var(--ert);
    transition: border-color 0.4s;
}

/* Real A2Z screenshot, cropped to the tool panels (x 0–1190, y 44–248 of 2000×276) */
.ent-shot {
    position: relative;
    aspect-ratio: 1190 / 204;
    overflow: hidden;
}

.ent-shot img {
    position: absolute;
    left: 0;
    top: -21.57%;
    width: 168.07%;
    max-width: none;
    height: auto;
}

/* The panel sizes to its content (a long company name widens the Settings group).
   JS sets --fit (< 1) when it no longer fits the card, scaling it down to match. */
.ent-panel-wrap {
    --fit: 1;
    height: calc(17.14cqw * var(--fit));
    overflow: hidden;
}

.ent-panel {
    display: flex;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    height: 17.14cqw; /* = 204 / 1190, same proportions as the screenshot crop */
    padding: 0 0.6cqw;
    transform: scale(var(--fit));
    transform-origin: 0 0;
}

.ent-group {
    display: flex;
    flex-direction: column;
    padding: 0 0.8cqw;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ent-group__tools {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 0.4cqw;
    padding-top: 1.2cqw;
}

.ent-group__name {
    padding: 0.5cqw 0 0.8cqw;
    text-align: center;
    font-size: 2.1cqw;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.ent-group--custom { border-right: none; }
.ent-group--custom .ent-group__name {
    color: var(--ert);
    transition: color 0.4s;
}

.ent-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10.5cqw;
    font-size: 2.05cqw;
    line-height: 1.2;
    text-align: center;
    color: #e6ebf2;
}

.ent-tool__icon {
    width: 5.6cqw;
    height: 5.6cqw;
    margin-bottom: 0.6cqw;
    object-fit: contain;
    filter: hue-rotate(var(--ert-hue));
    transition: filter 0.4s;
}

.ent-tool__icon--svg {
    padding: 0.9cqw;
    border-radius: 1cqw;
    color: var(--ert);
    background: color-mix(in srgb, var(--ert) 18%, transparent);
    filter: none;
    transition: color 0.4s, background 0.4s;
}

/* ── Colour-scheme swatches ────────────────────────────────────────────── */

.ent-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.ent-swatches__list { display: flex; gap: 10px; }

.ent-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--swatch);
    outline: 1px solid var(--border-medium);
    outline-offset: 2px;
    cursor: pointer;
    transition: transform var(--transition-fast), outline-color var(--transition-fast);
}

.ent-swatch:hover { transform: scale(1.12); }
.ent-swatch[aria-pressed="true"] { outline: 2px solid #fff; }
.ent-swatch:focus-visible { outline: 2px solid var(--accent-blue-light); }

/* ── Company-name box (left of the ERT title) ─────────────────────────── */

.ent-card--ert .ent-card__title { flex-wrap: wrap; }

.ent-namebox { flex: 0 0 176px; }

.ent-namebox__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ent-namebox__field { position: relative; }

.ent-namebox input {
    width: 100%;
    padding: 9px 46px 9px 12px;
    font: inherit;
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ent-namebox input::placeholder { color: var(--text-muted); }

.ent-namebox input:focus {
    border-color: var(--ert);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ert) 22%, transparent);
}

.ent-namebox__count {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    color: var(--text-muted);
    pointer-events: none;
}

.ent-footnote {
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
}

/* ── What you can customise ────────────────────────────────────────────── */

.ent-feature .card__icon svg { width: 22px; height: 22px; }

/* ── How it works ──────────────────────────────────────────────────────── */

.ent-step { display: flex; flex-direction: column; gap: var(--space-1); }

.ent-step__num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-1);
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5f84, #1ab4e8);
    box-shadow: 0 0 24px var(--accent-blue-glow);
    font-weight: 800;
}

/* ── Subscription plan card ────────────────────────────────────────────── */

.ent-plan {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-6);
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(11, 95, 132, 0.14), rgba(26, 180, 232, 0.04));
}

.ent-plan:hover { transform: none; }

.ent-plan h3 { font-size: var(--text-3xl); margin-bottom: var(--space-2); }

.ent-plan p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.ent-plan__side {
    text-align: center;
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.18);
}

.ent-plan__term {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ent-plan__note {
    margin: var(--space-1) 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .ent-plan { grid-template-columns: 1fr; gap: var(--space-4); }
}

@media (max-width: 768px) {
    .ent-hero { padding-top: calc(var(--space-8) + 60px); }

    .ent-stage { grid-template-columns: 1fr; }
    .ent-card--a2z, .ent-card--ert, .ent-arrow { grid-column: 1; }
    .ent-hero__sub { max-width: 640px; }
    .ent-namebox { flex-basis: 100%; }

    .ent-card--a2z .ent-tilt,
    .ent-card--ert .ent-tilt { transform: perspective(1200px) rotateZ(-2deg); }

    .ent-arrow { width: 210px; }
    .ent-arrow__glow { transform: none; }

    .ent-arrow__shape {
        height: 190px;
        padding: 0 24% 38%;
        font-size: 1.2rem;
        background: linear-gradient(180deg, #0b5f84 0%, #1ab4e8 55%, var(--ert) 100%);
        clip-path: polygon(22% 0, 78% 0, 78% 62%, 100% 62%, 50% 100%, 0 62%, 22% 62%);
    }

    .ent-plan { padding: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
    .ent-hero__label, .ent-hero h1, .ent-hero__sub,
    .ent-card, .ent-arrow { animation: none; }
    .ent-tilt { transition: none; }
}
