/* Landing page sections and the theme/AI pages (2026-11-13).
 * landing.css keeps the base, the header, the hero feed and the community panel.
 * Colors and sizes come from the tokens in landing.css (:root). */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.slot {
    background: #23262b;
    color: #ffffff;
    border-radius: 4px;
    padding: 0 5px;
    font-family: var(--font-sans);
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ---------- Hero additions ---------- */
.hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

.hero .eyebrow-sub {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-phrase {
    display: inline-block;
}

html[lang="en"] .hero-phrase {
    display: inline;
}

.hero-search {
    max-width: 640px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
    border-color: #bdbdbd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 1rem;
    padding: 10px;
    background: transparent;
    color: var(--text-main);
}

.hero-search input::placeholder {
    color: #8f8f8f;
}

.hero-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.hero-search .btn {
    padding: 11px 18px;
    border-radius: 10px;
}

.hero-search .btn svg {
    width: 16px;
    height: 16px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 30px;
    max-width: 760px;
}

.hero-chips span {
    align-self: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-chips a {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #333333;
    font-size: 0.82rem;
    font-weight: 500;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-chips a:hover {
    border-color: var(--text-main);
    transform: translateY(-1px);
}

.hero-updated {
    white-space: nowrap;
}

/* ---------- Numbers under the feed ---------- */
.stats-strip {
    max-width: var(--container-width);
    margin: 56px auto 0;
    padding: 0 24px;
}

.stats-strip ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
}

.stats-strip li {
    display: grid;
    gap: 2px;
    align-content: start;
    min-width: 0;
    padding: 18px 20px;
    border-left: 1px solid var(--border-color);
}

.stats-strip li:first-child {
    border-left: 0;
}

.stats-strip b {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stats-strip span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Sections ---------- */
.lp-section {
    padding: clamp(64px, 10vw, 112px) 0;
}

.lp-section + .lp-section {
    padding-top: 0;
}

.lp-head {
    display: grid;
    gap: 12px;
    max-width: 640px;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.lp-head .eyebrow {
    margin-bottom: 0;
}

.lp-head h2,
.lp-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    white-space: pre-line;
    word-break: auto-phrase;
}

.lp-head p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.lp-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.lp-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 24px;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.lp-head-row .lp-head {
    margin-bottom: 0;
}

.lp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.lp-more:hover {
    border-color: var(--text-main);
}

.lp-more svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ---------- Themes ---------- */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.theme-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 10px 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.theme-tile:hover {
    transform: translateY(-3px);
    border-color: #dcdcdc;
    box-shadow: var(--shadow-lg);
}

.theme-collage {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-color);
}

.theme-collage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #eeeeee;
}

.theme-collage img:first-child {
    grid-row: 1 / 3;
}

.theme-collage img:only-child {
    grid-column: 1 / 3;
}

.theme-body {
    display: grid;
    gap: 4px;
    padding: 0 6px;
}

.theme-name {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.theme-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.theme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 6px 6px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.theme-open {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* ---------- AI services ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.service-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--text-main);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}

.service-count {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.service-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.service-thumbs img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    background: #eeeeee;
}

.service-desc {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-card .lp-more {
    align-self: flex-start;
}

/* ---------- Example: photo → result + prompt ---------- */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.pair,
.same-pair {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) 28px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.pair figure,
.same-pair figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.pair figure img,
.same-pair figure img {
    display: block;
    width: 100%;
    height: auto;
    background: #eeeeee;
}

.pair figcaption,
.same-pair figcaption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.figure-label {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pair-arrow {
    display: grid;
    place-items: center;
    color: #bbbbbb;
}

.pair-arrow svg {
    width: 24px;
    height: 24px;
}

.pair-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pair-note a {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prompt-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.prompt-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.prompt-head-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.prompt-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.prompt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prompt-meta span {
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: #555555;
    font-size: 0.72rem;
    font-weight: 600;
}

.prompt-body {
    position: relative;
    padding: 18px;
    font-size: 0.92rem;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.prompt-body.is-clamped {
    max-height: 300px;
    overflow: hidden;
}

.prompt-body.is-clamped::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

.prompt-body.is-clamped.is-open {
    max-height: none;
}

.prompt-body.is-clamped.is-open::after {
    display: none;
}

.prompt-toggle {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    border-top: 1px dashed var(--border-color);
    background: #ffffff;
    color: var(--accent-color);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.prompt-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
}

.prompt-foot .btn {
    padding: 10px 16px;
    font-size: 0.88rem;
}

.btn-dark {
    background: var(--text-main);
    color: #ffffff;
    border: 1px solid var(--text-main);
}

.btn-dark:hover {
    background: #2b2b2b;
}

.copy-state {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

.same-prompt {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid var(--border-color);
}

.same-prompt h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.same-prompt > p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.same-pair {
    grid-template-columns: minmax(0, 0.9fr) 20px minmax(0, 1fr);
    gap: 10px;
}

.same-pair figure {
    box-shadow: none;
    border-radius: 10px;
}

.same-pair .pair-arrow svg {
    width: 18px;
    height: 18px;
}

/* ---------- How it works ---------- */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
}

.step-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.step h3 {
    font-size: 1.1rem;
}

.step p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.step .slot {
    font-size: 0.82rem;
}

.slot-demo {
    margin-top: auto;
    padding: 12px 14px;
    border: 1px dashed #d6d6d6;
    border-radius: 10px;
    background: #ffffff;
}

.step .slot-demo-label {
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.step .slot-demo-text {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #333333;
    overflow-wrap: anywhere;
}

.slot-demo-text .slot {
    font-size: 0.78rem;
}

.slot-demo a {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* ---------- Tips ---------- */
.tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.tip > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #eeeeee;
}

.tip-k {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.tip h3 {
    font-size: 1.08rem;
}

.tip p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.tip-quote {
    margin: 0;
    padding: 10px 14px;
    border-left: 2px solid var(--text-main);
    border-radius: 0 8px 8px 0;
    background: var(--surface-color);
}

.tip-quote blockquote p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #333333;
}

.tip-quote figcaption {
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.tip-link {
    font-size: 0.86rem;
    font-weight: 600;
}

.tip-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- FAQ and CTA ---------- */
.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    padding: 0;
}

.faq-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

.lp-cta {
    text-align: center;
}

.lp-cta h2 {
    margin-bottom: 16px;
}

.lp-cta-body {
    margin-bottom: 36px;
    font-size: 1.1rem;
    color: var(--text-muted);
    white-space: pre-line;
}

.lp-cta .hero-note:empty {
    display: none;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.footer-heading {
    margin-bottom: 12px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-col a {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #333333;
}

.footer-col a:hover {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-about {
    max-width: 320px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.footer-langs a {
    font-weight: 500;
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #767676;
}

/* ---------- Theme / AI pages ---------- */
.hub-main {
    padding: 28px 0 clamp(56px, 9vw, 96px);
}

.hub-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hub-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: #b0b0b0;
}

.hub-breadcrumb a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.hub-head {
    max-width: 760px;
    margin: clamp(28px, 5vw, 44px) 0 clamp(28px, 4vw, 40px);
}

.hub-head h1 {
    font-size: clamp(28px, 4.4vw, 44px);
    margin-bottom: 16px;
    text-wrap: balance;
    word-break: auto-phrase;
}

.hub-intro {
    font-size: 1.02rem;
    color: var(--text-muted);
    text-wrap: pretty;
}

.hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hub-meta span:first-child {
    font-weight: 600;
    color: var(--text-main);
}

.hub-missing .btn {
    margin-top: 20px;
}

.hub-tips {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 56px);
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
}

.hub-tips h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.hub-tips ol {
    display: grid;
    gap: 10px;
    padding-left: 1.3em;
    font-size: 0.93rem;
    color: #333333;
}

.hub-tips strong {
    color: var(--text-main);
}

.hub-list-title {
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hub-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.hub-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 100%;
    overflow: hidden;
    background: #efefef;
}

.hub-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-card-body {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 14px 14px 16px;
}

.hub-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.hub-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.page-link {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

a.page-link:hover {
    border-color: var(--text-main);
}

.page-link.is-current {
    border-color: var(--text-main);
    background: var(--text-main);
    color: #ffffff;
}

.page-gap {
    color: var(--text-muted);
}

.hub-related {
    margin-top: clamp(48px, 7vw, 72px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid var(--border-color);
}

.hub-related h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.hub-related h2 + .hub-chips + h2 {
    margin-top: 24px;
}

.hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.hub-chips a:hover {
    border-color: var(--text-main);
}

.hub-chips span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.hub-cta {
    margin-top: clamp(48px, 7vw, 72px);
    padding: clamp(28px, 5vw, 44px);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    text-align: center;
}

.hub-cta h2 {
    margin-bottom: 10px;
    font-size: clamp(22px, 3vw, 28px);
}

.hub-cta p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: var(--text-muted);
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .showcase {
        grid-template-columns: 1fr;
    }

    .stats-strip ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-strip li:nth-child(3) {
        border-left: 0;
    }

    .stats-strip li:nth-child(n+3) {
        border-top: 1px solid var(--border-color);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 820px) {
    .service-grid,
    .steps,
    .tips,
    .same-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-search {
        padding-left: 12px;
    }

    .hero-search-label {
        display: none;
    }

    .hero-search .btn {
        padding: 10px 12px;
    }

    .stats-strip {
        margin-top: 44px;
        padding: 0 16px;
    }

    .theme-desc {
        display: none;
    }

    .theme-name {
        font-size: 0.95rem;
    }

    .pair {
        grid-template-columns: minmax(0, 0.8fr) 20px minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hub-card-body {
        padding: 10px 10px 12px;
        gap: 8px;
    }

    .hub-card-title {
        font-size: 0.86rem;
    }

    .hub-tips {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .header-actions .btn-sm {
        padding: 8px 12px;
    }

    .hero .eyebrow-sub {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-tile,
    .hub-card,
    .hero-chips a {
        transition: none;
    }
}
