:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --text: #172033;
    --muted: #65738a;
    --line: #dfe7f2;
    --primary: #1d4ed8;
    --primary-dark: #153ea8;
    --success: #0f766e;
    --warning: #b45309;
    --danger: #b91c1c;
    --shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
input, button { font: inherit; }
.public-body { min-height: 100vh; background: radial-gradient(circle at 8% 10%, rgba(29,78,216,.14), transparent 28%), linear-gradient(135deg,#f8fbff,#eaf0f8); }
.public-nav { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 20px 0; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.public-brand { display:flex; align-items:center; gap:12px; font-weight:900; }
.public-brand span { color: var(--muted); font-weight:700; font-size:12px; display:block; }
.brand-mark { width:44px; height:44px; border-radius:14px; background:linear-gradient(135deg,var(--primary),#0f766e); color:#fff; display:grid; place-items:center; font-weight:900; letter-spacing:-.04em; }
.public-actions { display:flex; gap:10px; flex-wrap:wrap; }
.public-shell { width:min(1180px, calc(100% - 36px)); margin:0 auto; padding:26px 0 56px; }
.hero { display:grid; grid-template-columns: 1.1fr .9fr; gap:22px; align-items:stretch; }
.hero-card, .panel, .form-card, .plan-card { background:rgba(255,255,255,.92); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:var(--radius); }
.hero-card { padding:56px; min-height:560px; display:flex; flex-direction:column; justify-content:center; }
.eyebrow { margin:0 0 8px; text-transform:uppercase; color:var(--primary); font-size:11px; font-weight:900; letter-spacing:.14em; }
h1 { font-size:clamp(42px,6vw,76px); line-height:.94; letter-spacing:-.06em; margin:14px 0; }
h2 { letter-spacing:-.035em; margin:0 0 10px; }
p { color:var(--muted); line-height:1.55; }
.hero-copy { font-size:19px; max-width:680px; }
.hero-points, .metric-grid, .plan-grid { display:grid; gap:14px; }
.hero-points { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:28px; }
.point { border:1px solid var(--line); background:var(--surface-soft); border-radius:18px; padding:15px; }
.point strong, .point span { display:block; }
.point span { color:var(--muted); margin-top:5px; font-size:13px; }
.panel { padding:30px; }
.metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:18px; }
.metric { border:1px solid var(--line); background:var(--surface-soft); border-radius:18px; padding:16px; }
.metric strong { display:block; font-size:32px; letter-spacing:-.05em; }
.metric span { color:var(--muted); font-size:12px; font-weight:800; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; border-radius:14px; padding:12px 16px; cursor:pointer; font-weight:850; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-secondary, .btn-outline { background:#fff; border-color:var(--line); color:var(--text); }
.btn-full { width:100%; }
.cta-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.section { margin-top:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.form-card { width:min(560px,100%); margin: 20px auto 60px; padding:34px; }
.form-stack { display:grid; gap:16px; }
.form-stack label span { display:block; font-weight:850; font-size:13px; margin-bottom:7px; }
input { width:100%; border:1px solid var(--line); border-radius:14px; padding:13px 14px; background:#fff; outline:none; }
input:focus { border-color:rgba(29,78,216,.75); box-shadow:0 0 0 4px rgba(29,78,216,.10); }
.alert { border-radius:14px; padding:13px 14px; margin-bottom:16px; border:1px solid var(--line); }
.alert-success { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.alert-danger { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
.alert-warning { background:#fffbeb; color:#92400e; border-color:#fde68a; }
.alert-info { background:#eff6ff; color:#1e40af; border-color:#bfdbfe; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.plan-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.plan-card { padding:24px; }
.price { font-size:38px; font-weight:950; letter-spacing:-.055em; margin:12px 0; }
.price small { font-size:14px; color:var(--muted); font-weight:800; }
ul.clean { padding-left:18px; color:var(--muted); line-height:1.8; }
.dev-token { overflow-wrap:anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; background:#eef4ff; padding:10px; border-radius:12px; border:1px solid #dbeafe; }
.footer { width:min(1180px, calc(100% - 36px)); margin:0 auto; padding:20px 0 34px; color:var(--muted); font-size:12px; display:flex; justify-content:space-between; gap:16px; }
@media(max-width:920px){ .hero,.grid-3,.plan-grid{grid-template-columns:1fr}.hero-card{padding:34px;min-height:auto}.hero-points,.metric-grid{grid-template-columns:1fr}.public-nav{align-items:flex-start;flex-direction:column} }


/* MTT v0.9.0-D Public onboarding polish */
.success-mark {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 34px;
    font-weight: 950;
    margin-bottom: 16px;
}
.status-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 34px;
    width: min(720px, 100%);
    margin: 20px auto 60px;
}
.status-steps {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}
.status-step {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.status-step b {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    flex: 0 0 auto;
    font-size: 13px;
}
.status-step strong, .status-step span { display:block; }
.status-step span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.inline-form-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}
.select-input {
    width:100%;
    border:1px solid var(--line);
    border-radius:14px;
    padding:13px 14px;
    background:#fff;
    outline:none;
}
textarea {
    width:100%;
    min-height: 110px;
    resize: vertical;
    border:1px solid var(--line);
    border-radius:14px;
    padding:13px 14px;
    background:#fff;
    outline:none;
    font: inherit;
}
textarea:focus, .select-input:focus { border-color:rgba(29,78,216,.75); box-shadow:0 0 0 4px rgba(29,78,216,.10); }
.confirm-grid { display:grid; grid-template-columns:1fr 1fr; gap: 12px; margin-top: 18px; }
@media(max-width:720px){ .confirm-grid{grid-template-columns:1fr;} }

/* MTT v0.9.0-G Public Landing + Product Website Polish */
.product-landing {
    background:
        radial-gradient(circle at 12% 12%, rgba(29, 78, 216, .15), transparent 30%),
        radial-gradient(circle at 80% 6%, rgba(15, 118, 110, .14), transparent 26%),
        linear-gradient(135deg, #f8fbff 0%, #edf3fb 48%, #f7fafc 100%);
}
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(248, 251, 255, .78);
    border-bottom: 1px solid rgba(223, 231, 242, .72);
    width: 100%;
    padding: 14px max(18px, calc((100% - 1180px) / 2));
}
.landing-actions { align-items: center; }
.nav-link {
    color: var(--muted);
    font-weight: 850;
    font-size: 13px;
    padding: 10px 8px;
}
.nav-link:hover { color: var(--primary); }
.landing-shell { padding-top: 30px; }
.landing-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: stretch;
}
.hero-card-pro {
    min-height: 650px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
        linear-gradient(135deg, rgba(29,78,216,.08), rgba(15,118,110,.08));
    border: 1px solid rgba(223, 231, 242, .9);
}
.btn-large { padding: 15px 20px; border-radius: 16px; }
.trust-row {
    margin-top: 32px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.trust-row span {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.product-preview {
    display: grid;
    align-content: center;
    gap: 14px;
}
.preview-window {
    border-radius: 28px;
    background: #0f172a;
    color: #e5edf8;
    padding: 20px;
    min-height: 520px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .24);
    border: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 16px;
}
.preview-topbar { display:flex; align-items:center; gap:8px; color:#94a3b8; font-size:12px; }
.preview-topbar span { width:10px; height:10px; border-radius:999px; background:#334155; display:inline-block; }
.preview-topbar strong { margin-left:auto; color:#cbd5e1; }
.preview-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.preview-kpis div, .preview-task {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 14px;
}
.preview-kpis b { display:block; color:#fff; font-size:26px; letter-spacing:-.06em; }
.preview-kpis span, .preview-task span { display:block; color:#94a3b8; font-size:12px; margin-top:3px; }
.preview-task { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.preview-task strong { color:#fff; }
.preview-task em { color:#bfdbfe; font-style:normal; font-weight:900; }
.preview-task.active { background: linear-gradient(135deg, rgba(29,78,216,.35), rgba(15,118,110,.22)); }
.preview-chart {
    min-height: 170px;
    margin-top: 4px;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:end;
    gap:12px;
    padding:18px;
}
.preview-chart span {
    flex:1;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #93c5fd, #1d4ed8);
    min-height: 28px;
}
.preview-note {
    margin: 0;
    text-align: center;
    font-weight: 850;
    color: #475569;
}
.problem-strip {
    margin-top: 24px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}
.problem-strip article {
    background: rgba(255,255,255,.9);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(15,23,42,.06);
}
.problem-strip strong, .problem-strip span { display:block; }
.problem-strip span { color: var(--muted); font-size: 13px; margin-top: 8px; line-height:1.5; }
.landing-section { padding: 48px 0 4px; }
.section-heading {
    width: min(760px, 100%);
    margin-bottom: 22px;
}
.section-heading h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.feature-grid {
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}
.feature-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.feature-card span {
    display:inline-grid;
    place-items:center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 950;
    font-size: 12px;
    margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; letter-spacing:-.03em; }
.feature-card p { margin:0; }
.workflow-section {
    display:grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 20px;
    align-items: stretch;
}
.workflow-copy { box-shadow: var(--shadow); }
.workflow-steps {
    display:grid;
    gap: 14px;
}
.workflow-steps article {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    display:grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    align-items:center;
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.workflow-steps b {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display:grid;
    place-items:center;
    background: linear-gradient(135deg, var(--primary), var(--success));
    color:#fff;
    font-size: 20px;
}
.workflow-steps strong, .workflow-steps span { display:block; }
.workflow-steps span { color:var(--muted); margin-top: 4px; }
.check-list li::marker { color: var(--success); }
.polished-plans .plan-card { position: relative; overflow: hidden; }
.featured-plan {
    border-color: rgba(29,78,216,.34);
    box-shadow: 0 24px 60px rgba(29,78,216,.14);
    transform: translateY(-8px);
}
.plan-badge {
    position:absolute;
    right: 18px;
    top: 18px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 950;
    border-radius: 999px;
    padding: 7px 10px;
}
.final-cta {
    margin-top: 38px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    box-shadow: 0 24px 60px rgba(15,23,42,.18);
}
.final-cta h2 { color:#fff; font-size: clamp(28px,4vw,44px); }
.final-cta p { color:#cbd5e1; }
.final-cta .eyebrow { color:#bfdbfe; }
.final-actions { margin-top:0; }
.landing-footer { border-top: 1px solid rgba(223,231,242,.8); margin-top: 20px; }
@media(max-width:1020px){
    .landing-hero, .workflow-section { grid-template-columns:1fr; }
    .hero-card-pro { min-height:auto; }
    .product-preview { align-content:stretch; }
    .preview-window { min-height:auto; }
}
@media(max-width:860px){
    .landing-nav { position: static; }
    .landing-actions .nav-link { display:none; }
    .problem-strip, .feature-grid { grid-template-columns:1fr; }
    .featured-plan { transform:none; }
    .final-cta { flex-direction:column; align-items:flex-start; }
}
@media(max-width:560px){
    .preview-kpis { grid-template-columns:1fr; }
    .workflow-steps article { grid-template-columns:1fr; gap:12px; }
    .landing-actions { width:100%; }
    .landing-actions .btn { flex:1; }
}


/* MTT v0.9.0-I public demo form helpers */
.checkbox-line { display:flex; align-items:center; gap:10px; font-size:14px; color:#475569; }
.checkbox-line input { width:auto; }

/* MTT v0.9.0-I.1 demo login spacing fix */
.demo-shell {
    display: flex;
    justify-content: center;
}
.demo-login-card {
    width: min(820px, 100%);
    max-width: 820px !important;
    padding: clamp(28px, 5vw, 44px);
}
.demo-login-title {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -.055em;
    margin: 14px 0 18px;
    max-width: 720px;
}
.demo-login-lead {
    font-size: 18px;
    line-height: 1.62;
    max-width: 720px;
    margin-bottom: 0;
}
.demo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 24px;
}
.demo-feature-card {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: 22px;
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}
.demo-feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 14px;
}
.demo-feature-card strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin: 0;
}
.demo-feature-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.demo-login-form {
    gap: 18px;
}
.demo-checkbox-line {
    align-items: center;
    padding: 0 4px;
}
.demo-checkbox-line span {
    display: inline;
    font-weight: 700;
    margin: 0;
}
.demo-login-button {
    min-height: 58px;
    font-size: 17px;
    border-radius: 16px;
}
.demo-login-note {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.55;
}
@media (max-width: 720px) {
    .demo-feature-grid {
        grid-template-columns: 1fr;
    }
    .demo-feature-card {
        min-height: auto;
    }
}

/* MTT v1.0.0-RC.1 SEO Foundation */
.seo-nav .nav-link.active {
    color: #1d4ed8;
    font-weight: 900;
}

.seo-page .seo-hero {
    padding: 48px;
    border-radius: 28px;
    margin-top: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .08);
}

.seo-page .seo-hero h1 {
    max-width: 920px;
    margin: 12px 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.seo-page .seo-hero p:not(.eyebrow) {
    max-width: 780px;
    color: #64748b;
    font-size: 1.12rem;
    line-height: 1.75;
}

.seo-grid .feature-card h3 {
    margin-top: 0;
}

.seo-card-links {
    flex-wrap: wrap;
    margin-top: 24px;
}

.seo-pricing-grid {
    margin-top: 28px;
}

.seo-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

.seo-footer a:hover {
    color: #1d4ed8;
}

@media (max-width: 760px) {
    .seo-page .seo-hero {
        padding: 28px;
        border-radius: 22px;
    }

    .seo-page .seo-hero h1 {
        font-size: 2.4rem;
    }
}
