/* ==========================================================================
   Pax Family — Set up your device page styles
   Implementation of marketing_mocks/page-setup-device.html from Claude Design.
   Loads after tokens.css. Everything scoped under .page.sd.

   Sticky platform tabs (iPad / Android / Chromebook / Fire / Windows),
   each platform section is a white card with a numbered step rail and
   inline CSS "screenshot" placeholders.
   ========================================================================== */

/* Page-frame override — warm cream */
.page.sd { background: #FBF5EA; min-height: 100vh; }
.sd .topnav { padding-top: 28px; }

/* ===== HERO ===== */
.sd-hero {
    padding: 56px clamp(20px, 5vw, 40px) 40px;
    text-align: left;
    max-width: 980px; margin: 0 auto;
}
.sd-hero .crumb {
    font-family: var(--font-display); font-style: italic;
    font-size: 13px; color: #8A6A1F;
    margin-bottom: 14px;
}
.sd-hero .crumb a {
    color: #8A6A1F; text-decoration: underline;
    text-decoration-color: #E9B949;
}
.sd-hero h1 {
    font-family: var(--font-display); font-size: 64px; font-weight: 800;
    letter-spacing: -0.035em; line-height: 1; color: #1b2a3a;
    margin: 0;
}
.sd-hero h1 em { font-style: italic; color: #66A367; }
.sd-hero .sub {
    margin-top: 18px;
    font-size: 18px; color: #4a5568;
    max-width: 640px; line-height: 1.55;
}
.sd-hero .sub strong { color: #1b2a3a; font-family: var(--font-display); font-weight: 800; }

/* ===== STICKY PLATFORM TABS ===== */
.sd-tabs-outer {
    position: sticky; top: 0; z-index: 5;
    background: rgba(251,245,234,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px dashed #E9B949;
}
.sd-tabs {
    max-width: 980px; margin: 0 auto;
    padding: 14px clamp(20px, 5vw, 40px);
    display: flex; gap: 8px; overflow-x: auto;
}
/* Hide scrollbar on the tab strip while keeping scrollability */
.sd-tabs { scrollbar-width: none; }
.sd-tabs::-webkit-scrollbar { display: none; }
.sd-tab {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 999px;
    background: #fff; border: 1px solid #f0e7d5;
    font-family: var(--font-display); font-weight: 700;
    font-size: 14px; color: #5a4a1f;
    cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, transform .08s;
}
.sd-tab:hover {
    background: #FDF4DC; border-color: #E9B949;
    text-decoration: none;
}
.sd-tab.active {
    background: #1b2a3a; color: #fff; border-color: #1b2a3a;
    text-decoration: none;
}
.sd-tab.active .gl { background: #fff; }
.sd-tab .gl {
    width: 24px; height: 24px; border-radius: 6px;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; color: #5a4a1f;
}
.sd-tab .gl img { width: 16px; height: 16px; object-fit: contain; display: block; }

/* ===== PLATFORM SECTIONS ===== */
.sd-body {
    padding: 48px clamp(20px, 5vw, 40px) 24px;
    max-width: 980px; margin: 0 auto;
}

.sd-plat {
    background: #fff; border-radius: 24px; border: 1px solid #f0e7d5;
    padding: 40px 44px; margin-bottom: 28px;
    scroll-margin-top: 88px;
}
.sd-plat-head {
    display: flex; align-items: flex-start; gap: 20px;
    margin-bottom: 28px; padding-bottom: 24px;
    border-bottom: 1px dashed #E9B949;
}
.sd-plat-head .icon {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    background: #fff; border: 1px solid #e2e8f0;
}
.sd-plat-head .icon .dev-logo { width: 40px; height: 40px; object-fit: contain; }

/* "Lock it to just Pax" — collapsible subsection under each device's setup steps */
.sd-lock { margin-top: 30px; padding-top: 26px; border-top: 1px dashed #E9B949; }
summary.sd-lock-head {
    display: flex; gap: 14px; align-items: flex-start;
    cursor: pointer; list-style: none; border-radius: 12px;
    transition: background .12s;
}
summary.sd-lock-head::-webkit-details-marker { display: none; }
summary.sd-lock-head:hover { background: #f8fafc; }
.sd-lock-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; background: #EEF6EC;
}
.sd-lock-text { flex: 1; min-width: 0; }
.sd-lock-head h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-lock-opt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 3px 9px; }
.sd-lock-head p { margin: 0; font-size: 15px; color: #64748b; line-height: 1.5; }
.sd-lock-caret { flex: 0 0 auto; align-self: center; color: #94a3b8; }
.sd-lock-caret svg { width: 22px; height: 22px; display: block; transition: transform .2s; }
.sd-lock[open] .sd-lock-caret svg { transform: rotate(180deg); }
.sd-lock[open] .sd-steps { margin-top: 22px; }
.sd-lock .sd-step .body p em { color: #64748b; font-style: italic; }
.sd-plat-head h2 {
    font-family: var(--font-display); font-size: 36px; font-weight: 800;
    letter-spacing: -0.025em; color: #1b2a3a;
    margin: 0 0 6px; line-height: 1;
}
.sd-plat-head .browser-note {
    font-size: 14px; color: #4a5568; line-height: 1.5;
    max-width: 600px; margin: 0;
}
.sd-plat-head .browser-note strong {
    font-family: var(--font-display); font-weight: 800; color: #095FA1;
}

/* ===== STEP RAIL ===== */
.sd-steps { display: flex; flex-direction: column; gap: 20px; }
.sd-step {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 20px; position: relative;
}
.sd-step::before {
    content: ""; position: absolute;
    left: 23px; top: 56px; bottom: -20px;
    width: 2px;
    background: linear-gradient(#E9B949, transparent);
}
.sd-step:last-child::before { display: none; }
.sd-step .num {
    width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 2px solid #C9A227; color: #C9A227;
    font-family: var(--font-display); font-weight: 800; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 0 #8A6A1F;
}
.sd-step .body h3 {
    font-family: var(--font-display); font-size: 20px; font-weight: 800;
    letter-spacing: -0.015em; color: #1b2a3a;
    margin: 12px 0 6px;
}
.sd-step .body p {
    margin: 0 0 8px;
    font-size: 15px; line-height: 1.6; color: #2a3848;
}
.sd-step .body p:last-child { margin-bottom: 0; }
.sd-step .body p strong {
    font-family: var(--font-display); font-weight: 800; color: #1b2a3a;
}
.sd-step .body p code {
    background: #FDF4DC; padding: 1px 6px; border-radius: 4px;
    font-size: .92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #5a4a1f;
}

/* ===== INLINE SCREENSHOT CARD ===== */
.sd-shot {
    margin-top: 14px; max-width: 520px;
    background: #FBF5EA; border-radius: 14px; border: 1px solid #f0e7d5;
    padding: 14px;
}
.sd-shot .cap {
    font-family: var(--font-display); font-style: italic;
    font-size: 12px; color: #8A6A1F;
    margin-top: 10px; text-align: center;
}
.sd-shot .ph {
    width: 100%; aspect-ratio: 16/10; border-radius: 8px;
    background: #1b2a3a; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.sd-shot .ph .label {
    font-family: var(--font-display);
    font-size: 11px; color: #94a3b8;
    letter-spacing: .1em; text-transform: uppercase;
    position: absolute; top: 10px; left: 12px;
}

/* "COMING SOON" PLACEHOLDER */
.sd-soon {
    margin-top: 14px; max-width: 520px;
    background: #FDF4DC; border: 1px dashed #E9B949;
    border-radius: 14px; padding: 22px;
    display: flex; gap: 14px; align-items: center;
}
.sd-soon .ic { font-size: 24px; }
.sd-soon .t {
    font-family: var(--font-display); font-size: 14px; font-weight: 800;
    color: #5a4a1f;
}
.sd-soon .s {
    font-size: 12px; color: #8A6A1F; margin-top: 2px;
    font-style: italic; font-family: var(--font-display);
}

/* ===== iPad SHARE-SHEET PLACEHOLDER MOCK ===== */
.shot-ipad-share { background: #1b2a3a; }
.shot-ipad-share::after {
    content: ""; position: absolute;
    top: 14%; right: 6%; width: 46%; height: 78%;
    background: #fff; border-radius: 6px;
}
.shot-ipad-share .arrow {
    position: absolute; top: 8%; right: 14%;
    font-size: 28px; color: #C9A227;
}
.shot-ipad-share .pill {
    position: absolute; top: 22%; left: 8%;
    font-family: var(--font-display);
    background: #C9A227; color: #fff;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
}

/* iPad add-to-homescreen menu placeholder mock */
.shot-ipad-add { background: #1b2a3a; }
.shot-ipad-add .menu {
    position: absolute; top: 14%; left: 50%; transform: translateX(-50%);
    width: 60%; background: #fff; border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
    font-family: -apple-system, system-ui, sans-serif;
}
.shot-ipad-add .menu .row {
    padding: 8px 14px; font-size: 11px; color: #4a5568;
    border-bottom: 1px solid #f0f0f0;
}
.shot-ipad-add .menu .row.hi {
    background: #fde68a; color: #1b2a3a; font-weight: 700;
    position: relative;
}
.shot-ipad-add .menu .row.hi::after {
    content: ""; position: absolute;
    left: -8px; right: -8px; top: -2px; bottom: -2px;
    border: 2px solid #C9A227; border-radius: 6px;
    pointer-events: none;
}

/* ===== TIPS CARD (dark) ===== */
.sd-tips {
    background: #1b2a3a; color: #fff; border-radius: 24px;
    padding: 44px;
    margin: 24px auto 0; max-width: 980px;
}
.sd-tips h3 {
    font-family: var(--font-display); font-size: 28px; font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 24px; color: #fff;
}
.sd-tips h3 em { font-style: italic; color: #E9B949; }
.sd-tips .grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sd-tips .tip {
    padding: 18px;
    background: rgba(255,255,255,.04);
    border-radius: 12px;
    border: 1px solid rgba(233,185,73,.2);
}
.sd-tips .tip .ic { font-size: 22px; margin-bottom: 10px; display: block; }
.sd-tips .tip h4 {
    font-family: var(--font-display); font-size: 15px; font-weight: 800;
    color: #E9B949; margin: 0 0 6px; letter-spacing: -0.005em;
}
.sd-tips .tip p {
    margin: 0; font-size: 13px; color: #cbd5e1; line-height: 1.5;
}

/* ===== CTA STRIP ===== */
.sd-cta {
    margin: 24px auto 64px; max-width: 980px;
    background: #FDF4DC; border: 1px dashed #C9A227;
    border-radius: 20px;
    padding: 28px 32px;
    display: flex; gap: 24px;
    align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.sd-cta .l {
    font-family: var(--font-display); font-size: 18px; font-weight: 800;
    color: #1b2a3a; line-height: 1.3;
}
.sd-cta .l em { font-style: italic; color: #095FA1; }
.sd-cta .l span {
    display: block; font-size: 13px; color: #8A6A1F;
    margin-top: 4px; font-style: italic; font-weight: 600;
}

/* Footer override — warm cream */
.sd-footer { background: #FBF5EA; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .sd-hero { padding: 32px 24px; }
    .sd-hero h1 { font-size: 44px; }
    .sd-hero .sub { font-size: 16px; }

    .sd-tabs { padding: 12px 24px; }
    .sd-tab { padding: 8px 14px; font-size: 13px; }

    .sd-body { padding: 32px 16px 24px; }
    .sd-plat { padding: 28px 22px; }
    .sd-plat-head { flex-direction: column; gap: 12px; }
    .sd-plat-head h2 { font-size: 28px; }

    .sd-step { grid-template-columns: 44px 1fr; gap: 14px; }
    .sd-step::before { left: 17px; }
    .sd-step .num { width: 36px; height: 36px; font-size: 15px; }
    .sd-step .body h3 { font-size: 18px; margin-top: 6px; }

    .sd-tips { padding: 28px 22px; border-radius: 16px; }
    .sd-tips .grid { grid-template-columns: 1fr; }

    .sd-cta { padding: 22px 24px; }
}
