/* =====================================================
   Docs / Tutorial Page Styles
   ===================================================== */

:root {
    --docs-header-offset: calc(64px + env(safe-area-inset-top, 0px));
    --docs-tabs-height: 52px;
}

/* ----- Docs Hero ----- */
.docs-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #0a0a0a;
    padding-top: var(--docs-header-offset);
}

.docs-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(16,185,129,0.3) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,82,217,0.2) 0%, transparent 60%),
        linear-gradient(135deg, #0a0a0a 0%, #111827 100%);
    animation: docsHeroBgShift 14s ease-in-out infinite alternate;
}

@keyframes docsHeroBgShift {
    0%   { opacity: 1; }
    100% { opacity: 0.85; }
}

.docs-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.docs-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 820px;
    margin: 0 auto;
}

.docs-hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.docs-hero-title {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.docs-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 36px;
}

.docs-platform-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.docs-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.docs-platform-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.docs-platform-btn i { font-size: 16px; }

/* ----- Info Bar ----- */
.docs-info-bar {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 20px;
}

.docs-info-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 0;
}

.docs-info-item {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 24px;
}

.docs-info-item i { color: #34d399; font-size: 13px; }

.docs-info-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.15);
}

/* ----- Sticky Platform Tabs ----- */
.docs-tabs-wrap {
    position: sticky;
    top: var(--docs-header-offset);
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.docs-tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.docs-tabs-inner::-webkit-scrollbar { display: none; }

.docs-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 22px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: inherit;
}

.docs-tab:hover {
    color: #111827;
    border-bottom-color: #d1d5db;
}

.docs-tab.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
    font-weight: 600;
}

.docs-tab i { font-size: 15px; }

/* ----- Tutorial Sections ----- */
.tutorial-section {
    background: #f9fafb;
    padding: 60px 0 80px;
    display: none;
    scroll-margin-top: calc(var(--docs-header-offset) + var(--docs-tabs-height));
}

.tutorial-section.active {
    display: block;
}

.tutorial-section-alt {
    background: #fff;
}

.tutorial-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Section Header ----- */
.tutorial-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tut-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.tut-icon-windows { background: linear-gradient(135deg, #0078d4, #00b4d8); }
.tut-icon-macos   { background: linear-gradient(135deg, #555, #1c1c1e); }
.tut-icon-android { background: linear-gradient(135deg, #3ddc84, #00a86b); }
.tut-icon-ios     { background: linear-gradient(135deg, #007aff, #5ac8fa); }
.tut-icon-linux   { background: linear-gradient(135deg, #e95420, #dd4814); }

.tutorial-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.tutorial-section-header p {
    font-size: 14px;
    color: #6b7280;
}

/* ----- Client Selector Tabs (within section) ----- */
.client-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.client-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.client-tab-btn:hover {
    border-color: #9ca3af;
    color: #374151;
}

.client-tab-btn.active {
    background: #0052d9;
    border-color: #0052d9;
    color: #fff;
}

.client-tab-btn .tab-badge {
    font-size: 10px;
    background: rgba(255,255,255,0.25);
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.client-tab-btn:not(.active) .tab-badge {
    background: #f3f4f6;
    color: #6b7280;
}

/* ----- Client Tutorial Content ----- */
.client-tutorial {
    display: none;
}

.client-tutorial.active {
    display: block;
}

/* ----- Tutorial Steps ----- */
.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.step-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fafafa;
    border-bottom: 1px solid #f3f4f6;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-number.step-num-blue  { background: #0052d9; }
.step-number.step-num-green { background: #059669; }
.step-number.step-num-ios   { background: #007aff; }
.step-number.step-num-linux { background: #e95420; }

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.step-title-icon {
    font-size: 14px;
    color: #9ca3af;
}

.step-card-body {
    padding: 20px 24px;
}

.step-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
}

.step-desc:last-child { margin-bottom: 0; }

/* ----- Step Download Button ----- */
.step-download-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.btn-step-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0052d9;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-step-dl:hover {
    background: #0047c2;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,82,217,0.35);
    color: #fff;
}

.btn-step-dl-sec {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-step-dl-sec:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* ----- Tip / Warning / Info Boxes ----- */
.tip-box,
.warn-box,
.info-box,
.success-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.65;
}

.tip-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.tip-box i { color: #22c55e; font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.tip-box span,
.warn-box span,
.info-box span,
.success-box span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
}

.warn-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
}

.warn-box i { color: #f59e0b; font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.info-box i { color: #3b82f6; font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.success-box {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.success-box i { color: #10b981; font-size: 15px; margin-top: 1px; flex-shrink: 0; }

/* ----- Inline Code ----- */
.step-card-body code {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #f3f4f6;
    color: #be185d;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    word-break: normal;
    vertical-align: baseline;
}

/* ----- Terminal Block (reused from download) ----- */
.tut-terminal {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    font-family: 'Courier New', 'Consolas', monospace;
}

.tut-terminal-header {
    background: #2a2a3d;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tut-terminal-dots {
    display: flex;
    gap: 6px;
}

.tut-t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tut-t-dot-red    { background: #ff5f57; }
.tut-t-dot-yellow { background: #febc2e; }
.tut-t-dot-green  { background: #28c840; }

.tut-terminal-title {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-family: inherit;
    margin-left: 4px;
}

.tut-terminal-body {
    padding: 18px 22px;
}

.tut-t-line {
    font-size: 13.5px;
    line-height: 1.9;
    color: #cdd6f4;
}

.tut-t-prompt  { color: #89dceb; margin-right: 6px; }
.tut-t-cmd     { color: #a6e3a1; }
.tut-t-comment { color: #6c7086; font-style: italic; }
.tut-t-output  { color: #bac2de; padding-left: 14px; }
.tut-t-active  { color: #a6e3a1; }

/* ----- Ordered Substep List ----- */
.substep-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
    padding: 0;
}

/*
 * Block layout — do NOT use flex on <li>: mixed text/strong/code/icon
 * would each become flex items and break mid-sentence on narrow screens.
 */
.substep-list li {
    position: relative;
    display: block;
    padding-left: 34px;
    font-size: 14px;
    color: #374151;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
}

.substep-list li::before {
    content: attr(data-num);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.substep-list li strong {
    font-weight: 600;
    color: #111827;
}

.substep-list li code {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #f3f4f6;
    color: #be185d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    word-break: normal;
}

.substep-list li i {
    display: inline;
    vertical-align: -0.1em;
}

/* ----- Screenshot Hint (placeholder) ----- */
.screenshot-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

.screenshot-hint i { color: #d1d5db; font-size: 18px; }

/* ----- Mode Comparison Table ----- */
.mode-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.mode-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.mode-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    word-break: break-word;
}

.mode-table td {
    padding: 12px 16px;
    color: #4b5563;
    border-top: 1px solid #f3f4f6;
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}

.mode-table tr:hover td { background: #fafafa; }

.td-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.td-badge-rec { background: #d1fae5; color: #065f46; }
.td-badge-adv { background: #dbeafe; color: #1e40af; }

/* ----- Feature Chips (reused style) ----- */
.tut-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.tut-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #374151;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.tut-chip i { color: #10b981; font-size: 10px; }

/* ----- iOS Apple ID Section ----- */
.ios-appleid-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-top: 8px;
}

.ios-appleid-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ios-appleid-section h3 i { color: #6b7280; }

.ios-appleid-intro {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.65;
}

.ios-appleid-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ios-appleid-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ios-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-step-content { flex: 1; }

.ios-step-content > strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
}

.ios-step-content p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.ios-step-content p strong {
    display: inline;
    font-weight: 600;
    color: #374151;
}

.ios-step-content a { color: #0052d9; text-decoration: underline; }

/* ----- App Store Buttons ----- */
.btn-appstore-tut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-right: 10px;
    margin-top: 8px;
}

.btn-appstore-tut:hover {
    background: #1c1c1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    color: #fff;
}

.btn-appstore-tut i { font-size: 17px; }

/* ----- iOS App Cards (in tutorial) ----- */
.ios-app-cards-tut {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.ios-app-card-tut {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s;
}

.ios-app-card-tut:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.ios-app-icon-tut {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

.ios-icon-tut-blue   { background: linear-gradient(135deg, #007aff, #5ac8fa); }
.ios-icon-tut-orange { background: linear-gradient(135deg, #ff9f0a, #ff6b00); }
.ios-icon-tut-purple { background: linear-gradient(135deg, #af52de, #5e5ce6); }

.ios-app-name-tut {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.ios-app-desc-tut {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.ios-app-price-tut {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ios-app-price-tut i { color: #f59e0b; }

/* ----- CTA Link to Download Page ----- */
.cta-link-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 32px;
}

.cta-link-bar-text {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.5;
}

.cta-link-bar-text strong { display: block; font-size: 15px; margin-bottom: 2px; }

.btn-cta-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #0052d9;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.btn-cta-dl:hover {
    background: #0047c2;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,82,217,0.3);
}

/* ----- FAQ Section ----- */
.docs-faq-section {
    background: #111827;
    padding: 80px 0;
}

.docs-faq-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.docs-faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.docs-faq-sub {
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 50px;
}

.docs-faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-faq-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.docs-faq-item[open] { border-color: rgba(0,82,217,0.5); }

.docs-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #f9fafb;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}

.docs-faq-q::-webkit-details-marker { display: none; }
.docs-faq-q::marker { display: none; }
.docs-faq-q:hover { background: rgba(255,255,255,0.04); }
.docs-faq-q span { flex: 1; }

.docs-faq-chevron {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.docs-faq-item[open] .docs-faq-chevron {
    transform: rotate(180deg);
    color: #60a5fa;
}

.docs-faq-a {
    padding: 0 22px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.docs-faq-a p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    padding-top: 14px;
}

.docs-faq-a code {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.1);
    color: #a5f3fc;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
}

/* ----- Download CTA Section ----- */
.docs-dl-cta {
    background: #f9fafb;
    padding: 70px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.docs-dl-cta-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.docs-dl-cta-sub {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

.docs-dl-cta-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    background: #0052d9;
    color: #fff;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-primary:hover {
    background: #0047c2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,82,217,0.35);
    color: #fff;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    color: #111827;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1024px) {
    .ios-app-cards-tut {
        grid-template-columns: repeat(2, 1fr);
    }

    .ios-appleid-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-hero-title { font-size: 34px; }
    .docs-hero-desc  { font-size: 15px; }

    .docs-platform-nav { gap: 8px; }
    .docs-platform-btn { padding: 7px 14px; font-size: 13px; }

    .docs-info-bar-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .docs-info-divider { display: none; }

    .docs-tabs-inner { padding: 0 16px; }

    .docs-tab {
        padding: 12px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .docs-tab i { font-size: 14px; }

    .tutorial-section { padding: 40px 0 60px; }

    .tutorial-section-header { gap: 14px; margin-bottom: 28px; }
    .tutorial-section-header h2 { font-size: 22px; }

    .ios-app-cards-tut { grid-template-columns: 1fr; }

    .cta-link-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ios-appleid-section { padding: 20px; }

    .docs-faq-title { font-size: 24px; }

    .docs-dl-cta-title { font-size: 24px; }
    .docs-dl-cta-btns { flex-direction: column; align-items: center; }

    .mode-table { font-size: 12px; }
    .mode-table th, .mode-table td { padding: 8px 12px; }
}

@media (max-width: 480px) {
    .docs-hero-title { font-size: 28px; }
    .tutorial-container { padding: 0 16px; }
    .step-card-body { padding: 16px 18px; }
    .step-card-header { padding: 16px 18px; gap: 12px; }
    .substep-list li {
        padding-left: 32px;
        font-size: 13px;
        line-height: 1.8;
    }
    .substep-list li::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    .client-selector { gap: 6px; }
    .client-tab-btn { padding: 7px 14px; font-size: 12px; }
}
