/* CabinCast — cabincast.app. Dark, fast, no external fonts (system fonts cover every script we ship). */
:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --card: #18181d;
  --card-2: #202026;
  --stroke: rgba(255, 255, 255, .08);
  --text: #f2f4f8;
  --muted: #9aa3b2;
  --green: #ff4d57;
  --green-2: #e5232e;
  --gold: #ffd60a;
  --radius: 22px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
/* Shared presentation for every MCP related-links block, including future ones. */
main > .mcp-guide-links { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.mcp-guide-links { padding-block: 32px 64px; }
.mcp-guide-links > h2 { margin-bottom: 24px; }
main .mcp-guide-links > ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px; list-style: none; padding: 0; margin: 0;
}
main .mcp-guide-links > ul > li { display: flex; min-width: 0; margin: 0; }
main .mcp-guide-links > ul > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 96px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  color: var(--text); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere;
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
main .mcp-guide-links > ul > li > a::after { content: "→"; flex-shrink: 0; color: var(--green); }
[dir="rtl"] .mcp-guide-links > ul > li > a::after { content: "←"; }
main .mcp-guide-links > ul > li > a:hover { border-color: var(--green); background: var(--card-2); }
main .mcp-guide-links > ul > li > a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { main .mcp-guide-links > ul > li > a { transition: none; } }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--green); color: #000; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: rgba(11, 13, 20, .72); border-bottom: 1px solid var(--stroke); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green-2); color: #fff !important; font-weight: 800; padding: 10px 18px; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 720px; background: radial-gradient(closest-side, rgba(229, 35, 46, .22), transparent 70%), radial-gradient(closest-side at 80% 40%, rgba(80, 120, 255, .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; font-size: .9rem; background: rgba(229, 35, 46, .1); border: 1px solid rgba(229, 35, 46, .25); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.lead { font-size: 1.2rem; color: #c9cfda; max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 12px; }
.badge { display: inline-block; position: relative; }
.badge img { height: 54px; width: auto; position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.badge.ok img { position: static; opacity: 1; }
.badge-alt { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; font-weight: 700; font-size: .95rem; line-height: 1.1; white-space: nowrap; }
.badge.ok .badge-alt { display: none; }
.badge:hover { text-decoration: none; }
.note { color: var(--muted); font-size: .9rem; }

/* CarPlay screenshot in a car-screen frame */
.screen { position: relative; border-radius: 28px; padding: 0; background: #05060a; border: 1px solid var(--stroke); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 10px #05060a, 0 0 0 11px #262a36; }
.screen picture, .screen img { display: block; width: 100%; height: auto; border-radius: 27px; }
.shots-sec { padding: 0 0 72px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shots picture, .shots img { display: block; width: 100%; height: auto; border-radius: 22px; }
.shots picture { border: 1px solid var(--stroke); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; gap: 16px; } }
.toast { position: absolute; inset-inline-start: 50%; bottom: -22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(23, 26, 36, .95); border: 1px solid rgba(229, 35, 46, .35); border-radius: 999px; padding: 10px 18px; white-space: nowrap; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast small { color: var(--muted); display: block; font-size: .72rem; line-height: 1.2; }
.toast strong { font-size: .95rem; }
.bars { display: flex; gap: 3px; align-items: center; height: 22px; }
.bars span { width: 4px; border-radius: 3px; background: var(--green); animation: eq 1s ease-in-out infinite; }
.bars span:nth-child(2) { animation-delay: -.2s; } .bars span:nth-child(3) { animation-delay: -.5s; } .bars span:nth-child(4) { animation-delay: -.7s; } .bars span:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .bars span { animation: none; height: 14px; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(229, 35, 46, .12); color: var(--green); margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; inset-inline-start: 26px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; display: grid; place-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304130a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pro { background: linear-gradient(160deg, rgba(229, 35, 46, .14), rgba(229, 35, 46, .02) 60%), var(--card); border-color: rgba(229, 35, 46, .3); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final { text-align: center; background: radial-gradient(closest-side, rgba(229, 35, 46, .18), transparent 75%); }
.final .badge { display: inline-block; margin-top: 12px; }

/* Articles (guides, legal, support) */
.page { padding: 56px 0 88px; }
.article { max-width: 780px; margin-inline: auto; }
.article h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.article h2 { font-size: 1.45rem; margin-top: 2em; }
.article p, .article li { color: #cfd5df; }
.article ul, .article ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.article li { margin: .35em 0; }
.article .lead { max-width: none; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.meta-line { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.notice { background: rgba(255, 214, 10, .08); border: 1px solid rgba(255, 214, 10, .25); color: #f3e7b0; border-radius: 14px; padding: 12px 16px; font-size: .92rem; margin-bottom: 24px; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(229, 35, 46, .16), rgba(229, 35, 46, .03)); border: 1px solid rgba(229, 35, 46, .3); }
.inline-cta strong { font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.inline-cta img.icon { width: 44px; height: 44px; border-radius: 11px; }
.video { display: block; width: 100%; max-width: 380px; aspect-ratio: 884 / 1780; border-radius: 22px; border: 1px solid var(--stroke); background: #000; margin: 8px auto 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.article:has(> .guide-list) { max-width: none; }
.guide-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-list a.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; color: var(--text); }
.guide-list a.card h2 { line-height: 1.35; overflow-wrap: anywhere; }
.guide-list a.card p { font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.guide-list a.card .more { margin-top: auto; padding-top: 12px; }
.guide-list a.card:hover { text-decoration: none; border-color: rgba(229, 35, 46, .4); }
.guide-list .more { color: var(--green); font-weight: 700; margin-top: 10px; display: inline-block; }
@media (max-width: 1100px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-list { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
footer { border-top: 1px solid var(--stroke); padding: 48px 0 40px; color: var(--muted); font-size: .92rem; background: var(--bg-2); }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--text); font-weight: 600; }
.small { font-size: .82rem; opacity: .85; margin-top: 22px; }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 14px; color: var(--text); font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--stroke); border-radius: 16px; width: min(560px, 88vw); columns: 3 150px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); z-index: 60; }
.lang li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); break-inside: avoid; }
.lang li a[aria-current] { background: rgba(229, 35, 46, .15); color: var(--green); }

/* Feature cards with real App Store screenshots */
.feat-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card.feat { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.card.feat:hover { border-color: rgba(229, 35, 46, .35); transform: translateY(-3px); }
.card.feat h3 { padding: 22px 24px 0; }
.card.feat p { padding: 0 24px 24px; }
.feat-media { position: relative; margin: 0; height: 300px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 22px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(229, 35, 46, .16), transparent 62%), linear-gradient(180deg, #16121a, #0c0a0e); border-bottom: 1px solid var(--stroke); }
.feat-media::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--card)); pointer-events: none; }
.feat-media img { width: 68%; height: auto; border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.feat-media.is-low { align-items: flex-end; padding: 0; }
.feat-media.is-low::after { inset: 0 0 auto; height: 70px; background: linear-gradient(var(--card), transparent); }
.feat-media.is-low img { border-radius: 0 0 18px 18px; }
.card.feat:hover .feat-media img { transform: translateY(-8px); }
.card.feat:hover .feat-media.is-low img { transform: translateY(8px); }
.feat-media.is-wide { padding: 0; align-items: center; }
.feat-media.is-wide picture, .feat-media.is-wide img { width: 100%; height: 100%; }
.feat-media.is-wide img { object-fit: cover; object-position: 50% center; border-radius: 0; box-shadow: none; }
.feat-media.is-native { align-items: flex-start; padding-top: 18px; }
.card.feat .feat-media.is-native.is-ai-voice img { transform: translateY(-13%); }
.card.feat .feat-media.is-native.is-garage img { transform: translateY(-4%); }
.card.feat:hover .feat-media.is-wide img { transform: scale(1.04); }
@media (max-width: 640px) { .feat-media { height: 260px; } .feat-media img { width: 58%; } .feat-media.is-wide img { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .card.feat, .feat-media img { transition: none; } .card.feat:hover, .card.feat:hover .feat-media img { transform: none !important; } }

/* Latest from the Blog (markup injected by the API) */
[data-site-recent-articles] { --accent: var(--green); --font-display: inherit; padding: 0 0 88px; }
[data-site-recent-articles] .container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
[data-site-recent-articles] .recent-head h2 { margin: 0; }
[data-site-recent-articles] .recent-all { color: var(--green); }
[data-site-recent-articles] .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
[data-site-recent-articles] .guide-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
[data-site-recent-articles] .guide-card:hover { text-decoration: none; border-color: rgba(229, 35, 46, .4); transform: translateY(-2px); }
[data-site-recent-articles] .guide-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[data-site-recent-articles] .guide-card .meta { color: var(--green); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
[data-site-recent-articles] .guide-card h3 { margin: 0; color: var(--text); font-size: 1.12rem; }
[data-site-recent-articles] .guide-card p { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { [data-site-recent-articles] .guide-card { transition: none; } [data-site-recent-articles] .guide-card:hover { transform: none; } }

/* Feature carousel (enabled by feature-carousel.js; without JS the grid above stays) */
.feat-grid.is-carousel { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; scroll-padding-inline: 2px; }
.feat-grid.is-carousel::-webkit-scrollbar { display: none; }
.feat-grid.is-carousel > .card.feat { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; min-width: 0; }
.feat-grid.is-carousel:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; border-radius: var(--radius); }
.card.feat:hover { transform: none; }
@media (max-width: 960px) { .feat-grid.is-carousel > .card.feat { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .feat-grid.is-carousel {
    padding-inline: 0; scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
  }
  .feat-grid.is-carousel > .card.feat { flex-basis: 100%; scroll-snap-stop: always; }
}
.feat-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.fc-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--card); color: var(--text); border: 1px solid var(--stroke); transition: border-color .2s, color .2s; }
.fc-btn:hover { border-color: rgba(229, 35, 46, .45); color: var(--green); }
.fc-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.fc-play { background: rgba(229, 35, 46, .12); color: var(--green); border-color: rgba(229, 35, 46, .3); }
[dir="rtl"] .fc-prev svg, [dir="rtl"] .fc-next svg { transform: scaleX(-1); }
.fc-dots { display: flex; gap: 6px; margin-inline-start: 8px; }
.fc-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: background .3s; }
.fc-dots i.on { background: var(--green); }
@media (max-width: 400px) { .fc-dots { display: none; } }
@media (prefers-reduced-motion: reduce) { .fc-btn, .fc-dots i { transition: none; } }

/* CabinCast additions (Nov 18, 2026) */
.hero-shot { display: flex; justify-content: center; }
.hero-shot img { width: min(340px, 78vw); height: auto; border-radius: 34px; box-shadow: 0 40px 110px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07), 0 0 90px rgba(229,35,46,.18); }
.kicker { font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: .08em; color: var(--green); font-weight: 800; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--stroke); }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.credit { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.article figure.shot { margin: 28px 0; }
.article figure.shot img { width: min(320px, 70vw); height: auto; border-radius: 26px; border: 1px solid var(--stroke); }
.article figure.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.article .faq-block h3 { margin-top: 1.4em; }
/* Nov 19, 2026: code samples in guides (M3U example); always left-to-right, also on RTL pages */
.article pre, .article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
.article pre { text-align: left; white-space: pre; overflow-x: auto; background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 14px 16px; font-size: .85rem; line-height: 1.55; color: #e7e9ee; margin: 0 0 1em; }
.article code { font-size: .92em; }
.article pre code { font-size: inherit; }
