/* Page-level compositions. */

.section { padding-top: 96px; }

/* Home: hero. Copy on the left at a calm size, the pixel mark on the right. */
.hero { padding-block: 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.hero__copy { max-width: 540px; }
.hero__title { font-size: clamp(34px, 3.8vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hero__lede { margin-top: 20px; max-width: 32em; color: var(--muted); font-size: 17px; }
.hero .actions { margin-top: 32px; }
.hero__meta { margin-top: 16px; color: var(--faint); font-size: 13px; }
.hero__art { justify-self: end; width: min(500px, 100%); }
.hero__art img { width: 100%; height: auto; }

/* Home: tabbed showcase */
.showcase { padding-top: 104px; }
.showcase__tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: fit-content;
    margin: 28px auto 24px;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.showcase__tab {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font: 600 14px/1 var(--font-body);
    transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.showcase__tab:hover { color: var(--text); }
.showcase__tab[aria-selected="true"] { background: var(--control); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.showcase__stage {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.showcase__panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    min-height: 440px;
}
.showcase__panel + .showcase__panel { border-top: 1px solid var(--line); }
.js .showcase__panel + .showcase__panel { border-top: 0; }
.showcase__panel[hidden] { display: none; }
.showcase__text { padding: 48px; }
.showcase__title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.showcase__text p { color: var(--muted); max-width: 30em; }
.showcase__visual {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--panel);
    border-left: 1px solid var(--line);
}
.showcase__visual > * { width: 100%; max-width: 460px; }

.model-cards { display: grid; gap: 12px; }
.model-card { padding: 22px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); }
.model-card--pro { border-color: var(--accent-line); }
.model-card__plan { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.model-card--pro .model-card__plan { color: var(--accent); }
.model-card__name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 8px; }
.model-card__text { color: var(--muted); font-size: 14px; }

.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.limits__item { padding: 22px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); }
.limits dd { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.limits dt { margin-top: 6px; color: var(--muted); font-size: 13px; }

.mcp-list { display: grid; gap: 10px; }
.mcp-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    font-weight: 600;
}
.mcp-list__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }

/* Home: feature grid, uneven spans */
.grid-section { padding-top: 120px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-tile {
    padding: 32px;
    min-height: 180px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color 150ms var(--ease);
}
.feature-tile:hover { border-color: var(--line-2); }
.feature-tile--wide,
.feature-tile:last-child { grid-column: span 2; }
.feature-tile__title { font-size: 22px; margin-bottom: 12px; }
.feature-tile p { color: var(--muted); max-width: 34em; }

/* Home: privacy */
.privacy { margin-top: 120px; padding-block: 96px; background: var(--bg-2); border-block: 1px solid var(--line); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
.privacy__intro p { color: var(--muted); font-size: 17px; max-width: 30em; }
.privacy__list { display: grid; gap: 0; }
.privacy__item { padding: 24px 0; border-top: 1px solid var(--line-2); }
.privacy__item:first-child { padding-top: 0; border-top: 0; }
.privacy__title { font-size: 19px; margin-bottom: 6px; }
.privacy__item p { color: var(--muted); }

/* Home: plan strip */
.plan-strip { padding-top: 120px; }
.plan-strip__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.plan-strip__item { padding: 32px; }
.plan-strip__item + .plan-strip__item { border-left: 1px solid var(--line); }
.plan-strip__item--pick { background: var(--panel-2); box-shadow: inset 0 2px 0 var(--accent); }
.plan-strip__name { font-weight: 700; font-size: 17px; }
.plan-strip__price { margin: 12px 0 6px; font-size: 44px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.plan-strip__per { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.plan-strip__model { color: var(--muted); font-size: 14px; }

/* Home: closing */
.closing { padding-top: 136px; text-align: center; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__mark { width: 56px; height: 56px; margin-bottom: 28px; border-radius: 14px; }
.closing__title { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; max-width: 18em; }
.closing__text { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Inner pages */
.page-hero { padding-block: 88px 56px; border-bottom: 1px solid var(--line); }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__title,
.page-hero--center .page-hero__lede { margin-inline: auto; }
.page-hero__title { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.12; max-width: 20em; }
.page-hero__lede { margin-top: 18px; max-width: 40em; color: var(--muted); font-size: 17px; text-wrap: balance; }
.error-code { font-family: var(--font-mono); color: var(--accent); margin-bottom: 12px; }
.lead-text { color: var(--muted); font-size: 18px; }

/* Doc layout: sticky index + body (features, questions) */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 64px; }
.doc__index { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.doc__index-title { color: var(--faint); font-size: 13px; margin-bottom: 10px; }
.doc__index ul { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.doc__index a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding-left: 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}
.doc__index a:hover { color: var(--text); border-left-color: var(--accent); }
.doc__body { max-width: 780px; }
.doc__section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.doc__label { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.doc__lead { font-size: 19px; font-weight: 500; margin-bottom: 20px; }
.doc__text { color: var(--muted); }
.doc__text + .doc__text { margin-top: 12px; }
.doc__widget { max-width: 480px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.facts > div { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts dt { color: var(--faint); font-size: 12px; }
.facts dd { font-weight: 600; font-size: 15px; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group__title { font-size: 26px; margin-bottom: 8px; }

/* Integrations: every section on the same label-left, content-right grid. */
.stack { padding-top: 24px; }
.stack__row {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    gap: 48px;
    padding-block: 56px;
    border-bottom: 1px solid var(--line);
}
.stack__row:last-child { border-bottom: 0; padding-bottom: 0; }
.stack__label { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; max-width: 12em; }
.stack__text { color: var(--muted); font-size: 17px; max-width: 40em; }

.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.capabilities__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 600;
}
.capabilities__item::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }

.where { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.where__item { padding: 24px; }
.where__item + .where__item { border-top: 1px solid var(--line); }
.where__title { font-size: 17px; margin-bottom: 6px; }
.where__item p { color: var(--muted); font-size: 15px; }

.guard { display: grid; gap: 16px; }
.guard__lead { font-size: 18px; font-weight: 500; max-width: 36em; }
.guard__note {
    padding: 16px 18px;
    color: var(--muted);
    font-size: 15px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    max-width: 40em;
}

/* Plans */
.plans { padding-top: 64px; }
.plans__paid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
    display: flex;
    flex-direction: column;
    padding: 36px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.plan--pick { background: var(--panel-2); border-color: var(--accent-line); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 26px; }
.plan__fit { margin-top: 4px; color: var(--muted); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.plan__amount { font-size: 60px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan__per { color: var(--faint); font-size: 14px; }
.plan__list { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-2); flex: 1; }
.plan__cta { margin-top: 32px; }
.plan__list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.plan-free {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
    padding: 28px 36px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.plan-free__name { font-size: 22px; margin-bottom: 6px; }
.plan-free__price { color: var(--faint); margin-left: 6px; font-weight: 600; }
.plan-free .btn { flex-shrink: 0; }
.plan-free p { color: var(--muted); max-width: 62ch; }

.compare-table thead th { font-size: 16px; font-weight: 700; background: var(--panel-2); }
.compare-table tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 28%; }
.compare-table thead th:first-child { width: 28%; }
.yn { display: inline-flex; align-items: center; gap: 8px; }
.yn__mark { width: 14px; height: 14px; flex-shrink: 0; }
.yn--yes .yn__mark { background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.5 2.5 2.5L11 4.5' fill='none' stroke='%23ffa579' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.yn--no { color: var(--faint); }
.yn--no .yn__mark { background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7h6' stroke='%23868b95' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.compare-table td { min-width: 160px; }
.compare-table .is-pick { background: rgba(255, 165, 121, 0.05); }
.compare-table thead .is-pick { box-shadow: inset 0 -2px 0 var(--accent); }

/* Breakpoints */
@media (max-width: 1100px) {
}

@media (max-width: 960px) {
    .hero { padding-block: 56px 40px; }
    .hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__copy { max-width: none; }
    .hero__art { justify-self: center; width: min(360px, 100%); }
    .showcase__panel { grid-template-columns: 1fr; min-height: 0; }
    .showcase__text { padding: 32px 28px 8px; }
    .showcase__visual { border-left: 0; background: transparent; padding: 24px 28px 32px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-tile--wide, .feature-tile:last-child { grid-column: span 2; }
    .privacy__grid { grid-template-columns: 1fr; gap: 40px; }
    .doc { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
    .doc__index { position: static; }
    .doc__index ul { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
    .doc__index a { min-height: 40px; padding: 0 14px; margin-left: 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
    .doc__index a:hover { border-color: var(--accent); }
    .stack__row { grid-template-columns: 1fr; gap: 20px; padding-block: 40px; }
    .plans__paid { grid-template-columns: 1fr; }
    .plan-strip__list { grid-template-columns: 1fr; }
    .plan-strip__item + .plan-strip__item { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
    .section, .showcase { padding-top: 72px; }
    .grid-section, .plan-strip { padding-top: 88px; }
    .privacy { margin-top: 88px; padding-block: 64px; }
    .closing { padding-top: 96px; }
    .page-hero { padding-block: 56px 40px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-tile--wide, .feature-tile:last-child { grid-column: auto; }
    .feature-tile { min-height: 0; padding: 26px; }
    .capabilities { grid-template-columns: 1fr; gap: 10px; }
    .facts { grid-template-columns: 1fr; }
    .plan { padding: 26px; }
    .plan-free { flex-direction: column; align-items: flex-start; padding: 24px; }
    .showcase__tabs { width: 100%; justify-content: stretch; }
    .showcase__tab { flex: 1 1 40%; padding: 0 10px; }
}

@media (max-width: 520px) {
    .actions .btn { width: 100%; }
    .modes { padding: 16px; }
    .modes__tab { font-size: 13px; padding: 0 4px; }
    .showcase__text { padding: 26px 20px 4px; }
    .showcase__visual { padding: 20px 16px 24px; }
    .limits { gap: 8px; }
    .limits__item { padding: 16px; }
    .plan__amount { font-size: 50px; }
    .qa__a { padding-right: 0; }
}

/* Keep row labels visible while the comparison scrolls sideways on phones. */
@media (max-width: 760px) {
    .compare-table tbody th,
    .compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--line); white-space: normal; min-width: 130px; }
    .compare-table thead th:first-child { background: var(--panel-2); }
}
