.tutorial-page {
    background: #f5f7fb;
}

.tutorial-hero {
    position: relative;
    overflow: hidden;
    padding: 175px 0 105px;
    color: white;
    background:
        radial-gradient(circle at 78% 28%, rgba(244,122,50,.16), transparent 28%),
        radial-gradient(circle at 62% 14%, rgba(34,158,217,.16), transparent 26%),
        linear-gradient(135deg, var(--navy-950), #102640);
}

.tutorial-hero::after {
    position: absolute;
    right: -10%;
    bottom: -290px;
    left: -10%;
    height: 335px;
    border-radius: 50%;
    background: #f5f7fb;
    content: "";
}

.tutorial-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 54px;
}

.tutorial-hero .eyebrow {
    color: #72cef6;
}

.tutorial-hero-copy {
    max-width: 700px;
}

.home-page .tutorial-hero h1 {
    margin-bottom: 24px;
    color: white !important;
    font-size: clamp(48px, 5.6vw, 76px);
    line-height: 1.02;
}

.tutorial-hero h1 span {
    background: linear-gradient(90deg, #73d4ff, #ff9a4b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tutorial-hero-copy p {
    max-width: 620px;
    margin-bottom: 32px;
    color: #adbbcf;
    font-size: 19px;
}

.tutorial-hero-copy p a {
    color: #78d6ff;
}

.tutorial-video-card {
    width: 430px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
}

.tutorial-video-card video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #07111f;
}

.tutorial-video-card p {
    margin: 14px 8px 4px;
    color: #b6c5d9;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.tutorial-embed-card {
    width: 430px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
}

.tutorial-embed-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 16px;
    background: #07111f;
}

.tutorial-embed-card p {
    margin: 14px 8px 4px;
    color: #b6c5d9;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.tutorial-content {
    padding-top: 80px;
}

.tutorial-content .section-heading {
    max-width: 760px;
}

.tutorial-steps {
    display: grid;
    gap: 20px;
    margin-top: 35px;
}

.tutorial-step {
    display: grid;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    background: white;
    box-shadow: 0 14px 42px rgba(16,32,57,.055);
}

.tutorial-step .step-number {
    color: var(--blue-dark);
}

.home-page .tutorial-step h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.tutorial-step p {
    margin: 0;
    color: var(--muted);
}

.tutorial-step p + p {
    margin-top: 12px;
}

.premium-note {
    padding: 13px 15px;
    border: 1px solid #d7ecf8;
    border-radius: 14px;
    background: #eef9ff;
}

.inline-icon {
    width: 18px;
    vertical-align: -3px;
}

.home-page code {
    padding: 3px 7px;
    border-radius: 7px;
    color: #d7631d;
    background: #fff1e8;
}

.screenshot-step {
    grid-template-columns: 55px minmax(0, 1fr) minmax(280px, 520px);
    align-items: center;
}

.tutorial-screenshot {
    margin: 0;
}

.tutorial-screenshot img {
    display: block;
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 45px rgba(16,32,57,.08);
}

.refresh-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin: 34px 0;
    padding: 30px;
    border-radius: 22px;
    color: #c4d3e6;
    background:
        radial-gradient(circle at 100% 0, rgba(34,158,217,.2), transparent 35%),
        linear-gradient(135deg, var(--navy-900), #153c60);
}

.home-page .refresh-panel h3 {
    margin-bottom: 8px;
    color: white !important;
}

.refresh-panel p {
    margin: 0;
}

.bridge-sites {
    display: grid;
    gap: 16px;
    margin: 34px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bridge-sites a {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 14px 42px rgba(16,32,57,.055);
    text-decoration: none;
}

.bridge-sites > a > span,
.bot-link-list a {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bridge-sites > a > span {
    display: block;
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.bridge-sites strong {
    display: block;
    color: var(--navy-900);
    font-size: 18px;
}

.bridge-tutorial-steps {
    margin-top: 0;
}

.bridge-step .tutorial-screenshot img {
    max-width: 560px;
}

.bot-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bot-link-list a {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #e8f7fd;
    text-decoration: none;
}

.bridge-result-panel {
    margin-top: 34px;
}

.bridge-guide-link {
    margin-top: 18px;
}

.bridge-example-list {
    display: grid;
    gap: 20px;
}

.bridge-example-card .bridge-example {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.bridge-example-card h3 {
    margin-bottom: 14px;
}

.bridge-example-card .bridge-example-title-row {
    margin-bottom: 14px;
}

.bridge-example-card .bridge-example-title-row h3 {
    margin: 0;
}

.tips-hero-card {
    width: 430px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 26px;
    color: #b6c5d9;
    background: rgba(255,255,255,.08);
    box-shadow: 0 30px 70px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
}

.tips-hero-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--orange), #ff9a4b);
    font-size: 26px;
}

.home-page .tips-hero-card h2 {
    margin-bottom: 12px;
    color: white !important;
    font-size: 28px;
}

.tips-hero-card p {
    margin: 0;
}

.tips-nav-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 48px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tips-nav-grid a {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 14px 42px rgba(16,32,57,.055);
    text-decoration: none;
}

.tips-nav-grid span,
.tips-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tips-nav-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.tips-nav-grid .plan-label {
    display: flex !important;
    margin-bottom: 8px;
}

.tips-nav-grid .plan-token {
    gap: 10px;
}

.tips-nav-grid .plan-token::before {
    margin-right: 3px;
}

.plan-label {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 16px;
}

.plan-token {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 16px;
}

.plan-separator {
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 16px;
    line-height: 16px;
    transform: translateY(-.5px);
}

.plan-token::before {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    line-height: 1;
}

.plan-premium::before {
    background: linear-gradient(135deg, #f6a63a, #f47a32);
    content: "★";
}

.plan-elite::before {
    background: linear-gradient(135deg, #7567f8, #229ed9);
    content: "◆";
}

.tips-nav-grid strong {
    display: block;
    color: var(--navy-900);
    font-size: 16px;
}

.custom-bot-warning {
    margin-bottom: 26px;
}

.custom-bot-warning strong {
    color: #e5484d;
}

.tips-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 14px 42px rgba(16,32,57,.055);
}

.tips-card + .tips-card {
    margin-top: 28px;
}

.tips-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.home-page .tips-card h2 {
    margin-bottom: 0;
    font-size: 32px;
}

.home-page .tips-card h3 {
    margin: 28px 0 14px;
    font-size: 22px;
}

.tips-card p,
.tips-card li {
    color: var(--muted);
}

.tips-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
    padding-left: 22px;
}

.tips-callout,
.tips-code-block,
.tips-command-box {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.tips-callout {
    color: var(--muted);
}

.tips-callout strong {
    color: var(--navy-900);
}

.tips-code-block {
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--navy-900);
}

.tips-card .tips-code-block code {
    display: block;
    white-space: pre-wrap;
}

.after-image-grid {
    margin-top: 28px;
}

.tips-command-box {
    display: grid;
    gap: 6px;
}

.tips-command-box span {
    color: var(--muted);
}

.tips-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f5d85;
    background: #e4f5ff;
}

.tips-steps {
    display: grid;
    gap: 10px;
    margin: 20px 0 24px;
    padding-left: 22px;
}

.tips-long-steps {
    gap: 12px;
}

.tips-image-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tips-image-grid figure {
    margin: 0;
}

.tips-image-grid img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 16px 38px rgba(16,32,57,.08);
}

.tips-image-grid figcaption {
    margin-top: 8px;
    color: #748198;
    font-size: 13px;
    text-align: center;
}

.tips-image-small {
    max-width: 300px;
}

.tips-image-wide {
    grid-column: 1 / -1;
}

.tips-private-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tips-command-list,
.tips-example-box {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.tips-card,
.tips-command-list {
    overflow: hidden;
}

.tips-command-list code,
.tips-card code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tips-command-list p,
.tips-example-box p {
    margin: 0;
}

.tips-command-list p + p,
.tips-example-box p + p {
    margin-top: 10px;
}

.supported-list {
    display: grid;
    margin: 16px 0 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.supported-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.channel-video-grid {
    display: grid;
    margin: 24px 0 30px;
    grid-template-columns: minmax(0, 430px);
}

.channel-video-card {
    width: 100%;
    color: #748198;
    background: #f8fafc;
    border-color: var(--line);
    box-shadow: 0 16px 38px rgba(16,32,57,.08);
}

.channel-video-card p {
    color: #748198;
}

.method-grid {
    display: grid;
    gap: 20px;
    margin: 22px 0 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-card,
.topic-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f8fafc;
}

.home-page .method-card h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

.method-card .tutorial-screenshot {
    margin-top: 18px;
}

.topic-panel {
    margin: 34px 0 28px;
}

.single-screenshot {
    max-width: 720px;
    margin: 24px 0 0;
}

.single-screenshot-narrow {
    max-width: 400px;
}

.single-screenshot img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 16px 38px rgba(16,32,57,.08);
}

.single-screenshot figcaption {
    margin-top: 8px;
    color: #748198;
    font-size: 13px;
    text-align: center;
}

.centered-figure {
    margin-right: auto !important;
    margin-left: auto !important;
}

.tips-image-grid .centered-figure,
.bridge-example-grid .centered-figure {
    width: 100%;
    justify-self: center;
}

.figure-max-500 {
    max-width: 500px;
}

.figure-max-600 {
    max-width: 600px;
}

.figure-max-700 {
    max-width: 700px;
}

.antispam-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-settings-list {
    display: grid;
    gap: 28px;
}

.template-image-explanation {
    margin-top: 14px;
}

.template-image-explanation h3 {
    margin-top: 0 !important;
}

.result-section {
    display: grid;
    align-items: center;
    gap: 44px;
    margin-top: 55px;
    grid-template-columns: .9fr 1.1fr;
}

.home-page .result-section h2 {
    font-size: 40px;
}

.result-copy p {
    color: var(--muted);
    font-size: 18px;
}

.result-screenshot img {
    max-width: 620px;
}

.mastodon-result-section {
    margin-top: 70px;
}

.mastodon-feature-section,
.mastodon-extra-section {
    margin-top: 80px;
}

.mastodon-feature-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-walkthrough-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 42px rgba(16,32,57,.055);
}

.home-page .feature-walkthrough-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.feature-walkthrough-card p {
    margin-bottom: 22px;
    color: var(--muted);
}

.mastodon-compact-shot img {
    max-width: 430px;
}

.fallback-section {
    margin-top: 75px;
}

.fallback-card {
    display: grid;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    background: white;
    box-shadow: 0 14px 42px rgba(16,32,57,.055);
}

.fallback-card + .fallback-card {
    margin-top: 20px;
}

.home-page .fallback-card h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.fallback-card p {
    margin: 0;
    color: var(--muted);
}

.bridge-example {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.home-page .bridge-example h4 {
    margin: 0 0 14px;
    color: var(--navy-900) !important;
    font-size: 18px;
}

.bridge-example-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.home-page .bridge-example-title-row h4 {
    margin: 0;
}

.bridge-example-title-row > span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f5d85;
    background: #e4f5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bridge-example-premium {
    border-top-style: dashed;
}

.bridge-sites .plan-label,
.bridge-example-title-row .plan-label,
.premium-note .plan-label {
    display: inline-flex !important;
}

.bridge-sites .plan-label {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.bridge-example ol {
    margin: 0 0 18px;
    padding-left: 20px;
    color: var(--muted);
}

.bridge-example li + li {
    margin-top: 8px;
}

.bridge-example strong {
    color: var(--navy-900);
}

.bridge-example-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bridge-example-grid figure {
    margin: 0;
}

.bridge-example-grid img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 16px 38px rgba(16,32,57,.08);
}

.bridge-example-grid figcaption {
    margin-top: 8px;
    color: #748198;
    font-size: 13px;
    text-align: center;
}

.bridge-example-wide {
    grid-column: 1 / -1;
}

.search-command-examples {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-command-examples div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.search-command-examples span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
}

.search-command-examples code {
    display: inline-block;
    color: #d7631d;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.search-command-screenshot {
    margin: 0;
}

.search-command-screenshot img {
    display: block;
    width: 100%;
    max-width: 760px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 16px 38px rgba(16,32,57,.08);
}

@media (max-width: 991px) {
    .tutorial-hero {
        padding: 95px 0 105px;
    }

    .tutorial-hero .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .tutorial-video-card {
        width: 100%;
        max-width: 520px;
    }

    .tutorial-embed-card {
        width: 100%;
        max-width: 520px;
    }

    .screenshot-step {
        grid-template-columns: 55px 1fr;
    }

    .screenshot-step .tutorial-screenshot {
        grid-column: 2;
    }

    .result-section {
        grid-template-columns: 1fr;
    }

    .bridge-sites {
        grid-template-columns: 1fr;
    }

    .mastodon-feature-grid {
        grid-template-columns: 1fr;
    }

    .tips-hero-card {
        width: 100%;
        max-width: 520px;
    }

    .tips-nav-grid,
    .tips-private-grid,
    .supported-list,
    .method-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .tutorial-hero {
        padding: 70px 0 90px;
    }

    .home-page .tutorial-hero h1 {
        font-size: 42px;
    }

    .tutorial-hero-copy p {
        font-size: 17px;
    }

    .tutorial-step,
    .screenshot-step {
        display: block;
        padding: 24px;
    }

    .tutorial-step .step-number {
        display: block;
        margin-bottom: 12px;
    }

    .tutorial-screenshot {
        margin-top: 22px;
    }

    .refresh-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .fallback-card {
        display: block;
        padding: 24px;
    }

    .fallback-card .step-number {
        display: block;
        margin-bottom: 12px;
    }

    .home-page .result-section h2 {
        font-size: 32px;
    }

    .bridge-example-grid {
        grid-template-columns: 1fr;
    }

    .bridge-example-wide {
        grid-column: auto;
    }

    .bridge-example-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-command-examples {
        grid-template-columns: 1fr;
    }

    .search-command-examples code {
        white-space: normal;
    }

    .tips-nav-grid,
    .tips-image-grid,
    .tips-private-grid,
    .supported-list,
    .method-grid {
        grid-template-columns: 1fr;
    }

    .tips-card {
        padding: 24px;
    }

    .tips-card-header {
        flex-direction: column;
    }

    .home-page .tips-card h2 {
        font-size: 28px;
    }

    .tips-image-wide {
        grid-column: auto;
    }
}
