/* ============================================================
   plugins.blade.php — page-specific styles
   Reuses the shared tokens from styles.css (--violet-*, --line,
   --ink-*), plus .features-toc / .steps / .faq / .cta-block from
   the global sheet.
   ============================================================ */

/* ----- Hero ----- */
.plugins-hero {
    padding: 48px 0 24px;
}
.plugins-hero .plugins-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}
.plugins-hero .display {
    font-size: 72px;
    line-height: 1.04;
    text-wrap: balance;
    margin: 0;
}
.plugins-hero .lede {
    margin: 0 auto;
    max-width: 760px;
}
.plugins-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.plugins-hero-trust {
    margin: -8px 0 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
}

/* ----- Hero stat strip ----- */
.plugins-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 6px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.plugins-stat-num {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.plugins-stat-label {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* The TOC pills are shared with the features page; on this page the hero
   is a flex column, so the top border/margin would double up. */
.plugins-hero .features-toc {
    width: 100%;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* ============================ PLATFORM CARDS ============================ */
.plat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.plat-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 24px;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.plat-card:hover {
    border-color: var(--violet-500);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -28px rgba(106, 77, 234, 0.55);
}
/* Shopify — not shipped yet, so it reads as the quieter third option. */
.plat-card-soon {
    background: linear-gradient(180deg, rgba(168, 138, 255, 0.05), #ffffff 42%);
    border-style: dashed;
}

.plat-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.plat-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(168, 138, 255, 0.14), rgba(62, 31, 163, 0.08));
    border: 1px solid rgba(168, 138, 255, 0.28);
    color: var(--violet-700);
}
.plat-head-text {
    min-width: 0;
}
.plat-head-text h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.plat-tagline {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}
.plat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    align-self: flex-start;
}
.plat-badge-live {
    color: oklch(0.45 0.14 145);
    background: oklch(0.95 0.05 145);
    border: 1px solid oklch(0.85 0.08 145);
}
.plat-badge-soon {
    color: var(--violet-700);
    background: var(--violet-50);
    border: 1px solid rgba(168, 138, 255, 0.4);
}
.plat-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-500);
    animation: plat-pulse 1.8s ease-in-out infinite;
}
@keyframes plat-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.75); }
}

.plat-body {
    margin: 16px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.plat-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plat-list li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.plat-list li svg {
    margin-top: 3px;
    color: var(--violet-500);
    flex-shrink: 0;
}

.plat-steps {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(168, 138, 255, 0.05);
}
.plat-steps-label {
    font-size: 10.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.plat-steps ol {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.plat-steps li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}
.plat-steps li::marker {
    color: var(--violet-500);
    font-weight: 700;
    font-family: var(--font-mono);
}

.plat-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.plat-meta span {
    display: block;
    font-size: 10.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.plat-meta strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* Push the CTA to the bottom so all three cards align regardless of copy
   length. */
.plat-cta {
    margin-top: auto;
    justify-content: center;
    width: 100%;
}
.plat-card > .plat-cta {
    margin-top: 20px;
}
.plat-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-muted);
    text-align: center;
}

/* ============================ WHY A PLUGIN ============================ */
.plugins-why {
    padding: 40px 0 24px;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}
.why-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.why-card:hover {
    border-color: var(--violet-500);
    transform: translateY(-2px);
}
.why-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(168, 138, 255, 0.12), rgba(62, 31, 163, 0.08));
    border: 1px solid rgba(168, 138, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--violet-500);
    flex-shrink: 0;
}
.why-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink);
}
.why-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

/* ==================== INSTALL WITHOUT A PLUGIN (snippet) ==================== */
.plugins-other {
    padding: 40px 0 24px;
}

/* ----- The snippet itself ----- */
.other-snippet {
    max-width: 820px;
    margin: 30px auto 0;
    padding: 18px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 18px 44px -30px rgba(106, 77, 234, 0.5);
}
.other-snippet-label {
    font-size: 10.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.other-snippet code {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(168, 138, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--violet-700);
    overflow-x: auto;
    white-space: pre;
    text-align: left;
}
/* The one part that differs per workspace. */
.other-snippet code span {
    color: var(--ink-muted);
    font-style: italic;
}
.other-snippet-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-muted);
}

/* ----- Three universal steps ----- */
.other-steps {
    margin-top: 34px;
}
.other-steps-label {
    text-align: center;
    font-size: 10.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.other-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.other-step {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
}
.other-step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--violet-500);
    margin-bottom: 8px;
}
.other-step h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.other-step p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ----- "Where to paste it" reference table ----- */
.other-where {
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}
.other-where-title {
    margin: 0;
    padding: 18px 22px 14px;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.other-where-head,
.other-where-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    padding: 11px 22px;
    border-top: 1px solid var(--line);
    align-items: baseline;
}
.other-where-head {
    background: rgba(168, 138, 255, 0.05);
}
.other-where-head span {
    font-size: 10.5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.other-where-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.other-where-path {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ----- "Snippet is not a lesser version" reassurance ----- */
.other-reassure {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 26px;
    padding: 22px;
    border: 1px solid rgba(168, 138, 255, 0.32);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(168, 138, 255, 0.09), rgba(62, 31, 163, 0.04));
}
.other-reassure-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(168, 138, 255, 0.3);
    color: var(--violet-500);
    flex-shrink: 0;
}
.other-reassure h3 {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.other-reassure p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.other-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
    .plat-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .plugins-hero .display { font-size: 56px; }
}
@media (max-width: 860px) {
    .other-steps-grid { grid-template-columns: 1fr; }
    .other-where-head { display: none; }
    .other-where-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 20px;
    }
}
@media (max-width: 760px) {
    .plat-grid { grid-template-columns: 1fr; }
    .why-grid  { grid-template-columns: 1fr; }
    .plugins-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .plugins-hero .display { font-size: 42px; }
    .plugins-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .plugins-hero-actions .btn { justify-content: center; }
    .plat-head { grid-template-columns: auto 1fr; }
    .plat-badge { grid-column: 1 / -1; }
    .plat-meta { grid-template-columns: 1fr 1fr; }
    .other-reassure { grid-template-columns: 1fr; }
    .other-snippet code { font-size: 12px; }
}


/* ================= INSTALL STEPS =================
   The heading is long enough to wrap, and the default greedy wrap dropped the
   italic "pasi." onto a line of its own. balance splits the two lines evenly
   and keeps the italic phrase together. */
#install .sec-title {
  text-wrap: balance;
}
