/* ==========================================================================
   Tesla Invest — inner pages (about, plans, rankings, insights, legal)
   Layered on tesla-home.css. Same tokens, same voice.
   ========================================================================== */

.t-head {
    position: relative;
    padding: 168px 0 76px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.t-head::before {
    content: "";
    position: absolute;
    inset: -40% 40% 40% -20%;
    background: radial-gradient(circle at 30% 40%, rgba(224, 16, 46, 0.22), transparent 62%);
    pointer-events: none;
}

.t-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 100%);
    pointer-events: none;
}

.t-head__in {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.t-head h1 {
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: #fff;
    margin: 14px 0 18px;
}

.t-head p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #94a1b6;
    max-width: 640px;
    margin: 0;
}

.t-head__crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5d6b81;
    font-weight: 600;
    margin-bottom: 18px;
}

.t-head__crumb a { color: #8b98ad; text-decoration: none; }
.t-head__crumb a:hover { color: #fff; }
.t-head__crumb span { color: #e0102e; }

/* ---- prose ---- */
.t-prose {
    max-width: 780px;
    font-size: 15px;
    line-height: 1.85;
    color: #a9b5c7;
}

.t-prose > * + * { margin-top: 18px; }

.t-prose h1,
.t-prose h2,
.t-prose h3,
.t-prose h4 {
    color: #ffffff;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 34px 0 0;
    line-height: 1.28;
}

.t-prose h2 { font-size: 24px; }
.t-prose h3 { font-size: 19px; }
.t-prose h4 { font-size: 16px; }

.t-prose a { color: #ff5a6a; text-decoration: none; border-bottom: 1px solid rgba(255, 90, 106, 0.35); }
.t-prose a:hover { color: #fff; border-color: #fff; }

.t-prose ul,
.t-prose ol { padding-left: 20px; }
.t-prose li { margin: 8px 0; }
.t-prose li::marker { color: #e0102e; }

.t-prose strong { color: #e8eef8; font-weight: 600; }

.t-prose blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 2px solid #e0102e;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
    color: #cfd8e6;
    font-size: 15px;
}

.t-prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t-prose th,
.t-prose td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: left; }
.t-prose th { color: #7f8da4; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---- split block (about) ---- */
.t-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 54px;
    align-items: center;
}

.t-split__media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #0b1220;
    aspect-ratio: 4 / 3.2;
}

.t-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.t-split__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    background: rgba(8, 12, 19, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

/* ---- stat strip ---- */
.t-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 54px;
}

.t-stats > div {
    padding: 24px 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.018);
}
.t-stats > div:last-child { border-right: 0; }
.t-stats b {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.t-stats span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6d7b91;
    font-weight: 600;
}

/* ---- faq accordion ---- */
.t-faq2 { display: grid; gap: 12px; max-width: 860px; }

.t-faq2__item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: 0.22s ease;
}

.t-faq2__item[open] { border-color: rgba(224, 16, 46, 0.32); background: rgba(224, 16, 46, 0.05); }

.t-faq2__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #e7edf7;
    letter-spacing: -0.015em;
}

.t-faq2__item summary::-webkit-details-marker { display: none; }

.t-faq2__item summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: #7f8da4;
    line-height: 1;
    transition: 0.22s ease;
}

.t-faq2__item[open] summary::after { content: "\2212"; color: #ff5a6a; }

.t-faq2__a {
    padding: 0 22px 20px;
    font-size: 13.8px;
    line-height: 1.75;
    color: #98a5b9;
}

/* ---- process steps ---- */
.t-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.t-step {
    position: relative;
    padding: 26px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    overflow: hidden;
}

.t-step__n {
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #e0102e;
    display: block;
    margin-bottom: 40px;
}

.t-step h3 { font-size: 15px; color: #fff; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 600; }
.t-step p { font-size: 12.8px; line-height: 1.65; color: #8b98ad; margin: 0; }
.t-step__rg { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; opacity: 0.16; color: #fff; }
.t-step__rg img { width: 100%; height: 100%; object-fit: contain; }

/* ---- tiers ---- */
.t-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.t-tier {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(120% 100% at 50% 0%, rgba(224, 16, 46, 0.09), rgba(255, 255, 255, 0.012));
    transition: 0.25s ease;
}

.t-tier:hover { transform: translateY(-3px); border-color: rgba(224, 16, 46, 0.3); }

.t-tier__ic {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.t-tier__ic img { width: 46px; height: 46px; object-fit: contain; }
.t-tier h3 { font-size: 15px; color: #fff; margin: 0 0 4px; letter-spacing: -0.02em; }
.t-tier .lv { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #e0102e; font-weight: 700; margin-bottom: 10px; }
.t-tier p { font-size: 12.5px; line-height: 1.6; color: #8b98ad; margin: 0; }

/* ---- insight cards ---- */
.t-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.t-post {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition: 0.25s ease;
}

.t-post:hover { transform: translateY(-3px); border-color: rgba(224, 16, 46, 0.3); }

.t-post__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0c1420; }
.t-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.5s ease; }
.t-post:hover .t-post__img img { transform: scale(1.04); }

.t-post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.t-post__date {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6d7b91;
    font-weight: 600;
    margin-bottom: 10px;
}

.t-post h3 {
    font-size: 16.5px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 600;
}

.t-post p {
    font-size: 13px;
    line-height: 1.65;
    color: #8b98ad;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t-post__more {
    margin-top: auto;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ff5a6a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ---- article ---- */
.t-article { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; }

.t-article__hero {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
    aspect-ratio: 16 / 8;
    background: #0c1420;
}
.t-article__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.t-aside {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 92px;
}

.t-aside h3 {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7f8da4;
    font-weight: 700;
    margin: 0 0 16px;
}

.t-aside a {
    display: block;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    line-height: 1.5;
    color: #b8c3d4;
    text-decoration: none;
    transition: 0.2s ease;
}
.t-aside a:hover { color: #fff; }

.t-share { display: flex; align-items: center; gap: 10px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.t-share span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6d7b91; font-weight: 600; margin-right: 4px; }
.t-share a {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #98a5b9;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s ease;
}
.t-share a:hover { color: #fff; border-color: rgba(224, 16, 46, 0.5); background: rgba(224, 16, 46, 0.12); }

/* ---- contact form ---- */
.t-form { display: grid; gap: 14px; max-width: 660px; }
.t-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.t-form input,
.t-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    padding: 13px 15px;
    outline: none;
    transition: 0.2s ease;
}

.t-form textarea { min-height: 132px; resize: vertical; }
.t-form input::placeholder,
.t-form textarea::placeholder { color: #5b6880; }
.t-form input:focus,
.t-form textarea:focus { border-color: rgba(224, 16, 46, 0.55); box-shadow: 0 0 0 3px rgba(224, 16, 46, 0.12); }

/* ---- pagination ---- */
.t-page .pagination,
.t-page nav[role="navigation"] { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.t-page .page-item .page-link,
.t-page nav[role="navigation"] a,
.t-page nav[role="navigation"] span > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #a9b5c7;
    font-size: 12.5px;
    text-decoration: none;
}
.t-page .page-item.active .page-link,
.t-page nav[role="navigation"] span[aria-current] span {
    background: linear-gradient(135deg, #e0102e, #ff3b4f);
    border-color: transparent;
    color: #fff;
}

/* ---- contact cards ---- */
.t-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.t-mini {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.022);
}
.t-mini h3 { font-size: 13px; color: #fff; margin: 0 0 6px; letter-spacing: -0.01em; }
.t-mini p { font-size: 12.8px; color: #8b98ad; margin: 0; line-height: 1.6; }

@media (max-width: 1100px) {
    .t-article { grid-template-columns: 1fr; }
    .t-aside { position: static; }
    .t-split { grid-template-columns: 1fr; gap: 30px; }
    .t-steps { grid-template-columns: 1fr 1fr; }
    .t-tiers { grid-template-columns: 1fr 1fr; }
    .t-posts { grid-template-columns: 1fr 1fr; }
    .t-stats { grid-template-columns: 1fr 1fr; }
    .t-stats > div:nth-child(2) { border-right: 0; }
    .t-stats > div:nth-child(1),
    .t-stats > div:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
}

@media (max-width: 700px) {
    .t-head { padding: 128px 0 52px; }
    .t-steps,
    .t-tiers,
    .t-posts,
    .t-cards3,
    .t-form__row { grid-template-columns: 1fr; }
    .t-stats { grid-template-columns: 1fr; }
    .t-stats > div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
}

/* plan grids with five tiers */
@media (min-width: 1380px) {
    .t-plans.t-plans--many { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .t-plans.t-plans--many .t-plan { padding: 26px 20px; }
    .t-plans.t-plans--many .t-plan__name { font-size: 15.5px; }
    .t-plans.t-plans--many .t-plan__rate strong { font-size: 30px; }
}

/* ---- document shell (legal pages) ---- */
.t-doc {
    max-width: 940px;
    padding: 38px 46px 44px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(224, 16, 46, 0.07), transparent 55%),
        rgba(255, 255, 255, 0.021);
}

.t-doc__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.t-doc__meta span {
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: #e0102e;
}

.t-doc__meta em {
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #6c7a8f;
}

.t-doc .t-prose {
    max-width: 100%;
}

.t-doc .t-prose > *:first-child { margin-top: 0; }

@media (max-width: 767px) {
    .t-doc { padding: 26px 20px 30px; border-radius: 14px; }
}
