/* Product breakdown chapters (home page). Builds on site.css tokens. */
.chapters-nav { position: sticky; top: 64px; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.chapters-nav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.chapters-nav .wrap::-webkit-scrollbar { display: none; }
.chapters-nav a { flex: none; text-decoration: none; font-size: 13px; font-weight: 800; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.chapters-nav a.on { background: var(--ink); color: #fff; }

.chapter { padding: 110px 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.chapter.dark { background: var(--ink); color: #fff; border-top: 0; }
.chapter.dark .lead, .chapter.dark .spec span { color: rgba(255,255,255,.65); }
.chapter.soft { background: var(--soft); border-top: 0; }
.ch-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.ch-grid.flip > :first-child { order: 2; }
.ch-num { font-size: 13px; font-weight: 850; letter-spacing: .16em; color: var(--red); }
.chapter h2 { margin: 12px 0 16px; }
.spec { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.spec li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.spec li::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23EF4A45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.chapter.dark .spec li::before { background-color: rgba(239,74,69,.18); }
.spec b { display: block; font-size: 17px; }
.spec span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 900px) { .ch-grid { grid-template-columns: 1fr; gap: 36px; } .ch-grid.flip > :first-child { order: 0; } .chapter { padding: 72px 0; } }

/* 01 Import: rooms grid */
.import-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 30px 60px rgba(17,17,19,.08); }
.import-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; }
.import-head b { font-size: 18px; display: block; } .import-head span { font-size: 13px; color: rgba(255,255,255,.6); }
.import-head .p { font-size: 18px; font-weight: 850; }
.import-chips { display: flex; gap: 6px; margin-top: 10px; } .import-chips i { font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12); padding: 4px 9px; border-radius: 999px; }
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rooms figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--soft); opacity: 0; transform: scale(.96); transition: opacity .45s ease, transform .45s ease; }
.rooms.in figure { opacity: 1; transform: none; }
.rooms figure img { width: 100%; height: 100%; object-fit: cover; }
.rooms figcaption { position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 999px; }
@media (max-width: 520px) { .rooms { grid-template-columns: repeat(3, 1fr); } }

/* 02 Videos */
.videos { display: grid; grid-template-columns: .42fr .58fr; gap: 14px; align-items: end; }
.videos video { width: 100%; border-radius: 22px; background: #000; object-fit: cover; }
.videos .v { aspect-ratio: 9/16; } .videos .h { aspect-ratio: 16/9; }
.videos .cap { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.6); margin-top: 10px; }

/* 03 Posts: rails */
.formats { display: grid; gap: 34px; margin-top: 46px; }
.format-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.format-head h3 { font-size: 22px; }
.format-head p { color: var(--muted); font-size: 15px; max-width: 520px; }
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail img { flex: 0 0 auto; width: 210px; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: var(--soft); }
@media (max-width: 600px) { .rail img { width: 62vw; } .format-head { flex-direction: column; gap: 4px; } }

/* 04 Captions + email */
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 30px 60px rgba(17,17,19,.07); }
.tabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 2px; }
.tabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
.cap-text { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-2); min-height: 150px; white-space: pre-line; }
.tags { color: #2f6fde; font-size: 14px; margin-top: 6px; }
.email { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.email .from { font-size: 13px; color: var(--muted); } .email b { display: block; margin: 4px 0 6px; } .email p { font-size: 14px; color: var(--muted); }

/* 05 Print + open house */
.print { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.print img { width: 100%; border-radius: 16px; box-shadow: 0 24px 50px rgba(17,17,19,.14); }
.print .stack { display: grid; gap: 14px; }
.kiosk { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.kiosk b { font-size: 15px; } .kiosk .f { height: 34px; border-radius: 10px; background: var(--soft); margin-top: 8px; }
.kiosk .go { height: 36px; border-radius: 10px; background: var(--red); margin-top: 10px; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* 06 Listing page phone */
.lp-phone { width: min(330px, 84vw); margin: 0 auto; border-radius: 44px; padding: 10px; background: #0d0d0f; box-shadow: 0 40px 80px rgba(17,17,19,.24); }
.lp-screen { border-radius: 34px; overflow: hidden; background: #fff; color: var(--ink); height: 640px; position: relative; }
.lp-hero { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lp-body { margin-top: -18px; position: relative; background: #fff; border-radius: 20px 20px 0 0; padding: 16px; }
.lp-body .st { display: inline-flex; gap: 6px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; background: var(--soft); padding: 4px 9px; border-radius: 999px; }
.lp-body .st i { width: 6px; height: 6px; border-radius: 3px; background: #2EB872; }
.lp-body h4 { margin: 8px 0 0; font-size: 21px; letter-spacing: -0.03em; }
.lp-body .c { color: var(--muted); font-size: 12px; }
.lp-body .pr { font-size: 24px; font-weight: 850; letter-spacing: -0.03em; margin-top: 6px; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.lp-stats div { border: 1px solid var(--line); border-radius: 10px; text-align: center; padding: 6px; font-size: 10px; color: var(--muted); }
.lp-stats b { display: block; color: var(--ink); font-size: 14px; }
.lp-chips { display: flex; gap: 5px; margin-top: 12px; overflow: hidden; }
.lp-chips span { flex: none; font-size: 10px; font-weight: 800; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.lp-chips span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.lp-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.lp-photos img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.lp-bar { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 10px 12px 14px; display: flex; align-items: center; gap: 8px; }
.lp-bar b { flex: 1; font-size: 15px; } .lp-bar span { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 10px 12px; border-radius: 10px; }

/* 07 Autopilot week */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { background: rgba(255,255,255,.06); border-radius: 16px; padding: 10px 8px; text-align: center; }
.day small { display: block; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.5); letter-spacing: .08em; }
.day img, .day .vthumb { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; margin: 8px 0 6px; background: #222; }
.day span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); }
.day.off { opacity: .35; }
@media (max-width: 700px) { .week { grid-template-columns: repeat(4, 1fr); } }

/* 08 Captions on your videos */
.capvid { position: relative; width: min(320px, 80vw); margin: 0 auto; aspect-ratio: 9/16; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 40px 80px rgba(17,17,19,.25); }
.capvid video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); }
.capline { position: absolute; left: 8%; right: 8%; top: 60%; text-align: center; font-weight: 900; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; color: rgba(255,255,255,.35); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.capline i { font-style: normal; transition: color .15s; }
.capline i.on { color: #fff; }
.capline i.hl { color: #FFD43B; }
.safe { position: absolute; inset: 9% 6% 22% 6%; border: 1.5px dashed rgba(255,255,255,.25); border-radius: 14px; pointer-events: none; }
.styles { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.styles button { font: inherit; font-size: 13px; font-weight: 800; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.styles button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 09 Brand */
.brand-demo { display: grid; grid-template-columns: 1fr; gap: 14px; justify-items: center; }
.brand-post { width: min(340px, 84vw); border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 30px 60px rgba(17,17,19,.14); }
.brand-post img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.brand-post .bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--bc, var(--red)); transition: background .25s; }
.brand-strip { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 10px; }
.brand-strip .av { width: 38px; height: 38px; border-radius: 19px; background: var(--bc, var(--red)); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.brand-strip b { display: block; font-size: 14px; } .brand-strip span { font-size: 11px; color: var(--muted); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 17px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.formats > div { min-width: 0; }
.capvid .kb { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); animation: kb 14s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.05) translateX(0); } to { transform: scale(1.18) translateX(-4%); } }
@media (prefers-reduced-motion: reduce) { .capvid .kb { animation: none; } }
