:root {
    --acg-ink: #18181b;
    --acg-ink-soft: #3f3f46;
    --acg-muted: #71717a;
    --acg-paper: #ffffff;
    --acg-panel: #ffffff;
    --acg-bg-alt: #f8f9fa;
    --acg-line: #e4e4e7;
    --acg-brand: #18181b;
    --acg-brand-hover: #27272a;
    --acg-green: #16a34a;
    --acg-red: #dc2626;
    --acg-yellow: #f59e0b;
    --acg-shadow: 0 8px 24px rgba(24, 24, 27, 0.06);
}

* {
    box-sizing: border-box;
}

body.lt-acg-body {
    margin: 0;
    min-height: 100vh;
    background: var(--acg-paper);
    color: var(--acg-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

#lt-acg-app {
    display: block;
}

/* Sticky nav */
.lt-acg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--acg-line);
}

.lt-acg-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lt-acg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--acg-ink);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.lt-acg-mark {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 6px;
    background: var(--acg-ink);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.lt-acg-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lt-acg-nav a,
.lt-acg-nav button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--acg-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-nav a:hover,
.lt-acg-nav button:hover {
    background: var(--acg-bg-alt);
}

/* Shell — max-width content container */
.lt-acg-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* Hero */
.lt-acg-hero {
    padding: 64px 0 32px;
}

.lt-acg-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 820px;
    color: var(--acg-ink);
}

.lt-acg-hero p {
    margin: 20px 0 0;
    color: var(--acg-muted);
    font-size: 18px;
    line-height: 1.65;
    max-width: 640px;
}

/* App card (deck builder wrap) */
.lt-acg-app {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid var(--acg-line);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--acg-bg-alt) 100%);
    box-shadow: var(--acg-shadow);
}

.lt-acg-app-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.lt-acg-kicker {
    color: var(--acg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lt-acg-app-heading h2,
.lt-acg-preview-header h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--acg-ink);
}

.lt-acg-app-heading p {
    margin: 8px 0 0;
    color: var(--acg-muted);
    line-height: 1.6;
    font-size: 15px;
}

/* Workspace (form + output) */
.lt-acg-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 20px;
    align-items: stretch;
}

.lt-acg-form,
.lt-acg-output {
    min-width: 0;
}

.lt-acg-form {
    display: grid;
    gap: 18px;
}

.lt-acg-field,
.lt-acg-segmented {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.lt-acg-field > span,
.lt-acg-segmented > legend {
    display: block;
    margin-bottom: 4px;
    color: var(--acg-ink);
    font-size: 13px;
    font-weight: 700;
}

.lt-acg-field textarea,
.lt-acg-field select,
.lt-acg-field input[type="number"],
.lt-acg-auth input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--acg-line);
    border-radius: 8px;
    background: var(--acg-panel);
    color: var(--acg-ink);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lt-acg-field textarea:focus,
.lt-acg-field select:focus,
.lt-acg-field input[type="number"]:focus,
.lt-acg-auth input:focus {
    outline: 0;
    border-color: var(--acg-ink);
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.lt-acg-field select,
.lt-acg-field input[type="number"],
.lt-acg-auth input {
    height: 44px;
    padding: 0 12px;
}

.lt-acg-field textarea {
    min-height: 168px;
    resize: vertical;
    padding: 14px;
    line-height: 1.5;
}

.lt-acg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 16px;
}

.lt-acg-count {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    align-items: center;
}

.lt-acg-count input[type="range"] {
    width: 100%;
    accent-color: var(--acg-brand);
}

.lt-acg-segmented {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 0;
    margin: 0;
    padding: 0;
}

.lt-acg-segmented > legend {
    grid-column: 1 / -1;
    padding: 0;
}

.lt-acg-segmented label {
    min-width: 0;
}

.lt-acg-segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lt-acg-segmented label span {
    display: grid;
    min-height: 48px;
    place-items: center;
    gap: 2px;
    border: 1px solid var(--acg-line);
    background: var(--acg-panel);
    color: var(--acg-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lt-acg-segmented label:first-of-type span {
    border-radius: 8px 0 0 8px;
}

.lt-acg-segmented label:last-of-type span {
    border-radius: 0 8px 8px 0;
}

.lt-acg-segmented label + label span {
    border-left: 0;
}

.lt-acg-segmented small {
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.lt-acg-segmented input:checked + span {
    background: var(--acg-brand);
    color: #ffffff;
    border-color: var(--acg-brand);
}

.lt-acg-voice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lt-acg-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.lt-acg-actions span {
    color: var(--acg-muted);
    font-size: 13px;
    font-weight: 600;
}

.lt-acg-actions button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    min-width: 170px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-actions button:hover {
    background: var(--acg-brand-hover);
}

.lt-acg-actions button:disabled {
    background: #a1a1aa;
    cursor: wait;
}

/* Output panel */
.lt-acg-output {
    display: grid;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
}

.lt-acg-output-inner {
    display: grid;
    align-content: center;
    justify-items: start;
}

.lt-acg-output-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.1);
    position: relative;
}

.lt-acg-output-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.lt-acg-output-icon span {
    display: none;
    width: 24px;
    height: 24px;
    position: absolute;
    border: 3px solid var(--acg-green);
    border-top-color: var(--acg-yellow);
    border-radius: 999px;
}

.lt-acg-output.is-loading .lt-acg-output-icon img {
    opacity: 0.2;
}

.lt-acg-output.is-loading .lt-acg-output-icon span,
.lt-acg-output.is-error .lt-acg-output-icon span,
.lt-acg-output.is-success .lt-acg-output-icon span {
    display: block;
}

.lt-acg-output.is-loading .lt-acg-output-icon span {
    animation: lt-acg-spin 0.9s linear infinite;
}

.lt-acg-output.is-error .lt-acg-output-icon {
    background: rgba(220, 38, 38, 0.1);
}

.lt-acg-output.is-error .lt-acg-output-icon span {
    border-color: var(--acg-red);
    border-top-color: var(--acg-red);
}

.lt-acg-output.is-success .lt-acg-output-icon span {
    border-color: var(--acg-green);
    border-top-color: var(--acg-green);
}

.lt-acg-output h2 {
    margin: 18px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--acg-ink);
}

.lt-acg-output p {
    margin: 8px 0 0;
    color: var(--acg-muted);
    line-height: 1.55;
    font-size: 14px;
}

.lt-acg-progress {
    width: 100%;
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--acg-bg-alt);
    border: 1px solid var(--acg-line);
}

.lt-acg-progress span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--acg-brand);
    transition: width 0.35s ease;
}

.lt-acg-progress-label {
    margin: 8px 0 0;
    color: var(--acg-muted);
    font-size: 13px;
    font-weight: 600;
}

.lt-acg-progress[hidden],
.lt-acg-progress-label[hidden] {
    display: none;
}

.lt-acg-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-download:hover {
    background: var(--acg-brand-hover);
}

/* Preview */
.lt-acg-preview {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
}

.lt-acg-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.lt-acg-preview-header button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-preview-header button:hover {
    background: var(--acg-brand-hover);
}

/* One-card-at-a-time deck preview */
.lt-acg-card-viewer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: stretch;
    margin-top: 8px;
}

.lt-acg-card-nav {
    font: inherit;
    font-size: 22px;
    font-weight: 700;
    width: 44px;
    height: 44px;
    align-self: center;
    border: 1px solid var(--acg-line);
    border-radius: 999px;
    background: var(--acg-panel);
    color: var(--acg-ink);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.lt-acg-card-nav:hover:not(:disabled) {
    background: var(--acg-bg-alt);
    border-color: var(--acg-ink);
}

.lt-acg-card-nav:disabled {
    color: #d4d4d8;
    border-color: var(--acg-line);
    background: var(--acg-panel);
    cursor: not-allowed;
}

.lt-acg-card-stage {
    min-width: 0;
    min-height: 280px;
    display: grid;
    place-items: stretch;
    touch-action: pan-y;
}

.lt-acg-flashcard {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    min-height: 280px;
    cursor: pointer;
    outline: none;
}

.lt-acg-flashcard:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.15);
    border-radius: 16px;
}

.lt-acg-flashcard-face {
    grid-area: stack;
    display: grid;
    place-items: center;
    padding: 40px 32px 48px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
    text-align: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lt-acg-flashcard-back {
    background: var(--acg-bg-alt);
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.lt-acg-flashcard.is-flipped .lt-acg-flashcard-front {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.lt-acg-flashcard.is-flipped .lt-acg-flashcard-back {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.lt-acg-flashcard-target {
    margin: 0;
    font-size: clamp(22px, 3.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--acg-ink);
}

.lt-acg-flashcard-romanization {
    margin: 16px 0 0;
    font-size: 16px;
    color: var(--acg-ink-soft);
    font-weight: 500;
}

.lt-acg-flashcard-english {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--acg-ink);
}

.lt-acg-flashcard-gloss {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--acg-ink-soft);
    line-height: 1.55;
}

.lt-acg-flashcard-hint {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    margin: 0;
    color: var(--acg-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lt-acg-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--acg-muted);
    font-size: 13px;
    font-weight: 600;
}

.lt-acg-card-hint {
    font-weight: 500;
}

/* Pricing */
.lt-acg-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
    padding: 40px;
    border: 1px solid var(--acg-line);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--acg-bg-alt) 100%);
    box-shadow: var(--acg-shadow);
}

.lt-acg-pricing[hidden] {
    display: none;
}

.lt-acg-pricing h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--acg-ink);
}

.lt-acg-pricing p {
    margin: 14px 0 0;
    color: var(--acg-ink-soft);
    line-height: 1.65;
    font-size: 16px;
    max-width: 480px;
}

.lt-acg-price-panel {
    padding: 28px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
}

.lt-acg-price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--acg-ink);
}

.lt-acg-price span {
    color: var(--acg-muted);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
}

.lt-acg-price-panel ul {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding-left: 20px;
    color: var(--acg-ink-soft);
    line-height: 1.5;
    font-size: 15px;
}

.lt-acg-price-panel button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-price-panel button:hover {
    background: var(--acg-brand-hover);
}

/* Auth modal */
.lt-acg-auth {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(24, 24, 27, 0.45);
}

.lt-acg-auth[hidden] {
    display: none;
}

.lt-acg-auth-card {
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
    box-shadow: 0 24px 64px rgba(24, 24, 27, 0.25);
}

.lt-acg-close {
    float: right;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-bg-alt);
    color: var(--acg-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-close:hover {
    background: var(--acg-line);
}

.lt-acg-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    clear: both;
    margin-bottom: 18px;
}

.lt-acg-tabs button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-bg-alt);
    color: var(--acg-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lt-acg-tabs button.is-active {
    background: var(--acg-brand);
    color: #ffffff;
}

.lt-acg-auth form {
    display: grid;
    gap: 14px;
}

.lt-acg-auth label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lt-acg-auth label span {
    display: block;
    color: var(--acg-ink);
    font-size: 13px;
    font-weight: 700;
}

.lt-acg-auth form button[type="submit"] {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-auth form button[type="submit"]:hover {
    background: var(--acg-brand-hover);
}

.lt-acg-auth form button[type="submit"]:disabled {
    background: #a1a1aa;
    cursor: wait;
}

.lt-acg-message {
    min-height: 22px;
    margin: 12px 0 0;
    color: var(--acg-muted);
    font-size: 13px;
    line-height: 1.5;
}

.lt-acg-message.is-error {
    color: var(--acg-red);
}

.lt-acg-message.is-success {
    color: var(--acg-green);
}

.lt-acg-text-button {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-bg-alt);
    color: var(--acg-ink);
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-text-button:hover {
    background: var(--acg-line);
}

.lt-acg-text-button:disabled {
    background: var(--acg-bg-alt);
    color: var(--acg-muted);
    cursor: wait;
}

/* Quota line inside the output panel */
.lt-acg-quota {
    margin: 12px 0 0;
    color: var(--acg-ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.lt-acg-quota[hidden] {
    display: none;
}

/* Inline preview download button */
.lt-acg-download-inline {
    margin-top: 0;
}

/* Comparator (nested inside the pricing card) */
.lt-acg-compare {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
}

.lt-acg-compare-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.lt-acg-compare-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--acg-ink);
}

.lt-acg-compare-heading p {
    margin: 10px 0 0;
    color: var(--acg-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
}

.lt-acg-compare-counter {
    flex: 0 0 auto;
    align-self: center;
    padding: 6px 14px;
    border: 1px solid var(--acg-line);
    border-radius: 999px;
    background: var(--acg-panel);
    color: var(--acg-ink);
    font-size: 13px;
    font-weight: 700;
}

.lt-acg-compare-controls {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.lt-acg-compare-controls input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--acg-line);
    border-radius: 8px;
    background: var(--acg-panel);
    color: var(--acg-ink);
    font: inherit;
}

.lt-acg-compare-controls input[type="text"]:focus {
    outline: 0;
    border-color: var(--acg-ink);
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.lt-acg-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lt-acg-compare-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
}

.lt-acg-compare-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--acg-ink);
}

.lt-acg-compare-card p {
    margin: 0;
    color: var(--acg-muted);
    font-size: 14px;
    line-height: 1.55;
    flex: 1 1 auto;
}

.lt-acg-compare-card button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-compare-card button:hover:not(:disabled) {
    background: var(--acg-brand-hover);
}

.lt-acg-compare-card button:disabled {
    background: #a1a1aa;
    cursor: not-allowed;
}

.lt-acg-compare-premium {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.lt-acg-compare-card audio {
    width: 100%;
    margin-top: 4px;
}

[data-compare-message] {
    margin: 16px 0 0;
}

/* Pricing plan comparison */
.lt-acg-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lt-acg-plan {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--acg-line);
    border-radius: 16px;
    background: var(--acg-panel);
}

.lt-acg-plan-premium {
    border-color: var(--acg-ink);
    box-shadow: 0 12px 32px rgba(24, 24, 27, 0.08);
}

.lt-acg-plan ul {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding-left: 20px;
    color: var(--acg-ink-soft);
    line-height: 1.5;
    font-size: 15px;
}

.lt-acg-plan ul strong {
    color: var(--acg-ink);
}

.lt-acg-plan button {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--acg-brand);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.lt-acg-plan button:hover:not(:disabled) {
    background: var(--acg-brand-hover);
}

.lt-acg-plan-cta {
    background: var(--acg-bg-alt) !important;
    color: var(--acg-ink) !important;
    cursor: default !important;
}

/* Footer */
.lt-acg-footer {
    border-top: 1px solid var(--acg-line);
    padding: 32px 0;
    background: var(--acg-panel);
}

.lt-acg-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--acg-muted);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 16px;
}

.lt-acg-footer-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lt-acg-footer-links a {
    color: var(--acg-ink);
    text-decoration: none;
    font-weight: 600;
}

.lt-acg-footer-links a:hover {
    color: var(--acg-brand-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes lt-acg-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .lt-acg-workspace {
        grid-template-columns: 1fr;
    }
    .lt-acg-pricing {
        grid-template-columns: 1fr;
    }
    .lt-acg-plans,
    .lt-acg-compare-grid,
    .lt-acg-compare-controls {
        grid-template-columns: 1fr;
    }
    .lt-acg-output {
        min-height: 220px;
    }
}

@media (max-width: 680px) {
    .lt-acg-shell {
        padding: 0 16px 48px;
    }
    .lt-acg-header-inner {
        padding: 0 16px;
    }
    .lt-acg-hero {
        padding: 40px 0 24px;
    }
    .lt-acg-app {
        padding: 24px;
    }
    .lt-acg-compare,
    .lt-acg-pricing {
        padding: 28px;
    }
    .lt-acg-compare-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .lt-acg-app-heading,
    .lt-acg-preview-header {
        align-items: stretch;
        flex-direction: column;
    }
    .lt-acg-grid,
    .lt-acg-count {
        grid-template-columns: 1fr;
    }
    .lt-acg-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .lt-acg-segmented,
    .lt-acg-voice {
        grid-template-columns: 1fr;
    }
    .lt-acg-segmented label span,
    .lt-acg-segmented label:first-of-type span,
    .lt-acg-segmented label:last-of-type span {
        border: 1px solid var(--acg-line);
        border-radius: 8px;
    }
    .lt-acg-segmented label + label span {
        border-left: 1px solid var(--acg-line);
    }
    .lt-acg-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .lt-acg-actions button {
        width: 100%;
    }
    .lt-acg-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .lt-acg-footer-links {
        justify-content: flex-start;
    }
}
