/* ==========================================================================
   ZYDENO KINETIC THEME — Master Stylesheet v2.1.1
   ========================================================================== */

/* ========== 1. Design Tokens & Theme Modes ========== */
:root {
    --acc: #BEF264;
    --acc-text: #1A2E05;
    --acc-glow: rgba(190, 242, 100, 0.35);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Archivo', 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    --container: 1280px;
    --header-h: calc(70px + env(safe-area-inset-top, 0px));

    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="dark"], :root:not([data-theme]) {
    --bg: #000000;
    --bg-alt: #0A0A0A;
    --bg-card: #0C0C0C;
    --bg-elev: #141414;
    --bg-hover: #1A1A1A;

    --border: #1A1A1A;
    --border-str: #262626;
    --border-em: #3F3F46;

    --text: #F5F5F5;
    --text-sec: #E4E4E7;
    --text-mut: #A3A3A3;
    --text-dim: #737373;
    --text-off: #525252;

    --cursor: #FFFFFF;
}

:root[data-theme="light"] {
    --bg: #FAFAFA;
    --bg-alt: #F4F4F5;
    --bg-card: #FFFFFF;
    --bg-elev: #FFFFFF;
    --bg-hover: #F0F0F0;

    --border: #E4E4E7;
    --border-str: #D4D4D8;
    --border-em: #A1A1AA;

    --text: #0A0A0A;
    --text-sec: #27272A;
    --text-mut: #52525B;
    --text-dim: #71717A;
    --text-off: #A1A1AA;

    --cursor: #0A0A0A;

    /* Re-tune the accent glow for white backgrounds. The default lime glow
       rgba(190,242,100,0.35) almost disappears on #FAFAFA — kills the
       premium feel of every box-shadow and radial-gradient that depends on
       it (~15 components across hero, app pages, buttons, CTA). The olive
       version below at a slightly higher alpha actually paints on white. */
    --acc-glow: rgba(77, 124, 15, 0.22);
    --acc-readable: #4D7C0F;
}

/* ========== 2. Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100vw;
}

body.zyd-body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
    position: relative;
}

/* iOS-safe body scroll lock (applied by JS when mobile menu is open) */
body.zyd-scroll-locked {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    /* Balanced wrapping for all headings — modern browsers redistribute words
       to give each line a similar length, killing orphans and awkward breaks.
       Safe to declare globally: ignored where unsupported, never harmful. */
    text-wrap: balance;
    overflow-wrap: break-word;
}
p { color: var(--text-sec); line-height: 1.6; text-wrap: pretty; }

::selection { background: var(--acc); color: var(--acc-text); }

/* ========== 3. Skip Link ========== */
.zyd-skip { position: absolute; left: -9999px; top: 0; z-index: 9999; }
.zyd-skip:focus {
    position: fixed; top: 12px; left: 12px; padding: 10px 18px;
    background: var(--acc); color: var(--acc-text);
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
}

/* ========== 4. Container ========== */
.zyd-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 36px; }

/* ========== 5. Intro Loader ========== */
.zyd-intro {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.zyd-intro.zyd-intro-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.zyd-intro-z { width: 140px; height: 140px; color: var(--text); }
.zyd-intro-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: zydIntroDraw 1s var(--ease-out) 0.2s forwards, zydIntroFill 0.5s var(--ease) 1.3s forwards;
}
@keyframes zydIntroDraw { to { stroke-dashoffset: 0; } }
@keyframes zydIntroFill { to { stroke: var(--acc); filter: drop-shadow(0 0 30px var(--acc-glow)); } }

/* ========== 6. Custom Cursor ========== */
.zyd-cursor { position: fixed; pointer-events: none; z-index: 9998; mix-blend-mode: difference; opacity: 0; transition: opacity 0.2s; }
.zyd-cursor.zyd-cursor-active { opacity: 1; }
.zyd-cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1.5px solid var(--cursor);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease);
}
.zyd-cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px;
    background: var(--cursor);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.zyd-cursor.zyd-cursor-hover .zyd-cursor-ring { width: 56px; height: 56px; }
.zyd-cursor.zyd-cursor-link .zyd-cursor-ring { width: 64px; height: 64px; border-color: var(--acc); background: var(--acc); border-radius: 50%; mix-blend-mode: normal; }
.zyd-cursor.zyd-cursor-link .zyd-cursor-dot { background: var(--acc-text); }

body.zyd-has-cursor { cursor: none; }
body.zyd-has-cursor a, body.zyd-has-cursor button, body.zyd-has-cursor input, body.zyd-has-cursor [role="button"] { cursor: none; }

/* ========== 7. Scroll Progress ========== */
.zyd-progress {
    position: fixed; top: 0; left: 0;
    width: 0%; height: 2px;
    background: var(--acc);
    z-index: 200;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--acc-glow);
}

/* ========== 8. Header ========== */
.zyd-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    background: transparent;
    transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}
.zyd-header.is-scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    padding: 12px 0;
    border-bottom-color: var(--border);
}
:root[data-theme="light"] .zyd-header.is-scrolled {
    background: rgba(250, 250, 250, 0.85);
}

.zyd-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.zyd-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s;
}
.zyd-logo:hover { opacity: 0.8; }
.zyd-logo-mark {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}
.zyd-logo-mark svg { width: 30px; height: 30px; display: block; }
.zyd-logo:hover .zyd-logo-mark svg { transform: rotate(-8deg); transition: transform 0.4s var(--spring); }
.zyd-logo-text { display: inline-flex; align-items: baseline; gap: 1px; }
.zyd-logo-suffix { color: var(--acc); font-weight: 700; }
.zyd-logo-custom .custom-logo { max-height: 40px; width: auto; }
.zyd-logo-custom .custom-logo-link { display: inline-flex; align-items: center; }

/* Page transition overlay */
.zyd-page-transition {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9997;
    transform: translateY(100%);
    pointer-events: none;
    will-change: transform;
}
.zyd-page-transition.zyd-page-transition-in {
    transform: translateY(0);
    transition: transform 0.45s var(--ease);
}
.zyd-page-transition.zyd-page-transition-out {
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
}

.zyd-nav-menu {
    display: flex; gap: 26px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.zyd-nav-menu a { color: var(--text-mut); position: relative; padding: 6px 0; transition: color 0.2s; }
.zyd-nav-menu a:hover, .zyd-nav-menu .current-menu-item a, .zyd-nav-menu .current_page_item a { color: var(--text); }
.zyd-nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--acc);
    transition: width 0.3s var(--ease);
}
.zyd-nav-menu a:hover::after,
.zyd-nav-menu .current-menu-item a::after,
.zyd-nav-menu .current_page_item a::after { width: 100%; }

.zyd-header-actions { display: flex; align-items: center; gap: 12px; }

/* ========== 9. Language Dropdown ========== */
.zyd-lang {
    position: relative;
    isolation: isolate;
    z-index: 50;
}
.zyd-lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border-str);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s var(--ease);
}
.zyd-lang-btn:hover { border-color: var(--border-em); background: var(--bg-elev); }
.zyd-lang-btn svg { transition: transform 0.3s var(--ease); }
.zyd-lang.zyd-lang-open .zyd-lang-btn svg { transform: rotate(-180deg); }
.zyd-lang.zyd-lang-open .zyd-lang-btn { border-color: var(--acc); color: var(--acc); }

.zyd-lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.3);
    z-index: 999;
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
:root[data-theme="dark"] .zyd-lang-menu, :root:not([data-theme]) .zyd-lang-menu { background: rgba(12, 12, 12, 0.97); }
:root[data-theme="light"] .zyd-lang-menu { background: rgba(255, 255, 255, 0.97); }
.zyd-lang.zyd-lang-open .zyd-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.zyd-lang-list { display: flex; flex-direction: column; }
.zyd-lang-list li { display: block; }
.zyd-lang-list a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.zyd-lang-list a:hover { background: var(--bg-hover); color: var(--acc); }
.zyd-lang-list a.current-lang { color: var(--acc); }

.zyd-flag { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; display: inline-block; position: relative; }
/* Union Jack — proper SVG (CSS-painted gradient can't draw the diagonals). */
.zyd-flag-en { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='t'><path d='M30,15 h30 v15 z v-15 h-30 z h-30 v15 z v-15 h30 z'/></clipPath><path d='M0,0v30h60V0z' fill='%23012169'/><path d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/><path d='M0,0L60,30M60,0L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/><path d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/></svg>"); }
.zyd-flag-en::before { content: none; }
.zyd-flag-ru { background: linear-gradient(to bottom, #FFFFFF 33%, #0039A6 33%, #0039A6 66%, #D52B1E 66%); }
.zyd-flag-bg { background: linear-gradient(to bottom, #FFFFFF 33%, #00966E 33%, #00966E 66%, #D62612 66%); }

.zyd-lang-name { flex: 1; }
.zyd-lang-short { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

/* TranslatePress shortcode integration */
.zyd-lang-trp .trp-language-switcher,
.zyd-lang-trp .trp-ls-shortcode-language,
.zyd-lang-trp .trp-language-switcher-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.zyd-lang-trp a {
    display: flex !important; align-items: center !important; gap: 10px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
}
.zyd-lang-trp a:hover { background: var(--bg-hover) !important; }

/* ========== 10. Theme Toggle ========== */
.zyd-theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-str);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.zyd-theme-toggle:hover { border-color: var(--acc); color: var(--acc); transform: rotate(20deg); }
.zyd-theme-toggle svg { position: absolute; transition: opacity 0.3s, transform 0.3s var(--ease); }
:root[data-theme="dark"] .zyd-ico-sun, :root:not([data-theme]) .zyd-ico-sun { opacity: 1; }
:root[data-theme="dark"] .zyd-ico-moon, :root:not([data-theme]) .zyd-ico-moon { opacity: 0; transform: rotate(-90deg); }
:root[data-theme="light"] .zyd-ico-sun { opacity: 0; transform: rotate(90deg); }
:root[data-theme="light"] .zyd-ico-moon { opacity: 1; }

/* ========== 11. Mobile Menu Toggle ========== */
.zyd-menu-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-str);
    position: relative;
    padding: 0;
    transition: border-color 0.2s;
}
.zyd-menu-toggle:hover { border-color: var(--acc); }
.zyd-menu-toggle span {
    display: block; position: absolute;
    left: 10px; right: 10px; height: 1.5px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.zyd-menu-toggle span:nth-child(1) { top: 14px; }
.zyd-menu-toggle span:nth-child(2) { top: 22px; }
.zyd-menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.zyd-menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

/* ========== 12. Mobile Menu (fullscreen) ========== */
.zyd-mobile-menu {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 99;
    /* Bottom padding includes iOS safe-area so the last block isn't tucked
       behind Safari's URL bar. */
    padding: calc(var(--header-h) + 40px) 36px calc(60px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    clip-path: circle(0% at calc(100% - 50px) 50px);
    transition: clip-path 0.6s var(--ease);
}
.zyd-mobile-menu[hidden] { display: none; }
.zyd-mobile-menu.zyd-mobile-menu-open { clip-path: circle(200% at calc(100% - 50px) 50px); display: block !important; }

.zyd-mobile-menu-list {
    display: flex; flex-direction: column;
    margin-bottom: 48px;
    border-top: 0.5px solid var(--border);
}
.zyd-mobile-menu-list li { border-bottom: 0.5px solid var(--border); opacity: 0; transform: translateX(30px); }
.zyd-mobile-menu-open .zyd-mobile-menu-list li { animation: zydMenuItemIn 0.5s var(--ease) forwards; }
.zyd-mobile-menu-open .zyd-mobile-menu-list li:nth-child(1) { animation-delay: 0.1s; }
.zyd-mobile-menu-open .zyd-mobile-menu-list li:nth-child(2) { animation-delay: 0.18s; }
.zyd-mobile-menu-open .zyd-mobile-menu-list li:nth-child(3) { animation-delay: 0.26s; }
.zyd-mobile-menu-open .zyd-mobile-menu-list li:nth-child(4) { animation-delay: 0.34s; }
.zyd-mobile-menu-open .zyd-mobile-menu-list li:nth-child(5) { animation-delay: 0.42s; }
.zyd-mobile-menu-open .zyd-mobile-menu-list li:nth-child(n+6) { animation-delay: 0.5s; }

@keyframes zydMenuItemIn { to { opacity: 1; transform: translateX(0); } }

.zyd-mobile-menu-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0;
    font-family: var(--font-display);
    font-size: 38px; font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    transition: color 0.2s, transform 0.2s;
}
.zyd-mobile-menu-list a:hover { color: var(--acc); transform: translateX(8px); }
.zyd-mobile-menu-list a::after { content: '→'; font-size: 22px; color: var(--text-dim); transition: color 0.2s, transform 0.2s; }
.zyd-mobile-menu-list a:hover::after { color: var(--acc); transform: translateX(4px); }

.zyd-mobile-lang { padding-top: 24px; border-top: 0.5px solid var(--border); margin-bottom: 36px; }
.zyd-mobile-lang-label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    color: var(--text-dim); text-transform: uppercase; margin-bottom: 14px; display: block;
}
.zyd-mobile-lang .zyd-lang-list { gap: 4px; }
.zyd-mobile-lang .zyd-lang-list a { padding: 12px 0; font-size: 16px; }

/* ========== 13. Hero ========== */
.zyd-hero {
    padding: calc(var(--header-h) + 80px) 0 56px;
    position: relative;
    overflow: hidden;
}
.zyd-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.55;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}
.zyd-hero > .zyd-container { position: relative; z-index: 1; }
:root[data-theme="light"] .zyd-hero::after { opacity: 0.35; mix-blend-mode: multiply; }

.zyd-hero-pre {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 28px;
}
.zyd-hero-pre-line { width: 42px; height: 1px; background: var(--acc); display: inline-block; }

.zyd-hero-headline {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(60px, 10.2vw, 150px);
    line-height: 0.86;
    letter-spacing: -0.055em;
    margin: 0 0 44px;
    color: var(--text);
    /* Each kinetic line lives in its own block-level span, so wrapping only
       happens within a single word like "SOFTWARE". break-word splits only when
       the word truly doesn't fit — never mid-character on a happy path. */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}
.zyd-hero-line {
    display: block;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    will-change: transform, opacity;
}
.zyd-hero-line-1 { transform: translateX(-3px) translateY(60px); }
.zyd-hero-line-2 { transform: translateX(44px) translateY(60px); }
.zyd-hero-line-3 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.zyd-hero-line.zyd-anim-done { opacity: 1; }
.zyd-hero-line-1.zyd-anim-done { transform: translateX(-3px) translateY(0); }
.zyd-hero-line-2.zyd-anim-done { transform: translateX(44px) translateY(0); }
.zyd-hero-line-3.zyd-anim-done { transform: translateY(0); }

.zyd-hero-prefix { display: inline-block; }

.zyd-hero-box {
    display: inline-block;
    background: var(--acc); color: var(--acc-text);
    padding: 2px 14px 8px;
    transform: skewX(-6deg) translateY(60px) scale(0.9);
    letter-spacing: -0.04em;
    opacity: 0;
    box-shadow: 0 0 50px var(--acc-glow);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--spring);
    will-change: transform, opacity;
}
.zyd-hero-box.zyd-anim-done {
    opacity: 1;
    transform: skewX(-6deg) translateY(0) scale(1);
}
.zyd-hero-box-i { display: inline-block; transform: skewX(6deg); }

.zyd-hero-sub-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    max-width: 1080px;
}
.zyd-hero-sub {
    font-size: 16.5px;
    color: var(--text-sec);
    max-width: 480px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    margin: 0;
}
.zyd-hero-ctas { display: flex; gap: 10px; flex-shrink: 0; }

.zyd-btn {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.zyd-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
}
.zyd-btn:hover::before { transform: translateX(100%); }
.zyd-btn-primary { background: var(--acc); color: var(--acc-text); box-shadow: 0 8px 24px -10px var(--acc-glow); }
.zyd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px var(--acc-glow); }
.zyd-btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px -4px var(--acc-glow); }
.zyd-btn-ghost { background: transparent; color: var(--text); border-color: var(--border-em); }
.zyd-btn-ghost:hover { border-color: var(--acc); color: var(--acc); transform: none; background: rgba(190,242,100,0.05); }
.zyd-btn-ghost:active { transform: translateY(0); }

/* ========== 14. Marquee ========== */
.zyd-marquee {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid var(--border-str);
    border-bottom: 1px solid var(--border-str);
    margin-bottom: 56px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.zyd-marquee-track {
    display: flex; gap: 32px; align-items: center;
    animation: zydMarquee 50s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.zyd-marquee:hover .zyd-marquee-track { animation-play-state: paused; }
/* Mobile: half-speed scroll = half the per-second repaint cost, easier on
   battery and feels less hectic on small screens. */
@media (max-width: 600px) {
    .zyd-marquee-track { animation-duration: 90s; }
}
/* Honor user's "save data / reduce motion-cost" preference where supported. */
@media (prefers-reduced-data: reduce) {
    .zyd-marquee-track { animation: none !important; }
}
.zyd-marquee-item {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.025em;
    color: var(--text);
}
.zyd-marquee-sep { color: var(--acc); font-size: 16px; }
@keyframes zydMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-25%); } }

/* ========== 15. Section Base ========== */
.zyd-section { padding: 80px 0; position: relative; }
.zyd-section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 36px; gap: 20px; flex-wrap: wrap;
}
.zyd-section-head h2 {
    font-family: var(--font-display);
    font-weight: 900; font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.04em;
    margin: 0;
}
.zyd-section-meta {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.14em;
    color: var(--text-dim); text-transform: uppercase;
}

/* ========== 16. Principles ========== */
.zyd-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.zyd-principle {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
    position: relative; overflow: hidden;
}
.zyd-principle::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(190, 242, 100, 0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.zyd-principle:hover { transform: translateY(-4px); border-color: var(--border-em); }
.zyd-principle:hover::before { opacity: 1; }
.zyd-principle-num {
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.14em;
    color: var(--acc);
    display: block; margin-bottom: 20px;
    font-weight: 500;
}
.zyd-principle-title {
    font-family: var(--font-display);
    font-weight: 900; font-size: 26px;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.zyd-principle-text {
    font-size: 14.5px; line-height: 1.6;
    color: var(--text-sec);
}

/* ========== 17. Works (Variation A cards) ========== */
.zyd-works-section { padding-bottom: 64px; }
.zyd-works-placeholder {
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-md);
    text-align: center;
}
.zyd-works-placeholder-tag {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    color: var(--acc); text-transform: uppercase; margin-bottom: 16px;
}
.zyd-works-placeholder h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 32px; letter-spacing: -0.03em;
    margin-bottom: 10px;
}
.zyd-works-placeholder p { color: var(--text-mut); max-width: 400px; margin: 0 auto; }

/* Plugin cards override (Bold Vertical) — if plugin outputs .zyd-apps-grid */
.zyd-apps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin: 0;
}
.zyd-app-card {
    padding: 22px 20px 20px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    position: relative;
    text-align: center;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.zyd-app-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--border-em) !important;
}
.zyd-app-icon {
    width: 78px !important; height: 78px !important;
    border-radius: 18px !important;
    margin: 14px auto 16px !important;
    transform: rotate(-3deg);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 14px 32px -10px rgba(0,0,0,0.7);
}
.zyd-app-card:hover .zyd-app-icon { transform: rotate(0deg); }
.zyd-app-icon-letter { font-size: 42px !important; font-weight: 900; letter-spacing: -0.02em; font-family: var(--font-display); }
.zyd-app-name {
    font-family: var(--font-display) !important;
    font-weight: 900 !important; font-size: 28px !important;
    letter-spacing: -0.025em !important;
    line-height: 1.05 !important;
    margin: 0 0 10px !important;
    color: var(--text) !important;
    text-align: center;
    /* Reserve a 2-line height so names of different lengths don't make
       neighboring cards look uneven — without this, "BBH: Break Bad Habits"
       (2 lines) makes its column taller than "Wandry: Trip Planner" (1 line)
       and the shorter card grows a phantom gap between desc and buttons. */
    min-height: calc(28px * 1.05 * 2);
    display: flex; align-items: flex-end; justify-content: center;
}
/* Description on home cards — natural height, tight margin. Buttons sit
   right under it via the flex layout below. */
.zyd-app-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: var(--text-mut) !important;
    text-align: center;
    margin: 0 12px 16px !important;
}
/* If the plugin emits the description container but it's empty (the editor
   left it blank), hide it entirely. */
.zyd-app-desc:empty { display: none !important; }
.zyd-app-buttons { display: flex !important; gap: 8px !important; margin-top: auto !important; }
/* Home-card store buttons — slightly heavier presence than /works/ list:
   taller hit area, stronger hover (lime border + glow), inline SVG icon
   injected by JS so the brand icons match the App Store / Google Play
   look used on the single-app page CTA. */
.zyd-store-btn {
    flex: 1; padding: 14px 12px !important;
    background: var(--bg-elev) !important;
    border: 1px solid var(--border-em) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    font-size: 13px !important; font-weight: 700 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    gap: 8px !important;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
    white-space: nowrap;
}
.zyd-store-btn svg { flex-shrink: 0; }
.zyd-store-btn:hover {
    border-color: var(--acc) !important;
    color: var(--acc) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -10px var(--acc-glow);
}
:root[data-theme="light"] .zyd-store-btn:hover {
    color: var(--acc-readable, var(--acc)) !important;
    border-color: var(--acc-readable, var(--acc)) !important;
}

/* Whole-card clickable overlay — injected by JS for every plugin-rendered card.
   Overlay sits ON TOP of inert content (icon, name, tag) so clicks anywhere
   navigate to the app page. Store buttons are explicitly lifted ABOVE the
   overlay so they keep their own destinations. */
.zyd-app-card { position: relative; }
.zyd-app-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
    /* keep transparent — purely a click surface */
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
}
.zyd-app-card .zyd-app-buttons,
.zyd-app-card .zyd-store-btn,
.zyd-app-card a:not(.zyd-app-card-link),
.zyd-app-card button {
    position: relative;
    z-index: 2;
}
/* Subtle hover feedback on the icon when hovering the card */
.zyd-app-card:has(.zyd-app-card-link:hover) .zyd-app-icon { transform: rotate(0deg); }

/* Strip any decorative pseudo-elements the plugin attaches to status tags
   (the small lime corner ticks some users found visually noisy). Safe no-op
   if the plugin doesn't use them. */
.zyd-app-tag-featured::before,
.zyd-app-tag-featured::after,
.zyd-app-tag-coming_soon::before,
.zyd-app-tag-coming_soon::after,
.zyd-app-tag-deprecated::before,
.zyd-app-tag-deprecated::after { display: none !important; }
/* Disabled store buttons are HIDDEN entirely — user opted to only show
   real download buttons. Status (Featured / Coming soon) is already
   communicated by the corner tag, so a greyed-out "Soon" pill next to a
   real "App Store" button looks redundant. */
.zyd-store-btn.zyd-store-btn-off { display: none !important; }

/* Fallback: if BOTH store buttons are off (the app has neither URL yet),
   show a single "Coming soon" pill spanning the row instead of an empty
   gap. Uses :has() — widely supported in 2026. */
.zyd-app-buttons:not(:has(.zyd-store-btn:not(.zyd-store-btn-off)))::before {
    content: '— COMING SOON —';
    flex: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--acc);
    text-align: center;
    padding: 14px 12px;
    border: 1px solid var(--acc);
    border-radius: var(--radius-sm);
    opacity: 0.7;
}
:root[data-theme="light"] .zyd-app-buttons:not(:has(.zyd-store-btn:not(.zyd-store-btn-off)))::before {
    color: var(--acc-readable, var(--acc));
    border-color: var(--acc-readable, var(--acc));
}

/* ========== 17b. Single App Page (App-Store-style) ========== */
.zyd-app-page { display: block; }

/* --- Breadcrumb --- */
.zyd-app-breadcrumb {
    position: relative; z-index: 1;
    margin-bottom: 28px;
}
.zyd-app-breadcrumb ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mut);
}
.zyd-app-breadcrumb a {
    color: var(--text-mut);
    transition: color 0.2s var(--ease);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.zyd-app-breadcrumb a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.zyd-app-breadcrumb [aria-current="page"] {
    color: var(--text);
    max-width: 280px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zyd-app-breadcrumb-sep { color: var(--text-off); font-family: var(--font-display); font-size: 14px; }
:root[data-theme="light"] .zyd-app-breadcrumb a:hover {
    color: var(--acc-readable, var(--acc));
    border-bottom-color: var(--acc-readable, var(--acc));
}
@media (max-width: 600px) {
    .zyd-app-breadcrumb { margin-bottom: 16px; font-size: 10.5px; }
    .zyd-app-breadcrumb ol { gap: 6px; }
    .zyd-app-breadcrumb [aria-current="page"] { max-width: 60vw; }
}

/* --- Hero --- */
.zyd-app-hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 0;
    overflow: hidden;
}
.zyd-app-hero::before {
    content: '';
    position: absolute;
    top: -10%; left: 50%;
    width: 900px; height: 700px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--acc-glow) 0%, transparent 60%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.zyd-app-hero-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 44px;
    align-items: center;
}
.zyd-app-hero-icon-wrap { display: flex; justify-content: center; }
.zyd-app-hero-icon {
    width: 200px; height: 200px;
    border-radius: 44px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow:
        0 30px 70px -20px rgba(0,0,0,0.7),
        0 0 0 1px var(--border) inset;
    transform: rotate(-3deg);
    transition: transform 0.5s var(--ease);
    position: relative;
    /* Subtle floating breath when idle. Pause on hover (the rotate-to-0
       transition takes over). reduced-motion users get static icon. */
    animation: zyd-icon-float 4.5s ease-in-out infinite;
}
@keyframes zyd-icon-float {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(-3deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .zyd-app-hero-icon { animation: none; }
}
/* Soft accent halo behind the icon — gives the hero a "premium" lift. The
   ::before is positioned underneath via z-index, so it doesn't get clipped
   by the icon's overflow:hidden. */
.zyd-app-hero-icon-wrap { position: relative; }
.zyd-app-hero-icon-wrap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 280px; height: 280px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--acc-glow) 0%, transparent 65%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    animation: zyd-icon-halo 5s ease-in-out infinite;
}
@keyframes zyd-icon-halo {
    0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.65; transform: translate(-50%, -50%) scale(1.08); }
}
.zyd-app-hero-icon-wrap > * { position: relative; z-index: 1; }
:root[data-theme="light"] .zyd-app-hero-icon-wrap::before { opacity: 0.22; }
.zyd-app-hero-icon::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%, transparent 60%, rgba(0,0,0,0.18));
    pointer-events: none;
}
.zyd-app-hero-icon:hover {
    animation-play-state: paused;
    transform: rotate(0deg) scale(1.02);
}
.zyd-app-hero-icon:hover ~ * { /* no-op anchor for cascade order */ }
.zyd-app-hero-icon-wrap:hover::before { animation-play-state: paused; }
.zyd-app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.zyd-app-hero-icon.zyd-app-hero-icon-letter {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900;
    font-size: 100px; color: var(--acc);
    letter-spacing: -0.03em;
}

.zyd-app-hero-text { min-width: 0; }
.zyd-app-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 6.5vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 14px 0 18px;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    text-wrap: balance;
}
.zyd-app-hero-tagline {
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.35;
    color: var(--text-sec);
    max-width: 720px;
    margin-bottom: 22px;
    font-weight: 400;
}
.zyd-app-hero-promo {
    display: inline-flex;
    align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 12.5px; letter-spacing: 0.05em;
    color: var(--text-mut);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    max-width: 100%;
}
.zyd-app-hero-promo-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 12px var(--acc-glow);
    flex-shrink: 0;
    animation: zyd-app-pulse 2s var(--ease) infinite;
}
@keyframes zyd-app-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

.zyd-app-hero-cta {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 8px;
}

/* --- Store badges --- */
.zyd-app-badge {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 12px 22px 12px 18px;
    border-radius: var(--radius-md);
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    text-decoration: none;
    min-height: 60px;
    line-height: 1;
}
.zyd-app-badge:hover {
    transform: translateY(-2px);
    background: var(--acc);
    color: var(--acc-text);
    border-color: var(--acc);
}
.zyd-app-badge svg { flex-shrink: 0; }
.zyd-app-badge-stack {
    display: inline-flex; flex-direction: column;
    gap: 3px;
    text-align: left;
}
.zyd-app-badge-pre {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}
.zyd-app-badge-store {
    font-family: var(--font-display);
    font-size: 19px; font-weight: 900;
    letter-spacing: -0.02em;
}
.zyd-app-badge-play svg path { transition: fill 0.25s var(--ease); }
@media (hover: hover) { .zyd-app-badge-play:hover svg path { fill: currentColor !important; } }
.zyd-app-badge-soon {
    background: transparent;
    color: var(--text-mut);
    border: 1px solid var(--border-str);
    cursor: default;
}
.zyd-app-badge-soon:hover { transform: none; background: transparent; color: var(--text-mut); border-color: var(--border-str); }

/* App hero marquee — pulled up in z-stack so text reads crisply against the
   fade overlay, with the section-divider borders dropped (they fought with
   the smooth green→bg transition by drawing a hard horizontal line). */
.zyd-app-hero-marquee {
    margin-top: 24px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
    border-top: 0;
    border-bottom: 0;
}

/* --- Screenshots --- */
.zyd-app-shots-section { padding: 28px 0 56px; position: relative; }
.zyd-app-shots-rail-wrap {
    position: relative;
    margin-top: 40px;
}
.zyd-app-shots-rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6vw;
    padding: 30px 0 36px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.zyd-app-shots-rail::-webkit-scrollbar { display: none; }
.zyd-app-shots-rail:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 8px; }
/* Active drag state — set by JS while the user holds and drags */
.zyd-app-shots-rail.zyd-dragging { cursor: grabbing; scroll-behavior: auto; }
.zyd-app-shots-rail.zyd-dragging .zyd-app-shot-frame { transition: none; }
.zyd-app-shots-rail.zyd-dragging img { pointer-events: none; }
/* Touch devices have native scroll — no need for a grab cursor */
@media (hover: none) {
    .zyd-app-shots-rail { cursor: auto; }
}
.zyd-app-shots-pad { flex: 0 0 6vw; }

.zyd-app-shot {
    flex: 0 0 auto;
    scroll-snap-align: center;
    margin: 0;
    align-self: stretch;
}
/* No fake phone frame — your screenshots already have their own.
   Just a clean rounded card with a soft drop shadow + a hairline edge so
   the image reads as a distinct object on both dark and light themes. */
.zyd-app-shot-frame {
    position: relative;
    width: clamp(220px, 26vw, 320px);
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow:
        0 0 0 1px var(--border) inset,
        0 22px 50px -18px rgba(0, 0, 0, 0.45),
        0 6px 16px -10px rgba(0, 0, 0, 0.3);
    /* transform only: animating a 50px-blur shadow repaints the whole card
       every frame, which is what stuttered while the rail was moving */
    transition: transform 0.45s var(--ease);
}
.zyd-app-shot:hover .zyd-app-shot-frame {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px var(--border-em) inset,
        0 30px 60px -16px rgba(0, 0, 0, 0.55),
        0 8px 20px -10px rgba(0, 0, 0, 0.35);
}
.zyd-app-shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}
:root[data-theme="light"] .zyd-app-shot-frame {
    background: #FFFFFF;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06) inset,
        0 22px 50px -18px rgba(0, 0, 0, 0.18),
        0 6px 16px -10px rgba(0, 0, 0, 0.10);
}
:root[data-theme="light"] .zyd-app-shot:hover .zyd-app-shot-frame {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.10) inset,
        0 30px 60px -16px rgba(0, 0, 0, 0.22),
        0 8px 20px -10px rgba(0, 0, 0, 0.14);
}
.zyd-app-shots-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-em);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    z-index: 3;
    opacity: 0; pointer-events: none;
}
.zyd-app-shots-rail-wrap:hover .zyd-app-shots-nav,
.zyd-app-shots-nav:focus-visible { opacity: 1; pointer-events: auto; }
.zyd-app-shots-nav:hover { background: var(--acc); color: var(--acc-text); border-color: var(--acc); }
.zyd-app-shots-prev { left: 16px; }
.zyd-app-shots-next { right: 16px; }
@media (hover: none) {
    .zyd-app-shots-nav { display: none; }
}

/* --- App Store description section ---
   Long, prose-heavy block below the screenshots. Designed to read like a
   high-end print article — first paragraph as a bold lead, lists with the
   brand "dash" mark as bullets, hairline rules between paragraphs.
   Semantic <h2>/<p>/<ul> + itemprop="description" for SEO. */
.zyd-app-longdesc-section {
    /* Kept tight (was 56) — About sits naturally close to the hero. */
    padding: 16px 0 72px;
    position: relative;
}
/* Subtle radial wash at the top of the section, contained within its own
   bounds — restored to the original behavior. No bleed-up, no bridge. */
.zyd-app-longdesc-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1080px; height: 280px;
    background: radial-gradient(ellipse at top, var(--acc-glow) 0%, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.zyd-app-longdesc-section .zyd-container { position: relative; z-index: 1; }

.zyd-app-longdesc {
    position: relative;
    max-width: 920px;
    margin: 36px auto 0;
    padding: 44px 56px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-sec);
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    /* Echo the promo-pill language: subtle elevation + a soft accent halo
       at the top-left corner instead of a full lime dot (which would feel
       loud on a long block). */
    box-shadow:
        0 24px 48px -28px rgba(0, 0, 0, 0.6),
        0 0 0 1px transparent inset;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.zyd-app-longdesc::before {
    /* Tiny pulsing accent dot mirroring the promo pill, anchored to the
       upper-left corner of the card. Same animation, smaller scale, so the
       block reads as "live information" without shouting. */
    content: '';
    position: absolute;
    top: 22px; left: 22px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 12px var(--acc-glow);
    animation: zyd-app-pulse 2s var(--ease) infinite;
}
.zyd-app-longdesc::after {
    /* Subtle accent halo behind the card — matches the section radial wash
       but tighter, lifting the card off the page. */
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, var(--acc-glow), transparent 18%);
    opacity: 0.18;
    z-index: -1;
}
.zyd-app-longdesc:hover {
    border-color: var(--border-em);
    box-shadow:
        0 28px 56px -24px rgba(0, 0, 0, 0.7);
}
:root[data-theme="light"] .zyd-app-longdesc {
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.18);
}
:root[data-theme="light"] .zyd-app-longdesc:hover {
    box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.22);
}
:root[data-theme="light"] .zyd-app-longdesc::before {
    background: var(--acc-readable, var(--acc));
}

/* Lead paragraph — first <p> renders as the article opener.
   Top padding leaves room for the pulsing accent dot in the corner. */
.zyd-app-longdesc > p:first-of-type {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 24px;
    padding: 4px 0 24px 24px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
    .zyd-app-longdesc > p:first-of-type {
        font-size: 18px;
        padding: 2px 0 18px 18px;
        margin-bottom: 18px;
    }
}

.zyd-app-longdesc p {
    margin: 0 0 22px;
}
.zyd-app-longdesc p:last-child { margin-bottom: 0; }
.zyd-app-longdesc strong { color: var(--text); font-weight: 700; }
.zyd-app-longdesc em { color: var(--text); font-style: italic; }

/* Lists — branded dash bullet (echoes the icon mark) + tight rhythm */
.zyd-app-longdesc ul {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 2px;
}
.zyd-app-longdesc ul li {
    position: relative;
    padding: 10px 0 10px 36px;
    line-height: 1.55;
    color: var(--text-sec);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.zyd-app-longdesc ul li:last-child { border-bottom: 0; }
.zyd-app-longdesc ul li:hover { color: var(--text); }
/* Brand-mark bullet — small horizontal accent dash, lime, slightly raised */
.zyd-app-longdesc ul li::before {
    content: '';
    position: absolute;
    left: 6px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 3px;
    background: var(--acc);
    border-radius: 2px;
    transition: width 0.2s var(--ease);
}
.zyd-app-longdesc ul li:hover::before { width: 22px; }

/* Headings inside the description (if user pastes h3 or marked-up text) */
.zyd-app-longdesc h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 36px 0 14px;
}
.zyd-app-longdesc h3:first-child { margin-top: 0; }

/* Section head sits naturally — no special width constraint now that the
   description card is wide enough to feel substantial on desktop. */

:root[data-theme="light"] .zyd-app-longdesc ul li::before {
    background: var(--acc-readable, var(--acc));
}
:root[data-theme="light"] .zyd-app-longdesc-section::before {
    opacity: 0.18;
}

@media (max-width: 600px) {
    /* Tighten top padding — was 32px which left a visible "void" between the
       hero marquee and the About heading on phones. The hero already ends
       flush (padding-bottom: 0 + marquee inline), so 16px is enough. */
    .zyd-app-longdesc-section { padding: 16px 0 36px; }
    /* Section head — default margin-bottom is 36px which compounds the gap.
       Phones can read a tighter rhythm here. */
    .zyd-app-longdesc-section .zyd-section-head { margin-bottom: 18px; }
    /* Phone: use the container's natural side padding instead of stacking
       our own — the card now lines up edge-to-edge with the hero title and
       other section content on the same screen. */
    .zyd-app-longdesc {
        font-size: 16px; line-height: 1.65;
        margin-top: 14px;
        padding: 24px 20px 22px;
        border-radius: var(--radius-md);
    }
    .zyd-app-longdesc::before { top: 14px; left: 14px; width: 7px; height: 7px; }
    .zyd-app-longdesc > p:first-of-type {
        font-size: 18px;
        padding: 0 0 16px 16px;
        margin-bottom: 16px;
    }
    .zyd-app-longdesc ul li { padding: 9px 0 9px 28px; }
    .zyd-app-longdesc ul li::before { left: 4px; width: 14px; }
    .zyd-app-longdesc h3 { font-size: 19px; margin-top: 28px; }
}
/* Tighten further on the smallest phones (iPhone SE / 320–360 viewports)
   so the card padding doesn't eat the precious reading area. */
@media (max-width: 380px) {
    .zyd-app-longdesc { padding: 20px 16px 18px; }
    .zyd-app-longdesc > p:first-of-type { padding-left: 14px; }
}

/* --- About section --- */
.zyd-app-about-section { padding: 48px 0 64px; }
.zyd-app-about-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}
.zyd-app-about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.zyd-app-about-lead {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    border-left: 3px solid var(--acc);
    padding-left: 18px;
}
.zyd-app-about-body {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.7;
}
.zyd-app-about-body :where(h2,h3) {
    font-family: var(--font-display);
    margin: 32px 0 14px;
}
.zyd-app-about-body h2 { font-size: 28px; letter-spacing: -0.025em; }
.zyd-app-about-body h3 { font-size: 22px; letter-spacing: -0.02em; }
.zyd-app-about-body p { margin-bottom: 16px; color: var(--text-sec); }
.zyd-app-about-body strong { color: var(--text); }
.zyd-app-about-body ul, .zyd-app-about-body ol {
    margin: 0 0 18px 22px; color: var(--text-sec);
}
.zyd-app-about-body ul { list-style: square; }
.zyd-app-about-body ol { list-style: decimal; }
.zyd-app-about-body li { margin-bottom: 6px; }

/* --- CTA strip --- */
.zyd-app-cta-section { padding: 48px 0; }
.zyd-app-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 56px 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}
.zyd-app-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--acc-glow) 0%, transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}
.zyd-app-cta-text { position: relative; z-index: 1; max-width: 540px; }
.zyd-app-cta-tag {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.18em;
    color: var(--acc); text-transform: uppercase;
    margin-bottom: 14px;
}
.zyd-app-cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
}
.zyd-app-cta-accent {
    background: var(--acc); color: var(--acc-text);
    padding: 0 12px 4px;
    display: inline-block;
    transform: skewX(-6deg);
}
.zyd-app-cta-buttons {
    display: flex; gap: 12px; flex-wrap: wrap;
    position: relative; z-index: 1;
}

/* --- Related apps --- */
.zyd-app-more-section { padding: 32px 0 80px; }
.zyd-app-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}
.zyd-app-more-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.zyd-app-more-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--acc-glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}
.zyd-app-more-card:hover { transform: translateY(-3px); border-color: var(--border-em); }
.zyd-app-more-card:hover::before { opacity: 0.15; }
.zyd-app-more-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elev);
    flex-shrink: 0;
    transform: rotate(-2deg);
    transition: transform 0.3s var(--ease);
}
.zyd-app-more-card:hover .zyd-app-more-icon { transform: rotate(0deg); }
.zyd-app-more-icon img { width: 100%; height: 100%; object-fit: cover; }
.zyd-app-more-icon-letter {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900;
    font-size: 26px; color: var(--acc);
}
.zyd-app-more-text { min-width: 0; flex: 1; }
.zyd-app-more-name {
    font-family: var(--font-display);
    font-weight: 900; font-size: 19px;
    letter-spacing: -0.02em;
    margin: 0 0 3px;
    color: var(--text);
}
.zyd-app-more-tag {
    font-size: 13px; line-height: 1.35;
    color: var(--text-mut);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zyd-app-more-arrow {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-dim);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.zyd-app-more-card:hover .zyd-app-more-arrow {
    color: var(--acc);
    transform: translateX(4px);
}
.zyd-app-more-link {
    color: var(--acc) !important;
    transition: opacity 0.2s var(--ease);
}
.zyd-app-more-link:hover { opacity: 0.7; }

/* --- Sticky download bar (slides in after hero scrolls out of view) --- */
.zyd-app-sticky {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
    pointer-events: none;
}
.zyd-app-sticky[hidden] { display: none; }
.zyd-app-sticky.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.zyd-app-sticky-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    min-height: 52px;
}
.zyd-app-sticky-name {
    display: flex; align-items: center; gap: 12px;
    min-width: 0; flex: 1 1 auto;
}
.zyd-app-sticky-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.5);
}
.zyd-app-sticky-icon img { width: 100%; height: 100%; object-fit: cover; }
.zyd-app-sticky-title {
    font-family: var(--font-display);
    font-weight: 900; font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zyd-app-sticky-actions { display: flex; gap: 8px; flex-shrink: 0; }
.zyd-app-sticky-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700; font-size: 13px;
    letter-spacing: -0.01em;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
    white-space: nowrap;
}
.zyd-app-sticky-btn:hover {
    background: var(--acc);
    color: var(--acc-text);
    transform: none;
}
.zyd-app-sticky-btn svg { flex-shrink: 0; }
:root[data-theme="light"] .zyd-app-sticky {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
}
:root[data-theme="light"] .zyd-app-sticky-btn {
    background: #0A0A0A; color: #FFF;
}
:root[data-theme="light"] .zyd-app-sticky-btn:hover {
    background: var(--acc-readable, var(--acc));
    color: #FFF;
}
@media (max-width: 600px) {
    /* Slim sticky bar on phones — was eating ~52px of above-the-fold real
       estate. Compact padding + smaller icon + icon-only store buttons. */
    .zyd-app-sticky-inner { padding: 6px 0; min-height: 52px; gap: 12px; }
    .zyd-app-sticky-title { font-size: 13.5px; }
    .zyd-app-sticky-btn {
        flex: 0 0 44px; min-width: 0; height: 40px; padding: 0;
        justify-content: center; gap: 0; border-radius: 11px; font-size: 13px;
    }
    .zyd-app-sticky-btn svg { width: 22px; height: 22px; }
    .zyd-app-sticky-btn span { display: none; }
    .zyd-app-sticky-icon { width: 30px; height: 30px; border-radius: 7px; }
    .zyd-app-sticky-name { gap: 10px; }
}

/* --- Screenshot counter "1 / 5" badge --- */
.zyd-app-shots-counter {
    position: absolute;
    top: 12px; right: 16px;
    z-index: 4;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--bg-card) 96%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11.5px; letter-spacing: 0.08em;
    color: var(--text-mut);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.zyd-app-shots-rail-wrap:hover .zyd-app-shots-counter,
.zyd-app-shots-counter.is-active { opacity: 1; }
.zyd-app-shots-counter-current { color: var(--acc); font-weight: 700; }
.zyd-app-shots-counter-sep { color: var(--text-off); margin: 0 1px; }
:root[data-theme="light"] .zyd-app-shots-counter-current { color: var(--acc-readable, var(--acc)); }
@media (hover: none) {
    .zyd-app-shots-counter { opacity: 0.85; }
}
@media (max-width: 600px) {
    .zyd-app-shots-counter { top: 8px; right: 12px; padding: 5px 10px; font-size: 11px; }
}

/* ==========================================================================
   v2.6.9 — fixes for mobile bugs found in QA:
   1) .zyd-app-more-grid stayed 2-col on phones because the v2.5.7 tablet
      rule was added LATER in the file, beating the earlier ≤900 1-col rule
      on equal specificity. Re-assert here so source order favours mobile.
   2) Hero marquee + shots-section paddings still left a visible black band
      between the promo chip and the /Screenshots heading. Compress further.
   3) On the smallest phones, the marquee is decorative-only and just eats
      vertical space — fade it down to near-invisible there.
   ========================================================================== */
@media (max-width: 900px) {
    .zyd-app-more-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    /* Tighter than v2.6.7 — the gap user circled was still too tall */
    .zyd-app-hero { padding-bottom: 0 !important; }
    .zyd-app-hero-marquee {
        margin-top: 16px !important;
        opacity: 0.6 !important;
    }
    .zyd-app-hero-marquee.zyd-marquee { padding: 14px 0 !important; }
    .zyd-app-hero-marquee .zyd-marquee-item { font-size: 22px !important; }
    .zyd-app-shots-section { padding-top: 6px !important; padding-bottom: 24px !important; }
    .zyd-app-shots-rail-wrap { margin-top: 8px !important; }
}
@media (max-width: 480px) {
    /* Smaller phones — scale down the marquee but keep it readable; was 14px
       at 0.25 opacity, which made it a ghost. */
    .zyd-app-hero-marquee.zyd-marquee {
        padding: 12px 0 !important;
        opacity: 0.55 !important;
    }
    .zyd-app-hero-marquee .zyd-marquee-item { font-size: 18px !important; }
}

/* ==========================================================================
   v2.6.10 — DEFINITIVE mobile spacing pass.
   The previous patches addressed individual sections but the REAL problem
   was that every page template had its own oversized hero padding-top
   (60–96px above what --header-h already provides). On a 70px header that
   meant 130–166px of black space before any content rendered.
   This block forces ALL heroes — front-page, app, works, press, contact,
   FAQ, support, about, 404, generic page-content — to share a uniform,
   tight top/bottom padding on tablet (≤900) and phone (≤600). Uses
   !important to win against the existing per-template rules without
   needing to refactor each individual block.
   ========================================================================== */

/* Tablet + large phones */
@media (max-width: 900px) {
    .zyd-hero,
    .zyd-app-hero,
    .zyd-works-page-hero,
    .zyd-press,
    .zyd-contact-page,
    .zyd-contact-hero,
    .zyd-faq-hero,
    .zyd-support-hero,
    .zyd-about-hero {
        padding-top: calc(var(--header-h) + 32px) !important;
    }
    .zyd-page-content {
        padding-top: calc(var(--header-h) + 32px) !important;
    }

    /* Hero bottom paddings */
    .zyd-hero                { padding-bottom: 32px !important; }
    .zyd-app-hero            { padding-bottom: 16px !important; }
    .zyd-works-page-hero     { padding-bottom: 18px !important; }
    .zyd-press               { padding-bottom: 56px !important; }
    .zyd-contact-page        { padding-bottom: 64px !important; }
    .zyd-contact-hero        { padding-bottom: 24px !important; }
    .zyd-faq-hero            { padding-bottom: 16px !important; }
    .zyd-support-hero        { padding-bottom: 16px !important; }
    .zyd-about-hero          { padding-bottom: 28px !important; }

    /* Page-tag chip + title spacing — was up to 32px+28px = 60px gap */
    .zyd-page-tag             { margin-bottom: 14px !important; }
    .zyd-works-page-title,
    .zyd-faq-title,
    .zyd-press-title,
    .zyd-contact-title,
    .zyd-support-title,
    .zyd-about-title,
    .zyd-page-title          { margin: 8px 0 16px !important; }
    .zyd-works-page-title    { margin: 8px 0 14px !important; }

    /* First-section paddings right after each hero (tightens the "second
       gap" the user pointed at on /works/) */
    .zyd-works-page-grid-section { padding-top: 8px !important; }
    .zyd-faq-section             { padding-top: 24px !important; }
    .zyd-support-section         { padding-top: 24px !important; }
}

/* Phones — balanced spacing. Earlier passes (v2.6.10) compressed too hard
   and made pages feel cramped at the top. Goal: clear breathing room from
   the header without the old 130–166px black coridor. */
@media (max-width: 600px) {
    .zyd-hero,
    .zyd-app-hero,
    .zyd-works-page-hero,
    .zyd-press,
    .zyd-contact-page,
    .zyd-contact-hero,
    .zyd-faq-hero,
    .zyd-support-hero,
    .zyd-about-hero {
        padding-top: calc(var(--header-h) + 32px) !important;
    }
    .zyd-page-content {
        padding-top: calc(var(--header-h) + 36px) !important;
        padding-bottom: 56px !important;
    }

    .zyd-hero                { padding-bottom: 32px !important; }
    .zyd-app-hero            { padding-bottom: 4px !important; }
    .zyd-works-page-hero     { padding-bottom: 18px !important; }
    .zyd-press               { padding-bottom: 48px !important; }
    .zyd-contact-page        { padding-bottom: 56px !important; }
    .zyd-contact-hero        { padding-bottom: 24px !important; }
    .zyd-faq-hero            { padding-bottom: 16px !important; }
    .zyd-support-hero        { padding-bottom: 16px !important; }
    .zyd-about-hero          { padding-bottom: 28px !important; }

    /* Chip → title → first content cadence */
    .zyd-page-tag             { margin-bottom: 16px !important; }
    .zyd-works-page-title    { margin: 8px 0 14px !important; }
    .zyd-faq-title           { margin: 8px 0 14px !important; }
    .zyd-press-title         { margin-bottom: 18px !important; }

    .zyd-works-page-grid-section { padding-top: 8px !important; padding-bottom: 56px !important; }
    .zyd-faq-section             { padding-top: 24px !important; }
    .zyd-support-section         { padding-top: 24px !important; }

    /* Press kit section gaps — between Logos / Colors / Descriptions blocks */
    .zyd-press-head           { margin-bottom: 28px !important; }
    .zyd-press-section        { margin-bottom: 36px !important; }

    /* Press logos: drop to 1-col on phones — at 2-col each card was too
       narrow to show wordmark + description comfortably. Full-width per
       logo lets the brand mark breathe. */
    .zyd-press-logos          { grid-template-columns: 1fr !important; }
    .zyd-press-colors         { grid-template-columns: repeat(2, 1fr) !important; }

    /* Same CSS-cascade bug as more-grid: the v2.5.7 tablet rule (added
       LATER in the file) forces 2 columns on contact + support cards
       even at ≤600px. !important here re-asserts 1-col on phones. */
    .zyd-contact-cards        { grid-template-columns: 1fr !important; }
    .zyd-support-cards        { grid-template-columns: 1fr !important; }
}

/* Tiny phones — slightly tighter than 600px breakpoint */
@media (max-width: 420px) {
    .zyd-hero,
    .zyd-app-hero,
    .zyd-works-page-hero,
    .zyd-press,
    .zyd-contact-page,
    .zyd-contact-hero,
    .zyd-faq-hero,
    .zyd-support-hero,
    .zyd-about-hero,
    .zyd-page-content {
        padding-top: calc(var(--header-h) + 24px) !important;
    }
}

/* ==========================================================================
   v2.6.12 — Final mobile polish from cross-page audit. Targets specific
   readability/usability issues found on real phones (320–600px).
   ========================================================================== */
@media (max-width: 600px) {
    /* Principles cards (front page) — were uneven heights with 1-col layout
       creating a ragged rhythm. Soft min-height aligns them visually. */
    .zyd-principle { min-height: 180px; }

    /* Press kit colors — at 2-col with odd count (e.g. 5 colors), the last
       card sits orphaned on the right. Stack to 1-col on phones for a
       cleaner column rhythm with full-width swatches. */
    .zyd-press-colors { grid-template-columns: 1fr !important; }

    /* Screenshot counter "1 / 5" — was almost invisible at 11px. Bump
       slightly so it's actually readable on a moving carousel. */
    .zyd-app-shots-counter {
        top: 10px; right: 14px;
        padding: 6px 12px;
        font-size: 12px;
    }
    .zyd-app-shots-counter-current { font-weight: 800; }

    /* Contact "huge email" — guarantee it never overflows.
       inline-flex with break-word for any future long email. */
    .zyd-contact-email-huge {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        word-break: break-word;
    }
}

@media (max-width: 380px) {
    /* iPhone SE territory — extra tightening for the worst offenders. */

    /* Contact cards padding too thick at 28x22 → text wraps to 3 lines on
       title. Reduce to give content more horizontal room. */
    .zyd-contact-card { padding: 22px 18px; }
    .zyd-contact-card h3 { font-size: 21px; line-height: 1.15; }

    /* Support cards too — same family. */
    .zyd-support-card { padding: 22px 18px; }
    .zyd-support-card h3 { font-size: 21px; line-height: 1.15; }

    /* Works card store buttons get cramped at 320px. Stack vertically so
       each button has full card width. */
    .zyd-works-page-card-stores { flex-direction: column; }
    .zyd-works-page-card-store { width: 100%; }

    /* Long-description card padding tightened further */
    .zyd-app-longdesc { padding: 18px 14px 16px; }

    /* Huge email — drop slightly more so it fits comfortably */
    .zyd-contact-email-huge {
        font-size: clamp(22px, 7.5vw, 32px);
    }
    .zyd-contact-email-huge-arrow {
        width: 22px; height: 22px;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .zyd-app-hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 0; }
    .zyd-app-hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }
    .zyd-app-hero-icon { width: 120px; height: 120px; border-radius: 28px; }
    .zyd-app-hero-icon.zyd-app-hero-icon-letter { font-size: 60px; }
    .zyd-app-hero-title { margin: 6px 0 10px; }
    .zyd-app-hero-tagline { margin-bottom: 14px; }
    .zyd-app-hero-promo { margin-left: auto; margin-right: auto; margin-bottom: 18px; }
    .zyd-app-hero-cta { justify-content: center; }
    .zyd-app-hero-marquee { margin-top: 28px; }

    /* Section paddings — desktop values are too generous on phones and create
       big black voids between blocks. Compress everything. */
    .zyd-app-shots-section  { padding: 32px 0 40px; }
    .zyd-app-about-section  { padding: 32px 0 40px; }
    .zyd-app-cta-section    { padding: 24px 0 32px; }
    .zyd-app-more-section   { padding: 24px 0 64px; }

    .zyd-app-shots-rail-wrap { margin-top: 18px; }
    .zyd-app-shots-rail      { padding: 14px 0 16px; }

    .zyd-app-about-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
    .zyd-app-about-aside { position: static; }

    .zyd-app-cta { padding: 28px 22px; flex-direction: column; align-items: flex-start; gap: 24px; }
    .zyd-app-cta-buttons { width: 100%; }

    .zyd-app-more-grid { grid-template-columns: 1fr; margin-top: 18px; }
}
@media (max-width: 600px) {
    /* Goal: icon → title → tagline → buttons all fit above the fold on a
       ~700-800px-tall phone viewport. Tightened sizing + spacing accordingly. */
    .zyd-app-hero { padding-top: calc(var(--header-h) + 18px); padding-bottom: 8px; }
    .zyd-app-hero-grid { gap: 12px; }
    .zyd-app-hero-icon { width: 96px; height: 96px; border-radius: 24px; }
    .zyd-app-hero-icon.zyd-app-hero-icon-letter { font-size: 48px; }
    .zyd-app-hero-title { font-size: clamp(34px, 9vw, 48px); margin: 4px 0 8px; }
    .zyd-app-hero-tagline { font-size: 15px; margin-bottom: 10px; }
    /* On phones, move the promo chip out of the hero (where it crowds the
       icon → title → tagline → buttons stack) down to the gap between the
       store buttons and the marquee. Same content, less above-the-fold
       noise. The hero-text becomes a flex column so we can use `order`. */
    .zyd-app-hero-text { display: flex; flex-direction: column; }
    .zyd-app-hero-title   { order: 1; }
    .zyd-app-hero-tagline { order: 2; }
    .zyd-app-hero-cta     { order: 3; }
    .zyd-app-hero-promo   {
        order: 4;
        margin: 14px auto 0;
        padding: 8px 14px;
        font-size: 11.5px;
    }
    /* Gap between promo and marquee text — was 18px, looked oversized on
       phones where the hero already feels short. Tightened. */
    .zyd-app-hero-marquee { margin-top: 6px; }
    /* Marquee internal padding scales down on mobile too */
    .zyd-app-hero-marquee.zyd-marquee { padding: 12px 0; }
    .zyd-app-badge { padding: 10px 16px 10px 14px; min-height: 56px; gap: 10px; }
    .zyd-app-badge svg { width: 24px; height: 24px; }
    .zyd-app-badge-store { font-size: 17px; }

    .zyd-app-shots-section  { padding: 12px 0 28px; }
    .zyd-app-about-section  { padding: 20px 0 28px; }
    .zyd-app-cta-section    { padding: 16px 0 20px; }
    .zyd-app-more-section   { padding: 16px 0 48px; }

    .zyd-app-shot-frame { width: 78vw; }
    .zyd-app-shots-pad { flex-basis: 11vw; }
    .zyd-app-shots-rail { gap: 16px; padding: 12px 0 14px; }

    /* Tighter section heads on mobile */
    .zyd-section-head { margin-bottom: 4px; }
}
@media (max-width: 420px) {
    /* Smallest phones — squeeze a bit more, but still legible. */
    .zyd-app-hero-icon { width: 84px; height: 84px; border-radius: 22px; }
    .zyd-app-hero-title { font-size: clamp(30px, 8.5vw, 42px); }
    .zyd-app-hero-tagline { font-size: 14.5px; }
    .zyd-app-hero-cta { gap: 8px; flex-direction: column; }
    .zyd-app-hero-cta .zyd-app-badge { width: 100%; justify-content: center; }
}

/* --- Light theme tweaks --- */
:root[data-theme="light"] .zyd-app-badge {
    background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A;
}
:root[data-theme="light"] .zyd-app-badge:hover {
    background: var(--acc-readable, var(--acc));
    color: #FFFFFF;
    border-color: var(--acc-readable, var(--acc));
}
:root[data-theme="light"] .zyd-app-shot-frame {
    background: #1a1a1a;
}
:root[data-theme="light"] .zyd-app-cta-tag {
    color: var(--acc-readable, var(--acc)) !important;
}
:root[data-theme="light"] .zyd-app-more-link {
    color: var(--acc-readable, var(--acc)) !important;
}
:root[data-theme="light"] .zyd-app-more-icon-letter {
    color: var(--acc-readable, var(--acc));
}
:root[data-theme="light"] .zyd-app-hero-icon-letter {
    color: var(--acc-readable, var(--acc));
}

/* ========== 17c. Works (All Apps) page ========== */
.zyd-works-page-hero {
    padding: calc(var(--header-h) + 96px) 0 30px;
}
.zyd-works-page-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 16px 0 28px;
    text-wrap: balance;
}
.zyd-works-page-lead {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-sec);
}
.zyd-works-page-grid-section { padding: 24px 0 80px; }
.zyd-works-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.zyd-works-page-card {
    display: flex; flex-direction: column;
    padding: 28px 24px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative; overflow: hidden;
    min-height: 240px;
}
/* Stretched-link overlay — sits ABOVE non-interactive content (icon, name,
   tagline, arrow) so clicks anywhere on the card go to the app page. Store
   buttons are explicitly lifted to z-index: 2 so they keep their own links. */
.zyd-works-page-card-link {
    position: absolute; inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
}
.zyd-works-page-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, var(--acc-glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}
.zyd-works-page-card:hover { transform: translateY(-4px); border-color: var(--border-em); }
.zyd-works-page-card:hover::before { opacity: 0.18; }
.zyd-works-page-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 22px;
}
.zyd-works-page-card-icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-elev);
    transform: rotate(-3deg);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 14px 32px -10px rgba(0,0,0,0.6);
}
.zyd-works-page-card:hover .zyd-works-page-card-icon { transform: rotate(0deg); }
.zyd-works-page-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.zyd-works-page-card-icon-letter {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900;
    font-size: 36px; color: var(--acc);
}
.zyd-works-page-card-arrow {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-dim);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.zyd-works-page-card:hover .zyd-works-page-card-arrow {
    color: var(--acc);
    transform: translate(4px, -4px);
}
.zyd-works-page-card-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 12px;
    text-wrap: balance;
}
.zyd-works-page-card-tag {
    font-size: 14px; line-height: 1.45;
    color: var(--text-mut);
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Store buttons — sit above the stretched-link overlay (z-index 2) so they
   keep their own destinations when clicked. */
.zyd-works-page-card-stores {
    margin-top: auto;
    display: flex; gap: 6px; flex-wrap: wrap;
    position: relative; z-index: 2;
}
.zyd-works-page-card-store {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border-em);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px; font-weight: 600;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
}
.zyd-works-page-card-store:hover {
    border-color: var(--acc);
    color: var(--acc);
    transform: none;
}
.zyd-works-page-card-store svg { flex-shrink: 0; }
.zyd-works-page-card-store-soon {
    flex: 1; cursor: default;
    color: var(--text-mut);
    border-style: solid;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.16em;
    text-transform: uppercase;
}
.zyd-works-page-card-store-soon:hover { transform: none; color: var(--text-mut); border-color: var(--border-str); }
:root[data-theme="light"] .zyd-works-page-card-store:hover {
    color: var(--acc-readable, var(--acc));
    border-color: var(--acc-readable, var(--acc));
}
@media (max-width: 900px) {
    .zyd-works-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .zyd-works-page-grid { grid-template-columns: 1fr; }
    .zyd-works-page-hero { padding-top: calc(var(--header-h) + 56px); }
}
:root[data-theme="light"] .zyd-works-page-card-icon-letter { color: var(--acc-readable, var(--acc)); }
:root[data-theme="light"] .zyd-works-page-card-platform-soon {
    color: var(--acc-readable, var(--acc));
    border-color: var(--acc-readable, var(--acc));
}

/* ========== 18. Contact CTA ========== */
.zyd-contact-cta { padding: 96px 0; text-align: center; position: relative; }
.zyd-contact-cta::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 700px; height: 400px; transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(190, 242, 100, 0.1) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}
.zyd-cta-inner { position: relative; z-index: 1; }
.zyd-cta-tag {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    color: var(--acc); text-transform: uppercase; margin-bottom: 24px;
}
.zyd-cta-title {
    font-family: var(--font-display);
    font-weight: 900; font-size: clamp(40px, 6vw, 80px);
    letter-spacing: -0.035em; line-height: 1.02;
    margin-bottom: 40px;
    text-wrap: balance;
}
.zyd-cta-accent {
    background: var(--acc); color: var(--acc-text);
    padding: 2px 14px 6px; display: inline-block;
    transform: skewX(-6deg);
    font-style: normal;
}
.zyd-cta-email {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-display);
    font-weight: 900; font-size: clamp(24px, 4vw, 48px);
    letter-spacing: -0.03em;
    color: var(--text);
    border-bottom: 2px solid var(--border-em);
    padding: 6px 2px 10px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.zyd-cta-email:hover { color: var(--acc); border-bottom-color: var(--acc); }
.zyd-cta-email svg { transition: transform 0.3s var(--ease); }
.zyd-cta-email:hover svg { transform: translate(6px, -6px); }

/* ========== 19. Footer ========== */
.zyd-footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.zyd-legal-notice {
    padding-block: 12px;
    color: var(--text-sec);
    font-size: 13px;
    line-height: 1.6;
}
.zyd-legal-notice p { margin: 0; }
.zyd-legal-notice a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.zyd-legal-notice a:hover { color: var(--text); }
.zyd-footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.zyd-footer-logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.08em;
    color: var(--text); margin-bottom: 20px;
}
.zyd-footer-tagline {
    color: var(--text-mut); max-width: 320px;
    font-size: 13.5px; line-height: 1.6;
    margin-bottom: 20px;
}
.zyd-footer-email {
    display: inline-block;
    font-family: var(--font-display); font-weight: 900; font-size: 18px;
    color: var(--text); letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border-em);
    padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.zyd-footer-email:hover { color: var(--acc); border-bottom-color: var(--acc); }
.zyd-footer-col .zyd-footer-h {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-dim); letter-spacing: 0.18em;
    margin-bottom: 20px; text-transform: uppercase;
    font-weight: 500;
}
.zyd-footer-menu { display: flex; flex-direction: column; gap: 10px; }
.zyd-footer-menu a {
    color: var(--text-sec); font-size: 14px;
    transition: color 0.2s; display: inline-flex; align-items: center; gap: 5px;
}
.zyd-footer-menu a:hover { color: var(--acc); }
.zyd-footer-hint { color: var(--text-dim); font-size: 12px; }
.zyd-ext-arrow { display: inline-block; font-size: 10px; opacity: 0.6; transition: transform 0.2s, opacity 0.2s; }
.zyd-footer-menu a:hover .zyd-ext-arrow { opacity: 1; transform: translate(2px, -2px); }

.zyd-footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-dim);
    font-family: var(--font-mono); letter-spacing: 0.08em;
}
.zyd-footer-mono { font-size: 11px; letter-spacing: 0.2em; }

/* ========== 20. Cookie Banner ========== */
.zyd-cookie {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    max-width: 880px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    z-index: 150;
    transform: translateY(200%);
    transition: transform 0.6s var(--spring), opacity 0.4s var(--ease);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.zyd-cookie.zyd-cookie-shown { transform: translateY(0); }
.zyd-cookie.zyd-cookie-hidden { transform: translateY(200%); opacity: 0; pointer-events: none; }
.zyd-cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.zyd-cookie-main { min-width: 0; }
.zyd-cookie-tag {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
    color: var(--acc); margin-bottom: 10px;
}
.zyd-cookie-title {
    font-family: var(--font-display); font-weight: 900; font-size: 22px;
    letter-spacing: -0.02em; margin-bottom: 6px;
}
.zyd-cookie-text { font-size: 13.5px; color: var(--text-mut); line-height: 1.5; }
.zyd-cookie-text a { color: var(--text); border-bottom: 1px solid var(--text-dim); }
.zyd-cookie-text a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.zyd-cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zyd-cookie-btn {
    padding: 11px 18px; border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
    transition: all 0.2s;
}
.zyd-cookie-accept { background: var(--acc); color: var(--acc-text); }
.zyd-cookie-accept:hover { transform: none; box-shadow: 0 8px 20px -6px var(--acc-glow); }
.zyd-cookie-reject { background: transparent; color: var(--text); border: 1px solid var(--border-em); }
.zyd-cookie-reject:hover { border-color: var(--acc); color: var(--acc); }
.zyd-cookie-custom { background: transparent; color: var(--text-mut); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.zyd-cookie-custom:hover { color: var(--text); }

/* Cookie modal */
.zyd-cookie-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.zyd-cookie-modal:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.zyd-cookie-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: zydFadeIn 0.3s var(--ease);
}
.zyd-cookie-modal-inner {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    width: 90%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    animation: zydModalIn 0.4s var(--spring);
}
@keyframes zydModalIn { 0% { opacity: 0; transform: scale(0.92); } 100% { opacity: 1; transform: scale(1); } }
.zyd-cookie-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mut); border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.zyd-cookie-modal-close:hover { background: var(--bg-hover); color: var(--text); }
.zyd-cookie-modal-inner h3 {
    font-family: var(--font-display); font-weight: 900; font-size: 26px;
    letter-spacing: -0.025em; margin-bottom: 24px;
}
.zyd-cookie-pref {
    display: grid; grid-template-columns: 1fr auto;
    gap: 18px; align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}
.zyd-cookie-pref:first-of-type { border-top: none; }
.zyd-cookie-pref-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.zyd-cookie-pref-desc { font-size: 13px; color: var(--text-mut); line-height: 1.5; }

/* Toggle switch */
.zyd-switch { display: inline-block; position: relative; width: 42px; height: 24px; cursor: pointer; flex-shrink: 0; }
.zyd-switch input { opacity: 0; width: 0; height: 0; }
.zyd-switch-slider {
    position: absolute; inset: 0;
    background: var(--bg-hover);
    border: 1px solid var(--border-str);
    border-radius: 999px;
    transition: background 0.25s, border-color 0.25s;
}
.zyd-switch-slider::before {
    content: ''; position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: var(--text-mut);
    border-radius: 50%;
    transition: transform 0.25s var(--spring), background 0.25s;
}
.zyd-switch input:checked + .zyd-switch-slider { background: var(--acc); border-color: var(--acc); }
.zyd-switch input:checked + .zyd-switch-slider::before { transform: translateX(18px); background: var(--acc-text); }
.zyd-switch-locked { opacity: 0.5; cursor: not-allowed; }

.zyd-cookie-save {
    width: 100%;
    padding: 14px 20px;
    background: var(--acc); color: var(--acc-text);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.zyd-cookie-save:hover { transform: none; box-shadow: 0 10px 22px -6px var(--acc-glow); }

/* ========== 21. Scroll to Top ========== */
.zyd-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border-str); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    z-index: 90;
    opacity: 0; transform: translateY(12px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.2s, color 0.2s, background 0.2s;
}
.zyd-to-top.zyd-to-top-shown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.zyd-to-top:hover { background: var(--acc); color: var(--acc-text); border-color: var(--acc); transform: translateY(-3px) scale(1); }
/* FIX: raise to-top when cookie banner is showing so they don't overlap on desktop */
body.zyd-cookie-visible .zyd-to-top { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

/* ========== 22. Reveal on Scroll ========== */
.zyd-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.zyd-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes zydFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== 23. Inner Pages (Blog/Page/Search/404) ========== */
.zyd-page-content {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 72px;
    padding-left: 0;
    padding-right: 0;
    max-width: 760px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .zyd-page-content {
        padding-top: calc(var(--header-h) + 56px);
        padding-bottom: 64px;
    }
}
.zyd-page-tag {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    color: var(--acc); text-transform: uppercase; margin-bottom: 20px;
}
.zyd-page-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -0.04em; line-height: 1;
    margin-bottom: 48px;
}
.zyd-prose { font-size: 16px; line-height: 1.75; color: var(--text-sec); }
.zyd-prose h2, .zyd-prose h3, .zyd-prose h4 {
    font-family: var(--font-display); color: var(--text); font-weight: 900;
    margin: 2em 0 0.7em;
}
.zyd-prose h2 { font-size: 30px; letter-spacing: -0.025em; }
.zyd-prose h3 { font-size: 22px; letter-spacing: -0.02em; }
.zyd-prose p { margin-bottom: 1.2em; }
.zyd-prose a { color: var(--acc); border-bottom: 1px solid rgba(190, 242, 100, 0.35); padding-bottom: 1px; transition: border-color 0.2s; }
.zyd-prose a:hover { border-bottom-color: var(--acc); }
.zyd-prose strong { color: var(--text); font-weight: 700; }
.zyd-prose blockquote {
    border-left: 3px solid var(--acc);
    padding: 8px 0 8px 24px; margin: 1.6em 0;
    color: var(--text);
    font-size: 17px;
}
.zyd-prose code {
    background: var(--bg-alt); padding: 2px 8px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.88em; color: var(--acc);
}
.zyd-prose ul, .zyd-prose ol { margin: 1em 0 1.4em 1.4em; list-style: revert; }
.zyd-prose li { margin-bottom: 0.5em; }

/* ========== 25. Press Kit Page ========== */
.zyd-press { padding: calc(var(--header-h) + 60px) 0 80px; }
.zyd-press-head { max-width: 760px; margin-bottom: 48px; }
.zyd-press-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 28px; }
.zyd-press-lead { font-size: 17px; line-height: 1.6; color: var(--text-sec); max-width: 640px; }
.zyd-press-section { margin-bottom: 56px; }
.zyd-press-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.zyd-press-logo {
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.zyd-press-logo:hover { border-color: var(--border-em); transform: translateY(-3px); }
.zyd-press-logo-preview {
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.zyd-press-logo-preview-wide img { width: 80%; }
.zyd-press-logo-light .zyd-press-logo-preview { background: #FAFAFA; }
.zyd-press-logo-meta { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.zyd-press-logo-meta h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin-bottom: 8px; letter-spacing: -0.02em; }
.zyd-press-logo-meta p { font-size: 13.5px; color: var(--text-mut); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.zyd-press-dl { display: flex; gap: 8px; flex-wrap: wrap; }
.zyd-press-dl-btn {
    padding: 8px 14px; border: 1px solid var(--border-em);
    border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
    font-family: var(--font-mono); transition: all 0.2s var(--ease);
}
.zyd-press-dl-btn:hover { border-color: var(--acc); color: var(--acc); background: rgba(190, 242, 100, 0.05); }

.zyd-press-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.zyd-press-color {
    padding: 28px 20px 24px; border-radius: var(--radius-md); cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    position: relative;
    aspect-ratio: 1.3 / 1;
    display: flex; flex-direction: column; justify-content: space-between;
}
.zyd-press-color:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.3); }
.zyd-press-color:active { transform: translateY(0); }
.zyd-press-color-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.zyd-press-color-hex { font-family: var(--font-mono); font-size: 14px; font-weight: 500; margin-top: 14px; }
.zyd-press-color-rgb { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; margin-top: 3px; }
.zyd-press-color-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-top: 10px; }
.zyd-press-color.zyd-copied::after {
    content: 'Copied ✓'; position: absolute; top: 14px; right: 16px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; font-weight: 600; padding: 3px 8px;
    background: rgba(0, 0, 0, 0.2); border-radius: 3px;
    animation: zydCopied 1.5s ease forwards;
}
@keyframes zydCopied { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
.zyd-press-color-hint { margin-top: 14px; font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.04em; }

.zyd-press-descs { display: flex; flex-direction: column; gap: 12px; }
.zyd-press-desc {
    padding: 24px 28px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.zyd-press-desc header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; gap: 14px;
}
.zyd-press-desc-len { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--acc); }
.zyd-press-copy-btn {
    padding: 6px 14px; border: 1px solid var(--border-em); border-radius: var(--radius-sm);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text); transition: all 0.2s var(--ease);
}
.zyd-press-copy-btn:hover { border-color: var(--acc); color: var(--acc); }
.zyd-press-copy-btn.zyd-copied { background: var(--acc); color: var(--acc-text); border-color: var(--acc); }
.zyd-press-desc p { font-size: 16px; line-height: 1.7; color: var(--text-sec); }

/* FIX: press-facts odd-count border leak — nth-child math left uneven borders
   at the last row when fact count was odd. Use gap+box-shadow for symmetry. */
.zyd-press-facts {
    display: grid; grid-template-columns: repeat(2, 1fr);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    gap: 1px;
}
.zyd-press-facts > div {
    padding: 22px 28px;
    background: var(--bg-card);
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: 0 0 0 1px var(--border);
}
.zyd-press-facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; font-weight: 500; }
.zyd-press-facts dd {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--text); letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}
.zyd-press-facts dd a { color: var(--text); border-bottom: 1px solid var(--border-em); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.zyd-press-facts dd a:hover { color: var(--acc); border-bottom-color: var(--acc); }

.zyd-press-contact { padding: 56px 0 32px; text-align: center; }

@media (max-width: 900px) {
    .zyd-press-logos { grid-template-columns: 1fr; }
    .zyd-press-colors { grid-template-columns: repeat(2, 1fr); }
    .zyd-press-facts { grid-template-columns: 1fr; }
    .zyd-press-desc header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
    .zyd-press-colors { grid-template-columns: 1fr; }
    /* FIX: aspect-ratio 1.3/1 made 1-col press-color tiles absurdly tall on narrow mobile */
    .zyd-press-color { aspect-ratio: auto; min-height: 120px; }
}

/* ========== 26. Contact Page ========== */
.zyd-contact-page { padding: calc(var(--header-h) + 80px) 0 100px; }
.zyd-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.zyd-contact-left h1 { margin-bottom: 20px; }
.zyd-contact-methods { margin-top: 32px; }
.zyd-contact-method {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; border-top: 1px solid var(--border);
}
.zyd-contact-method:last-child { border-bottom: 1px solid var(--border); }
.zyd-contact-method-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.zyd-contact-method-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.zyd-contact-method-value:hover { color: var(--acc); }

.zyd-contact-form { padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.zyd-field { margin-bottom: 16px; }
.zyd-field label { display: block; font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.zyd-field input, .zyd-field textarea {
    width: 100%; padding: 12px 14px;
    background: var(--bg); border: 1px solid var(--border-str);
    color: var(--text); font-family: inherit; font-size: 14.5px;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}
.zyd-field input:focus, .zyd-field textarea:focus { outline: none; border-color: var(--acc); }
.zyd-field textarea { min-height: 130px; resize: vertical; }

/* ========== 25. Responsive ========== */

/* ---- Large desktop (1200px and up): default styles apply ---- */

/* ---- Medium desktop / small laptop (1100px and below) ---- */
@media (max-width: 1200px) {
    .zyd-hero-headline { font-size: clamp(56px, 10vw, 140px); }
    .zyd-hero-line-1 { transform: translateX(-2px) translateY(60px); }
    .zyd-hero-line-1.zyd-anim-done { transform: translateX(-2px) translateY(0); }
    .zyd-hero-line-2 { transform: translateX(24px) translateY(60px); }
    .zyd-hero-line-2.zyd-anim-done { transform: translateX(24px) translateY(0); }
    .zyd-footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
    .zyd-principles-grid { gap: 10px; }
    .zyd-apps-grid { gap: 10px; }
}

/* ---- Tablet landscape (1024px and below) — still show desktop nav ---- */
@media (max-width: 1024px) {
    .zyd-container { padding: 0 28px; }
    .zyd-hero-headline { font-size: clamp(48px, 9.5vw, 120px); }
    .zyd-hero-line-1 { transform: translateX(0) translateY(60px); }
    .zyd-hero-line-1.zyd-anim-done { transform: translateX(0) translateY(0); }
    .zyd-hero-line-2 { transform: translateX(0) translateY(60px); }
    .zyd-hero-line-2.zyd-anim-done { transform: translateX(0) translateY(0); }
    .zyd-hero-line-3 { gap: 10px; }
    .zyd-marquee-item { font-size: 24px; }
    .zyd-nav-menu { gap: 18px; font-size: 10.5px; }
    .zyd-apps-grid, .zyd-principles-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .zyd-apps-grid > *:nth-child(n+3), .zyd-principles-grid > *:nth-child(n+3) { grid-column: auto; }
    .zyd-apps-grid > *:first-child:nth-last-child(odd) {
        /* If 3+ items with one odd: first spans both cols OR leave natural */
    }
    .zyd-app-name { font-size: 28px; }
    .zyd-app-icon { width: 76px; height: 76px; }
    .zyd-app-icon-letter { font-size: 36px; }
    /* contact-cta tablet padding intentionally inherits desktop (96px) */
}

/* ---- Tablet portrait / large phones (900px and below) — switch to burger ---- */
@media (max-width: 900px) {
    .zyd-container { padding: 0 24px; }
    .zyd-nav { display: none; }
    .zyd-menu-toggle { display: block; }
    .zyd-lang { display: none; }
    .zyd-section { padding: 60px 0; }
    .zyd-hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 44px; }
    .zyd-hero-headline { font-size: clamp(46px, 12vw, 96px); }
    .zyd-hero-sub-row { grid-template-columns: 1fr; gap: 24px; }
    .zyd-marquee { margin-bottom: 48px; }
    .zyd-marquee-item { font-size: 20px; }
    .zyd-marquee-sep { font-size: 14px; }
    .zyd-apps-grid, .zyd-principles-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .zyd-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .zyd-footer-brand { grid-column: 1 / -1; }
    .zyd-footer-bottom { flex-direction: column; gap: 10px; }
    .zyd-cookie-inner { grid-template-columns: 1fr; gap: 20px; }
    .zyd-cookie-actions { justify-content: flex-start; }
    .zyd-contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .zyd-contact-cta { padding: 80px 0; }
    .zyd-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
    .zyd-app-name { font-size: 26px; }
    .zyd-app-icon { width: 72px; height: 72px; }
    .zyd-app-icon-letter { font-size: 34px; }
    body.zyd-has-cursor, body.zyd-has-cursor * { cursor: auto !important; }
    .zyd-cursor { display: none !important; }
}

/* ---- Small phones (600px and below) — stack everything ---- */
@media (max-width: 600px) {
    .zyd-container { padding: 0 20px; }
    .zyd-header { padding: 14px 0; }
    .zyd-header.is-scrolled { padding: 10px 0; }
    .zyd-logo-text { display: none; }
    .zyd-hero-headline { font-size: clamp(42px, 14vw, 80px); letter-spacing: -0.045em; }
    .zyd-hero-box { padding: 2px 10px 6px; box-shadow: 0 0 30px var(--acc-glow); }
    .zyd-hero-sub { font-size: 15.5px; }
    .zyd-hero-ctas { flex-direction: column; align-items: stretch; gap: 8px; }
    .zyd-hero-ctas .zyd-btn { justify-content: center; padding: 14px 20px; }
    .zyd-section-head { gap: 8px; margin-bottom: 24px; }
    .zyd-section-head h2 { font-size: clamp(30px, 9vw, 40px); }
    .zyd-section-head .zyd-section-meta { font-size: 10px; }
    .zyd-apps-grid, .zyd-principles-grid { grid-template-columns: 1fr !important; }
    .zyd-footer-top { grid-template-columns: 1fr; }
    .zyd-principle { padding: 24px 20px; }
    .zyd-cookie { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
    .zyd-cookie-actions { flex-direction: column; }
    .zyd-cookie-btn { width: 100%; text-align: center; justify-content: center; }
    .zyd-mobile-menu-list a { font-size: 30px; padding: 18px 0; }
    .zyd-cta-title { font-size: clamp(36px, 11vw, 60px); }
    .zyd-cta-email { font-size: clamp(20px, 6vw, 32px); gap: 8px; padding-bottom: 8px; }
    .zyd-cta-email svg { width: 22px; height: 22px; }
    .zyd-marquee { padding: 12px 0; margin-bottom: 40px; }
    .zyd-marquee-item { font-size: 18px; }
    .zyd-marquee-track { gap: 22px; }
    .zyd-app-name { font-size: 28px; }
    .zyd-app-icon { width: 76px; height: 76px; }
    .zyd-app-icon-letter { font-size: 36px; }
    .zyd-app-buttons { gap: 6px; }
    .zyd-store-btn { padding: 11px 8px !important; font-size: 12px !important; }
}

/* ---- Very narrow (380px and below) ---- */
@media (max-width: 380px) {
    .zyd-container { padding: 0 16px; }
    .zyd-hero-headline { font-size: clamp(36px, 14vw, 60px); }
    .zyd-mobile-menu-list a { font-size: 26px; padding: 16px 0; }
}

/* ========== 26. Accessibility: Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .zyd-hero-line, .zyd-hero-box, .zyd-reveal { opacity: 1 !important; transform: none !important; }
    .zyd-marquee-track { animation: none !important; }
    .zyd-intro { display: none; }
    .zyd-cursor { display: none !important; }
    body.zyd-has-cursor, body.zyd-has-cursor * { cursor: auto !important; }
}

/* ========== 27. Focus Styles ========== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px;
}
.zyd-kbd-nav *:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* Touch target minimums — make sure small controls are still tappable */
@media (hover: none) and (pointer: coarse) {
    .zyd-nav-menu a, .zyd-footer-menu a, .zyd-lang-list a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .zyd-theme-toggle, .zyd-menu-toggle, .zyd-to-top { min-width: 44px; min-height: 44px; }
    .zyd-btn { min-height: 44px; }
    .zyd-store-btn { min-height: 42px !important; }
    .zyd-cookie-btn { min-height: 44px; }
}

/* Smooth image loading */
img { transition: opacity 0.3s; }
img[loading="lazy"]:not([src]) { opacity: 0; }

/* ========== 28. WP Admin Bar Compat ========== */
body.admin-bar .zyd-header { top: 32px; }
body.admin-bar .zyd-mobile-menu { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .zyd-header { top: 46px; }
    body.admin-bar .zyd-mobile-menu { top: 46px; }
}

/* ==========================================================================
   v2.1 — NEW COMPONENTS
   ========================================================================== */

/* === Page fade on load (replaces the old page-transition overlay) === */
.zyd-page-fade { animation: zydPageFade 0.4s var(--ease) both; }
@keyframes zydPageFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Smooth theme-toggle transitions === */
body.zyd-body,
body.zyd-body .zyd-header,
body.zyd-body .zyd-footer,
body.zyd-body .zyd-principle,
body.zyd-body .zyd-app-card,
body.zyd-body .zyd-faq-item,
body.zyd-body .zyd-support-card,
body.zyd-body .zyd-contact-card,
body.zyd-body .zyd-cookie,
body.zyd-body .zyd-press-desc,
body.zyd-body .zyd-press-logo {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: var(--ease);
}

/* aria-current[page] active nav style */
.zyd-nav-menu a[aria-current="page"] { color: var(--text); }
.zyd-nav-menu a[aria-current="page"]::after { width: 100%; }

/* === CONTACT PAGE v2 (email-first, no form) === */
.zyd-contact-hero {
    padding: calc(var(--header-h) + 80px) 0 40px;
    position: relative; overflow: hidden;
}
.zyd-contact-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(190, 242, 100, 0.10) 0%, transparent 55%);
    pointer-events: none;
}
.zyd-contact-inner { position: relative; z-index: 1; max-width: 900px; }
.zyd-contact-headline {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(44px, 7vw, 96px);
    letter-spacing: -0.035em; line-height: 1.02;
    margin-bottom: 32px;
    text-wrap: balance;
}
.zyd-contact-lead, .zyd-contact-prose {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55; color: var(--text-sec);
    max-width: 600px; margin-bottom: 48px;
}
.zyd-contact-email-huge {
    display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 24px);
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 5.5vw, 68px);
    letter-spacing: -0.04em; line-height: 1;
    color: var(--text);
    border-bottom: 2px solid var(--border-em);
    padding: 8px 4px 16px;
    margin-bottom: 24px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.zyd-contact-email-huge:hover { color: var(--acc); border-bottom-color: var(--acc); }
.zyd-contact-email-huge-arrow {
    width: clamp(24px, 3vw, 36px);
    height: clamp(24px, 3vw, 36px);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}
.zyd-contact-email-huge:hover .zyd-contact-email-huge-arrow { transform: translate(6px, -6px); }
.zyd-contact-response {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px;
    color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.zyd-contact-response-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--acc); flex-shrink: 0;
    box-shadow: 0 0 0 0 var(--acc-glow);
    animation: zydPulse 2.4s var(--ease) infinite;
}
@keyframes zydPulse {
    0% { box-shadow: 0 0 0 0 var(--acc-glow); }
    70% { box-shadow: 0 0 0 12px rgba(190, 242, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(190, 242, 100, 0); }
}

.zyd-contact-channels { padding-top: 40px; }
.zyd-contact-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.zyd-contact-card {
    padding: 32px 28px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.zyd-contact-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(190,242,100,0.05) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.zyd-contact-card:hover { transform: translateY(-3px); border-color: var(--border-em); }
.zyd-contact-card:hover::before { opacity: 1; }
.zyd-contact-card-tag {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--acc); letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 22px; font-weight: 500;
}
.zyd-contact-card h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 24px; letter-spacing: -0.025em;
    margin-bottom: 10px;
}
.zyd-contact-card p {
    color: var(--text-sec); font-size: 14.5px; line-height: 1.6;
    margin-bottom: 20px; flex: 1;
}
.zyd-contact-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
    color: var(--text); letter-spacing: 0.04em; text-transform: uppercase;
    padding-top: 14px; border-top: 1px solid var(--border);
    transition: color 0.2s;
}
.zyd-contact-card-link:hover { color: var(--acc); }
.zyd-contact-card-arrow { transition: transform 0.2s var(--ease); }
.zyd-contact-card-link:hover .zyd-contact-card-arrow { transform: translateX(4px); }

.zyd-contact-social-section { padding-top: 0; padding-bottom: 80px; }
.zyd-contact-social-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
}
.zyd-contact-social-link {
    display: grid; grid-template-columns: 90px 1fr auto;
    align-items: center; gap: 16px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--border);
    position: relative;
    min-width: 0;
}
/* 2.15.31: the highlight is its own layer. Hover used to add padding, which narrowed
   the handle until it wrapped, so the row grew and the section jumped. */
.zyd-contact-social-link::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 7%, transparent), transparent 45%);
    opacity: 0; transition: opacity 0.2s var(--ease);
}
.zyd-contact-social-link:hover::before { opacity: 1; }
.zyd-contact-social-label {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.14em; color: var(--acc);
    text-transform: uppercase;
}
.zyd-contact-social-handle {
    font-family: var(--font-display); font-weight: 700; font-size: 17px;
    color: var(--text); letter-spacing: -0.015em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0;
}
.zyd-contact-social-arrow {
    color: var(--text-dim); transition: transform 0.2s var(--ease), color 0.2s;
}
.zyd-contact-social-link:hover .zyd-contact-social-arrow {
    color: var(--acc); transform: translate(3px, -3px);
}

/* === FAQ PAGE === */
.zyd-faq-hero {
    padding: calc(var(--header-h) + 80px) 0 20px;
    position: relative; overflow: hidden;
    text-align: center;
}
.zyd-faq-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(190, 242, 100, 0.08) 0%, transparent 55%);
    pointer-events: none;
}
.zyd-faq-hero .zyd-container { position: relative; z-index: 1; }
.zyd-faq-hero .zyd-page-tag { display: inline-block; }
.zyd-faq-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(44px, 7vw, 92px);
    letter-spacing: -0.035em; line-height: 1.02;
    margin: 0 auto 28px;
    text-wrap: balance;
}
.zyd-faq-lead, .zyd-faq-prose {
    font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6;
    color: var(--text-sec); max-width: 620px; margin: 0 auto 8px;
}

.zyd-faq-section { padding-top: 48px; }
.zyd-faq-list { max-width: 900px; margin: 0 auto; }
.zyd-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
    background: transparent;
}
.zyd-faq-item:first-of-type { border-top: 1px solid var(--border); }
.zyd-faq-q {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 4px 22px 0;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}
.zyd-faq-q::-webkit-details-marker { display: none; }
.zyd-faq-q:hover { color: var(--acc); }
.zyd-faq-num {
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.12em; color: var(--acc);
    flex-shrink: 0; width: 28px;
    font-weight: 500;
}
.zyd-faq-q-text {
    flex: 1;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: -0.02em; color: var(--text);
    line-height: 1.3;
}
.zyd-faq-item:hover .zyd-faq-q-text { color: var(--acc); }
.zyd-faq-item[open] .zyd-faq-q-text { color: var(--acc); }
.zyd-faq-indicator {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border-em); border-radius: 50%;
    color: var(--text-mut);
    transition: transform 0.3s var(--ease), border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.zyd-faq-item[open] .zyd-faq-indicator {
    transform: rotate(180deg);
    border-color: var(--acc); color: var(--acc);
}
.zyd-faq-a {
    padding: 0 4px 26px 50px;
    color: var(--text-sec);
    font-size: 15.5px; line-height: 1.7;
    animation: zydFaqOpen 0.4s var(--ease);
}
.zyd-faq-a p { color: var(--text-sec); max-width: 720px; }
@keyframes zydFaqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.zyd-faq-cta {
    margin-top: 48px;
    padding: 56px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative; overflow: hidden;
}
.zyd-faq-cta::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 500px; height: 300px; transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(190,242,100,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.zyd-faq-cta > * { position: relative; z-index: 1; }
.zyd-faq-cta-tag {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--acc); letter-spacing: 0.18em; margin-bottom: 14px;
}
.zyd-faq-cta-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.03em; margin-bottom: 28px;
}

/* === SUPPORT PAGE === */
.zyd-support-hero {
    padding: calc(var(--header-h) + 80px) 0 20px;
    position: relative; overflow: hidden;
}
.zyd-support-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(44px, 7vw, 92px);
    letter-spacing: -0.035em; line-height: 1.02;
    margin-bottom: 28px;
    text-wrap: balance;
}
.zyd-support-lead, .zyd-support-prose {
    font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6;
    color: var(--text-sec); max-width: 620px;
}

.zyd-support-section { padding-top: 48px; }
.zyd-support-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 56px;
}
.zyd-support-card {
    padding: 28px 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.zyd-support-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(190,242,100,0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.zyd-support-card:hover { transform: translateY(-4px); border-color: var(--border-em); }
.zyd-support-card:hover::before { opacity: 1; }
/* Icon now sits in the top-right of the card (echoes the press-desc card
   tag + copy-button header rhythm). Smaller and more decorative — the lime
   tag chip below it is what carries the meaning. */
.zyd-support-card-icon {
    position: absolute;
    top: 22px; right: 22px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-elev);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-sm);
    color: var(--acc);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.zyd-support-card-icon svg { width: 22px; height: 22px; }
.zyd-support-card:hover .zyd-support-card-icon {
    background: rgba(190, 242, 100, 0.08);
    border-color: var(--acc);
    transform: rotate(-3deg);
}
.zyd-support-card-tag {
    display: inline-block;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--acc); letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 600;
    padding: 4px 10px;
    background: rgba(190, 242, 100, 0.08);
    border: 1px solid rgba(190, 242, 100, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    align-self: flex-start;
    max-width: calc(100% - 56px); /* leave space for the icon top-right */
}
.zyd-support-card h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 24px; letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 14px;
    padding-right: 56px; /* avoid overlap with icon */
}
.zyd-support-card p {
    color: var(--text-sec); font-size: 14.5px; line-height: 1.65;
    margin-bottom: 22px; flex: 1;
}
.zyd-support-card-btn {
    align-self: stretch;
    padding: 13px 18px;
    border: 1px solid var(--border-em);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text);
    transition: all 0.2s var(--ease);
    display: inline-flex; align-items: center; justify-content: space-between;
    gap: 6px;
    background: var(--bg-elev);
}
.zyd-support-card-btn:hover {
    border-color: var(--acc); color: var(--acc);
    background: rgba(190, 242, 100, 0.05);
    transform: none;
}

.zyd-support-helpers {
    padding: 40px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.zyd-support-helpers-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: 28px; letter-spacing: -0.025em;
    margin-bottom: 24px;
}
.zyd-support-helpers-list { display: flex; flex-direction: column; gap: 22px; }
.zyd-support-helpers-list > li {
    display: flex; gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.zyd-support-helpers-list > li:last-child { border-bottom: none; padding-bottom: 0; }
.zyd-support-helpers-num {
    font-family: var(--font-mono); font-size: 15px;
    color: var(--acc); flex-shrink: 0;
    width: 22px; padding-top: 2px;
}
.zyd-support-helpers-list strong {
    display: block; color: var(--text);
    font-size: 15px; margin-bottom: 4px;
}
.zyd-support-helpers-list p { color: var(--text-sec); font-size: 14.5px; line-height: 1.55; }
.zyd-support-helpers-list a {
    color: var(--acc); border-bottom: 1px solid rgba(190, 242, 100, 0.35);
    transition: border-color 0.2s;
}
.zyd-support-helpers-list a:hover { border-bottom-color: var(--acc); }

/* === 404 PAGE === */
.zyd-404 {
    min-height: 82vh;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--header-h) + 60px) 0 60px;
    position: relative; overflow: hidden;
}
.zyd-404::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(190, 242, 100, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(190, 242, 100, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.zyd-404-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.zyd-404-tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; color: var(--acc);
    text-transform: uppercase; margin-bottom: 28px;
}
.zyd-404-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(120px, 22vw, 260px);
    letter-spacing: -0.06em; line-height: 0.85;
    margin-bottom: 32px;
    color: var(--text);
}
.zyd-404-glitch {
    position: relative; display: inline-block;
    color: var(--text);
}
.zyd-404-glitch::before,
.zyd-404-glitch::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    pointer-events: none;
}
.zyd-404-glitch::before {
    color: var(--acc); mix-blend-mode: screen;
    transform: translate(-3px, 0);
    animation: zydGlitch1 3.5s infinite steps(1);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    opacity: 0.75;
}
.zyd-404-glitch::after {
    color: #FF3D71; mix-blend-mode: screen;
    transform: translate(3px, 0);
    animation: zydGlitch2 3.5s infinite steps(1);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    opacity: 0.6;
}
:root[data-theme="light"] .zyd-404-glitch::before { mix-blend-mode: multiply; opacity: 0.9; }
:root[data-theme="light"] .zyd-404-glitch::after  { mix-blend-mode: multiply; opacity: 0.7; }

@keyframes zydGlitch1 {
    0%, 84%, 100% { transform: translate(-3px, 0); }
    85% { transform: translate(-6px, 2px); }
    87% { transform: translate(2px, -2px); }
    89% { transform: translate(-4px, 1px); }
    92% { transform: translate(0, 0); }
}
@keyframes zydGlitch2 {
    0%, 86%, 100% { transform: translate(3px, 0); }
    87% { transform: translate(5px, -2px); }
    89% { transform: translate(-2px, 2px); }
    91% { transform: translate(4px, 0); }
    93% { transform: translate(0, 0); }
}

.zyd-404-subtitle {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.03em; line-height: 1;
    margin-bottom: 24px;
}
.zyd-404-accent {
    background: var(--acc); color: var(--acc-text);
    padding: 0 12px 4px; display: inline-block;
    transform: skewX(-6deg);
}
.zyd-404-text {
    color: var(--text-sec); font-size: 16px; line-height: 1.6;
    max-width: 500px; margin: 0 auto 36px;
}
.zyd-404-actions {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 48px;
}
.zyd-404-search-label {
    display: block;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.14em; color: var(--text-dim);
    text-transform: uppercase; margin-bottom: 12px;
}
.zyd-404-search-row {
    display: flex; gap: 6px;
    max-width: 420px; margin: 0 auto;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}
.zyd-404-search-row:focus-within { border-color: var(--acc); }
.zyd-404-search-row input {
    flex: 1; padding: 10px 14px;
    background: transparent; border: none; outline: none;
    color: var(--text); font-family: inherit; font-size: 14px;
}
.zyd-404-search-row button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px;
    background: var(--acc); color: var(--acc-text);
    border-radius: var(--radius-xs);
    transition: background 0.2s;
}
.zyd-404-search-row button:hover { background: #A8D84A; }

/* === JOURNAL list === */
.zyd-journal-list { display: flex; flex-direction: column; }
.zyd-journal-item { padding: 32px 0; border-bottom: 1px solid var(--border); }
.zyd-journal-item:first-child { padding-top: 0; }
.zyd-journal-item:last-child { border-bottom: none; }
.zyd-journal-date {
    font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
    letter-spacing: 0.12em; margin-bottom: 10px; text-transform: uppercase;
}
.zyd-journal-title {
    font-size: 30px; font-weight: 900; letter-spacing: -0.025em;
    margin-bottom: 12px;
}
.zyd-journal-title a { color: var(--text); transition: color 0.2s; }
.zyd-journal-title a:hover { color: var(--acc); }
.zyd-journal-excerpt { color: var(--text-sec); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.zyd-journal-more {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
    color: var(--acc); text-transform: uppercase; font-weight: 500;
    transition: letter-spacing 0.2s var(--ease);
}

.zyd-pagination-wrap { margin-top: 48px; }
.zyd-pagination-wrap .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; padding: 8px 12px; margin: 0 3px;
    border: 1px solid var(--border-str); border-radius: var(--radius-sm);
    font-family: var(--font-mono); font-size: 12px; color: var(--text-sec);
    transition: all 0.2s var(--ease);
}
.zyd-pagination-wrap .page-numbers.current { background: var(--acc); color: var(--acc-text); border-color: var(--acc); }
.zyd-pagination-wrap .page-numbers:not(.current):hover { border-color: var(--acc); color: var(--acc); }

/* Single post */
.zyd-single-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.zyd-single-thumb { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.zyd-single-thumb img { width: 100%; height: auto; display: block; }
.zyd-single-nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--border); font-size: 14px;
}
.zyd-single-nav a { color: var(--text); transition: color 0.2s; }
.zyd-single-nav a:hover { color: var(--acc); }

/* Search results */
.zyd-search-list { display: flex; flex-direction: column; }
.zyd-search-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.zyd-search-item:last-child { border-bottom: none; }
.zyd-search-date {
    font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
    letter-spacing: 0.12em; margin-bottom: 8px;
}
.zyd-search-title { font-size: 22px; margin-bottom: 10px; font-weight: 900; }
.zyd-search-title a { color: var(--text); transition: color 0.2s; }
.zyd-search-title a:hover { color: var(--acc); }
.zyd-search-excerpt { color: var(--text-sec); }
.zyd-search-empty { color: var(--text-sec); font-size: 17px; }
.zyd-search-again {
    margin-top: 24px;
    display: flex; gap: 8px; max-width: 500px;
}
.zyd-search-again input {
    flex: 1; padding: 12px 16px;
    background: var(--bg-card); border: 1px solid var(--border-em);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: inherit; font-size: 14px;
}
.zyd-search-again input:focus { outline: none; border-color: var(--acc); }

/* Empty state for journal when no posts */
.zyd-empty-state {
    padding: 80px 40px; text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-lg);
    margin-top: 40px;
}
.zyd-empty-state-tag {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--acc); letter-spacing: 0.18em;
    margin-bottom: 14px; text-transform: uppercase;
}
.zyd-empty-state h2 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.025em; margin-bottom: 14px;
}
.zyd-empty-state p { color: var(--text-mut); max-width: 460px; margin: 0 auto 24px; }

/* === Page tag — more visible chip === */
.zyd-page-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(190, 242, 100, 0.08);
    border: 1px solid rgba(190, 242, 100, 0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    margin-bottom: 24px;
}
:root[data-theme="light"] .zyd-page-tag {
    background: rgba(190, 242, 100, 0.2);
    border-color: rgba(126, 161, 67, 0.45);
    color: #4d6b1f;
}

/* ==========================================================================
   v2.1.1 FIXES — light cursor, cookie banner visibility,
   aggressive TranslatePress override, mobile menu polish
   ========================================================================== */

/* Cursor: light-theme fix.
   `mix-blend-mode: difference` (default for dark theme) just inverts what's
   underneath, so the cursor never obscures content. On white that mode
   produces the opposite — a solid lime fill — which sat over card titles
   like a paintball splat. Light-theme cursor is now outline-only:
   transparent fill so whatever is behind (text, icons, buttons) stays
   fully readable, with the colored ring kept for affordance. */
:root[data-theme="light"] .zyd-cursor { mix-blend-mode: normal; }
:root[data-theme="light"] .zyd-cursor-ring {
    border-color: rgba(10, 10, 10, 0.75);
    background: transparent;
    box-shadow: none;
}
:root[data-theme="light"] .zyd-cursor-dot { background: #0A0A0A; }
:root[data-theme="light"] .zyd-cursor.zyd-cursor-link .zyd-cursor-ring {
    border-color: var(--acc-readable, var(--acc));
    border-width: 2px;
    background: transparent;
}
:root[data-theme="light"] .zyd-cursor.zyd-cursor-link .zyd-cursor-dot {
    background: var(--acc-readable, var(--acc));
}

/* Cookie banner: visibility-based instead of [hidden] attribute.
   [hidden] = display:none, which kills CSS transitions on first show — this
   is why the banner sometimes didn't appear on mobile. */
.zyd-cookie { visibility: hidden; pointer-events: none; }
.zyd-cookie[aria-hidden="false"],
.zyd-cookie.zyd-cookie-shown { visibility: visible; pointer-events: auto; }
.zyd-cookie.zyd-cookie-hidden { visibility: hidden; pointer-events: none; }
.zyd-cookie { bottom: max(20px, env(safe-area-inset-bottom, 20px)); }
@media (max-width: 600px) {
    .zyd-cookie { bottom: max(12px, env(safe-area-inset-bottom, 12px)); }
}

/* TranslatePress aggressive override — the default TP styling is a white
   dropdown that's invisible on our dark theme. Rewrite it from scratch. */
.zyd-lang-trp, .zyd-lang-trp *,
.zyd-mobile-lang .trp-language-switcher, .zyd-mobile-lang .trp-language-switcher * {
    box-shadow: none !important;
}
.zyd-lang-trp .trp-language-switcher,
.zyd-lang-trp .trp-language-switcher-container,
.zyd-lang-trp .trp-floater,
.zyd-mobile-lang .trp-language-switcher,
.zyd-mobile-lang .trp-language-switcher-container,
.zyd-mobile-lang .trp-floater {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-str) !important;
    border-radius: var(--radius-md) !important;
    padding: 6px !important; margin: 0 !important;
    color: var(--text) !important;
}
.zyd-lang-trp .trp-ls-shortcode-language,
.zyd-lang-trp .trp-ls-shortcode-current-language,
.zyd-mobile-lang .trp-ls-shortcode-language,
.zyd-mobile-lang .trp-ls-shortcode-current-language {
    background: transparent !important;
    color: var(--text) !important;
    border: none !important;
    padding: 10px 12px !important;
    font-family: var(--font-sans) !important;
    font-size: 14.5px !important;
    line-height: 1.3 !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.zyd-lang-trp a, .zyd-lang-trp .trp-ls-language-name,
.zyd-mobile-lang a, .zyd-mobile-lang .trp-ls-language-name {
    color: var(--text) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.zyd-lang-trp a:hover,
.zyd-lang-trp .trp-ls-shortcode-language:hover,
.zyd-mobile-lang a:hover,
.zyd-mobile-lang .trp-ls-shortcode-language:hover {
    background: var(--bg-hover) !important;
    color: var(--acc) !important;
}
.zyd-lang-trp .trp-ls-shortcode-current-language,
.zyd-mobile-lang .trp-ls-shortcode-current-language {
    color: var(--acc) !important;
    font-weight: 600 !important;
}
.zyd-lang-trp img, .zyd-mobile-lang img,
.zyd-lang-trp .trp-flag-image, .zyd-mobile-lang .trp-flag-image {
    width: 22px !important;
    height: auto !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Native select fallback (TP also renders a raw <select> in some modes) */
.zyd-lang-trp select, .zyd-mobile-lang select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: var(--bg-card) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23A3A3A3' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    color: var(--text) !important;
    border: 1px solid var(--border-em) !important;
    padding: 11px 36px 11px 14px !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 280px !important;
}
.zyd-lang-trp select option, .zyd-mobile-lang select option {
    background: var(--bg-card) !important;
    color: var(--text) !important;
}

/* Mobile menu polish */
.zyd-mobile-lang {
    padding: 24px 0;
    margin-bottom: 28px;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}
.zyd-mobile-lang-label {
    display: block;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.16em; color: var(--acc);
    margin-bottom: 16px; text-transform: uppercase;
}
.zyd-mobile-lang .zyd-lang-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
}
.zyd-mobile-lang .zyd-lang-list a {
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-card);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.zyd-mobile-lang .zyd-lang-list a:hover,
.zyd-mobile-lang .zyd-lang-list a.current-lang {
    border-color: var(--acc); color: var(--acc); background: var(--bg-hover);
}

:root[data-theme="light"] .zyd-menu-toggle span { background: var(--text); }
.zyd-menu-toggle[aria-expanded="true"] { border-color: var(--acc); }

/* Mobile menu: iOS overscroll + safe-area */
.zyd-mobile-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Responsive for new components */
@media (max-width: 1024px) {
    .zyd-contact-cards, .zyd-support-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .zyd-contact-cards, .zyd-support-cards { grid-template-columns: 1fr; }
    .zyd-faq-q-text { font-size: 17px; }
    .zyd-faq-a { padding-left: 46px; font-size: 15px; }
    .zyd-faq-cta { padding: 48px 24px; }
    body.zyd-cookie-visible .zyd-to-top { bottom: 96px; }
}
@media (max-width: 600px) {
    .zyd-contact-email-huge { gap: 10px; padding-bottom: 10px; }
    .zyd-contact-card { padding: 28px 22px; }
    .zyd-contact-social-link { grid-template-columns: 1fr auto; row-gap: 2px; padding: 18px 4px; }
    .zyd-contact-social-label { grid-column: 1 / -1; }
    .zyd-support-card { padding: 28px 22px; }
    .zyd-support-helpers { padding: 28px 22px; }
    .zyd-404 { min-height: 70vh; }
    .zyd-404-actions { gap: 8px; }
    .zyd-404-actions .zyd-btn { width: 100%; justify-content: center; }
    .zyd-journal-title { font-size: 24px; }
    .zyd-single-nav { flex-direction: column; gap: 10px; }
    .zyd-mobile-menu { padding: calc(var(--header-h) + 24px) 24px 40px; }
}

/* Reduced motion for new animations */
@media (prefers-reduced-motion: reduce) {
    .zyd-404-glitch::before, .zyd-404-glitch::after {
        animation: none !important;
        transform: translate(0, 0) !important;
        opacity: 0 !important;
    }
    .zyd-contact-response-dot { animation: none !important; }
}

/* === ABOUT page === */
.zyd-about-hero {
    padding: calc(var(--header-h) + 80px) 0 40px;
    position: relative; overflow: hidden;
}
.zyd-about-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(190, 242, 100, 0.10) 0%, transparent 55%);
    pointer-events: none;
}
.zyd-about-hero .zyd-container { position: relative; z-index: 1; }
.zyd-about-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(44px, 7vw, 96px);
    letter-spacing: -0.035em; line-height: 1.02;
    margin-bottom: 28px;
    text-wrap: balance;
}
.zyd-about-lead, .zyd-about-prose {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55; color: var(--text-sec);
    max-width: 640px;
}

.zyd-about-manifesto-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.zyd-about-manifesto-item {
    padding: 34px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.zyd-about-manifesto-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(190,242,100,0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.zyd-about-manifesto-item:hover { transform: translateY(-3px); border-color: var(--border-em); }
.zyd-about-manifesto-item:hover::before { opacity: 1; }
.zyd-about-manifesto-num {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--acc); letter-spacing: 0.14em;
    display: block; margin-bottom: 18px; font-weight: 500;
}
.zyd-about-manifesto-item h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 26px; letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.zyd-about-manifesto-item p {
    font-size: 14.5px; line-height: 1.65;
    color: var(--text-sec);
}

.zyd-about-approach-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.zyd-about-approach-step {
    padding: 28px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.zyd-about-approach-step:hover { transform: translateY(-3px); border-color: var(--border-em); }
.zyd-about-approach-step-label {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--acc); letter-spacing: 0.16em;
    margin-bottom: 16px; font-weight: 500;
}
.zyd-about-approach-step h3 {
    font-family: var(--font-display); font-weight: 900;
    font-size: 22px; letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.zyd-about-approach-step p {
    font-size: 13.5px; line-height: 1.6;
    color: var(--text-sec);
}

.zyd-about-facts-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.zyd-about-facts-grid > div {
    padding: 22px 28px;
    background: var(--bg-card);
    display: flex; flex-direction: column; gap: 4px;
    box-shadow: 0 0 0 1px var(--border);
}
.zyd-about-facts-grid dt {
    font-family: var(--font-mono); font-size: 10.5px;
    color: var(--text-dim); letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 500;
}
.zyd-about-facts-grid dd {
    font-family: var(--font-display); font-size: 18px;
    font-weight: 700; color: var(--text); letter-spacing: -0.015em;
}
.zyd-about-facts-grid dd a { color: var(--text); border-bottom: 1px solid var(--border-em); transition: color 0.2s, border-color 0.2s; }
.zyd-about-facts-grid dd a:hover { color: var(--acc); border-bottom-color: var(--acc); }

/* --- Studio / Team section --- */
.zyd-about-team {
    /* Tighten top so the team feels like a natural follow-on from the manifesto,
       not a separate page. */
    padding-top: 56px;
}
.zyd-about-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.zyd-about-team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.zyd-about-team-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, var(--persona-glow, rgba(190,242,100,0.10)) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}
.zyd-about-team-card:hover { transform: translateY(-3px); border-color: var(--border-em); }
.zyd-about-team-card:hover::before { opacity: 1; }

/* Per-persona accent tints — drives the hover glow + the role tag color.
   The actual avatar colors live in the SVGs themselves, so the markup stays
   self-contained even if CSS fails to load. */
.zyd-about-team-card[data-persona="lime"]   { --persona: #BEF264; --persona-glow: rgba(190,242,100,0.12); }
.zyd-about-team-card[data-persona="coral"]  { --persona: #F97366; --persona-glow: rgba(249,115,102,0.10); }
.zyd-about-team-card[data-persona="sky"]    { --persona: #60A5FA; --persona-glow: rgba(96,165,250,0.10); }
.zyd-about-team-card[data-persona="green"]  { --persona: #22C55E; --persona-glow: rgba(34,197,94,0.10); }
.zyd-about-team-card[data-persona="violet"] { --persona: #A78BFA; --persona-glow: rgba(167,139,250,0.10); }
.zyd-about-team-card[data-persona="pink"]   { --persona: #EC4899; --persona-glow: rgba(236,72,153,0.10); }
/* v2.7.6 — three new personas for the expanded team (Motion, Senior iOS, iOS) */
.zyd-about-team-card[data-persona="rose"]   { --persona: #FB7185; --persona-glow: rgba(251,113,133,0.10); }
.zyd-about-team-card[data-persona="amber"]  { --persona: #F59E0B; --persona-glow: rgba(245,158,11,0.10); }
.zyd-about-team-card[data-persona="teal"]   { --persona: #14B8A6; --persona-glow: rgba(20,184,166,0.10); }

.zyd-about-team-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 22px;
    position: relative; z-index: 1;
}
.zyd-about-team-avatar {
    width: 64px; height: 64px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 30px -12px rgba(0,0,0,0.6), 0 0 0 1px var(--border) inset;
    transform: rotate(-3deg);
    transition: transform 0.4s var(--ease);
    flex-shrink: 0;
}
.zyd-about-team-card:hover .zyd-about-team-avatar { transform: rotate(0deg) scale(1.04); }
.zyd-about-team-avatar svg { width: 100%; height: 100%; display: block; }
.zyd-about-team-num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    font-weight: 500;
    margin-top: 6px;
}
.zyd-about-team-role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--persona, var(--acc));
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    position: relative; z-index: 1;
}
.zyd-about-team-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--text);
    text-wrap: balance;
    position: relative; z-index: 1;
}
.zyd-about-team-bio {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-sec);
    margin: 0;
    position: relative; z-index: 1;
}
.zyd-about-team-quote {
    margin: 56px 0 0;
    padding: 28px 32px;
    border-left: 3px solid var(--acc);
    background: linear-gradient(90deg, rgba(190,242,100,0.04), transparent 60%);
}
.zyd-about-team-quote p {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(22px, 2.4vw, 32px);
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
    text-wrap: balance;
}

/* Light theme — pull the persona glow up slightly so it reads on white. */
:root[data-theme="light"] .zyd-about-team-card[data-persona="lime"]   { --persona-glow: rgba(132,180,40,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="coral"]  { --persona-glow: rgba(249,115,102,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="sky"]    { --persona-glow: rgba(96,165,250,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="green"]  { --persona-glow: rgba(34,197,94,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="violet"] { --persona-glow: rgba(167,139,250,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="pink"]   { --persona-glow: rgba(236,72,153,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="rose"]   { --persona-glow: rgba(251,113,133,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="amber"]  { --persona-glow: rgba(245,158,11,0.18); }
:root[data-theme="light"] .zyd-about-team-card[data-persona="teal"]   { --persona-glow: rgba(20,184,166,0.18); }

.zyd-about-cta-section { padding: 80px 0 96px; text-align: center; }

@media (max-width: 1024px) {
    .zyd-about-approach-grid { grid-template-columns: repeat(2, 1fr); }
    .zyd-about-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .zyd-about-manifesto-grid { grid-template-columns: 1fr; }
    .zyd-about-approach-grid { grid-template-columns: 1fr; }
    .zyd-about-facts-grid { grid-template-columns: 1fr; }
    .zyd-about-team-grid { grid-template-columns: 1fr; }
    .zyd-about-manifesto-item { padding: 28px 22px; }
    .zyd-about-team-card { padding: 24px 22px 26px; }
    .zyd-about-team-quote { padding: 22px 22px; margin-top: 36px; }
}

/* ==========================================================================
   v2.2.2 — Letter-by-letter intro + extended flags + fixes
   ========================================================================== */

/* === New "Z y d e n o" intro animation === */
.zyd-intro {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px;
    transition: transform 1s var(--ease), opacity 0.6s var(--ease);
}
.zyd-intro.zyd-intro-done {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.zyd-intro-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 8.5vw, 110px);
    letter-spacing: -0.05em;
    color: var(--text);
    line-height: 1;
    display: flex; align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 95vw;
    text-align: center;
}

.zyd-intro-word,
.zyd-intro-suffix {
    display: inline-flex;
    align-items: baseline;
}
.zyd-intro-suffix {
    color: var(--acc);
    text-shadow: 0 0 30px var(--acc-glow), 0 0 60px rgba(190, 242, 100, 0.25);
}

.zyd-intro-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotate(-6deg) scale(0.85);
    animation: zydIntroLetter 0.7s var(--spring) forwards;
    animation-delay: calc(var(--i, 0) * 0.065s + 0.15s);
}

.zyd-intro-dot {
    display: inline-block;
    width: 0.22em; height: 0.22em;
    background: var(--acc);
    border-radius: 50%;
    margin-left: 0.08em;
    align-self: flex-end;
    margin-bottom: 0.12em;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 24px var(--acc-glow), 0 0 60px rgba(190, 242, 100, 0.3);
    animation: zydIntroDot 0.65s var(--spring) forwards;
    animation-delay: 1.15s;
}

.zyd-intro-tag,
.zyd-intro-tag-line { display: none; }

@keyframes zydIntroLetter {
    0%   { opacity: 0; transform: translateY(60px) rotate(-6deg) scale(0.85); }
    60%  { opacity: 1; transform: translateY(-4px) rotate(1deg) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes zydIntroDot {
    0%   { opacity: 0; transform: scale(0); }
    60%  { opacity: 1; transform: scale(1.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* Backwards compat: old SVG-based intro classes (no-op if absent) */
.zyd-intro-z { display: none; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .zyd-intro { display: none !important; }
    .zyd-intro-letter, .zyd-intro-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .zyd-intro-name { font-size: clamp(34px, 11vw, 64px); }
}
@media (max-width: 380px) {
    .zyd-intro-name { font-size: clamp(28px, 12vw, 48px); }
}

/* === Extended flag palette for TranslatePress integration === */
.zyd-flag {
    width: 22px; height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.zyd-flag-en { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='t'><path d='M30,15 h30 v15 z v-15 h-30 z h-30 v15 z v-15 h30 z'/></clipPath><path d='M0,0v30h60V0z' fill='%23012169'/><path d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/><path d='M0,0L60,30M60,0L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/><path d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/></svg>"); }
.zyd-flag-en::before { content: none; }
.zyd-flag-ru { background: linear-gradient(to bottom, #FFFFFF 33%, #0039A6 33%, #0039A6 66%, #D52B1E 66%); }
.zyd-flag-bg { background: linear-gradient(to bottom, #FFFFFF 33%, #00966E 33%, #00966E 66%, #D62612 66%); }
.zyd-flag-pt { background: linear-gradient(to right, #006600 0%, #006600 40%, #FF0000 40%, #FF0000 100%); }
.zyd-flag-pt::after { content: ''; position: absolute; left: 33%; top: 50%; width: 6px; height: 6px; background: #FFEC00; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid #FF0000; }
.zyd-flag-de { background: linear-gradient(to bottom, #000 33%, #DD0000 33%, #DD0000 66%, #FFCE00 66%); }
.zyd-flag-fr { background: linear-gradient(to right, #002395 0%, #002395 33%, #FFFFFF 33%, #FFFFFF 66%, #ED2939 66%); }
.zyd-flag-it { background: linear-gradient(to right, #009246 0%, #009246 33%, #FFFFFF 33%, #FFFFFF 66%, #CE2B37 66%); }
.zyd-flag-es { background: linear-gradient(to bottom, #AA151B 25%, #F1BF00 25%, #F1BF00 75%, #AA151B 75%); }
.zyd-flag-ua { background: linear-gradient(to bottom, #0057B7 50%, #FFD700 50%); }
.zyd-flag-pl { background: linear-gradient(to bottom, #FFFFFF 50%, #DC143C 50%); }
.zyd-flag-zh { background: #DE2910; }
.zyd-flag-zh::after { content: '★'; position: absolute; top: 1px; left: 2px; color: #FFDE00; font-size: 8px; line-height: 1; }
.zyd-flag-ja { background: #FFFFFF; }
.zyd-flag-ja::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background: #BC002D; border-radius: 50%; transform: translate(-50%, -50%); }
.zyd-flag-ko { background: #FFFFFF; }
.zyd-flag-ko::after { content: '☯'; position: absolute; top: 50%; left: 50%; color: #C60C30; font-size: 10px; line-height: 1; transform: translate(-50%, -50%); }
.zyd-flag-tr { background: #E30A17; }
.zyd-flag-tr::after { content: '☾'; position: absolute; top: 50%; left: 35%; color: #FFFFFF; font-size: 10px; line-height: 1; transform: translate(-50%, -50%); }
.zyd-flag-nl { background: linear-gradient(to bottom, #AE1C28 33%, #FFFFFF 33%, #FFFFFF 66%, #21468B 66%); }
.zyd-flag-cs { background: linear-gradient(to bottom, #FFFFFF 50%, #D7141A 50%); position: relative; }
.zyd-flag-cs::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 0; border-left: 11px solid #11457E; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
/* Arabic — represented by the Saudi Arabia visual (green field + horizontal
   white sword), since Arabic isn't tied to a single country. Simpler than
   rendering shahada calligraphy in CSS and still instantly readable as
   "Arabic-language region". Mirrors the style of .zyd-flag-tr / .zyd-flag-ja. */
.zyd-flag-ar { background: #006C35; }
.zyd-flag-ar::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: 28%; height: 1.5px; background: #FFFFFF; border-radius: 1px; }
.zyd-flag-ar::before { content: ''; position: absolute; left: 18%; bottom: 26%; width: 3px; height: 3px; background: #FFFFFF; border-radius: 50%; }
/* Unknown — generic neutral */
.zyd-flag:not([class*="zyd-flag-"]) {
    background: linear-gradient(135deg, var(--border-em) 0%, var(--border-str) 100%);
}

/* === Lang link layout === */
.zyd-lang-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 12px !important;
    color: var(--text) !important;
    border-radius: var(--radius-sm) !important;
    transition: background 0.15s, color 0.15s !important;
    font-size: 14px !important;
    font-family: var(--font-sans) !important;
}
.zyd-lang-link:hover {
    background: var(--bg-hover) !important;
    color: var(--acc) !important;
}
.zyd-lang-link.current-lang {
    color: var(--acc) !important;
    background: rgba(190, 242, 100, 0.06) !important;
}
.zyd-lang-link .zyd-lang-name { flex: 1; }
.zyd-lang-link .zyd-lang-short {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}
.zyd-lang-link.current-lang .zyd-lang-short { color: var(--acc); opacity: 0.7; }

/* In mobile menu, show lang as 2-col grid like other chips */
.zyd-mobile-lang .zyd-lang-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.zyd-mobile-lang .zyd-lang-link {
    border: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    padding: 12px 12px !important;
}
.zyd-mobile-lang .zyd-lang-link:hover,
.zyd-mobile-lang .zyd-lang-link.current-lang {
    border-color: var(--acc) !important;
}


/* ==========================================================================
   v2.2.3 — Logo without Z + light-theme readability sweep
   ========================================================================== */

/* === Logo: always show wordmark on mobile === */
@media (max-width: 600px) {
    .zyd-logo-text {
        display: inline-flex !important;
        font-size: 11px;
        letter-spacing: 0.06em;
    }
    .zyd-logo { gap: 8px; }
    .zyd-logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
    .zyd-logo-mark svg { width: 24px; height: 24px; }
}
@media (max-width: 380px) {
    .zyd-logo-text { font-size: 10.5px; letter-spacing: 0.04em; }
    .zyd-logo-mark { width: 26px; height: 26px; }
    .zyd-logo-mark svg { width: 22px; height: 22px; }
}

/* === LIGHT THEME: readability sweep ===
   Lime (#BEF264) on white has ~1.4:1 contrast — fails WCAG.
   Use darker olive variant for any *text* using accent. Keeps brand identity
   on backgrounds (buttons, fills) which still use lime fine. */

:root[data-theme="light"] {
    --acc-readable: #4D7C0F;       /* dark lime / olive — 5.4:1 on #FAFAFA */
    --acc-readable-soft: #65A30D;  /* slightly lighter for hover, decorative */
}

/* Tags / labels — these are small accent text (e.g. "// GET IN TOUCH") */
:root[data-theme="light"] .zyd-cta-tag,
:root[data-theme="light"] .zyd-cookie-tag,
:root[data-theme="light"] .zyd-faq-cta-tag,
:root[data-theme="light"] .zyd-faq-num,
:root[data-theme="light"] .zyd-contact-card-tag,
:root[data-theme="light"] .zyd-support-card-tag,
:root[data-theme="light"] .zyd-contact-social-label,
:root[data-theme="light"] .zyd-about-manifesto-num,
:root[data-theme="light"] .zyd-about-approach-step-label,
:root[data-theme="light"] .zyd-empty-state-tag,
:root[data-theme="light"] .zyd-mobile-lang-label,
:root[data-theme="light"] .zyd-principle-num,
:root[data-theme="light"] .zyd-app-num,
:root[data-theme="light"] .zyd-press-color-hint,
:root[data-theme="light"] .zyd-press-desc-len,
:root[data-theme="light"] .zyd-works-placeholder-tag,
:root[data-theme="light"] .zyd-404-tag,
:root[data-theme="light"] .zyd-support-helpers-num,
:root[data-theme="light"] .zyd-journal-more,
:root[data-theme="light"] .zyd-mobile-menu-list a:hover,
:root[data-theme="light"] .zyd-faq-q:hover,
:root[data-theme="light"] .zyd-faq-item:hover .zyd-faq-q-text,
:root[data-theme="light"] .zyd-faq-item[open] .zyd-faq-q-text {
    color: var(--acc-readable) !important;
}

/* Hero pre-line (the small horizontal accent bar) — needs more weight on white */
:root[data-theme="light"] .zyd-hero-pre-line {
    background: var(--acc-readable);
    height: 2px;
}
:root[data-theme="light"] .zyd-hero-pre {
    color: var(--text-mut);
}

/* Marquee separator diamond — too washed-out on white otherwise */
:root[data-theme="light"] .zyd-marquee-sep {
    color: var(--acc-readable);
}

/* Featured app tag — white on lime is fine, but coming-soon wasn't readable */
:root[data-theme="light"] .zyd-app-tag-coming_soon {
    color: #92400E !important;
    border-color: #FBBF24 !important;
    background: rgba(251, 191, 36, 0.12) !important;
}
:root[data-theme="light"] .zyd-app-tag-deprecated {
    color: #991B1B !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}
:root[data-theme="light"] .zyd-app-tag-featured {
    color: var(--acc-readable) !important;
    border-color: var(--acc-readable) !important;
    background: rgba(190, 242, 100, 0.18) !important;
}

/* Hover states — links that turn lime on hover */
:root[data-theme="light"] .zyd-cta-email:hover,
:root[data-theme="light"] .zyd-footer-email:hover,
:root[data-theme="light"] .zyd-contact-email-huge:hover,
:root[data-theme="light"] .zyd-contact-card-link:hover,
:root[data-theme="light"] .zyd-contact-social-link:hover .zyd-contact-social-arrow,
:root[data-theme="light"] .zyd-press-copy-btn:hover,
:root[data-theme="light"] .zyd-press-dl-btn:hover,
:root[data-theme="light"] .zyd-store-btn:hover,
:root[data-theme="light"] .zyd-faq-item[open] .zyd-faq-indicator,
:root[data-theme="light"] .zyd-cookie-text a:hover,
:root[data-theme="light"] .zyd-press-facts dd a:hover,
:root[data-theme="light"] .zyd-about-facts-grid dd a:hover,
:root[data-theme="light"] .zyd-nav-menu a:hover,
:root[data-theme="light"] .zyd-nav-menu .current-menu-item a,
:root[data-theme="light"] .zyd-nav-menu .current_page_item a,
:root[data-theme="light"] .zyd-nav-menu a[aria-current="page"],
:root[data-theme="light"] .zyd-footer-menu a:hover,
:root[data-theme="light"] .zyd-search-title a:hover,
:root[data-theme="light"] .zyd-journal-title a:hover,
:root[data-theme="light"] .zyd-press-logo:hover .zyd-press-logo-meta h3,
:root[data-theme="light"] .zyd-lang-list a:hover,
:root[data-theme="light"] .zyd-lang-list a.current-lang,
:root[data-theme="light"] .zyd-lang-link:hover,
:root[data-theme="light"] .zyd-lang-link.current-lang,
:root[data-theme="light"] .zyd-mobile-menu-list a:hover {
    color: var(--acc-readable) !important;
}

/* Borders and underlines — the accent line under hovered links */
:root[data-theme="light"] .zyd-cta-email:hover,
:root[data-theme="light"] .zyd-footer-email:hover,
:root[data-theme="light"] .zyd-contact-email-huge:hover {
    border-bottom-color: var(--acc-readable) !important;
}
:root[data-theme="light"] .zyd-press-copy-btn:hover,
:root[data-theme="light"] .zyd-press-dl-btn:hover,
:root[data-theme="light"] .zyd-store-btn:hover,
:root[data-theme="light"] .zyd-btn-ghost:hover,
:root[data-theme="light"] .zyd-cookie-reject:hover,
:root[data-theme="light"] .zyd-theme-toggle:hover,
:root[data-theme="light"] .zyd-menu-toggle:hover,
:root[data-theme="light"] .zyd-lang-btn:hover,
:root[data-theme="light"] .zyd-faq-item[open] .zyd-faq-indicator {
    border-color: var(--acc-readable) !important;
}

/* Underline / border on hover on prose links */
:root[data-theme="light"] .zyd-prose a {
    color: var(--acc-readable) !important;
    border-bottom-color: rgba(77, 124, 15, 0.35) !important;
}
:root[data-theme="light"] .zyd-prose a:hover {
    border-bottom-color: var(--acc-readable) !important;
}
:root[data-theme="light"] .zyd-support-helpers-list a {
    color: var(--acc-readable) !important;
    border-bottom-color: rgba(77, 124, 15, 0.35) !important;
}

/* Page tag chip — already had a light-theme rule, ensure border too */
:root[data-theme="light"] .zyd-page-tag {
    background: rgba(190, 242, 100, 0.22);
    border-color: rgba(77, 124, 15, 0.45);
    color: var(--acc-readable);
}

/* Section meta in light theme is fine (gray on white), but make scroll-progress darker */
:root[data-theme="light"] .zyd-progress {
    background: var(--acc-readable);
    box-shadow: 0 0 8px rgba(77, 124, 15, 0.4);
}

/* Lang dropdown current-lang background tint */
:root[data-theme="light"] .zyd-lang-link.current-lang {
    background: rgba(190, 242, 100, 0.22) !important;
}

/* Cookie pref dot animation glow — make visible on white */
:root[data-theme="light"] .zyd-contact-response-dot {
    background: var(--acc-readable);
}
:root[data-theme="light"] @keyframes zydPulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 124, 15, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(77, 124, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 124, 15, 0); }
}

/* Logo suffix (/STUDIO) — visible on both themes */
:root[data-theme="light"] .zyd-logo-suffix { color: var(--acc-readable); }

/* Hero box keeps lime fill — text is dark olive, that's fine */
/* Buttons (.zyd-btn-primary) keep lime fill, dark text — fine */

/* Card hover/glow tints in light — replace lime tint with subtle green-ish */
:root[data-theme="light"] .zyd-principle::before,
:root[data-theme="light"] .zyd-contact-card::before,
:root[data-theme="light"] .zyd-support-card::before,
:root[data-theme="light"] .zyd-about-manifesto-item::before {
    background: linear-gradient(135deg, rgba(77, 124, 15, 0.05) 0%, transparent 60%);
}

/* Hero glow (radial behind contact CTA) — softer on white */
:root[data-theme="light"] .zyd-contact-cta::before,
:root[data-theme="light"] .zyd-contact-hero::before,
:root[data-theme="light"] .zyd-faq-hero::before,
:root[data-theme="light"] .zyd-about-hero::before,
:root[data-theme="light"] .zyd-faq-cta::before,
:root[data-theme="light"] .zyd-404::before,
:root[data-theme="light"] .zyd-about-cta-section .zyd-cta-inner::before {
    background: radial-gradient(ellipse, rgba(77, 124, 15, 0.06) 0%, transparent 65%);
}

/* Cookie banner shadow — softer on white */
:root[data-theme="light"] .zyd-cookie {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
    border-color: var(--border-em);
}

/* Press color tile shadow — too dark on white */
:root[data-theme="light"] .zyd-press-color:hover {
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.15);
}

/* App icon shadows — much softer on white */
:root[data-theme="light"] .zyd-app-icon {
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.18);
}

/* The "BBH: Break Bad Habits" featured-card tint — make accent border visible */
:root[data-theme="light"] .zyd-app-card.zyd-app-status-featured {
    border-color: rgba(77, 124, 15, 0.5) !important;
    background: linear-gradient(180deg, rgba(190, 242, 100, 0.18) 0%, var(--bg-card) 40%) !important;
}
:root[data-theme="light"] .zyd-app-card.zyd-app-status-featured:hover {
    border-color: var(--acc-readable) !important;
    box-shadow: 0 20px 40px -16px rgba(77, 124, 15, 0.25) !important;
}

/* Selection highlight — was lime fill, dark text — works fine on both themes */


/* === Cookie reopen button (separated from Legal menu) === */
.zyd-cookie-reopen-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-full);
    color: var(--text-mut);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.zyd-cookie-reopen-btn:hover {
    border-color: var(--acc);
    color: var(--text);
    background: var(--bg-hover);
}
.zyd-cookie-reopen-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 8px var(--acc-glow);
    flex-shrink: 0;
}
:root[data-theme="light"] .zyd-cookie-reopen-btn:hover {
    border-color: var(--acc-readable);
}
:root[data-theme="light"] .zyd-cookie-reopen-dot {
    background: var(--acc-readable);
    box-shadow: 0 0 8px rgba(77, 124, 15, 0.4);
}

/* ==========================================================================
   v2.2.7 — Telegram channel styles
   ========================================================================== */

/* === "or" divider on home contact CTA === */
.zyd-cta-or {
    display: flex; align-items: center; justify-content: center;
    gap: 14px;
    margin: 36px auto 24px;
    max-width: 240px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.zyd-cta-or::before,
.zyd-cta-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-em), transparent);
}

.zyd-cta-channels {
    display: flex; justify-content: center; gap: 12px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

/* === "card" variant — big channel card on home / contact === */
.zyd-cta-channel {
    display: inline-flex; align-items: center; gap: 18px;
    padding: 22px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
    text-align: left;
    min-width: 280px;
    position: relative; overflow: hidden;
}
.zyd-cta-channel::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(190, 242, 100, 0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.25s var(--ease); pointer-events: none;
}
.zyd-cta-channel:hover {
    transform: translateY(-3px);
    border-color: var(--acc);
    background: var(--bg-elev);
}
.zyd-cta-channel:hover::before { opacity: 1; }
.zyd-cta-channel-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(190, 242, 100, 0.12);
    color: var(--acc);
    flex-shrink: 0;
    transition: background 0.25s var(--ease);
}
.zyd-cta-channel:hover .zyd-cta-channel-icon {
    background: var(--acc);
    color: var(--acc-text);
}
.zyd-cta-channel-body {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
    text-align: left;
}
.zyd-cta-channel-label {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}
.zyd-cta-channel-value {
    font-family: var(--font-display); font-weight: 900;
    font-size: 22px; letter-spacing: -0.02em;
    color: var(--text);
}
.zyd-cta-channel-arrow {
    font-size: 18px;
    color: var(--text-mut);
    transition: color 0.2s, transform 0.2s var(--ease);
}
.zyd-cta-channel:hover .zyd-cta-channel-arrow {
    color: var(--acc);
    transform: translate(3px, -3px);
}

/* === "pill" variant — small under-CTA chip === */
.zyd-tg-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-str);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    transition: all 0.25s var(--ease);
}
.zyd-tg-pill:hover {
    border-color: var(--acc);
    color: var(--acc);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px var(--acc-glow);
}
.zyd-tg-pill svg { color: var(--acc); transition: transform 0.25s var(--ease); }
.zyd-tg-pill:hover svg { transform: translateX(2px); }
.zyd-tg-pill-arrow {
    color: var(--text-mut);
    transition: transform 0.2s var(--ease);
}
.zyd-tg-pill:hover .zyd-tg-pill-arrow {
    color: var(--acc); transform: translateX(3px);
}

/* "or, if email feels too formal —" wrapper on contact page + about */
.zyd-contact-alt,
.zyd-cta-alt {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    margin: 24px 0 28px;
}
.zyd-cta-alt { align-items: center; }
.zyd-contact-alt-or {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* === "btn" variant — matches .zyd-btn-ghost for FAQ etc === */
.zyd-btn-tg {
    display: inline-flex; align-items: center; gap: 10px;
}
.zyd-btn-tg svg { color: var(--acc); }
:root[data-theme="light"] .zyd-btn-tg svg { color: var(--acc-readable); }

/* FAQ CTA wraps two buttons side-by-side */
.zyd-faq-cta-actions {
    display: inline-flex; align-items: center; gap: 12px;
    flex-wrap: wrap; justify-content: center;
}

/* === "inline" variant — text link with icon === */
.zyd-tg-inline {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text);
    border-bottom: 1px solid var(--border-em);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
    font-weight: 500;
}
.zyd-tg-inline:hover {
    color: var(--acc);
    border-bottom-color: var(--acc);
}
.zyd-tg-inline svg {
    color: var(--acc);
    flex-shrink: 0;
}

/* Footer wrap for inline TG link */
.zyd-footer-tg-wrap {
    margin-top: 12px;
    font-size: 13px;
}
.zyd-footer-tg-wrap .zyd-tg-inline {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.02em;
}

/* === Light theme overrides for accent colors on TG components === */
:root[data-theme="light"] .zyd-cta-channel:hover {
    border-color: var(--acc-readable);
}
:root[data-theme="light"] .zyd-cta-channel-icon {
    background: rgba(77, 124, 15, 0.12);
    color: var(--acc-readable);
}
:root[data-theme="light"] .zyd-cta-channel:hover .zyd-cta-channel-icon {
    background: var(--acc-readable);
    color: #FFFFFF;
}
:root[data-theme="light"] .zyd-cta-channel:hover .zyd-cta-channel-arrow,
:root[data-theme="light"] .zyd-tg-pill:hover,
:root[data-theme="light"] .zyd-tg-pill svg,
:root[data-theme="light"] .zyd-tg-pill:hover svg,
:root[data-theme="light"] .zyd-tg-pill:hover .zyd-tg-pill-arrow,
:root[data-theme="light"] .zyd-tg-inline:hover,
:root[data-theme="light"] .zyd-tg-inline svg {
    color: var(--acc-readable);
}
:root[data-theme="light"] .zyd-tg-pill:hover {
    border-color: var(--acc-readable);
    box-shadow: 0 12px 28px -10px rgba(77, 124, 15, 0.3);
}
:root[data-theme="light"] .zyd-tg-inline:hover {
    border-bottom-color: var(--acc-readable);
}

/* === Mobile — stack channel cards on home, full-width === */
@media (max-width: 600px) {
    .zyd-cta-channels { flex-direction: column; align-items: stretch; }
    .zyd-cta-channel { min-width: 0; width: 100%; }
    .zyd-faq-cta-actions { flex-direction: column; align-items: stretch; }
    .zyd-faq-cta-actions .zyd-btn { width: 100%; justify-content: center; }
    .zyd-contact-alt, .zyd-cta-alt { align-items: stretch; }
    .zyd-contact-alt .zyd-tg-pill,
    .zyd-cta-alt .zyd-tg-pill { justify-content: center; }
}

/* ==========================================================================
   v2.2.8 — mobile menu overlap fix
   ========================================================================== */

/* When mobile menu is open, force header to solid background so the logo
   is not overlapped by scrolling menu items behind it.
   (Header has z-index 100 and is position:fixed, but is transparent at the
   top of the page — that's what caused the overlap.) */
body.zyd-menu-open .zyd-header {
    background: var(--bg);
    border-bottom-color: var(--border);
}
body.zyd-menu-open .zyd-header.is-scrolled {
    background: var(--bg); /* override the scrolled translucent variant */
}

/* In light theme — same, but using the light bg token */
:root[data-theme="light"] body.zyd-menu-open .zyd-header {
    background: var(--bg);
    border-bottom-color: var(--border);
}

/* Also: give the mobile menu's first item a tiny bit more top-padding so
   it doesn't butt right up against the header edge when scrolled */
.zyd-mobile-menu-inner { padding-top: 12px; }

/* ==========================================================================
   v2.2.9 — header solid by default, transparent only on home
   ========================================================================== */

/* On every non-home page (single posts, inner pages, archives, search, 404),
   the header needs a solid background from the top — content starts right
   under it, and transparent-on-top lets titles/tags bleed through the logo.
   Home keeps the cinematic transparent-on-top + is-scrolled-opaque dance. */
body:not(.home) .zyd-header {
    background: var(--bg);
    border-bottom-color: var(--border);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* When scrolled, keep the slight translucent variant still */
body:not(.home) .zyd-header.is-scrolled {
    background: var(--bg);
    border-bottom-color: var(--border-str);
}

/* Intro glitch-arrow icon in Telegram card — transition-friendly */
.zyd-cta-channel-arrow {
    color: var(--text-mut);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease), color 0.2s;
}
.zyd-cta-channel:hover .zyd-cta-channel-arrow {
    color: var(--acc);
    transform: translate(3px, -3px);
}
:root[data-theme="light"] .zyd-cta-channel:hover .zyd-cta-channel-arrow {
    color: var(--acc-readable);
}

/* ==========================================================================
   v2.4.7 — Tablet (1024px) spacing intermediates. Sits between freshly
   tightened desktop values and the ≤900 / ≤600 phone overrides. Without
   these, the jump from desktop → 900px is sharper than it should be.
   ========================================================================== */
@media (max-width: 1024px) {
    .zyd-section                 { padding: 64px 0; }
    .zyd-works-section           { padding-bottom: 56px; }
    .zyd-contact-cta             { padding: 80px 0; }
    .zyd-about-cta-section       { padding: 64px 0 80px; }

    .zyd-app-shots-section       { padding: 48px 0 60px; }
    .zyd-app-about-section       { padding: 40px 0 56px; }
    .zyd-app-cta-section         { padding: 40px 0; }
    .zyd-app-more-section        { padding: 28px 0 64px; }
    .zyd-app-hero-marquee        { margin-top: 36px; }

    .zyd-press-head              { margin-bottom: 40px; }
    .zyd-press-section           { margin-bottom: 44px; }
    .zyd-press-contact           { padding: 48px 0 28px; }

    .zyd-contact-channels        { padding-top: 32px; }
    .zyd-contact-social-section  { padding-bottom: 64px; }

    .zyd-faq-cta                 { margin-top: 40px; padding: 48px 32px; }

    .zyd-marquee                 { margin-bottom: 44px; }
    .zyd-page-content            { padding-bottom: 60px; }

    /* v2.5.7 — tablet grid intermediates so cards don't crush at 1024px.
       Without these, several 3- and 4-column grids stay full-width until
       the 900px mobile breakpoint, which makes cards uncomfortably narrow. */
    .zyd-press-logos             { grid-template-columns: repeat(2, 1fr); }
    .zyd-press-colors            { grid-template-columns: repeat(3, 1fr); }
    .zyd-contact-cards,
    .zyd-support-cards           { grid-template-columns: repeat(2, 1fr); }
    .zyd-works-page-grid         { grid-template-columns: repeat(2, 1fr); }
    .zyd-app-more-grid           { grid-template-columns: repeat(2, 1fr); }
    .zyd-principles-grid         { grid-template-columns: repeat(2, 1fr); }
}

/* v2.5.7 — extra step between 600 and 900: drop Works cards to 1 column
   sooner so the App Store + Google Play buttons stop crowding each other. */
@media (max-width: 720px) {
    .zyd-works-page-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v2.4.6 — Unified mobile spacing pass.
   Several sections were ported from desktop with 80–140px vertical padding
   that turned into long black voids on phones. This block compresses every
   such section at ≤900px and ≤600px in one place. Desktop spacing untouched.
   ========================================================================== */
@media (max-width: 900px) {
    /* Front page + generic sections */
    .zyd-section                 { padding: 48px 0; }
    .zyd-works-section           { padding-bottom: 56px; }
    .zyd-marquee                 { margin-bottom: 36px; }

    /* Front-page contact CTA — was 140 → 80 still too tall on phones */
    .zyd-contact-cta             { padding: 48px 0; }

    /* About page CTA at the bottom */
    .zyd-about-cta-section       { padding: 56px 0 72px; }

    /* Press kit page */
    .zyd-press                   { padding-top: calc(var(--header-h) + 36px); padding-bottom: 56px; }
    .zyd-press-head              { margin-bottom: 36px; }
    .zyd-press-section           { margin-bottom: 44px; }
    .zyd-press-contact           { padding: 48px 0 24px; }

    /* Contact page */
    .zyd-contact-channels        { padding-top: 36px; }
    .zyd-contact-social-section  { padding-bottom: 56px; }

    /* FAQ page CTA card */
    .zyd-faq-cta                 { margin-top: 40px; padding: 40px 24px; }

    /* Empty state cards (search/journal) */
    .zyd-empty-state             { padding: 48px 24px; }

    /* Footer */
    .zyd-footer                  { padding: 48px 0 24px; }
    .zyd-footer-top              { gap: 28px; padding-bottom: 32px; margin-bottom: 24px; }

    /* Generic large bottom margins inside pages */
    .zyd-press-logos             { margin-bottom: 0; }
}

@media (max-width: 600px) {
    .zyd-section                 { padding: 36px 0; }
    .zyd-works-section           { padding-bottom: 40px; }
    .zyd-marquee                 { margin-bottom: 28px; }

    .zyd-contact-cta             { padding: 36px 0; }
    .zyd-contact-cta::before     { width: 90vw; height: 60vw; }

    .zyd-about-cta-section       { padding: 40px 0 56px; }

    .zyd-press                   { padding-top: calc(var(--header-h) + 24px); padding-bottom: 48px; }
    .zyd-press-head              { margin-bottom: 28px; }
    .zyd-press-section           { margin-bottom: 32px; }
    .zyd-press-contact           { padding: 40px 0 16px; }

    .zyd-contact-channels        { padding-top: 24px; }
    .zyd-contact-social-section  { padding-bottom: 48px; }

    .zyd-faq-cta                 { margin-top: 32px; padding: 32px 20px; }

    .zyd-empty-state             { padding: 40px 20px; }

    .zyd-footer                  { padding: 40px 0 20px; }

    /* Section heading bottom margin */
    .zyd-section-head            { margin-bottom: 18px; }

    /* CTA title huge size — keep readable, no extra room */
    .zyd-cta-title               { margin-bottom: 24px; }
}

/* ==========================================================================
   29. v2.7.0 — Hero Enrichment: Spotlight + Floating Icons + Recently Shipped
                + Optional Film Grain. Isolated block — safe to delete to revert.
   ========================================================================== */

/* ---------- Hero Spotlight ---------- */
/* Soft radial glow that tracks the cursor across the hero. JS sets --sx/--sy.
   Lives BEHIND the headline (z-index 0). Disabled below 900px width or on
   touch-only devices via the media-query guards at the bottom of this block. */
.zyd-hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    background: radial-gradient(
        circle 420px at var(--sx, 50%) var(--sy, 50%),
        rgba(190, 242, 100, 0.12),
        transparent 65%
    );
    will-change: opacity;
}
.zyd-hero-spotlight.is-on { opacity: 1; }

:root[data-theme="light"] .zyd-hero-spotlight {
    background: radial-gradient(
        circle 420px at var(--sx, 50%) var(--sy, 50%),
        rgba(77, 124, 15, 0.10),
        transparent 65%
    );
}

/* ---------- Hero box — idle "breathing" glow on touch devices ----------
   CSS-only fallback when the magnetic pull JS bows out (touch, reduce-motion,
   etc). Plays only AFTER the entry animation has marked the box `.zyd-anim-done`,
   so it never fights the intro transform. */
.zyd-hero-box.zyd-anim-done.zyd-hero-box-idle {
    animation: zydBoxBreath 4.2s ease-in-out 800ms infinite;
}
@keyframes zydBoxBreath {
    0%, 100% { box-shadow: 0 0 40px var(--acc-glow); }
    50%      { box-shadow: 0 0 70px rgba(190, 242, 100, 0.55); }
}

/* Phones: hide the spotlight — touch has no cursor to track */
@media (max-width: 700px) {
    .zyd-hero-spotlight { display: none; }
}
@media (hover: none) {
    .zyd-hero-spotlight { display: none; }
}

/* ---------- Recently Shipped Section ---------- */
/* Inherits the standard .zyd-section padding everywhere — 80/80 desktop,
   60/60 (1024), 64/64 (1024), 48/48 (900), 36/36 (600) — so the rhythm
   between sections on mobile and tablet stays identical to the rest of the
   page. Desktop gets one explicit override that adds a heavier trailing
   breath before the Contact CTA — felt too cramped at 80/80 there. */
@media (min-width: 901px) {
    .zyd-recent-section { padding-bottom: 96px; }
}

.zyd-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.zyd-recent-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 26px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-str);
    border-radius: var(--radius-md);
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
                background 0.35s var(--ease), box-shadow 0.35s var(--ease);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.zyd-recent-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.zyd-recent-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-em);
    background: var(--bg-elev);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.zyd-recent-item:hover::before { opacity: 1; }

.zyd-recent-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.zyd-recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elev);
}
.zyd-recent-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.zyd-recent-date {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.zyd-recent-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}
.zyd-recent-excerpt {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-mut);
    margin: 0;
    flex-grow: 1;
}
.zyd-recent-cta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acc);
    margin-top: 4px;
    transition: transform 0.25s var(--ease);
}
.zyd-recent-item:hover .zyd-recent-cta { transform: translateX(4px); }

:root[data-theme="light"] .zyd-recent-cta { color: var(--acc-readable, #4D7C0F); }

/* Tablet: 2-up grid; phone: stack */
@media (max-width: 900px) {
    .zyd-recent-grid { grid-template-columns: repeat(2, 1fr); }
    .zyd-recent-item:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    /* padding inherited from .zyd-section (36px) — same rhythm as Principles / Works */
    .zyd-recent-grid { grid-template-columns: 1fr; gap: 14px; }
    .zyd-recent-item { padding: 22px 20px 20px; }
    .zyd-recent-item:nth-child(3) { grid-column: auto; }
    .zyd-recent-title { font-size: 20px; }
}

/* ---------- Optional Film Grain Overlay ---------- */
/* Fixed full-viewport SVG noise, pointer-events: none, never animates.
   Toggled by Customizer flag zydeno_grain_enabled (default OFF). */
/* Grain sits at z-index 1 — it's background TEXTURE, not foreground UI. That
   keeps it BELOW every interactive layer in the theme: header (100), mobile
   menu (99 in source but always above the body content stack), cookie banner
   (150), scroll-to-top, page-transition (9997), cursor (9998), intro (9999).
   Painted via mix-blend-mode against the body, so the noise reads as a
   subtle film grain across the whole site regardless of light/dark theme.
   pointer-events: none guarantees it never blocks taps even if z-index logic
   shifts later. */
.zyd-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
    background-size: 180px 180px;
}
:root[data-theme="light"] .zyd-grain {
    opacity: 0.03;
    mix-blend-mode: multiply;
}

/* ---------- Reduced motion overrides for v2.7.0+ elements ---------- */
@media (prefers-reduced-motion: reduce) {
    .zyd-hero-spotlight { display: none; }
    .zyd-hero-box.zyd-hero-box-idle { animation: none !important; }
    .zyd-recent-item:hover { transform: none; }
}

/* ==========================================================================
   30. v2.7.4 — Light theme polish
   Targeted overrides for places where the global `--acc-glow` retune (in
   :root[data-theme="light"]) isn't enough on its own:
     - Lime text (`color: var(--acc)`) on white = WCAG fail (~1.4:1 contrast)
     - Hardcoded `rgba(0,0,0,0.5-0.7)` shadows that punch holes through white
     - Hardcoded `rgba(190,242,100,...)` lime fills that vanish on white
   Isolated block — safe to delete to revert.
   ========================================================================== */

/* ---------- Critical: lime text → olive on white ---------- */

/* Ghost button hover text was inheriting `color: var(--acc)` from the base
   rule — readable lime on dark, unreadable lime on white. Border was already
   overridden elsewhere; text was missed. */
:root[data-theme="light"] .zyd-btn-ghost:hover { color: var(--acc-readable); }

/* Cookie banner "decline" hover text — same root cause as the ghost button. */
:root[data-theme="light"] .zyd-cookie-reject:hover { color: var(--acc-readable); }

/* Big letter placeholder when an app has no featured image. Hero version
   (100px), more-apps card (26px). Lime on white = invisible. */
:root[data-theme="light"] .zyd-app-hero-icon-letter,
:root[data-theme="light"] .zyd-app-more-icon-letter { color: var(--acc-readable); }

/* Screenshot rail nav buttons turn lime on hover; the arrow inside was
   relying on inherited color which on light was lime-on-lime invisible. */
:root[data-theme="light"] .zyd-app-shots-nav:hover { color: var(--acc-text); }

/* "Back to top" button: same fix — hover paints it lime, arrow stayed
   inherited and washed out. */
:root[data-theme="light"] .zyd-to-top:hover { color: var(--acc-text); }

/* "COMING SOON" pill in the home Works grid used dashed lime border + lime
   text — both nearly invisible on white. Switch both to olive. */
:root[data-theme="light"] .zyd-app-tag-coming-soon {
    color: var(--acc-readable);
    border-color: var(--acc-readable);
}

/* ---------- Hardcoded dark shadows → softer on white ---------- */

/* Recently shipped card hover shadow. The 0.5 alpha was right for cards
   sitting on #0C0C0C; on #FAFAFA it punches a sharp dark hole. */
:root[data-theme="light"] .zyd-recent-item:hover {
    box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.18);
}

/* App page main icon (single-app hero) — large square with a deep black
   shadow that turns into a stamp on white. */
:root[data-theme="light"] .zyd-app-hero-icon {
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.18),
                0 0 0 1px var(--border) inset;
}

/* Works page card icons — same idea, smaller scale. */
:root[data-theme="light"] .zyd-works-page-card-icon {
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.14);
}

/* About page team avatars. */
:root[data-theme="light"] .zyd-about-team-avatar {
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px var(--border) inset;
}

/* App sticky bar icon — small but visible. */
:root[data-theme="light"] .zyd-app-sticky-icon {
    box-shadow: 0 3px 10px -3px rgba(0, 0, 0, 0.12);
}

/* ---------- Recently shipped accent line (my v2.7.0 addition) ---------- */
/* Top gradient line on hover used `var(--acc)` directly — lime on white was
   edge-of-invisible. Push to olive so the hover signal actually reads. */
:root[data-theme="light"] .zyd-recent-item::before {
    background: linear-gradient(90deg, transparent, var(--acc-readable), transparent);
}
/* Recent CTA arrow — base rule in block 29 sets `color: var(--acc)`; the
   existing light override at the end of block 29 already does this, but
   re-asserting here keeps this block self-contained for easy revert. */
:root[data-theme="light"] .zyd-recent-cta { color: var(--acc-readable); }

/* keyframes can't live inside a selector — declared separately, applied via
   a light-theme class targeting the same animation property. */
:root[data-theme="light"] .zyd-hero-box.zyd-anim-done.zyd-hero-box-idle {
    animation-name: zydBoxBreathLight;
}
@keyframes zydBoxBreathLight {
    0%, 100% { box-shadow: 0 0 40px rgba(77, 124, 15, 0.18); }
    50%      { box-shadow: 0 0 70px rgba(77, 124, 15, 0.28); }
}

/* ---------- Intro loader on light ---------- */
/* The intro screen uses `background: var(--bg)` — white on light theme.
   Suffix text + dot were styled with lime + lime-glow that disappeared. */
:root[data-theme="light"] .zyd-intro-suffix {
    color: var(--acc-readable);
    text-shadow: 0 0 30px rgba(77, 124, 15, 0.35),
                 0 0 60px rgba(77, 124, 15, 0.18);
}
:root[data-theme="light"] .zyd-intro-dot {
    background: var(--acc-readable);
    box-shadow: 0 0 24px rgba(77, 124, 15, 0.4),
                0 0 60px rgba(77, 124, 15, 0.2);
}

/* ---------- Press logos: light-variant preview ---------- */
/* `.zyd-press-logo-light .zyd-press-logo-preview` had `background: #FAFAFA` —
   exactly the body background on light theme. Tile vanished into the page.
   Step to a slightly cooler tone so there's at least a visible card edge. */
:root[data-theme="light"] .zyd-press-logo-light .zyd-press-logo-preview {
    background: #F4F4F5;
}

/* ==========================================================================
   31. v2.7.5 — Page-by-page light theme audit fixes
   Found by walking every PHP template against the cascade. Each rule has a
   one-line comment with the template + symptom that prompted it.
   ========================================================================== */

/* page-support.php — .zyd-support-card-btn hover painted text + border lime
   on white = invisible CTA in the 3 main Support cards. */
:root[data-theme="light"] .zyd-support-card-btn:hover {
    border-color: var(--acc-readable);
    color: var(--acc-readable);
    background: rgba(77, 124, 15, 0.06);
}

/* page-press.php — brand color swatches use inline lime / off-white
   backgrounds. On white body the edges disappear; press kit looks broken.
   Inset border restores the tile shape without touching the swatch color. */
:root[data-theme="light"] .zyd-press-color {
    box-shadow: inset 0 0 0 1px var(--border-str);
}

/* single-zydeno_app.php — .zyd-app-cta::before is a radial backdrop behind
   the in-page CTA. At opacity 0.4 on white it reads as a dirty yellow blob
   (now that --acc-glow is olive); softer alpha makes it a subtle warm wash. */
:root[data-theme="light"] .zyd-app-cta::before {
    opacity: 0.22;
}

/* page-cookies.php / page-privacy.php / page-terms.php — inline <code> in
   prose was `color: var(--acc)` = lime text on near-white `bg-alt`. Olive
   reads cleanly without changing the code-tag's grey background pill. */
:root[data-theme="light"] .zyd-prose code {
    color: var(--acc-readable);
}

/* index.php — pagination "hover" state on Journal archive was lime border +
   lime text. Olive override matches the .current pill's flagship lime fill. */
:root[data-theme="light"] .zyd-pagination-wrap .page-numbers:not(.current):hover {
    border-color: var(--acc-readable);
    color: var(--acc-readable);
}

/* single.php — prev/next post nav under Journal entries: lime hover invisible. */
:root[data-theme="light"] .zyd-single-nav a:hover {
    color: var(--acc-readable);
}

/* ---------- Secondary (visible-but-faint) ---------- */

/* All prose pages — blockquote left border was raw lime (3px). Switched to
   olive so the quote attribution mark actually shows on white. */
:root[data-theme="light"] .zyd-prose blockquote {
    border-left-color: var(--acc-readable);
}

/* single-zydeno_app.php — About-lead aside also uses left lime border.
   Same pattern, same fix. */
:root[data-theme="light"] .zyd-app-about-lead {
    border-left-color: var(--acc-readable);
}

/* 404.php — glitch text effect relied on lime + `mix-blend-mode: screen` on
   dark backgrounds. On light the override already swaps to `multiply`, but
   lime-multiply on white is washed-out yellow. Olive multiply gives a more
   recognisable glitch tint. */
:root[data-theme="light"] .zyd-404-glitch::before,
:root[data-theme="light"] .zyd-404-glitch::after {
    color: var(--acc-readable);
}

/* search.php / 404.php — text-field focus border was raw lime, near-invisible
   on white. Olive keeps the focus signal subtle but actually visible. */
:root[data-theme="light"] .zyd-search-again input:focus,
:root[data-theme="light"] .zyd-404-search-row:focus-within {
    border-color: var(--acc-readable);
}

/* ==========================================================================
   32. v2.7.11 — Cross-page spacing harmony
   Inter-section gaps were uneven across non-homepage templates: contact,
   press, about, and single-app each had section-level overrides that
   broke the 2×padding rhythm of `.zyd-section` on at least one viewport.
   Found via systematic gap audit. Each rule below is documented with the
   page + viewport it fixes. Isolated block — safe to delete to revert.
   ========================================================================== */

/* ---------- page-contact.php: "Elsewhere" social section ---------- */
/* `.zyd-contact-social-section` had `padding-top: 0` to glue it close to
   the channels block above. Fine on desktop where each section already
   has 80px of its own breathing room, but on mobile the channels-cards
   bottom (24px) plus social-section top (0) gave only 24px between
   "Other channels" and "Elsewhere" — they read as one block. Half-step
   of padding on tablet/phone keeps them visibly separate while staying
   tighter than two full `.zyd-section` paddings stacked. */
@media (max-width: 900px) {
    .zyd-contact-social-section { padding-top: 24px; }
}
@media (max-width: 600px) {
    .zyd-contact-social-section { padding-top: 20px; }
}

/* ---------- page-press.php: last CTA was floating away ---------- */
/* `.zyd-press-section { margin-bottom: 56/44/36 }` between every block
   PLUS `.zyd-press-contact { padding: 56px 0 32px }` stacked to give the
   final "Writing about us" CTA twice the gap of every preceding press
   section. Zeroing the contact's own top padding lets the press-section
   margin-bottom alone control the rhythm — gap now matches the rest. */
.zyd-press-contact { padding-top: 0; }
@media (max-width: 1024px) { .zyd-press-contact { padding-top: 0; } }
@media (max-width: 900px)  { .zyd-press-contact { padding-top: 0; } }
@media (max-width: 600px)  { .zyd-press-contact { padding-top: 0; } }

/* ---------- page-about.php: team section padding-top override ---------- */
/* `.zyd-about-team { padding-top: 56px }` was a fixed value that didn't
   adapt across breakpoints — gave 136px gap on desktop vs the 160px
   norm, 104px on ≤900 vs the 96px norm (bigger than rest), 120px on
   ≤1024 vs the 128px norm. Replace with viewport-aware values that
   match `.zyd-section`'s standard padding at each breakpoint so the
   manifesto → studio transition is consistent with everything else. */
.zyd-about-team { padding-top: 80px; }
@media (max-width: 1024px) { .zyd-about-team { padding-top: 64px; } }
@media (max-width: 900px)  { .zyd-about-team { padding-top: 48px; } }
@media (max-width: 600px)  { .zyd-about-team { padding-top: 36px; } }

/* ---------- single-zydeno_app.php: longdesc tablet-landscape adaptation ---------- */
/* `.zyd-app-longdesc-section` jumps straight from desktop padding to
   ≤900 mobile padding without a 1024 intermediate, so on iPad landscape
   (1024×768) the section uses desktop `16px 0 72px` while its neighbours
   (shots, about) have already shrunk via their own 1024 overrides. Adds
   one missing breakpoint to keep the ratio with neighbours. */
@media (max-width: 1024px) {
    .zyd-app-longdesc-section { padding-bottom: 56px; }
}

/* ---------- single-zydeno_app.php: cta → more gap on mobile ---------- */
/* The cta-section (20px bottom) followed by more-section (16px top) gave
   only 36px between two heavy stacked blocks on phones — out of rhythm
   with the rest of the app-page beats (40-56px). Lift cta bottom to
   24px so the gap reaches 40, matching the shots↔longdesc neighbour. */
@media (max-width: 600px) {
    .zyd-app-cta-section { padding-bottom: 24px; }
}

/* ==========================================================================
   2.8 — Store links: Chrome Web Store & extra buttons, "In your browser" band
   ========================================================================== */
/* Multicolour brand marks (Google Play, Chrome, Microsoft) turn monochrome on hover like Play did. */
.zyd-app-badge-brand svg path, .zyd-app-badge-brand svg circle { transition: fill 0.25s var(--ease); }
@media (hover: hover) {
    .zyd-app-badge-brand:not(.zyd-app-badge-firefox):not(.zyd-app-badge-edge):hover svg path, .zyd-app-badge-brand:not(.zyd-app-badge-firefox):not(.zyd-app-badge-edge):hover svg circle { fill: currentColor !important; }
    .zyd-app-badge-brand:hover svg circle:last-child { fill: var(--acc) !important; }
}
.zyd-app-sticky-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
    .zyd-app-sticky-actions { flex-wrap: nowrap; gap: 6px; }
    /* One store has room for its name. */
    .zyd-app-sticky-actions:not(:has(a:nth-of-type(2))) .zyd-app-sticky-btn { flex: 0 0 auto; padding: 0 14px; gap: 7px; }
    .zyd-app-sticky-actions:not(:has(a:nth-of-type(2))) .zyd-app-sticky-btn svg { width: 16px; height: 16px; }
    .zyd-app-sticky-actions:not(:has(a:nth-of-type(2))) .zyd-app-sticky-btn span { display: inline; }
    /* Four or more stores: the row needs the width, the app icon alone names the bar. */
    .zyd-app-sticky-inner:has(.zyd-app-sticky-actions a:nth-of-type(4)) .zyd-app-sticky-title { display: none; }
    .zyd-app-sticky-inner:has(.zyd-app-sticky-actions a:nth-of-type(4)) .zyd-app-sticky-name { flex: 0 0 auto; }
    .zyd-app-sticky-inner .zyd-app-sticky-actions:has(a:nth-of-type(4)) { flex: 1 1 0; min-width: 0; }
    .zyd-app-sticky-actions:has(a:nth-of-type(4)) .zyd-app-sticky-btn { flex: 0 1 44px; }
}
/* Store buttons on cards (2.9.6): one row of equal-width buttons, and the
   whole row shares one look. initStoreButtonFit() (theme.js) measures the real
   label widths and sets the row's mode: full labels → slightly smaller labels
   (.zyd-btns-small) → logos only (.zyd-btns-icons, name kept in aria-label and
   a tooltip). Labels are never cut off, in any language or card width, and the
   row never wraps, so cards in a grid keep equal heights. */
.zyd-app-buttons, .zyd-works-page-card-stores { flex-wrap: nowrap !important; }
.zyd-app-buttons > .zyd-store-btn,
.zyd-works-page-card-stores > .zyd-works-page-card-store {
    flex: 1 1 0 !important; min-width: 0 !important;
    padding-left: 10px !important; padding-right: 10px !important;
    overflow: hidden;
}
.zyd-app-buttons > .zyd-store-btn > span,
.zyd-works-page-card-stores > .zyd-works-page-card-store > span {
    position: static !important; width: auto !important; height: auto !important;
    clip: auto !important; overflow: visible !important; white-space: nowrap;
}
.zyd-app-buttons > .zyd-store-btn > svg,
.zyd-works-page-card-stores > .zyd-works-page-card-store > svg { width: 17px; height: 17px; }
.zyd-app-buttons.zyd-btns-small > .zyd-store-btn,
.zyd-works-page-card-stores.zyd-btns-small > .zyd-works-page-card-store {
    gap: 6px !important; padding-left: 7px !important; padding-right: 7px !important;
}
.zyd-app-buttons.zyd-btns-small > .zyd-store-btn > span,
.zyd-works-page-card-stores.zyd-btns-small > .zyd-works-page-card-store > span {
    font-size: 12px !important; letter-spacing: -0.01em;
}
.zyd-app-buttons.zyd-btns-icons > .zyd-store-btn > span,
.zyd-works-page-card-stores.zyd-btns-icons > .zyd-works-page-card-store > span {
    position: absolute !important; width: 1px !important; height: 1px !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important;
}
.zyd-app-buttons.zyd-btns-icons > .zyd-store-btn > svg,
.zyd-works-page-card-stores.zyd-btns-icons > .zyd-works-page-card-store > svg { width: 21px; height: 21px; }
.zyd-app-buttons.zyd-btns-icons > .zyd-store-btn,
.zyd-works-page-card-stores.zyd-btns-icons > .zyd-works-page-card-store { padding-left: 0 !important; padding-right: 0 !important; }
/* Before the script has measured: rows with 4+ stores start as logos (they
   rarely fit labels on a card), the rest start with labels — so the first
   paint is already right in the common cases. */
.zyd-app-buttons:not(.zyd-btns-fit):has(> .zyd-store-btn:not(.zyd-store-btn-off) ~ .zyd-store-btn:not(.zyd-store-btn-off) ~ .zyd-store-btn:not(.zyd-store-btn-off) ~ .zyd-store-btn:not(.zyd-store-btn-off)) > .zyd-store-btn > span,
.zyd-works-page-card-stores:not(.zyd-btns-fit):has(> a ~ a ~ a ~ a) > a > span {
    position: absolute !important; width: 1px !important; height: 1px !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important;
}
.zyd-app-cta-many { flex-direction: column; align-items: flex-start; gap: 24px; }
.zyd-app-cta-many .zyd-app-cta-buttons { width: 100%; }
@media (min-width: 901px) { .zyd-app-hero-cta .zyd-app-badge { flex: 0 0 auto; } }

.zyd-ext {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px;
    padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 70%),
        var(--bg-card);
    position: relative; overflow: hidden;
}
.zyd-ext-copy { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.zyd-ext-chip {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px; border: 1px solid var(--border-em); border-radius: 999px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mut);
}
.zyd-ext-title {
    margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em;
    font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; color: var(--text);
}
.zyd-ext-accent { color: var(--acc); }
.zyd-ext-text { margin: 0; color: var(--text-mut); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.zyd-ext-list { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.zyd-ext-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px;
    border: 1px solid var(--border-em); border-radius: var(--radius-md); background: var(--bg-elev);
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.zyd-ext-item:hover { border-color: var(--acc); transform: none; }
.zyd-ext-item-main {
    flex: 1; min-width: 0; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto;
    column-gap: 14px; align-items: center; text-decoration: none; color: var(--text);
}
.zyd-ext-icon { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: block; }
.zyd-ext-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zyd-ext-icon-letter { display: flex; align-items: center; justify-content: center; background: var(--acc); color: var(--acc-text); font-weight: 900; font-size: 24px; }
.zyd-ext-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; align-self: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zyd-ext-tag { color: var(--text-mut); font-size: 13.5px; align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zyd-ext-add {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px;
    border-radius: var(--radius-sm); background: var(--text); color: var(--bg);
    font-family: var(--font-display); font-weight: 700; font-size: 13.5px; white-space: nowrap; text-decoration: none;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.zyd-ext-add:hover { background: var(--acc); color: var(--acc-text); transform: none; }
.zyd-ext-soon { margin: 0; padding: 22px; border: 1px solid var(--border-str); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--text-mut); text-align: center; }
:root[data-theme="light"] .zyd-ext-accent { color: var(--acc-readable, var(--acc)); }
:root[data-theme="light"] .zyd-ext-item:hover { border-color: var(--acc-readable, var(--acc)); }
:root[data-theme="light"] .zyd-ext-add { background: #0A0A0A; color: #FFF; }
:root[data-theme="light"] .zyd-ext-add:hover { background: var(--acc-readable, var(--acc)); color: #FFF; }
@media (max-width: 900px) {
    .zyd-ext { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
}
@media (max-width: 520px) {
    .zyd-ext-item { flex-wrap: wrap; }
    .zyd-ext-add { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .zyd-app-cta-buttons { flex-direction: column; }
    .zyd-app-cta-buttons .zyd-app-badge { width: 100%; justify-content: center; }
}

/* 2.8.2 — landscape screenshots (Windows / desktop apps) */
.zyd-app-shot-wide .zyd-app-shot-frame { width: clamp(300px, 58vw, 760px); border-radius: 14px; }
@media (max-width: 600px) { .zyd-app-shot-wide .zyd-app-shot-frame { width: 86vw; border-radius: 10px; } }
/* 2.9 — "Beyond the phone": desktop apps + browser extensions */
.zyd-plat { grid-template-columns: 1fr; gap: 28px; }
.zyd-plat .zyd-ext-copy { max-width: 820px; }
.zyd-ext-chip svg + svg { margin-left: -2px; }
.zyd-plat-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.zyd-plat-col {
    display: flex; flex-direction: column; gap: 10px; padding: 18px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg) 45%, transparent);
}
.zyd-plat-head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin-bottom: 4px; }
.zyd-plat-logos {
    grid-row: 1 / 3; display: inline-flex; gap: 7px; align-items: center;
    padding: 9px 11px; border: 1px solid var(--border-em); border-radius: 999px; background: var(--bg-elev);
}
.zyd-plat-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mut); }
.zyd-plat-name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.zyd-plat .zyd-ext-item { padding: 12px 12px 12px 14px; gap: 12px; }
.zyd-plat .zyd-ext-item-main { grid-template-columns: 48px 1fr; column-gap: 12px; }
.zyd-plat .zyd-ext-icon { width: 48px; height: 48px; border-radius: 12px; }
.zyd-plat .zyd-ext-name { font-size: 16px; }
.zyd-plat .zyd-ext-tag { font-size: 13px; }
.zyd-plat-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex-shrink: 0; max-width: 55%; }
.zyd-plat-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: var(--radius-sm);
    background: var(--text); color: var(--bg); text-decoration: none; white-space: nowrap;
    font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.zyd-plat-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.zyd-plat-btn:hover { background: var(--acc); color: var(--acc-text); transform: none; }
:root[data-theme="light"] .zyd-plat-btn { background: #0A0A0A; color: #FFF; }
:root[data-theme="light"] .zyd-plat-btn:hover { background: var(--acc-readable, var(--acc)); color: #FFF; }
:root[data-theme="light"] .zyd-plat-col { background: color-mix(in srgb, #fff 70%, transparent); }
@media (max-width: 980px) { .zyd-plat-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .zyd-plat .zyd-ext-item { flex-wrap: wrap; }
    .zyd-plat-btns { max-width: none; width: 100%; justify-content: stretch; }
    .zyd-plat-btn { flex: 1; justify-content: center; min-height: 44px; font-size: 14px; }
}
/* Firefox and Edge logos are layered gradients: a flat fill would lose their shape, so they keep their colours on hover. */

/* ============ v2.9.1 — smooth screenshots rail ============
   With a mouse/trackpad the JS controller (initAppShotsRail) owns snapping,
   so CSS snap is switched off there — it fought trackpad swipes and drag
   releases. Touch screens keep native scroll-snap. */
.zyd-app-shots-rail { position: relative; overscroll-behavior-x: contain; }
.zyd-app-shots-rail.zyd-rail-js { scroll-snap-type: none; }
.zyd-app-shots-rail.is-scrolling .zyd-app-shot { pointer-events: none; }
.zyd-app-shots-rail.zyd-dragging .zyd-app-shot-frame { transform: none; }
.zyd-app-shot-frame img { backface-visibility: hidden; }

/* ==========================================================================
   2.10 — Platform catalogs (/platforms/ hub + one page per platform)
   ========================================================================== */
.zyd-plt-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + 72px) 0 12px;
}
.zyd-plt-hero::before {
    content: ''; position: absolute; pointer-events: none;
    width: 720px; height: 720px; left: -220px; top: -260px;
    background: radial-gradient(circle, var(--acc-glow), transparent 62%);
    opacity: 0.22;
}
.zyd-plt-hero > .zyd-container { position: relative; z-index: 1; }
.zyd-plt-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px; align-items: end; margin: 30px 0 34px;
}
.zyd-plt-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--border-em); border-radius: var(--radius-full);
    background: var(--bg-card);
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-sec);
}
.zyd-plt-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(42px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.035em;
    margin: 18px 0 18px; text-wrap: balance;
}
.zyd-plt-hub-title { max-width: 14ch; margin-top: 16px; }
.zyd-plt-intro { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-sec); }
.zyd-plt-lead { max-width: 640px; margin-top: 14px; color: var(--text-sec); }
.zyd-plt-hub-hero { padding-bottom: 28px; }
.zyd-plt-hub-hero .zyd-page-tag { margin-top: 26px; }
.zyd-plt-hero-stat { text-align: right; padding-bottom: 6px; }
.zyd-plt-hero-num {
    display: block; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(72px, 10vw, 150px); line-height: 0.85; letter-spacing: -0.05em;
    color: var(--acc);
}
.zyd-plt-hero-num-label {
    display: block; margin-top: 10px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-mut);
}
:root[data-theme="light"] .zyd-plt-hero-num { color: var(--acc-readable, var(--acc)); }

/* Platform switcher (hub, catalogs, /works/) — one scrollable row on phones */
.zyd-plt-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin: 6px 0 0; padding: 2px 0 6px;
}
.zyd-plt-tab {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 10px 9px 14px;
    border: 1px solid var(--border-em); border-radius: var(--radius-full);
    background: var(--bg-card); color: var(--text);
    font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.zyd-plt-tab svg { flex-shrink: 0; }
.zyd-plt-tab:hover { border-color: var(--acc); transform: none; }
.zyd-plt-tab-count {
    min-width: 22px; padding: 4px 7px; border-radius: var(--radius-full);
    background: var(--bg-elev); color: var(--text-mut);
    font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-align: center;
}
.zyd-plt-tab.is-current { background: var(--text); border-color: var(--text); color: var(--bg); }
.zyd-plt-tab.is-current .zyd-plt-tab-count { background: color-mix(in srgb, var(--bg) 16%, transparent); color: inherit; }
.zyd-plt-tab.is-empty { border-style: solid; color: var(--text-mut); }
.zyd-plt-tab.is-empty .zyd-plt-tab-count { text-transform: uppercase; letter-spacing: 0.06em; }
.zyd-plt-tab.is-current.is-empty { border-style: solid; color: var(--bg); }
.zyd-plt-tab.is-current.is-empty .zyd-plt-tab-count { color: inherit; }
:root[data-theme="light"] .zyd-plt-tab.is-current { background: #0A0A0A; border-color: #0A0A0A; color: #FFF; }
.zyd-plt-hero-soon {
    display: inline-block; padding: 10px 16px;
    border: 1px solid var(--border-em); border-radius: var(--radius-full);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-sec);
}
.zyd-works-page-hero .zyd-plt-tabs { margin-top: 4px; }
@media (max-width: 700px) {
    .zyd-plt-tabs {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px;
        scroll-padding-inline: 16px; scroll-snap-type: x proximity;
    }
    .zyd-plt-tabs::-webkit-scrollbar { display: none; }
    .zyd-plt-tab { scroll-snap-align: start; }
}

/* App cards in a catalog */
.zyd-plt-grid-section { padding: 26px 0 64px; }
.zyd-plt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.zyd-plt-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 24px 24px 22px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.zyd-plt-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, var(--acc-glow), transparent 50%);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.zyd-plt-card:hover { transform: translateY(-4px); border-color: var(--border-em); }
.zyd-plt-card:hover::before { opacity: 0.18; }
.zyd-plt-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; text-indent: -9999px; overflow: hidden; }
.zyd-plt-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.zyd-plt-card-icon {
    width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
    background: var(--bg-elev); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
    transform: rotate(-3deg); transition: transform 0.3s var(--ease);
}
.zyd-plt-card:hover .zyd-plt-card-icon { transform: rotate(0deg); }
.zyd-plt-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zyd-plt-card-icon-letter { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--acc); }
.zyd-plt-card-arrow { font-family: var(--font-display); font-size: 22px; color: var(--text-dim); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.zyd-plt-card:hover .zyd-plt-card-arrow { color: var(--acc); transform: translate(4px, -4px); }
.zyd-plt-card-name {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(20px, 1.9vw, 24px); line-height: 1.12; letter-spacing: -0.025em;
    margin: 0 0 8px; text-wrap: balance;
}
.zyd-plt-card-tag { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text-sec); }
.zyd-plt-card-desc {
    margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-mut);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zyd-plt-card-foot {
    margin-top: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.zyd-plt-card-cta, .zyd-plt-card-also { position: relative; z-index: 2; }
.zyd-plt-card-note {
    display: flex; flex-direction: column; gap: 3px;
    font-family: var(--font-mono); font-size: 10.5px; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-mut);
}
.zyd-plt-card-note span:first-child { color: var(--text-sec); }
.zyd-plt-card-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.zyd-plt-card-cta .zyd-app-badge { min-height: 48px; padding: 9px 16px 9px 13px; gap: 11px; }
.zyd-plt-card-cta .zyd-app-badge svg { width: 24px; height: 24px; }
.zyd-plt-card-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zyd-plt-card-also-label { margin-right: 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.zyd-plt-card-also-item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px 4px 7px; border: 1px solid var(--border); border-radius: var(--radius-full);
    font-size: 12px; color: var(--text-sec); text-decoration: none; white-space: nowrap;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.zyd-plt-card-also-item:hover { border-color: var(--acc); color: var(--acc); }
:root[data-theme="light"] .zyd-plt-card-also-item:hover { color: var(--acc-readable, var(--acc)); border-color: var(--acc-readable, var(--acc)); }

/* Empty platform (e.g. Mac before the first release) */
.zyd-plt-empty {
    padding: 56px 32px; text-align: center;
    border: 1px solid var(--border-em); border-radius: var(--radius-lg); background: var(--bg-card);
}
.zyd-plt-empty-tag { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }
:root[data-theme="light"] .zyd-plt-empty-tag { color: var(--acc-readable, var(--acc)); }
.zyd-plt-empty h2 { max-width: 680px; margin: 0 auto 12px; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.zyd-plt-empty p { margin: 0 0 20px; color: var(--text-sec); }
.zyd-plt-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.zyd-plt-empty-links a {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
    border: 1px solid var(--border-em); border-radius: var(--radius-full);
    color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.zyd-plt-empty-links a:hover { border-color: var(--acc); }

/* Hub tiles + "Other platforms" */
.zyd-plt-more { padding: 8px 0 96px; }
.zyd-plt-more-all { text-decoration: none; }
.zyd-plt-more-all:hover { color: var(--acc); }
.zyd-plt-hub { padding: 24px 0 96px; }
.zyd-plt-family + .zyd-plt-family { margin-top: 64px; }
.zyd-plt-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.zyd-plt-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 22px 20px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text); text-decoration: none;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.zyd-plt-tile::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, var(--acc-glow), transparent 55%);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.zyd-plt-tile:hover { transform: translateY(-4px); border-color: var(--border-em); }
.zyd-plt-tile:hover::before { opacity: 0.18; }
.zyd-plt-tile.is-empty { border-style: solid; }
.zyd-plt-tile-top { display: flex; align-items: center; justify-content: space-between; }
.zyd-plt-tile-logo {
    display: grid; place-items: center; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--bg-elev); border: 1px solid var(--border);
}
.zyd-plt-tile-arrow { font-family: var(--font-display); font-size: 22px; color: var(--text-dim); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.zyd-plt-tile:hover .zyd-plt-tile-arrow { color: var(--acc); transform: translate(4px, -4px); }
.zyd-plt-tile-kicker { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-mut); }
.zyd-plt-tile-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; letter-spacing: -0.025em; }
.zyd-plt-tile-intro {
    font-size: 14px; line-height: 1.5; color: var(--text-sec);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zyd-plt-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.zyd-plt-tile-lg { min-height: 300px; }
.zyd-plt-tile-icons { display: flex; }
.zyd-plt-tile-icons img {
    width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
    border: 2px solid var(--bg-card); background: var(--bg-elev);
}
.zyd-plt-tile-icons img + img { margin-left: -9px; }
.zyd-plt-tile-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-sec); white-space: nowrap; }
.zyd-plt-tile.is-empty .zyd-plt-tile-count { color: var(--text-dim); }
/* compact tiles: one row each */
.zyd-plt-hub-grid-compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.zyd-plt-hub-grid-compact .zyd-plt-tile { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.zyd-plt-hub-grid-compact .zyd-plt-tile-logo { width: 42px; height: 42px; border-radius: 12px; }
.zyd-plt-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.zyd-plt-hub-grid-compact .zyd-plt-tile-name { font-size: 18px; line-height: 1.15; }
.zyd-plt-hub-grid-compact .zyd-plt-tile-count { margin-left: 0; font-size: 11px; }
.zyd-plt-hub-grid-compact .zyd-plt-tile-arrow { font-size: 18px; }

/* Homepage band → catalogs */
.zyd-plat-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; padding: 4px 4px 0; }
.zyd-plat-more a { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-sec); text-decoration: none; }
.zyd-plat-more a:hover { color: var(--acc); }

/* Footer gets a fifth column ("Platforms") */
.zyd-footer-col .zyd-footer-h a { color: inherit; text-decoration: none; }
.zyd-footer-col .zyd-footer-h a:hover { color: var(--acc); }
@media (min-width: 901px) {
    .zyd-footer-top:has(> :nth-child(5)) { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 1100px) {
    .zyd-plt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .zyd-plt-hero { padding-top: calc(var(--header-h) + 36px); }
    .zyd-plt-hero-grid { grid-template-columns: 1fr; gap: 18px; margin: 22px 0 24px; }
    .zyd-plt-hero-stat { text-align: left; display: flex; align-items: baseline; gap: 12px; }
    .zyd-plt-hero-num { font-size: 64px; }
    .zyd-plt-hero-num-label { margin-top: 0; }
    .zyd-plt-intro { font-size: 16px; }
    .zyd-plt-grid { grid-template-columns: 1fr; }
    .zyd-plt-hub-grid { grid-template-columns: 1fr; }
    .zyd-plt-tile-lg { min-height: 0; }
    .zyd-plt-family + .zyd-plt-family { margin-top: 44px; }
    .zyd-plt-empty { padding: 40px 20px; }
}

/* ==========================================================================
   2.10.4 — polish: badge rows, long-description headings, contact links
   ========================================================================== */
.zyd-badge-row { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; justify-content: inherit; }
.zyd-app-hero-cta:has(> .zyd-badge-row) { flex-direction: column; gap: 12px; }
.zyd-app-cta-buttons:has(> .zyd-badge-row) { display: flex; flex-direction: column; gap: 12px; }
.zyd-app-longdesc .zyd-ld-h {
    margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--acc);
}
.zyd-app-longdesc .zyd-ld-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
:root[data-theme="light"] .zyd-app-longdesc .zyd-ld-h { color: var(--acc-readable, var(--acc)); }
.zyd-app-longdesc .zyd-ld-h + ul { margin-top: 0; }
.zyd-app-longdesc a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
:root[data-theme="light"] .zyd-app-longdesc a { color: var(--acc-readable, var(--acc)); }
.zyd-contact-social-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); column-gap: 32px; }
.zyd-contact-social-link { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; }
.zyd-contact-social-handle { font-size: 16px; white-space: nowrap; overflow-wrap: normal; }
.zyd-contact-social-arrow, .zyd-ext-arrow { font-family: var(--font-mono); font-variant-emoji: text; }
/* .zyd-prose (later in the file) brought back browser bullets + indents on top of the dash */
.zyd-app-longdesc.zyd-prose ul { list-style: none; margin: 0 0 26px; padding: 0; }
.zyd-app-longdesc.zyd-prose li { margin-bottom: 0; }
.zyd-app-longdesc ul li::before { top: calc(10px + 0.75em); transform: translateY(-50%); }

/* ==========================================================================
   2.10.7 — catalog cards line up across the row (CSS subgrid): icons, names,
   subtitles, descriptions, store badges and "Also on" sit on the same lines in
   every card of a row; cards in a row have equal height.
   ========================================================================== */
.zyd-plt-grid { align-items: stretch; }
.zyd-plt-card-name { margin: 0 0 8px; }
.zyd-plt-card-tag { margin: 0 0 10px; }
.zyd-plt-card-desc { margin: 0 0 20px; -webkit-line-clamp: 3; }
.zyd-plt-card-tag:empty, .zyd-plt-card-desc:empty { margin: 0; }
.zyd-plt-card-cta { margin: 0 0 16px; align-self: end; }
.zyd-plt-card-also { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-height: 30px; }
.zyd-plt-card-also:empty { min-height: 0; }
.zyd-plt-card-also-label { margin-right: 4px; }
.zyd-plt-card-also-item {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 30px; height: 30px; padding: 0; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-elev);
}
.zyd-plt-card-also-item:hover { border-color: var(--acc); transform: none; }
/* the old one-column foot wrapper is gone; keep spacing if cached markup has it */
.zyd-plt-card-foot { margin-top: 0; }
@supports (grid-template-rows: subgrid) {
    .zyd-plt-card {
        display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
        align-content: start;
    }
    .zyd-plt-card-desc { align-self: start; }
}

/* 2.10.10 — store badge rows on app pages: a tidy 3-column grid (phones row on
   top, desktop & browser row below, same column widths) where it fits; a
   centred single column on narrower screens. Labels are never truncated. */
@media (min-width: 700px) {
    .zyd-badge-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 780px; }
    .zyd-badge-row .zyd-app-badge { width: 100%; min-width: 0; justify-content: flex-start; padding-left: 16px; padding-right: 12px; }
}
@media (min-width: 700px) and (max-width: 900px) {
    .zyd-app-hero-cta .zyd-badge-row { margin-inline: auto; }
}
@media (max-width: 699px) {
    .zyd-app-hero-cta:has(> .zyd-badge-row), .zyd-app-cta-buttons:has(> .zyd-badge-row) { align-items: center; }
    .zyd-badge-row { flex-direction: column; align-items: stretch; max-width: 340px; gap: 10px; }
    .zyd-badge-row .zyd-app-badge { width: 100%; justify-content: flex-start; }
}

/* 2.10.12 — About: skills per person + "What we build with" stack */
.zyd-about-team-skills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: auto 0 0; padding: 18px 0 0; list-style: none;
    position: relative; z-index: 1;
}
.zyd-about-team-bio { margin-bottom: 4px; }
.zyd-about-team-skills li {
    padding: 5px 9px; border-radius: var(--radius-full);
    border: 1px solid color-mix(in srgb, var(--persona, var(--acc)) 30%, var(--border));
    background: color-mix(in srgb, var(--persona, var(--acc)) 7%, transparent);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; line-height: 1.2;
    color: var(--text-sec); white-space: nowrap;
}
.zyd-about-stack { padding-top: 24px; }
.zyd-about-stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zyd-about-stack-card {
    padding: 24px 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card);
}
.zyd-about-stack-logo {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
    border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev);
}
.zyd-about-stack-card h3 {
    margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.02em;
}
.zyd-about-stack-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zyd-about-stack-card li {
    padding: 5px 9px; border-radius: var(--radius-full); border: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 11px; color: var(--text-sec);
}
@media (max-width: 1000px) { .zyd-about-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .zyd-about-stack-grid { grid-template-columns: 1fr; } }

/* tablet: keep "Chrome Web Store" on one line inside the 3-column badge grid */
@media (min-width: 700px) and (max-width: 900px) {
    .zyd-badge-row .zyd-app-badge-store { font-size: 16px; white-space: nowrap; }
}

/* 2.10.13 — homepage stays balanced: Works shows a slice + "See all" and the
   platform switcher; Beyond the phone shows three per column + catalog links */
.zyd-home-works-more {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
    margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border);
}
.zyd-home-works-more .zyd-plt-tabs { margin: 0; flex: 1 1 auto; }
.zyd-home-works-all { flex: 0 0 auto; }
@media (max-width: 700px) {
    .zyd-home-works-more { flex-direction: column; align-items: stretch; }
    .zyd-home-works-all { justify-content: center; text-align: center; }
}

/* ==========================================================================
   2.10.14 — one vertical rhythm for the whole site (desktop & tablet).
   Before: 80px top + 80px bottom per section (+ extra per page) = 150–250px of
   empty space between blocks. Now ~88–96px between blocks, ~64px above the
   first block under the header, ~72px before the footer.
   ========================================================================== */
@media (min-width: 901px) {
    .zyd-section                 { padding: 44px 0; }
    .zyd-section-head            { margin-bottom: 28px; }
    .zyd-hero                    { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
    .zyd-marquee + .zyd-section, .zyd-hero + .zyd-marquee + .zyd-section { padding-top: 56px; }
    .zyd-works-section           { padding-bottom: 44px; }
    .zyd-works-page-hero         { padding-top: calc(var(--header-h) + 56px); padding-bottom: 20px; }
    .zyd-works-page-grid-section { padding: 16px 0 72px; }
    .zyd-plt-hero                { padding-top: calc(var(--header-h) + 40px); }
    .zyd-plt-hero-grid           { margin: 22px 0 28px; }
    .zyd-plt-grid-section        { padding: 20px 0 44px; }
    .zyd-plt-more                { padding: 44px 0 72px; }
    .zyd-plt-hub                 { padding: 20px 0 72px; }
    .zyd-plt-family + .zyd-plt-family { margin-top: 48px; }
    .zyd-app-hero                { padding-top: calc(var(--header-h) + 36px); }
    .zyd-app-hero-marquee        { margin-top: 20px; }
    .zyd-app-shots-section       { padding: 36px 0 32px; }
    .zyd-app-longdesc-section    { padding: 36px 0; }
    .zyd-app-about-section       { padding: 36px 0; }
    .zyd-app-cta-section         { padding: 36px 0; }
    .zyd-app-more-section        { padding: 36px 0 72px; }
    .zyd-about-hero, .zyd-contact-hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 24px; }
    .zyd-faq-hero, .zyd-support-hero   { padding-top: calc(var(--header-h) + 56px); padding-bottom: 12px; }
    .zyd-faq-section, .zyd-support-section { padding-top: 32px; }
    .zyd-about-cta-section       { padding: 56px 0 72px; }
    .zyd-contact-social-section  { padding-bottom: 72px; }
    .zyd-press                   { padding: calc(var(--header-h) + 48px) 0 72px; }
    .zyd-page-content            { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
    .zyd-404                     { padding: calc(var(--header-h) + 48px) 0 56px; }
    .zyd-footer                  { padding-top: 56px; }
    .zyd-cta-inner               { padding-top: 8px; padding-bottom: 8px; }
}

@media (min-width: 901px) {
    .zyd-hero + .zyd-marquee     { margin-bottom: 0; }
    .zyd-home-works-more         { margin-top: 18px; padding-top: 18px; }
    .zyd-app-cta-section         { padding-top: 20px; }
    .zyd-app-about-section       { padding-bottom: 20px; }
    .zyd-about-cta-section       { padding: 40px 0 48px; }
    .zyd-faq-section, .zyd-support-section { padding-bottom: 24px; }
    .zyd-press                   { padding-bottom: 32px; }
    .zyd-footer                  { padding-top: 48px; }
}

/* 2.10.18 — last oversized gaps */
@media (min-width: 901px) {
    .zyd-works-section          { padding-bottom: 12px; }
    .zyd-app-longdesc-section   { padding-bottom: 16px; }
    .zyd-about-cta-section      { padding-bottom: 24px; }
    .zyd-press                  { padding-bottom: 0; }
}

/* ==========================================================================
   2.10.19 — screenshot lightbox
   ========================================================================== */
.zyd-app-shot { cursor: zoom-in; }
.zyd-app-shots-rail.zyd-dragging .zyd-app-shot { cursor: grabbing; }
.zyd-app-shot:focus-visible .zyd-app-shot-frame { outline: 2px solid var(--acc); outline-offset: 4px; }
.zyd-app-shot-frame::after {
    content: ''; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(10,10,10,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 4h5v5M9 20H4v-5M20 4l-6 6M4 20l6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
    opacity: 0; transform: scale(0.9); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); pointer-events: none;
}
.zyd-app-shot:hover .zyd-app-shot-frame::after { opacity: 1; transform: none; }
@media (hover: none) { .zyd-app-shot-frame::after { display: none; } }

html.zyd-lb-open, html.zyd-lb-open body { overflow: hidden; }
.zyd-lb {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    background: rgba(6, 6, 6, 0.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
}
.zyd-lb.is-open { opacity: 1; visibility: visible; transition: opacity 0.22s var(--ease); }
.zyd-lb-top {
    display: flex; align-items: center; gap: 16px; padding: 14px 18px 10px 24px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #CFCFCF;
}
.zyd-lb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #F2F2F2; }
.zyd-lb-count { color: var(--acc); }
.zyd-lb-close, .zyd-lb-nav {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(20,20,20,0.85); color: #F2F2F2; cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.zyd-lb-close:hover, .zyd-lb-nav:hover { background: var(--acc); color: var(--acc-text); border-color: var(--acc); }
.zyd-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 4px 84px; }
.zyd-lb-img {
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
    opacity: 0; transform: scale(0.985); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.zyd-lb:not(.is-wide) .zyd-lb-img { border-radius: 22px; }
.zyd-lb-img.is-in { opacity: 1; transform: none; }
.zyd-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.zyd-lb-prev { left: 18px; }
.zyd-lb-next { right: 18px; }
.zyd-lb-thumbs {
    display: flex; gap: 8px; justify-content: center; overflow-x: auto; scrollbar-width: none;
    padding: 12px 18px 18px;
}
.zyd-lb-thumbs::-webkit-scrollbar { display: none; }
.zyd-lb-thumb {
    flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer;
    opacity: 0.5; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.zyd-lb-thumb img { display: block; height: 54px; width: auto; border-radius: 6px; }
.zyd-lb-thumb:hover { opacity: 0.85; }
.zyd-lb-thumb.is-current { opacity: 1; border-color: var(--acc); }
@media (max-width: 700px) {
    .zyd-lb-stage { padding: 4px 10px; }
    .zyd-lb-nav { display: none; }
    .zyd-lb-thumbs { display: none; }
    .zyd-lb-top { padding: 10px 10px 8px 16px; }
    .zyd-lb-img { border-radius: 12px; }
}

/* 2.10.20 — lightbox sizing: tracks must not grow to the image's intrinsic size */
.zyd-lb { grid-template-columns: minmax(0, 1fr); }
.zyd-lb-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; overflow: hidden; }
.zyd-lb-img { max-height: min(100%, calc(100vh - 180px)); max-height: min(100%, calc(100dvh - 180px)); justify-self: center; align-self: center; }
.zyd-lb-top { min-width: 0; }
@media (max-width: 700px) {
    .zyd-lb-img { max-height: min(100%, calc(100dvh - 90px)); }
    .zyd-lb-close { width: 42px; height: 42px; flex: 0 0 auto; }
    .zyd-lb-name { font-size: 11px; }
}

/* 2.10.21 — the custom cursor stays visible above the lightbox */
html.zyd-lb-open .zyd-cursor { z-index: 10001; }

/* ==========================================================================
   2.10.24 — lightbox slides; mobile footer as a tidy two-column grid
   ========================================================================== */
.zyd-lb {
    background: rgba(6, 6, 6, var(--lb-a, 0.94));
    transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s, background-color 0.3s var(--ease);
}
.zyd-lb.is-open { transition: opacity 0.22s var(--ease), background-color 0.3s var(--ease); }
.zyd-lb.is-drag { transition: none; }
.zyd-lb-img { opacity: 1; transform: none; will-change: transform, opacity; touch-action: none; user-select: none; -webkit-user-drag: none; }
.zyd-lb-stage { touch-action: none; }

@media (max-width: 600px) {
    .zyd-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 18px; }
    .zyd-footer-brand { grid-column: 1 / -1; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
    .zyd-footer-col .zyd-footer-h { margin-bottom: 10px; }
    .zyd-footer-menu { gap: 0; }
    .zyd-footer-menu a { display: flex; align-items: center; min-height: 40px; font-size: 15px; }
    .zyd-footer-col .zyd-cookie-reopen-btn { margin-top: 8px; max-width: 100%; }
    .zyd-footer-bottom { flex-direction: row !important; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
}
@media (max-width: 600px) {
    .zyd-footer-bottom { flex-direction: column !important; align-items: center !important; justify-content: center; gap: 6px; text-align: center !important; }
}

/* 2.10.26 — the platform switcher must scroll inside its row, not widen it
   (on phones it pushed the "See all apps" button 1000px wide, text off-screen) */
.zyd-home-works-more, .zyd-plt-hero .zyd-container > div, .zyd-works-page-hero .zyd-container > div { min-width: 0; max-width: 100%; }
.zyd-plt-tabs { min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
    .zyd-home-works-more { width: 100%; }
    .zyd-home-works-more .zyd-plt-tabs { width: calc(100% + 32px); max-width: none; }
    .zyd-home-works-all { width: 100%; }
}
@media (max-width: 700px) {
    /* full-bleed scroller whose first pill lines up with the button above */
    .zyd-home-works-more .zyd-plt-tabs { margin: 0 calc(-1 * var(--zyd-gutter, 20px)); padding: 2px var(--zyd-gutter, 20px) 6px; width: calc(100% + 2 * var(--zyd-gutter, 20px)); }
}
.zyd-home-works-more { --zyd-gutter: 24px; }
@media (max-width: 600px) { .zyd-home-works-more { --zyd-gutter: 20px; } }
@media (max-width: 380px) { .zyd-home-works-more { --zyd-gutter: 16px; } }

/* 2.10.28 — tighter vertical rhythm on phones */
@media (max-width: 600px) {
    .zyd-section                { padding: 28px 0; }
    .zyd-section-head           { margin-bottom: 18px; }
    .zyd-works-section          { padding-bottom: 6px; }
    .zyd-home-works-more        { margin-top: 14px; padding-top: 14px; gap: 12px; }
    .zyd-home-works-more .zyd-plt-tabs { padding-bottom: 2px; }
    .zyd-hero + .zyd-marquee + .zyd-section { padding-top: 32px; }
    .zyd-plt-grid-section       { padding: 12px 0 28px; }
    .zyd-plt-more               { padding: 20px 0 40px; }
    .zyd-app-more-section       { padding-bottom: 36px; }
    .zyd-footer                 { padding-top: 36px; }
}

/* 2.10.29 — pills scroll freely with native momentum (snap pulled them back) */
.zyd-plt-tabs { scroll-snap-type: none !important; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

/* ==========================================================================
   2.10.30 — "From the journal" on the homepage
   ========================================================================== */
.zyd-home-journal-all { text-decoration: none; }
.zyd-home-journal-all:hover { color: var(--acc); }
.zyd-home-journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zyd-home-journal-card {
    position: relative; display: flex; flex-direction: column;
    padding: 26px 26px 24px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    overflow: hidden;
}
.zyd-home-journal-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, var(--acc-glow), transparent 55%);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.zyd-home-journal-card:hover { transform: translateY(-4px); border-color: var(--border-em); }
.zyd-home-journal-card:hover::before { opacity: 0.18; }
.zyd-home-journal-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.zyd-home-journal-meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mut);
}
.zyd-home-journal-title {
    margin: 0 0 12px; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(20px, 1.9vw, 25px); line-height: 1.14; letter-spacing: -0.015em; word-spacing: 0.06em; text-wrap: balance;
    transition: color 0.2s var(--ease);
}
.zyd-home-journal-card:hover .zyd-home-journal-title { color: var(--acc); }
:root[data-theme="light"] .zyd-home-journal-card:hover .zyd-home-journal-title { color: var(--acc-readable, var(--acc)); }
.zyd-home-journal-excerpt {
    margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--text-sec);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zyd-home-journal-read {
    margin-top: auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc);
}
.zyd-home-journal-read span { display: inline-block; transition: transform 0.25s var(--ease); }
.zyd-home-journal-card:hover .zyd-home-journal-read span { transform: translateX(4px); }
:root[data-theme="light"] .zyd-home-journal-read { color: var(--acc-readable, var(--acc)); }
@media (max-width: 900px) {
    .zyd-home-journal-grid { grid-template-columns: 1fr; gap: 10px; }
    .zyd-home-journal-card { padding: 20px 20px 18px; grid-row: auto !important; display: flex !important; }
    .zyd-home-journal-meta { margin-bottom: 10px; }
    .zyd-home-journal-title { font-size: 20px; margin-bottom: 8px; }
    .zyd-home-journal-excerpt { -webkit-line-clamp: 2; margin-bottom: 14px; font-size: 14px; }
}
@media (max-width: 900px) {
    .zyd-home-journal-title, .zyd-home-journal-read { align-self: flex-start !important; }
}

/* ==========================================================================
   2.10.34 — Tools / Games: catalog filter + kind chip on cards
   ========================================================================== */
.zyd-kind-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.zyd-kind-filter[hidden], .zyd-plt-card[hidden] { display: none !important; }
.zyd-kind-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 7px 7px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-full);
    background: transparent; color: var(--text-sec);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.zyd-kind-btn:hover { color: var(--text); border-color: var(--border-em); }
.zyd-kind-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.zyd-kind-btn.is-active { background: var(--acc); border-color: var(--acc); color: #0A0A0A; }
.zyd-kind-count {
    min-width: 22px; padding: 4px 6px; border-radius: var(--radius-full);
    background: var(--bg-elev); color: var(--text-mut);
    font-size: 10.5px; letter-spacing: 0; text-align: center;
}
.zyd-kind-btn.is-active .zyd-kind-count { background: rgba(10, 10, 10, 0.14); color: inherit; }

.zyd-plt-card-head-end { display: flex; align-items: center; gap: 12px; }
.zyd-plt-card-kind {
    padding: 5px 9px; border: 1px solid var(--border); border-radius: var(--radius-full);
    font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
    color: var(--text-mut);
}
.zyd-plt-card[data-kind="games"] .zyd-plt-card-kind { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
:root[data-theme="light"] .zyd-plt-card[data-kind="games"] .zyd-plt-card-kind { color: var(--acc-readable, var(--acc)); }

@keyframes zydKindIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.zyd-plt-card.is-in { animation: zydKindIn 0.38s var(--ease) backwards; }
@media (prefers-reduced-motion: reduce) { .zyd-plt-card.is-in { animation: none; } }
@media (max-width: 700px) {
    .zyd-kind-filter { margin-bottom: 14px; }
    .zyd-kind-btn { padding: 7px 6px 7px 12px; font-size: 11.5px; }
}

/* ==========================================================================
   2.10.35 — Tools / Games on /works/ too; phone header vs. browser chrome
   ========================================================================== */
.zyd-works-page-card[hidden] { display: none !important; }
.zyd-works-page-card.is-in { animation: zydKindIn 0.38s var(--ease) backwards; }
.zyd-works-page-card[data-kind="games"] .zyd-plt-card-kind { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
:root[data-theme="light"] .zyd-works-page-card[data-kind="games"] .zyd-plt-card-kind { color: var(--acc-readable, var(--acc)); }
@media (prefers-reduced-motion: reduce) { .zyd-works-page-card.is-in { animation: none; } }

/* The page is laid out edge to edge (viewport-fit=cover), so the fixed header
   has to keep its content below the status bar / in-app browser bar — in
   Telegram and Safari the logo used to slide under it. On phones the header
   also keeps one height instead of shrinking on scroll, so it no longer
   "stretches" when the page bounces. */
.zyd-header { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.zyd-header.is-scrolled { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
@media (max-width: 600px) {
    .zyd-header, .zyd-header.is-scrolled {
        padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px;
        transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
    }
}
/* body as a clipping box, not a scroll container (iOS keeps fixed bars steady) */
@supports (overflow: clip) { body.zyd-body { overflow-x: clip; } }

/* ==========================================================================
   2.10.37 — safe areas for every fixed layer (iPhone notch / home bar,
   Telegram & other in-app browsers, landscape side insets).
   Rule: a fixed element touching a screen edge adds env(safe-area-inset-*)
   for that edge. Checked by tools/site/qa/safe_area_lint.py.
   ========================================================================== */
.zyd-to-top {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
}
.zyd-cookie {
    left: max(20px, env(safe-area-inset-left, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
}
.zyd-lb {
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
             env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.zyd-cookie-modal {
    padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
             max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.zyd-skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); }
@media (max-width: 900px) {
    .zyd-to-top {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
    }
    body.zyd-cookie-visible .zyd-to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   2.10.39 — one spacing scale, rigid header, edge-to-edge pill rows,
   aligned "What we build with" cards, back-to-top that stays out of the way.
   Scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64. Gutter = container side padding.
   ========================================================================== */
:root {
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
    --gutter: 36px;
    --section-y: var(--sp-7);     /* top & bottom of every .zyd-section      */
    --head-gap: var(--sp-5);      /* section heading -> its content          */
    --hero-top: var(--sp-7);      /* header -> first element of a page hero  */
    --pill-h: 36px;               /* every filter / switcher pill            */
}
@media (max-width: 1024px) { :root { --gutter: 28px; } }
@media (max-width: 900px)  { :root { --gutter: 24px; --section-y: var(--sp-6); --hero-top: var(--sp-6); } }
@media (max-width: 600px)  { :root { --gutter: 20px; --head-gap: var(--sp-4); --hero-top: var(--sp-4); } }
@media (max-width: 380px)  { :root { --gutter: 16px; } }
.zyd-container { padding-left: var(--gutter); padding-right: var(--gutter); }
.zyd-home-works-more { --zyd-gutter: var(--gutter); }

/* --- Rigid header: solid, one fixed height (= --header-h, incl. the top
   safe-area inset), never shrinks or turns translucent on scroll, and the
   page itself does not rubber-band, so nothing shows above/below it. --- */
html { background: var(--bg); overscroll-behavior-y: none; }
body.zyd-body { overscroll-behavior-y: none; }
.zyd-header,
.zyd-header.is-scrolled,
body:not(.home) .zyd-header,
body:not(.home) .zyd-header.is-scrolled {
    display: flex; align-items: center;
    height: var(--header-h);
    padding: env(safe-area-inset-top, 0px) 0 0 !important;
    background: var(--bg);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 var(--border);   /* hairline inside the box: content stays pixel-centred */
    transform: none;
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.home .zyd-header:not(.is-scrolled) { box-shadow: none; }
.zyd-header > .zyd-header-inner { flex: 1 1 auto; min-width: 0; }
/* <main> fades in, but must not keep a transform afterwards (a transformed
   ancestor turns position:fixed children into absolute ones) */
.zyd-page-fade { animation-fill-mode: backwards; }
.zyd-app-sticky { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* --- Vertical rhythm --- */
.zyd-hero + .zyd-marquee { margin-bottom: 0 !important; }
.zyd-hero + .zyd-marquee + .zyd-section { padding-top: var(--section-y) !important; }
.zyd-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.zyd-section-head { margin-bottom: var(--head-gap); }
.zyd-works-page-hero,
.zyd-about-hero,
.zyd-contact-hero,
.zyd-contact-page,
.zyd-faq-hero,
.zyd-support-hero,
.zyd-press,
.zyd-plt-hero,
.zyd-app-hero,
.zyd-page-content { padding-top: calc(var(--header-h) + var(--hero-top)) !important; }
.zyd-hero { padding-top: calc(var(--header-h) + var(--hero-top) + var(--sp-2)) !important; }
@media (min-width: 901px) {
    .zyd-hero { padding-top: calc(var(--header-h) + var(--sp-8)) !important; }
}
.zyd-page-tag { margin-bottom: var(--sp-5) !important; }
@media (max-width: 600px) { .zyd-page-tag { margin-bottom: var(--sp-3) !important; } }

/* /works/ hero: tag -> title -> platform pills -> Tools/Games -> grid,
   read as one block */
.zyd-works-page-title { margin: 0 0 var(--sp-5) !important; }
.zyd-works-page-lead { margin: 0 0 var(--sp-5); }
.zyd-works-page-hero { padding-bottom: var(--sp-4) !important; }
.zyd-works-page-hero .zyd-plt-tabs { margin-top: 0 !important; margin-bottom: 0 !important; }
.zyd-works-page-grid-section { padding-top: 0 !important; }
.zyd-section.zyd-plt-grid-section { padding-top: var(--sp-1); }   /* catalog hero -> its grid: same 16px as /works/ */
.zyd-works-page-wrap .zyd-kind-filter,
.zyd-plt-grid-section .zyd-kind-filter { margin: 0 0 var(--sp-5) !important; }
@media (max-width: 600px) {
    .zyd-works-page-title { margin-bottom: var(--sp-4) !important; }
    .zyd-works-page-lead { margin-bottom: var(--sp-4); }
    .zyd-works-page-hero { padding-bottom: var(--sp-3) !important; }
    .zyd-works-page-wrap .zyd-kind-filter,
    .zyd-plt-grid-section .zyd-kind-filter { margin-bottom: var(--sp-4) !important; }
}

/* --- Pills: one height for the platform switcher and Tools/Games --- */
.zyd-plt-tab, .zyd-kind-btn { height: var(--pill-h); padding-top: 0; padding-bottom: 0; }
.zyd-plt-tabs { padding-top: 2px; padding-bottom: 2px; gap: var(--sp-2); }
.zyd-kind-filter { gap: var(--sp-2); }

/* Platform switcher on phones: one row that scrolls edge to edge (bleeds
   into the gutters, first pill aligned with the text, soft fade at the
   edges instead of a hard cut) */
@media (max-width: 700px) {
    .zyd-plt-tabs,
    .zyd-home-works-more .zyd-plt-tabs {
        flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden;
        width: auto !important; max-width: none !important;
        margin-left: calc(-1 * var(--gutter)) !important; margin-right: calc(-1 * var(--gutter)) !important;
        padding-left: var(--gutter) !important; padding-right: var(--gutter) !important;
        scroll-padding-inline: var(--gutter);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--sp-3), #000 calc(100% - var(--sp-6)), transparent 100%);
                mask-image: linear-gradient(90deg, transparent 0, #000 var(--sp-3), #000 calc(100% - var(--sp-6)), transparent 100%);
    }
    .zyd-plt-tabs::after { content: ''; flex: 0 0 1px; }   /* keeps the end padding when scrolled fully */
    /* single-line column, so the row's width is the screen, not its content */
    .zyd-home-works-more { flex-wrap: nowrap; }
}

/* --- "What we build with": icon + title on one row, chips on a 2-column
   grid below — everything on the card's left content edge, equal chip
   sizes, no ragged rows. --- */
.zyd-about-stack-grid { grid-template-columns: minmax(0, 1fr) !important; gap: var(--sp-3); }
@media (min-width: 721px)  { .zyd-about-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1280px) { .zyd-about-stack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.zyd-about-stack-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; align-content: start;
    column-gap: var(--sp-3); row-gap: var(--sp-4);
    padding: var(--sp-5);
}
.zyd-about-stack-logo { margin: 0; width: 44px; height: 44px; }
.zyd-about-stack-card h3 { margin: 0; font-size: 20px; line-height: 1.15; min-width: 0; }
.zyd-about-stack-card ul {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2);
    margin: 0; padding: 0;
}
.zyd-about-stack-card li {
    display: flex; align-items: center; justify-content: center; min-width: 0;
    height: 30px; padding: 0 var(--sp-2);
    border-radius: var(--radius-full);
    font-size: 10.5px; line-height: 1; letter-spacing: 0.02em; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zyd-about-stack-card li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .zyd-about-stack-card { padding: var(--sp-5) var(--gutter); } }
@media (min-width: 1280px) { .zyd-about-stack-card h3 { font-size: 18px; } }
.zyd-about-stack-card li { border-color: var(--border-str); }

/* --- Back to top: round, inset by the safe area; on touch screens it only
   appears while scrolling back up (theme.js), so it never sits on content
   while reading --- */
@media (max-width: 900px) {
    .zyd-to-top {
        width: 44px; height: 44px; border-radius: 50%;
        right: calc(var(--sp-3) + env(safe-area-inset-right, 0px));
        bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
        background: var(--bg-elev); border-color: var(--border-em);
        box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    }
    body.zyd-cookie-visible .zyd-to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
body.zyd-menu-open .zyd-header { box-shadow: inset 0 -1px 0 var(--border); }

/* "Beyond the phone" on phones: three nested boxes ate a third of the width
   (titles truncated) — slimmer insets on the same scale */
@media (max-width: 600px) {
    .zyd-ext { padding: var(--sp-5) var(--sp-4); gap: var(--sp-5); }
    .zyd-plat-cols { gap: var(--sp-3); }
    .zyd-plat-col { padding: var(--sp-3); gap: var(--sp-2); }
    .zyd-plat .zyd-ext-item { padding: var(--sp-3); }
}

/* Contact on phones: the big e-mail keeps its arrow on the same line, and
   the social rows stop splitting handles mid-word ("x.com/Zyde / noStudio") */
@media (max-width: 600px) {
    .zyd-contact-email-huge { flex-wrap: nowrap; font-size: min(28px, 7vw); }
    .zyd-contact-social-link { grid-template-columns: minmax(0, 1fr) auto; }
    .zyd-contact-social-label { grid-column: 1 / -1; }
    .zyd-contact-social-handle { white-space: nowrap; overflow-wrap: normal; }
}


/* ==========================================================================
   2.10.43 — blocks appear before they reach the screen (no black gaps on a
   fast scroll), shorter reveal; compact cookie banner on phones.
   ========================================================================== */
.zyd-reveal { transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
@media (max-width: 600px) {
    .zyd-cookie { padding: 14px 16px; }
    .zyd-cookie-inner { gap: 12px; }
    .zyd-cookie-tag { display: none; }
    .zyd-cookie-title { font-size: 17px; margin-bottom: 4px; }
    .zyd-cookie-text { font-size: 12.5px; line-height: 1.45; }
    .zyd-cookie-actions { flex-direction: row; flex-wrap: nowrap; gap: 6px; }
    .zyd-cookie-btn { width: auto; flex: 1 1 0; min-height: 42px; padding: 8px 6px; font-size: 12px; white-space: nowrap; }
    .zyd-cookie-custom { flex: 0.85 1 0; }
    body.zyd-cookie-visible .zyd-to-top { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
}

/* 2.11.8 — the page fade class is in the markup now (no late re-fade of painted content) */
@media (prefers-reduced-motion: reduce) { .zyd-page-fade { animation: none; } }

/* ==========================================================================
   2.12.0 — a tighter rhythm on every page: less empty black between blocks,
   compact principles (one calm row each on phones), smaller section headings.
   ========================================================================== */
:root { --section-y: 44px; --head-gap: 22px; }
@media (max-width: 900px) { :root { --section-y: 32px; --head-gap: 18px; } }
@media (max-width: 600px) { :root { --section-y: 26px; --head-gap: 14px; } }
@media (max-width: 600px) {
    .zyd-section-head { gap: 6px 14px; }
    .zyd-section-head h2 { font-size: clamp(26px, 7.6vw, 32px); }
}

.zyd-principles-grid { gap: 10px; }
.zyd-principle { padding: 22px 22px 24px; }
.zyd-principle-num { margin-bottom: 10px; }
.zyd-principle-title { font-size: 21px; margin-bottom: 8px; }
.zyd-principle-text { font-size: 14px; line-height: 1.55; }
@media (max-width: 600px) {
    /* number beside the title, text under it: three compact rows instead of three tall cards */
    .zyd-principle { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 16px 18px 17px; }
    .zyd-principle-num { margin: 5px 0 0; }
    .zyd-principle-title { font-size: 19px; margin: 0 0 4px; }
    .zyd-principle-text { grid-column: 2; font-size: 14px; }
}

/* 2.12.1 — the same compact rhythm for the other card blocks */
.zyd-about-manifesto-item, .zyd-about-team-card, .zyd-recent-item, .zyd-home-journal-card, .zyd-support-card, .zyd-contact-card { padding: 22px 22px 24px; }
.zyd-about-manifesto-num { margin-bottom: 10px; }
.zyd-about-manifesto-item h3 { margin-bottom: 8px; }
@media (max-width: 600px) {
    .zyd-about-manifesto-item, .zyd-about-team-card, .zyd-recent-item, .zyd-home-journal-card, .zyd-support-card, .zyd-contact-card { padding: 16px 18px 18px; }
    .zyd-about-manifesto-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
    .zyd-about-manifesto-num { margin: 5px 0 0; }
    .zyd-about-manifesto-item h3 { font-size: 19px; margin: 0 0 4px; }
    .zyd-about-manifesto-item p { grid-column: 2; font-size: 14px; line-height: 1.55; }
    .zyd-about-team-top { margin-bottom: 10px; }
}

/* 2.12.6 — principles: no stretched cards (the old 180px min-height pushed text apart);
   on phones the three rules read as one list with hairline dividers */
.zyd-principle { min-height: 0; align-content: start; }
@media (max-width: 600px) {
    .zyd-principles-grid { gap: 0; }
    .zyd-principle { padding: 16px 18px; border-radius: 0; row-gap: 0; }
    .zyd-principle + .zyd-principle { border-top: 0; }
    .zyd-principle:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .zyd-principle:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
    .zyd-principle:hover { transform: none; }
    .zyd-principle-num { margin: 4px 0 0; }
    .zyd-principle-title { font-size: 19px; margin: 0 0 5px; }
    .zyd-principle-text { font-size: 15px; line-height: 1.5; }
    /* the same for the manifesto on About */
    .zyd-about-manifesto-item { min-height: 0; align-content: start; }
    .zyd-about-manifesto-item p { font-size: 15px; line-height: 1.5; }
}

/* ==========================================================================
   2.12.7 — site-wide spacing audit (phones, tablets, desktop): no empty bands
   between blocks, no stretched cards, a compact mobile menu, a centred burger.
   ========================================================================== */
/* sections that kept their own big paddings now follow the one rhythm */
.zyd-home-journal { padding-top: var(--section-y) !important; }
.zyd-app-shots-section, .zyd-app-longdesc-section, .zyd-app-about-section, .zyd-app-cta-section, .zyd-app-more-section {
    padding-top: var(--section-y); padding-bottom: var(--section-y);
}
.zyd-app-hero { padding-bottom: 16px; }
.zyd-home-works-more { margin-top: 14px; padding-top: 12px; }

/* card insides: tag → title → text → action with even, smaller steps */
.zyd-contact-card-tag, .zyd-support-card-tag { margin-bottom: 12px; }
.zyd-support-card-icon { margin-bottom: 12px; }
.zyd-contact-card h3, .zyd-support-card h3 { margin-bottom: 6px; }
.zyd-contact-card p, .zyd-support-card p { margin-bottom: 14px; }
.zyd-about-approach-step { padding: 22px 22px 24px; }
.zyd-about-approach-step-label { margin-bottom: 10px; }
.zyd-about-approach-step h3 { margin-bottom: 6px; }
@media (max-width: 600px) {
    .zyd-about-approach-step { padding: 16px 18px 18px; }
    .zyd-support-helpers { padding: 18px 18px 20px; }
    .zyd-press-colors { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
    .zyd-press-color { min-height: 0; padding: 14px 14px 12px; }
    .zyd-works-page-card { min-height: 0; padding: 18px 18px 18px; }
}

/* burger: lines centred on the button whatever its size (it grows to 44px on touch) */
.zyd-menu-toggle span:nth-child(1), .zyd-menu-toggle span:nth-child(2),
.zyd-menu-toggle[aria-expanded="true"] span:nth-child(1), .zyd-menu-toggle[aria-expanded="true"] span:nth-child(2) { top: calc(50% - .75px); }
.zyd-menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.zyd-menu-toggle span:nth-child(2) { transform: translateY(4px); }
.zyd-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.zyd-menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
.zyd-menu-toggle span { left: 50%; right: auto; width: 18px; margin-left: -9px; }

/* mobile menu: starts right under the header, calmer item size */
@media (max-width: 1080px) {
    .zyd-mobile-menu { padding-top: calc(var(--header-h) + 8px); }
    .zyd-mobile-menu-inner { padding-top: 0; }
    .zyd-mobile-menu-list { margin-bottom: 28px; }
    .zyd-mobile-menu-list a { padding: 13px 0; font-size: 26px; }
}

/* 2.12.8 — the last wide bands from the audit */
.zyd-app-hero-marquee { margin: 16px 0 0; }
.zyd-app-cta { padding: 36px 32px; }
.zyd-ext { padding: 28px; }
@media (max-width: 600px) {
    .zyd-app-cta { padding: 24px 20px; }
    .zyd-ext { padding: 18px; }
}

/* 2.12.10 — a steady intro: its own layer from the first frame; the letters wait for the font */
.zyd-intro { will-change: transform, opacity; contain: layout paint; }
.zyd-intro:not(.zyd-intro-go) .zyd-intro-letter,
.zyd-intro:not(.zyd-intro-go) .zyd-intro-dot { animation-play-state: paused; }

/* ========== 2.15.1 — Light palette ==========
   Calm on white. The neon lime belongs to the dark theme (and to the dark devices in the hero); on
   white it glared, and as a thin line or a hover colour it vanished. So in light:
   - --acc becomes one deep green (lime-800): every accent text, underline, hover border, dot and
     switch that uses var(--acc) is readable without a rule of its own;
   - --acc-fill, a soft pastel lime, is the only lime: markers under accent words, chips, tints;
   - solid actions (primary buttons, the current page number, active filters) are ink. */
:root[data-theme="light"] {
    --acc: #3F6212;
    --acc-readable: #3F6212;          /* 7:1 on #FAFAFA */
    --acc-readable-soft: #4D7C0F;
    --acc-fill: #DDF5A8;              /* pastel lime */
    --acc-chip: #ECF8CF;
    --acc-glow: rgba(63, 98, 18, .16);
}
:root[data-theme="light"] .zw-stage { --acc: #BEF264; }   /* the laptop and phone stay dark objects with the neon accent */

:root[data-theme="light"] ::selection { background: var(--acc-fill); color: var(--acc-text); }

/* Accent words and numbers: ink on a pastel marker */
:root[data-theme="light"] .zyd-ext-accent,
:root[data-theme="light"] .zyd-plt-hero-num {
    color: var(--text) !important;
    background: linear-gradient(transparent 58%, var(--acc-fill) 58%, var(--acc-fill) 90%, transparent 90%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    padding: 0 .04em; margin: 0 -.04em;
}
:root[data-theme="light"] .zyd-plt-hero-num { display: inline-block; }   /* the marker as wide as the digits */
/* The skewed boxes (the contact call, 404, the app page's call): the same pastel */
:root[data-theme="light"] .zyd-cta-accent,
:root[data-theme="light"] .zyd-404-accent,
:root[data-theme="light"] .zyd-app-cta-accent,
:root[data-theme="light"] .zyd-hero-box,
:root[data-theme="light"] .zyd-ext-icon-letter { background: var(--acc-fill); color: var(--acc-text); }

/* Chips and labels on a tint: one recipe everywhere */
:root[data-theme="light"] .zyd-page-tag,
:root[data-theme="light"] .zyd-support-card-tag,
:root[data-theme="light"] .zyd-app-tag-featured,
:root[data-theme="light"] .zyd-lang-link.current-lang,
:root[data-theme="light"] .zyd-lang-list a.current-lang {
    background: var(--acc-chip) !important;
    border-color: rgba(63, 98, 18, .14) !important;
    color: var(--acc-text) !important;
}
:root[data-theme="light"] .zyd-lang-link.current-lang .zyd-lang-name,
:root[data-theme="light"] .zyd-lang-link.current-lang .zyd-lang-short { color: var(--acc-text) !important; opacity: 1; }
:root[data-theme="light"] .zyd-cta-channel-icon { background: var(--acc-chip) !important; color: var(--acc-text) !important; }
:root[data-theme="light"] .zyd-app-card.zyd-app-status-featured {
    border-color: rgba(63, 98, 18, .22) !important;
    background: linear-gradient(180deg, var(--acc-chip) 0%, var(--bg-card) 42%) !important;
}

/* Solid actions: ink with white text; hover lifts a shade */
:root[data-theme="light"] .zyd-btn-primary,
:root[data-theme="light"] .zyd-cookie-accept,
:root[data-theme="light"] .zyd-cookie-save,
:root[data-theme="light"] .zyd-404-search-row button,
:root[data-theme="light"] .zyd-pagination-wrap .page-numbers.current,
:root[data-theme="light"] .zyd-kind-btn.is-active {
    background: #0A0A0A !important; border-color: #0A0A0A !important; color: #FAFAFA !important;
    box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .55);
}
:root[data-theme="light"] .zyd-btn-primary:hover,
:root[data-theme="light"] .zyd-cookie-accept:hover,
:root[data-theme="light"] .zyd-cookie-save:hover { background: #27272A !important; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
:root[data-theme="light"] .zyd-app-sticky-btn:hover,
:root[data-theme="light"] .zyd-app-badge:hover,
:root[data-theme="light"] .zyd-cta-channel:hover .zyd-cta-channel-icon,
:root[data-theme="light"] .zyd-ext-add:hover,
:root[data-theme="light"] .zyd-plat-btn:hover,
:root[data-theme="light"] .zyd-to-top:hover,
:root[data-theme="light"] .zyd-app-shots-nav:hover,
:root[data-theme="light"] .zyd-press-copy-btn.zyd-copied {
    background: #0A0A0A !important; border-color: #0A0A0A !important; color: #FAFAFA !important;
}
:root[data-theme="light"] .zyd-btn-ghost:hover { border-color: var(--text) !important; color: var(--text) !important; background: var(--bg-alt); }
:root[data-theme="light"] .zyd-switch input:checked + .zyd-switch-slider::before { background: #FFF; }

/* Header: the menu says where you are and what is under the cursor */
:root[data-theme="light"] .zyd-nav-menu a { color: var(--text-mut); }
:root[data-theme="light"] .zyd-nav-menu a:hover,
:root[data-theme="light"] .zyd-nav-menu .current-menu-item a,
:root[data-theme="light"] .zyd-nav-menu .current_page_item a,
:root[data-theme="light"] .zyd-nav-menu a[aria-current="page"] { color: var(--text) !important; }
:root[data-theme="light"] .zyd-nav-menu a::after { height: 2px; border-radius: 2px; background: var(--text); }
:root[data-theme="light"] .zyd-nav-menu .current-menu-item a::after,
:root[data-theme="light"] .zyd-nav-menu .current_page_item a::after,
:root[data-theme="light"] .zyd-nav-menu a[aria-current="page"]::after { background: var(--acc); }
:root[data-theme="light"] .zyd-lang-btn,
:root[data-theme="light"] .zyd-theme-toggle,
:root[data-theme="light"] .zyd-menu-toggle { border-color: var(--border-str); color: var(--text); background: var(--bg-card); }
:root[data-theme="light"] .zyd-lang-btn:hover,
:root[data-theme="light"] .zyd-lang.zyd-lang-open .zyd-lang-btn,
:root[data-theme="light"] .zyd-theme-toggle:hover,
:root[data-theme="light"] .zyd-menu-toggle:hover,
:root[data-theme="light"] .zyd-menu-toggle[aria-expanded="true"] {
    border-color: var(--text) !important; color: var(--text) !important; background: var(--bg-alt);
}
:root[data-theme="light"] .zyd-lang-list a:hover,
:root[data-theme="light"] .zyd-lang-link:hover:not(.current-lang) { color: var(--text) !important; background: var(--bg-alt); }

/* The crew's colours are made for black; on white each gets its own dark shade */
:root[data-theme="light"] .zyd-about-team-role { color: color-mix(in oklab, var(--persona, #BEF264) 42%, #0A0A0A); }

/* The intro's "studio": the deep green, without the neon glow that smudged on white */
:root[data-theme="light"] .zyd-intro-suffix { color: var(--acc); text-shadow: none; }
:root[data-theme="light"] .zyd-intro-dot { background: var(--acc); box-shadow: none; }

/* The header stays solid in light too (an older light rule left it 85% opaque, so headings
   showed through the menu while scrolling) */
:root[data-theme="light"] .zyd-header,
:root[data-theme="light"] .zyd-header.is-scrolled { background: var(--bg); }
:root[data-theme="light"] .zyd-skip:focus,
:root[data-theme="light"] .zyd-lb-close:hover,
:root[data-theme="light"] .zyd-lb-nav:hover { color: #FFF; }   /* white on the deep green fill */

/* ==========================================================================
   2.15.6 — catalogs on phones: a compact list instead of tall cards.
   /works/, the platform pages (/platforms/<os>/) and the home page: icon on
   the left; name, one line of tagline and the store buttons
   beside it, so a screen holds about five apps instead of one and a half. On
   the platform pages the description gives way to the tagline, the store
   badge becomes a smaller button and "Also on" stays as a row of marks.
   Rows rise in as they scroll into view; that is a scroll-driven animation
   behind @supports, so where the browser can't do it the list is just there.
   Motion uses the separate translate / scale / rotate properties, so the
   pressed state (transform) still works after a row has come in.
   ========================================================================== */
@media (max-width: 760px) {
    .zyd-works-page-grid { grid-template-columns: 1fr; gap: 10px; }
    .zyd-plt-grid { gap: 10px; }
    .zyd-works-page-card,
    .zyd-plt-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "icon  name"
            "icon  tag"
            "store store"
            "also  also";
        column-gap: 16px;
        align-items: start;
        min-height: 0;
        padding: 16px;
        border-radius: 18px;
        overflow: clip;   /* hidden would make the card a scroller for the view() animations inside */
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
    }
    /* one column: the cards leave the row-aligning subgrid (2.10.7) */
    .zyd-plt-card { grid-row: auto; grid-template-rows: auto auto auto auto; }
    .zyd-works-page-card-top,
    .zyd-plt-card-head,
    .zyd-works-page-card .zyd-plt-card-head-end,
    .zyd-plt-card .zyd-plt-card-head-end { display: contents; }

    .zyd-works-page-card-icon,
    .zyd-plt-card-icon {
        grid-area: icon;
        width: 64px; height: 64px;
        border-radius: 16px;
        box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.75);
    }
    .zyd-works-page-card-icon-letter { font-size: 30px; }

    /* The name sits right beside the icon; Tool / Game is already the
       filter above the list, so the row doesn't repeat it. */
    .zyd-works-page-card .zyd-plt-card-kind,
    .zyd-plt-card .zyd-plt-card-kind { display: none; }
    /* The whole row is the link, and the store buttons need the width more
       than the arrow does. */
    .zyd-works-page-card-arrow,
    .zyd-plt-card-arrow { display: none; }
    .zyd-works-page-card-name,
    .zyd-plt-card-name {
        grid-area: name; align-self: end;   /* with the tag on top of its row: centred beside the icon */
        font-size: 18px; line-height: 1.15;
        margin: 0 0 5px;
        text-wrap: pretty;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .zyd-works-page-card-tag,
    .zyd-plt-card-tag {
        grid-area: tag; align-self: start;
        font-size: 13.5px; line-height: 1.4; font-weight: 400;
        color: var(--text-mut);
        margin: 0;
        display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    }
    .zyd-plt-card-desc { display: none; }

    /* 2.15.16: the stores get a row of their own across the whole card, one
       thumb-sized height for every button. initStoreButtonFit() still picks one
       look per row: labels if they fit, else logos that fill the row. */
    .zyd-works-page-card-stores {
        grid-area: store;
        flex-direction: row;
        gap: 6px;
        max-width: 460px;
        margin-top: 14px;
    }
    .zyd-works-page-card-stores > .zyd-works-page-card-store {
        height: 44px;
        padding-top: 0; padding-bottom: 0;
        border-radius: 12px;
        font-size: 14px; font-weight: 700;
    }
    .zyd-works-page-card-stores:not(:has(> a ~ a)) > a.zyd-works-page-card-store {
        flex: 0 0 auto !important; width: auto; min-width: calc(50% - 3px) !important;
        padding-left: 16px !important; padding-right: 16px !important;
    }
    .zyd-works-page-card-stores > .zyd-works-page-card-store > svg { width: 19px; height: 19px; }
    .zyd-works-page-card-stores.zyd-btns-icons > .zyd-works-page-card-store > svg,
    .zyd-works-page-card-stores:not(.zyd-btns-fit):has(> a ~ a ~ a ~ a) > a > svg { width: 23px; height: 23px; }

    .zyd-plt-card-cta { grid-area: store; max-width: 460px; margin: 14px 0 0; gap: 8px; }
    .zyd-plt-card-cta .zyd-app-badge {
        flex: 0 0 auto; justify-content: center;
        min-height: 52px; padding: 6px 18px 6px 14px; gap: 10px; border-radius: 12px;
    }
    .zyd-plt-card-cta .zyd-app-badge svg { width: 26px; height: 26px; }
    .zyd-plt-card-cta .zyd-app-badge-pre { font-size: 10.5px; }
    .zyd-plt-card-cta .zyd-app-badge-store { font-size: 17px; }
    /* "Also on" is a row of its own too: the label and marks you can really tap. */
    .zyd-plt-card-also { grid-area: also; flex-wrap: wrap; gap: 6px; min-height: 0; margin: 10px 0 0; }
    .zyd-plt-card-also:not(:has(a)) { display: none; }
    .zyd-plt-card-also-item { width: 36px; height: 36px; padding: 0; justify-content: center; }
    .zyd-plt-card-also-item svg { width: 18px; height: 18px; }

    /* Touch: no lift (it stuck after a tap); pressing the row sinks it a little
       and lights it. Store buttons keep their own press. */
    .zyd-works-page-card:hover,
    .zyd-plt-card:hover { transform: none; }
    .zyd-works-page-card:has(> .zyd-works-page-card-link:active),
    .zyd-plt-card:has(> .zyd-plt-card-link:active) {
        transform: scale(0.985);
        border-color: var(--border-em);
        background-color: var(--bg-elev);
    }
    .zyd-works-page-card:has(> .zyd-works-page-card-link:active)::before,
    .zyd-plt-card:has(> .zyd-plt-card-link:active)::before { opacity: 0.22; }
    :root[data-theme="light"] .zyd-works-page-card-icon,
    :root[data-theme="light"] .zyd-plt-card-icon { box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.28); }
}

/* Home page cards come from the apps plugin (number, icon, name, buttons) and
   carry !important styles, so the list needs them too. One column there
   starts at 600px. */
@media (max-width: 600px) {
    .zyd-apps-grid { gap: 10px !important; }
    .zyd-apps-grid .zyd-app-card {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "icon  name"
            "icon  desc"
            "store store";
        column-gap: 16px;
        align-items: start;
        height: auto !important;
        overflow: clip !important;
        padding: 16px !important;
        border-radius: 18px !important;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease) !important;
    }
    .zyd-apps-grid .zyd-app-num { display: none; }
    .zyd-apps-grid .zyd-app-icon {
        grid-area: icon;
        width: 64px !important; height: 64px !important;
        border-radius: 16px !important;
        margin: 0 !important;
        box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.75);
    }
    .zyd-apps-grid .zyd-app-icon-letter { font-size: 30px !important; }
    .zyd-apps-grid .zyd-app-name {
        grid-area: name;
        display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        min-height: 0;
        font-size: 18px !important; line-height: 1.15 !important;
        margin: 0 0 5px !important;
        text-align: left;
        text-wrap: pretty;
    }
    .zyd-apps-grid .zyd-app-desc {
        grid-area: desc;
        -webkit-line-clamp: 1;
        margin: 0 !important;
        text-align: left;
    }
    .zyd-apps-grid .zyd-app-name { align-self: end; }
    .zyd-apps-grid .zyd-app-desc { align-self: start; }
    .zyd-apps-grid .zyd-app-buttons {
        grid-area: store;
        gap: 6px !important;
        margin-top: 14px !important;
    }
    .zyd-apps-grid .zyd-app-buttons > .zyd-store-btn {
        height: 44px; min-height: 0 !important;
        padding-top: 0 !important; padding-bottom: 0 !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }
    .zyd-apps-grid .zyd-app-buttons:not(:has(> a:not(.zyd-store-btn-off) ~ a:not(.zyd-store-btn-off))) > a.zyd-store-btn {
        flex: 0 0 auto !important; width: auto; min-width: calc(50% - 3px) !important;
        padding-left: 16px !important; padding-right: 16px !important;
    }
    .zyd-apps-grid .zyd-app-buttons > .zyd-store-btn > svg { width: 19px; height: 19px; }
    .zyd-apps-grid .zyd-app-buttons.zyd-btns-icons > .zyd-store-btn > svg { width: 23px; height: 23px; }
    .zyd-apps-grid .zyd-app-card:hover { transform: none !important; }
    .zyd-apps-grid .zyd-app-card:has(> .zyd-app-card-link:active) {
        transform: scale(0.985) !important;
        border-color: var(--border-em) !important;
        background-color: var(--bg-elev) !important;
    }
    :root[data-theme="light"] .zyd-apps-grid .zyd-app-icon { box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.28); }
}

/* "Recently shipped" on the home page, phones: the same kind of row — icon
   on the left, date, name and one line of description beside it; the whole
   row is the link, so "View" gives way. */
@media (max-width: 600px) {
    .zyd-recent-grid { gap: 10px; }
    .zyd-recent-item {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr);
        grid-template-areas:
            "icon date"
            "icon title"
            "icon excerpt";
        gap: 0 14px;
        align-items: start;
        padding: 14px 16px !important;
        border-radius: 18px;
        -webkit-tap-highlight-color: transparent;
    }
    .zyd-recent-meta { display: contents; }
    .zyd-recent-icon {
        grid-area: icon;
        width: 52px; height: 52px; border-radius: 13px;
        transform: rotate(-4deg);
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.7);
    }
    .zyd-recent-item:hover .zyd-recent-icon,
    .zyd-recent-item:active .zyd-recent-icon { transform: rotate(0deg) scale(1.07); }
    .zyd-recent-item:active { transform: scale(0.985); }
    .zyd-recent-date { grid-area: date; font-size: 10px; line-height: 14px; margin: 0 0 4px; }
    .zyd-recent-title { grid-area: title; font-size: 17px; margin: 0 0 3px; }
    .zyd-recent-excerpt {
        grid-area: excerpt; font-size: 13.5px; line-height: 1.4;
        display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    }
    .zyd-recent-cta { display: none; }
    :root[data-theme="light"] .zyd-recent-icon { box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.3); }
}

/* "From the journal" on the home page, phones: same density as the rows
   above — date, title and two lines of the excerpt; the card is the link, so
   "Read" gives way. */
@media (max-width: 600px) {
    .zyd-home-journal-card {
        padding: 14px 16px 16px !important;
        border-radius: 18px;
        -webkit-tap-highlight-color: transparent;
    }
    .zyd-home-journal-meta { margin-bottom: 6px; font-size: 10px; }
    .zyd-home-journal-title { font-size: 18px; margin-bottom: 5px; }
    .zyd-home-journal-excerpt { margin-bottom: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-mut); }
    .zyd-home-journal-read { display: none; }
    .zyd-home-journal-card:has(> .zyd-home-journal-link:active) { transform: scale(0.985); border-color: var(--border-em); }
}

/* "Got an idea?" block, phones: same look and motion, less air — smaller
   heading, tighter gaps, a slimmer Telegram card. */
@media (max-width: 600px) {
    .zyd-cta-tag { margin-bottom: 14px; }
    .zyd-cta-title { font-size: clamp(32px, 9.6vw, 44px); margin-bottom: 20px; }
    .zyd-cta-accent { padding: 1px 12px 4px; }
    .zyd-cta-email { font-size: clamp(19px, 5.6vw, 26px); padding: 4px 2px 8px; }
    .zyd-cta-or { margin: 20px auto 14px; }
    .zyd-cta-channel { padding: 14px 18px; gap: 14px; }
    .zyd-cta-channel-icon { width: 40px; height: 40px; }
    .zyd-cta-channel-value { font-size: 19px; }
}

/* The icons keep the studio's tilt: they rest a few degrees off, and pressing
   (or hovering) a row springs the icon straight and a touch larger. As a row
   scrolls in, a light glint runs across its icon once. */
@media (max-width: 760px) {
    .zyd-works-page-card-icon,
    .zyd-plt-card-icon {
        position: relative;
        transform: rotate(-4deg);
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s var(--ease);
    }
    .zyd-works-page-card:hover .zyd-works-page-card-icon,
    .zyd-plt-card:hover .zyd-plt-card-icon,
    .zyd-works-page-card:has(> .zyd-works-page-card-link:active) .zyd-works-page-card-icon,
    .zyd-plt-card:has(> .zyd-plt-card-link:active) .zyd-plt-card-icon { transform: rotate(0deg) scale(1.07); }
    .zyd-works-page-card-icon::after,
    .zyd-plt-card-icon::after {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0) 64%);
        translate: var(--zyd-glint, -130%) 0;
    }
}
@media (max-width: 600px) {
    .zyd-apps-grid .zyd-app-icon {
        position: relative; overflow: hidden;
        transform: rotate(-4deg);
        transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s var(--ease);
    }
    .zyd-apps-grid .zyd-app-card:hover .zyd-app-icon,
    .zyd-apps-grid .zyd-app-card:has(.zyd-app-card-link:hover) .zyd-app-icon,
    .zyd-apps-grid .zyd-app-card:has(> .zyd-app-card-link:active) .zyd-app-icon { transform: rotate(0deg) scale(1.07); }
    .zyd-apps-grid .zyd-app-icon::after {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0) 64%);
        translate: var(--zyd-glint, -130%) 0;
    }
}
@property --zyd-glint { syntax: '<percentage>'; inherits: true; initial-value: -130%; }
@keyframes zydCatGlint { from { --zyd-glint: -130%; } to { --zyd-glint: 130%; } }

@keyframes zydCatRowIn {
    from { opacity: 0; translate: 0 28px; scale: 0.96; }
    to   { opacity: 1; translate: none; scale: none; }
}
@keyframes zydCatIconIn {
    from { scale: 0.6; rotate: -12deg; }
    to   { scale: none; rotate: none; }
}
@supports (animation-timeline: view()) {
    /* 2.15.36: rows no longer move, scale or fade with the scroll position: while the page
       scrolled they drifted against it, which read as jerking. Only the icon's glint is left. */
    @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
        /* the glint: the icon animates --zyd-glint on its own view timeline
           and its ::after follows it (an icon clips its content, so a view()
           on the ::after itself would track the icon, not the screen) */
        .zyd-works-page-card:not(.is-in) .zyd-works-page-card-icon,
        .zyd-plt-card:not(.is-in) .zyd-plt-card-icon {
            animation: zydCatGlint linear both;
            animation-timeline: view();
            animation-range: cover 25% cover 55%;
        }
    }
    @media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
        .zyd-apps-grid .zyd-app-icon {
            animation: zydCatGlint linear both;
            animation-timeline: view();
            animation-range: cover 25% cover 55%;
        }
    }
}

/* ==========================================================================
   2.15.6 — the phone menu fits one screen: calmer item size, and the
   languages sit behind one line ("— Language   English ▾") that opens the
   list in place instead of always taking four rows of chips.
   ========================================================================== */
@media (max-width: 1080px) {
    .zyd-mobile-menu { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
    .zyd-mobile-menu-list { margin-bottom: 0; }
    .zyd-mobile-menu-list a { padding: 11px 0; font-size: 24px; }
    .zyd-mobile-menu-list a::after { font-size: 18px; }
}
@media (max-width: 1080px) and (max-height: 700px) {
    .zyd-mobile-menu-list a { padding: 8px 0; font-size: 22px; }
}
.zyd-mobile-lang:has(> .zyd-mobile-lang-pick) { padding: 0; margin: 0; border-top: 0; }
.zyd-mobile-lang-pick > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 0;
    cursor: pointer; list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.zyd-mobile-lang-pick > summary::-webkit-details-marker { display: none; }
.zyd-mobile-lang-pick .zyd-mobile-lang-label { margin: 0; }
.zyd-mobile-lang-current {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 12px 8px 10px;
    border: 1px solid var(--border-em); border-radius: var(--radius-full);
    background: var(--bg-card);
    font-size: 14px; font-weight: 600; color: var(--text);
    transition: border-color 0.2s var(--ease);
}
.zyd-mobile-lang-current svg { color: var(--text-dim); transition: transform 0.3s var(--ease), color 0.2s var(--ease); }
.zyd-mobile-lang-pick[open] .zyd-mobile-lang-current { border-color: var(--acc); }
.zyd-mobile-lang-pick[open] .zyd-mobile-lang-current svg { transform: rotate(180deg); color: var(--acc); }
:root[data-theme="light"] .zyd-mobile-lang-pick[open] .zyd-mobile-lang-current { border-color: var(--acc-readable, var(--acc)); }
:root[data-theme="light"] .zyd-mobile-lang-pick[open] .zyd-mobile-lang-current svg { color: var(--acc-readable, var(--acc)); }
.zyd-mobile-lang-pick .zyd-lang-list { padding: 2px 0 16px; }
.zyd-mobile-lang-pick[open] .zyd-lang-list { animation: zydLangListIn 0.35s var(--ease) both; }
@keyframes zydLangListIn { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: none; } }
@media (prefers-reduced-motion: reduce) { .zyd-mobile-lang-pick[open] .zyd-lang-list { animation: none; } }

/* ==========================================================================
   2.15.7 — the other pages on phones, tightened the same way: less air, the
   same type, colours and motion.
   ========================================================================== */
@media (max-width: 600px) {
    /* Journal: date, title, two lines; the whole entry opens the note. */
    .zyd-journal-item { position: relative; padding: 18px 0; }
    .zyd-journal-item:first-child { padding-top: 4px; }
    .zyd-journal-date { margin-bottom: 6px; font-size: 10px; }
    .zyd-journal-title { font-size: 20px; line-height: 1.15; margin-bottom: 6px; }
    .zyd-journal-title a::after { content: ''; position: absolute; inset: 0; }
    .zyd-journal-excerpt {
        margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-mut);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .zyd-journal-more { display: none; }
    .zyd-journal-item:has(a:active) .zyd-journal-title a { color: var(--acc); }
    :root[data-theme="light"] .zyd-journal-item:has(a:active) .zyd-journal-title a { color: var(--acc-readable, var(--acc)); }

    /* About — the crew is a row you swipe: one card in the middle, the next
       ones peeking in from the sides and fading as they leave the centre. */
    .zyd-about-team .zyd-about-team-grid {
        display: flex !important; gap: 10px;
        margin: 0 -20px; padding: 2px 20px 10px;
        overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .zyd-about-team .zyd-about-team-grid::-webkit-scrollbar { display: none; }
    .zyd-about-team .zyd-about-team-grid > .zyd-about-team-card {
        flex: 0 0 86%; min-width: 0;
        scroll-snap-align: center; scroll-snap-stop: always;
    }
    .zyd-about-team .zyd-about-team-quote { margin-top: 20px; }

    /* About — manifesto, approach: same cards, less padding */
    .zyd-about-manifesto-item { padding: 18px 18px 20px; }
    .zyd-about-manifesto-num { margin-bottom: 8px; }
    .zyd-about-manifesto-item h3 { font-size: 21px; margin-bottom: 8px; }
    .zyd-about-manifesto-item p { font-size: 14px; line-height: 1.55; }
    .zyd-about-approach-step { padding: 16px 18px 18px !important; }

    /* About — stack: two columns of small cards */
    .zyd-about-stack .zyd-about-stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
    .zyd-about-stack .zyd-about-stack-card {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 10px; row-gap: 10px; padding: 14px;
    }
    .zyd-about-stack .zyd-about-stack-logo { width: 32px; height: 32px; }
    .zyd-about-stack .zyd-about-stack-card h3 { font-size: 16px; }
    .zyd-about-stack .zyd-about-stack-card ul { grid-template-columns: 1fr; gap: 4px; }

    /* Facts tables (About, Press): two columns */
    .zyd-about-facts-grid,
    .zyd-press-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .zyd-about-facts-grid > div,
    .zyd-press-facts > div { padding: 14px 16px; gap: 3px; }
    .zyd-about-facts-grid dt,
    .zyd-press-facts dt { font-size: 9.5px; }
    .zyd-about-facts-grid dd,
    .zyd-press-facts dd { font-size: 15.5px; line-height: 1.3; }

    /* Press — lower logo previews */
    .zyd-press-logo-preview { height: 132px; }
    .zyd-press-logo-meta { padding: 16px 18px 18px; }
    .zyd-press-logo-meta h3 { font-size: 19px; margin-bottom: 4px; }
    .zyd-press-logo-meta p { margin-bottom: 12px; }
    .zyd-press-desc { padding: 18px !important; }

    /* Contact / Support */
    .zyd-contact-lead { margin-bottom: 28px; }
    .zyd-contact-alt { margin: 18px 0 20px; }
    .zyd-support-card { position: relative; }
    .zyd-support-card-icon { position: absolute; top: 16px; right: 16px; margin: 0; width: 36px; height: 36px; }
    .zyd-support-card-icon svg { width: 19px; height: 19px; }
    .zyd-support-cards { margin-bottom: 28px; }
    .zyd-support-helpers-list { gap: 14px; }
    .zyd-support-helpers-list > li { padding-bottom: 14px; gap: 12px; }

    /* Platforms hub: logo beside the name, two lines of intro */
    .zyd-plt-tile-lg { min-height: 0; }
    .zyd-plt-tile {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-areas:
            "logo kicker arrow"
            "logo name   arrow"
            "intro intro intro"
            "foot foot   foot";
        column-gap: 14px; row-gap: 2px;
        padding: 16px 16px 14px;
        border-radius: 18px;
        -webkit-tap-highlight-color: transparent;
    }
    .zyd-plt-tile-top { display: contents; }
    .zyd-plt-tile-logo { grid-area: logo; width: 44px; height: 44px; border-radius: 12px; align-self: center; }
    .zyd-plt-tile-arrow { grid-area: arrow; align-self: center; font-size: 18px; }
    .zyd-plt-tile-kicker { grid-area: kicker; margin: 2px 0 0; font-size: 10px; align-self: end; }
    .zyd-plt-tile-name { grid-area: name; font-size: 20px; align-self: start; }
    .zyd-plt-tile-intro { grid-area: intro; margin-top: 10px; font-size: 13.5px; -webkit-line-clamp: 2; }
    .zyd-plt-tile-foot { grid-area: foot; padding-top: 12px; }
    .zyd-plt-tile:active { transform: scale(0.985); border-color: var(--border-em); }
    .zyd-plt-family + .zyd-plt-family { margin-top: 30px !important; }
    .zyd-plt-hub-grid { gap: 10px; }

    /* App page: the long store description starts folded */
    .zyd-app-longdesc { padding: 26px 18px 22px; font-size: 15.5px; line-height: 1.6; }
    .zyd-app-longdesc.is-folded { max-height: 560px; overflow: hidden; }
    /* The fade is a layer over the card, not a mask on it: only its opacity
       changes, so opening and folding don't repaint the long text. */
    .zyd-ld-fade { position: relative; height: 0; }
    .zyd-ld-fade::before {
        content: ''; position: absolute; left: 1px; right: 1px; bottom: 0; height: 168px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        background: linear-gradient(transparent, var(--bg-card) 88%);
        opacity: 0; pointer-events: none;
        transition: opacity 0.35s var(--ease);
    }
    .zyd-app-longdesc.is-folded + .zyd-ld-fade::before { opacity: 1; }
    .zyd-ld-more {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        margin: 12px auto 0; padding: 11px 18px;
        background: var(--bg-card); color: var(--text);
        border: 1px solid var(--border-em); border-radius: var(--radius-full);
        font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
        letter-spacing: 0.12em; text-transform: uppercase;
        cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
        transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
    }
    .zyd-ld-more[hidden] { display: none; }
    .zyd-ld-more-arrow { display: inline-block; color: var(--acc); transition: transform 0.3s var(--ease); }
    .zyd-ld-more[aria-expanded="true"] .zyd-ld-more-arrow { transform: rotate(180deg); }
    .zyd-ld-more[aria-expanded="true"] .zyd-ld-more-open,
    .zyd-ld-more[aria-expanded="false"] .zyd-ld-more-close { display: none; }
    .zyd-ld-more:active { transform: scale(0.97); border-color: var(--acc); }
    :root[data-theme="light"] .zyd-ld-more-arrow { color: var(--acc-readable, var(--acc)); }

    /* Single note: calmer gaps between sections */
    .zyd-prose h2 { margin-top: 36px; }
    .zyd-single-nav { margin-top: 32px; padding-top: 22px; }
}
@media (min-width: 601px) { .zyd-ld-more { display: none !important; } }
@media (max-width: 380px) {
    .zyd-about-team .zyd-about-team-grid { margin: 0 -16px; padding-inline: 16px; }
}
@supports (animation-timeline: view()) {
    @media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
        .zyd-about-team .zyd-about-team-grid > .zyd-about-team-card {
            animation: zydCrewFocus linear both;
            animation-timeline: view(inline);
        }
    }
}
@keyframes zydCrewFocus {
    0%   { opacity: 0.45; scale: 0.92; }
    35%, 65% { opacity: 1; scale: none; }
    100% { opacity: 0.45; scale: 0.92; }
}

/* 2.15.7 — page heads on phones: breadcrumb, tag and title sit close
   together (they had 28–42px of stacked margins between them). */
@media (max-width: 600px) {
    .zyd-app-breadcrumb { margin-bottom: 12px !important; }
    .zyd-page-tag { margin-top: 0 !important; margin-bottom: 10px !important; }
    .zyd-page-tag + * { margin-top: 0 !important; }
    .zyd-contact-lead { margin-bottom: 18px !important; }
    .zyd-contact-alt { margin-top: 14px !important; }
    .zyd-plt-hero-grid { margin-bottom: 14px !important; }

    /* About / Press: stack chips wrap instead of one full-width pill per line;
       a lone last fact takes the whole row (long e-mails no longer break) */
    .zyd-about-stack .zyd-about-stack-card ul { display: flex; flex-wrap: wrap; gap: 4px; }
    .zyd-about-stack .zyd-about-stack-card li { flex: 0 0 auto; }
    .zyd-about-facts-grid > div:last-child:nth-child(odd),
    .zyd-press-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ==========================================================================
   2.15.9 — switching dark / light: the page's colour transitions run element
   by element at different speeds, so for a moment parts were dark and parts
   light. During the switch they are off and everything changes at once; where
   View Transitions exist, the new theme opens as a circle from the button
   (theme.js). The sun / moon keeps its own turn.
   ========================================================================== */
html.zyd-theme-switching,
html.zyd-theme-switching *,
html.zyd-theme-switching *::before,
html.zyd-theme-switching *::after { transition: none !important; }
html.zyd-theme-switching .zyd-theme-toggle svg { transition: opacity 0.3s, transform 0.3s var(--ease) !important; }
html.zyd-theme-switching::view-transition-old(root),
html.zyd-theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.zyd-theme-switching::view-transition-old(root) { z-index: 1; }
html.zyd-theme-switching::view-transition-new(root) { z-index: 2; }

/* 2.15.19 — app page store badges on phones: two to a row. The rows of
   zydeno_render_badge_rows() dissolve into one wrapping flex line. Each badge
   is half the width but never less than its own content, so a label that
   doesn't fit gets a line of its own instead of being cut. Nothing stretches:
   an odd last badge keeps its size. The label scales with the screen so
   "Chrome Web Store" fits from 360px up. */
@media (max-width: 699.98px) {   /* .98: fractional widths at fractional display scales fell between 699 and 700 */
    .zyd-app-hero-cta, .zyd-app-hero-cta:has(> .zyd-badge-row),
    .zyd-app-cta-buttons, .zyd-app-cta-buttons:has(> .zyd-badge-row) {
        flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 8px;
        width: 100%; max-width: 520px; margin-inline: auto;
    }
    .zyd-app-cta-buttons, .zyd-app-cta-buttons:has(> .zyd-badge-row) { justify-content: flex-start; }
    .zyd-badge-row { display: contents; }
    .zyd-app-hero-cta .zyd-app-badge, .zyd-app-cta-buttons .zyd-app-badge {
        flex: 0 1 calc(50% - 4px); width: auto; min-height: 56px; justify-content: flex-start;
        padding: 8px 4px 8px 10px; gap: 8px; border-radius: 12px;
    }
    .zyd-app-hero-cta > .zyd-app-badge:only-child,
    .zyd-app-cta-buttons > .zyd-app-badge:only-child { justify-content: center; }
    .zyd-app-hero-cta .zyd-app-badge svg, .zyd-app-cta-buttons .zyd-app-badge svg { width: 22px; height: 22px; }
    .zyd-app-hero-cta .zyd-app-badge-stack, .zyd-app-cta-buttons .zyd-app-badge-stack { gap: 2px; }
    .zyd-app-hero-cta .zyd-app-badge-pre, .zyd-app-cta-buttons .zyd-app-badge-pre { font-size: clamp(9px, 2.5vw, 10.5px); letter-spacing: 0.04em; white-space: nowrap; }
    .zyd-app-hero-cta .zyd-app-badge-store, .zyd-app-cta-buttons .zyd-app-badge-store {
        font-family: var(--font-sans); font-size: clamp(12px, calc(5.6vw - 8px), 16px); font-weight: 700;
        letter-spacing: -0.02em; white-space: nowrap;
    }
    /* The "Try … today" card gives its inside to the buttons: same width as in the hero. */
    .zyd-app-cta { margin-inline: -10px; padding-inline: 10px; }
    .zyd-app-cta-text { padding-inline: 8px; }
}
/* The narrowest three-column badge grid: "Chrome Web Store" needs a smaller set. */
@media (min-width: 700px) and (max-width: 779px) {
    .zyd-badge-row .zyd-app-badge { gap: 10px; padding-left: 12px; padding-right: 6px; }
    .zyd-badge-row .zyd-app-badge svg { width: 24px; height: 24px; }
    .zyd-badge-row .zyd-app-badge-store { font-size: 15px; white-space: nowrap; }
    .zyd-badge-row .zyd-app-badge-pre { letter-spacing: 0.08em; white-space: nowrap; }
}
/* Sticky bar on tablets: four or more labelled stores ran off the screen. */
@media (min-width: 601px) and (max-width: 1100px) {
    .zyd-app-sticky-actions:has(a:nth-of-type(4)) { flex-wrap: nowrap; gap: 6px; }
    .zyd-app-sticky-actions:has(a:nth-of-type(4)) .zyd-app-sticky-btn {
        flex: 0 0 44px; height: 40px; padding: 0; justify-content: center; gap: 0;
    }
    .zyd-app-sticky-actions:has(a:nth-of-type(4)) .zyd-app-sticky-btn svg { width: 22px; height: 22px; }
    .zyd-app-sticky-actions:has(a:nth-of-type(4)) .zyd-app-sticky-btn span { display: none; }
}
@media (max-width: 699px) { .zyd-plat-btn { min-height: 44px; } }

/* 2.15.26 — tighter on computers and tablets: the phone pass never reached them.
   The site-wide rhythm first, then the app page's first screen. */
:root { --section-y: 32px; --head-gap: 16px; }
@media (max-width: 900px) { :root { --section-y: 26px; --head-gap: 14px; } }
.zyd-app-breadcrumb { margin-bottom: 14px; }
.zyd-app-shots-rail-wrap { margin-top: 0; }
.zyd-app-about-grid { margin-top: 0; }
@media (min-width: 601px) {
    .zyd-app-hero { padding-top: calc(var(--header-h) + 24px) !important; padding-bottom: 12px; }
    .zyd-app-shots-section { padding-top: 16px; }
    .zyd-app-shots-rail { padding-top: 12px; padding-bottom: 16px; }
}
@media (min-width: 901px) {
    .zyd-app-hero-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
    .zyd-app-hero-icon { width: 180px; height: 180px; }
    .zyd-app-hero-title { font-size: clamp(44px, 4.6vw, 68px); margin: 0 0 6px; }
    .zyd-app-hero-tagline { font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 12px; }
    .zyd-app-hero-promo { margin-bottom: 14px; }
    .zyd-app-hero-cta { margin-top: 0; }
}

/* 2.15.27 — the name marquee moved out of the hero, between the description and
   "Notes": straight under the screenshots it repeated the name in "About …". */
.zyd-app-hero-marquee.zyd-marquee { margin: 0 !important; padding: 10px 0; }
.zyd-app-page .zyd-app-shots-section { padding-bottom: 10px !important; }
.zyd-app-page .zyd-app-longdesc-section { padding-top: 8px; padding-bottom: 12px; }
.zyd-app-page .zyd-app-hero + .zyd-app-longdesc-section { padding-top: 20px; }
.zyd-app-page .zyd-app-hero-marquee + section { padding-top: 12px; }
@media (max-width: 600px) {
    .zyd-app-page .zyd-app-shots-section { padding-top: 18px !important; }
}

/* 2.15.28 — colour glows fade out before the edge of their block. They were fixed
   sizes or reached past it, so overflow:hidden cut them in a straight line, more
   so once the heroes got shorter. Each glow now fills its block, its vertical
   radius stops at the block's edge, and the extra stops ease the falloff. */
:root {
    --zyd-glow-fade:
        var(--acc-glow) 0%,
        color-mix(in srgb, var(--acc-glow) 62%, transparent) 30%,
        color-mix(in srgb, var(--acc-glow) 22%, transparent) 65%,
        transparent 100%;
}
.zyd-app-hero::before, :root[data-theme="light"] .zyd-app-hero::before,
.zyd-plt-hero::before, :root[data-theme="light"] .zyd-plt-hero::before,
.zyd-about-hero::before, :root[data-theme="light"] .zyd-about-hero::before,
.zyd-contact-hero::before, :root[data-theme="light"] .zyd-contact-hero::before,
.zyd-faq-hero::before, :root[data-theme="light"] .zyd-faq-hero::before,
.zyd-404::before, :root[data-theme="light"] .zyd-404::before {
    inset: 0; width: auto; height: auto; transform: none;
}
/* min() with a percentage is not valid as a gradient radius, so the box carries the
   size limit: a glow box of at most 1240px, and the ellipse touches its sides. */
.zyd-app-hero::before, :root[data-theme="light"] .zyd-app-hero::before,
.zyd-faq-hero::before, :root[data-theme="light"] .zyd-faq-hero::before {
    left: 50%; right: auto; width: min(100%, 1240px); transform: translateX(-50%);
    background: radial-gradient(ellipse closest-side, var(--zyd-glow-fade));
}
.zyd-plt-hero::before, :root[data-theme="light"] .zyd-plt-hero::before {
    right: auto; width: min(100%, 1040px);
    background: radial-gradient(ellipse closest-side, var(--zyd-glow-fade));
}
.zyd-about-hero::before, :root[data-theme="light"] .zyd-about-hero::before,
.zyd-contact-hero::before, :root[data-theme="light"] .zyd-contact-hero::before {
    left: auto; width: min(100%, 1240px);
    background: radial-gradient(ellipse closest-side, var(--zyd-glow-fade));
    opacity: 0.3;
}
.zyd-faq-hero::before, :root[data-theme="light"] .zyd-faq-hero::before { opacity: 0.25; }
.zyd-404::before, :root[data-theme="light"] .zyd-404::before {
    background:
        radial-gradient(ellipse 45% 30% at 30% 30%, var(--zyd-glow-fade)),
        radial-gradient(ellipse 40% 30% at 70% 70%, var(--zyd-glow-fade));
    opacity: 0.22;
}
.zyd-app-longdesc-section::before {
    top: -20px; height: 320px;
    background: radial-gradient(ellipse closest-side, var(--zyd-glow-fade));
}
/* The home spotlight follows the cursor: fade it at the hero's top and bottom. */
.zyd-hero-spotlight {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 160px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 160px), transparent);
}

/* 2.15.30 — moving between pages. Every page used to arrive in layers: the intro
   overlay until the script at the end of the body hid it, <main> fading in, then the
   first-screen blocks fading in again, and the home headline flying in. Now the new
   page is complete on its first paint and simply replaces the old one. No cross-document
   view transition (2.15.33): two different pages cross-fading read as the old page
   reloading before the new one opened. */
.zyd-page-fade { animation: none; }
.zyd-reveal, .zyd-reveal.is-visible { opacity: 1; transform: none; transition: none; }
.zyd-reveal.zyd-reveal-wait { opacity: 0; }   /* opacity only: a slide read as the page pulling itself up on scroll */
.zyd-reveal.zyd-reveal-wait.is-visible {
    opacity: 1;
    transition: opacity 0.5s var(--ease);
}
/* A visitor who has seen the intro gets the home headline at rest, without a fly-in. */
html.zyd-seen .zyd-intro { display: none !important; }
html.zyd-seen .zyd-hero-line, html.zyd-seen .zyd-hero-box { opacity: 1; transition: none; will-change: auto; }
html.zyd-seen .zyd-hero-line:not(.zyd-anim-done) { translate: 0 -60px; }
html.zyd-seen .zyd-hero-box:not(.zyd-anim-done) { transform: skewX(-6deg); }

/* 2.15.32 — the cookie banner stands out from the page: an accent outline and glow,
   and its "// COOKIES" label on phones too. Once seen, it holds still between pages. */
.zyd-cookie, :root[data-theme="light"] .zyd-cookie {
    border: 1.5px solid var(--acc-readable, var(--acc));
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 0 34px -8px var(--acc-glow);
}
:root[data-theme="light"] .zyd-cookie { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.25), 0 0 30px -10px var(--acc-glow); }
@media (max-width: 600px) {
    .zyd-cookie-tag { display: block; margin-bottom: 4px; }
}
.zyd-cookie.zyd-cookie-instant { transition: none; }
html.zyd-cookie-pending .zyd-cookie { visibility: visible; pointer-events: auto; transform: none; transition: none; }

/* 2.15.33 — screenshots rail: the first shot starts under the section heading, and on
   phones two portrait shots fit the screen with a peek of the third. */
.zyd-app-shots-rail { --shots-gap: 24px; gap: var(--shots-gap); }
.zyd-app-shots-pad {
    flex: 0 0 auto;
    width: calc(max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter)) - var(--shots-gap));
}
@media (max-width: 600px) {
    .zyd-app-shots-rail { --shots-gap: 10px; scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; }
    .zyd-app-shots-pad { width: calc(var(--gutter) - var(--shots-gap)); }
    .zyd-app-shot { scroll-snap-align: start; }
    .zyd-app-shot-frame { width: calc((100vw - var(--gutter) - 2 * var(--shots-gap)) / 2.15); border-radius: 14px; }
    .zyd-app-shot-wide .zyd-app-shot-frame { width: calc(100vw - 2 * var(--gutter)); }
}

/* 2.15.36 — touch screens have no hover. A tap "hovers" until the next tap, so buttons and
   cards jumped a few pixels and stayed recoloured, also on the way back to the page. */
@media (hover: none) {
    .zyd-btn-primary:hover, .zyd-btn-ghost:hover, .zyd-store-btn:hover, .zyd-app-badge:hover,
    .zyd-app-sticky-btn:hover, .zyd-works-page-card-store:hover, .zyd-plat-btn:hover, .zyd-ext-add:hover,
    .zyd-ext-item:hover, .zyd-plt-tab:hover, .zyd-plt-tile:hover, .zyd-plt-card-also-item:hover,
    .zyd-tg-pill:hover, .zyd-cta-channel:hover, .zyd-support-card:hover, .zyd-support-card-btn:hover,
    .zyd-contact-card:hover, .zyd-press-logo:hover, .zyd-press-color:hover, .zyd-about-manifesto-item:hover,
    .zyd-about-approach-step:hover, .zyd-about-team-card:hover, .zyd-app-more-card:hover,
    .zyd-home-journal-card:hover, .zyd-cookie-accept:hover, .zyd-cookie-save:hover, .zyd-theme-toggle:hover,
    .zyd-app-shot:hover .zyd-app-shot-frame, .zyd-mobile-menu-list a:hover { transform: none; }
    .zyd-app-badge:hover, .zyd-app-sticky-btn:hover, .zyd-plat-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
    .zyd-store-btn:hover, :root[data-theme="light"] .zyd-store-btn:hover {
        border-color: var(--border-em) !important; color: var(--text) !important; box-shadow: none;
    }
    .zyd-works-page-card-store:hover, :root[data-theme="light"] .zyd-works-page-card-store:hover {
        border-color: var(--border-em); color: var(--text);
    }
}
/* Small links get a thumb-sized target without moving anything. */
@media (max-width: 760px) {
    .zyd-logo, .zyd-footer-logo { padding-block: 8px; margin-block: -8px; }
    a.zyd-section-meta { padding-block: 12px; margin-block: -12px; }
    .zyd-footer-col .zyd-footer-h a { display: inline-block; padding-block: 10px; margin-block: -10px; }
    .zyd-press-copy-btn { min-height: 36px; }
    .zyd-plat-more a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

/* 2.15.39 — /works/ cards: the full description where there is room, the short tagline on phones. */
@media (min-width: 761px) {
    .zyd-works-card-short { display: none; }
    .zyd-works-card-long { -webkit-line-clamp: 5; }   /* German runs long */
}
@media (max-width: 760px) {
    .zyd-works-card-long { display: none; }
    .zyd-works-card-short { -webkit-line-clamp: 2; }
}

/* 2.15.42 — catalog cards: a store badge pair shares one row instead of stacking, so
   no card leaves a hole above its button. Sizes follow the width of the button row. */
.zyd-plt-card-cta { container-type: inline-size; }
.zyd-plt-card-cta:has(> a ~ a) { flex-wrap: wrap; gap: 8px; }
.zyd-plt-card-cta:has(> a ~ a) .zyd-app-badge {
    flex: 1 1 calc(50% - 4px); min-width: 0; max-width: 172px; min-height: 50px;
    justify-content: flex-start;
    padding-block: 8px;
    padding-inline: clamp(8px, 3.5cqw, 12px) clamp(4px, 2.5cqw, 10px);
    gap: clamp(6px, 2.6cqw, 9px);
}
.zyd-plt-card-cta:has(> a ~ a) .zyd-app-badge svg { width: clamp(20px, 7cqw, 24px); height: clamp(20px, 7cqw, 24px); }
.zyd-plt-card-cta:has(> a ~ a) .zyd-app-badge-pre { font-size: clamp(8px, 2.9cqw, 10px); letter-spacing: 0.08em; white-space: nowrap; }
.zyd-plt-card-cta:has(> a ~ a) .zyd-app-badge-store { font-size: 15px; font-size: clamp(12px, calc(4.5cqw + 0.5px), 16px); white-space: nowrap; }
/* a lone button is the same size as one of a pair */
@media (min-width: 761px) {
    .zyd-plt-card-cta .zyd-app-badge {
        min-width: min(172px, calc(50cqw - 4px)); min-height: 50px;
        justify-content: flex-start;
        padding-block: 8px;
        padding-inline: clamp(8px, 3.5cqw, 12px) clamp(6px, 2.5cqw, 10px);
        gap: clamp(6px, 2.6cqw, 9px);
    }
    .zyd-plt-card-cta .zyd-app-badge svg { width: clamp(20px, 7cqw, 24px); height: clamp(20px, 7cqw, 24px); }
    .zyd-plt-card-cta .zyd-app-badge-pre { font-size: clamp(8px, 2.9cqw, 10px); letter-spacing: 0.08em; white-space: nowrap; }
    .zyd-plt-card-cta .zyd-app-badge-store { font-size: 15px; font-size: clamp(12px, calc(4.5cqw + 0.5px), 16px); white-space: nowrap; }
}

/* 2.15.43 — a card row with no "Also on" keeps no empty line under its buttons. */
.zyd-plt-card-also:not(:has(a)) { display: none; }
@media (min-width: 761px) {
    .zyd-plt-card-cta { margin-bottom: 0; }
    .zyd-plt-card-also:has(a) { margin-top: 14px; }
}

/* 2.15.44 — every name starts on the same line under the icon; at this size most
   names take one line.
   2.15.46 — one text per card, as on /works/: the description on wider screens,
   the short subtitle on phones. The text flows from the top of the card. */
@media (min-width: 761px) {
    .zyd-plt-card-name,
    .zyd-works-page-card-name { font-size: 20px; line-height: 1.18; letter-spacing: -0.015em; word-spacing: 0.04em; }
    .zyd-plt-card-name { margin-bottom: 12px; }
    .zyd-plt-card-tag { display: none; }
    .zyd-plt-card-desc { -webkit-line-clamp: 5; }
}
@media (max-width: 760px) {
    .zyd-plt-card-text { display: contents; }
}

/* 2.15.47 — phones show names in full and up to three lines of subtitle, since
   the subtitle is the only text there. */
@media (max-width: 760px) {
    .zyd-plt-card-name,
    .zyd-works-page-card-name {
        display: block; -webkit-line-clamp: none; overflow: visible;
        overflow-wrap: anywhere; hyphens: auto; hyphenate-limit-chars: 14 6 6;
    }
    .zyd-plt-card-tag,
    .zyd-works-page-card-tag { -webkit-line-clamp: 3; }
}

/* ==========================================================================
   2.15.53 — extension pages: /welcome/ after an install, /goodbye/ after a
   removal. The catalog hero and cards; sponsored cards (when switched on)
   look the same but always carry a "Sponsored" label.
   ========================================================================== */
.zyd-xp-hero-goodbye::before { opacity: 0.12; }
.zyd-xp-hero .zyd-plt-hero-grid { margin-bottom: 6px; }
.zyd-xp-more.zyd-plt-grid-section { padding-bottom: 88px; }
.zyd-xp-all { margin: 28px 0 0; text-align: center; }
.zyd-xp-ad .zyd-plt-card-kind.zyd-xp-ad-label { color: var(--text-sec); border-color: var(--border-em); }
.zyd-xp-ad-mark {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-sec); margin-right: 2px;
}
.zyd-xp-ad-mark::after { content: '  B7'; letter-spacing: 0; }
@media (max-width: 760px) {
    .zyd-xp-more.zyd-plt-grid-section { padding-bottom: 56px; }
}

/* ==========================================================================
   2.15.55 — donate page: one screen. Coin tiles on the left (all the same
   size), the chosen coin on the right (network, QR, address, copy) with the
   card option under it. Phones: tiles three to a row, the coin under them.
   ========================================================================== */
.zyd-don { position: relative; overflow: hidden; padding: calc(var(--header-h) + 34px) 0 64px; }
.zyd-don::before {
    content: ''; position: absolute; pointer-events: none;
    width: 720px; height: 720px; left: -260px; top: -320px;
    background: radial-gradient(circle, var(--acc-glow), transparent 62%); opacity: 0.2;
}
.zyd-don > .zyd-container { position: relative; z-index: 1; }
.zyd-don-title {
    margin: 14px 0 10px; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em;
}
.zyd-don-intro { max-width: 680px; margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--text-sec); }

.zyd-don-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; margin-top: 26px; }
.zyd-don-group {
    margin: 0 0 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mut);
}
.zyd-don-tiles + .zyd-don-group { margin-top: 20px; }
.zyd-don-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.zyd-don-tile {
    position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 10px;
    min-height: 60px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-card); color: var(--text); font: inherit; text-align: left; cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.zyd-don-tile img { width: 34px; height: 34px; }
.zyd-don-tile:hover { border-color: var(--border-em); transform: none; }
.zyd-don-tile[aria-pressed="true"] { border-color: var(--acc); background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--acc); }
.zyd-don-tile:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.zyd-don-tile-text { display: flex; flex-direction: column; min-width: 0; }
.zyd-don-tile-text strong { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.zyd-don-tile-text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--text-mut); }
.zyd-don-tile-nets { grid-column: 2; margin-top: 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--acc); }
:root[data-theme="light"] .zyd-don-tile-nets { color: var(--acc-readable, var(--acc)); }

.zyd-don-side { position: sticky; top: calc(var(--header-h) + 16px); }
.zyd-don-coin { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.zyd-don-side[data-ready] .zyd-don-coin:not(.is-on) { display: none; }
.zyd-don-side:not([data-ready]) .zyd-don-coin + .zyd-don-coin { margin-top: 12px; }
.zyd-don-coin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.zyd-don-logo { flex: 0 0 auto; width: 40px; height: 40px; }
.zyd-don-coin-name { display: flex; flex-direction: column; min-width: 0; }
.zyd-don-coin-name strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.zyd-don-coin-name span { font-size: 13px; color: var(--text-mut); }
.zyd-don-nets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.zyd-don-net {
    padding: 6px 10px; border: 1px solid var(--border-str); border-radius: var(--radius-full);
    background: var(--bg-elev); color: var(--text-sec); font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.zyd-don-net:hover { border-color: var(--border-em); }
.zyd-don-net[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-text); font-weight: 600; }
.zyd-don-net:focus-visible, .zyd-don-copy:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.zyd-don-coin[data-ready] .zyd-don-panel:not(.is-on) { display: none; }
.zyd-don-coin:not([data-ready]) .zyd-don-panel + .zyd-don-panel { margin-top: 18px; }
.zyd-don-net-one { margin: 0 0 12px; font-size: 12.5px; color: var(--text-mut); }
.zyd-don-qr { width: 184px; margin: 0 auto 12px; border-radius: 12px; overflow: hidden; background: #fff; }
.zyd-don-qr-svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.zyd-don-addr {
    display: block; padding: 11px 13px; border: 1px solid var(--border-str); border-radius: var(--radius-md);
    background: var(--bg-elev); color: var(--text);
    font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; word-break: break-all; text-wrap: balance;
    user-select: all; -webkit-user-select: all;
}
.zyd-don-copy {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px; padding: 0 16px;
    border: 1px solid var(--acc); border-radius: var(--radius-md); background: var(--acc); color: var(--acc-text);
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.2s var(--ease);
}
.zyd-don-copy:hover { transform: none; }
.zyd-don-copied { display: none; }
.zyd-don-copy.is-done .zyd-don-copy-label, .zyd-don-copy.is-done svg { display: none; }
.zyd-don-copy.is-done .zyd-don-copied { display: inline; }
.zyd-don-copy.is-done .zyd-don-copied::before { content: '\2713  '; }
.zyd-don-warn { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }

.zyd-don-card-box { margin-top: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.zyd-don-card-note { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--text-sec); }
.zyd-don-card-btn { width: 100%; justify-content: center; min-height: 46px; }
.zyd-don-iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-md); background: #fff; }
.zyd-don-thanks { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--text-mut); }

@media (max-width: 1100px) {
    .zyd-don-layout { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 860px) {
    .zyd-don { padding-top: calc(var(--header-h) + 22px); padding-bottom: 48px; }
    .zyd-don-layout { grid-template-columns: 1fr; margin-top: 20px; }
    .zyd-don-side { position: static; scroll-margin-top: calc(var(--header-h) + 12px); }
}
@media (max-width: 560px) {
    .zyd-don-intro { font-size: 15px; }
    .zyd-don-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .zyd-don-tile { grid-template-columns: 1fr; justify-items: center; row-gap: 6px; min-height: 0; padding: 10px 4px; text-align: center; }
    .zyd-don-tile img { width: 32px; height: 32px; }
    .zyd-don-tile-text span { display: none; }
    .zyd-don-tile-text strong { font-size: 14px; }
    .zyd-don-tile-nets { grid-column: 1; margin: 0; font-size: 9.5px; }
    .zyd-don-coin { padding: 16px; }
}

/* 2.15.56 — donate page: "Crypto" / "Card" tabs on the right; the card tab
   holds ChangeNOW's widget (loaded only when the tab is opened) and the
   Ko-fi / Buy Me a Coffee button. */
.zyd-don-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 10px; padding: 4px;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card);
}
.zyd-don-tab {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
    border: 0; border-radius: calc(var(--radius-md) - 3px); background: transparent; color: var(--text-mut);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zyd-don-tab:hover { color: var(--text); }
.zyd-don-tab[aria-selected="true"] { background: var(--bg-elev); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-str); }
.zyd-don-tab:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.zyd-don-pane[hidden] { display: none; }
.zyd-don-cardpay { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.zyd-don-kofi { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.zyd-don-cn .zyd-don-net-one { margin-bottom: 8px; }
.zyd-don-cn-frame { margin-top: 14px; min-height: 120px; }
.zyd-don-cn-frame iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--radius-md); background: #0C0C0C; }
.zyd-don-third { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-dim); }
.zyd-don-final { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.zyd-don-tile { text-align: start; }

/* 2.15.56 — the extension pages in 16 languages: system fonts with the right
   glyphs (Archivo has no Cyrillic, CJK or Arabic), no negative tracking. */
[lang="ru"] :is(.zyd-plt-title, .zyd-don-title, .zyd-plt-card-name, .zyd-don-tile-text strong, .zyd-don-coin-name strong),
[lang="uk"] :is(.zyd-plt-title, .zyd-don-title, .zyd-plt-card-name, .zyd-don-tile-text strong, .zyd-don-coin-name strong) {
    font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.02em;
}
[lang="ja"] { font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', var(--font-sans); }
[lang="ko"] { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', var(--font-sans); }
[lang="zh-CN"] { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', var(--font-sans); }
[lang="ar"] { font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, 'Geeza Pro', var(--font-sans); }
:is([lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="ar"]) :is(.zyd-plt-title, .zyd-don-title, .zyd-plt-card-name, .zyd-section-head h2, .zyd-plt-chip, .zyd-don-group, .zyd-plt-hero-num-label, .zyd-plt-card-kind, .zyd-app-badge-pre) {
    font-family: inherit; letter-spacing: 0;
}
:is([lang="ja"], [lang="ko"], [lang="zh-CN"]) :is(.zyd-plt-title, .zyd-don-title) { font-weight: 800; line-height: 1.2; }
[lang="ar"] :is(.zyd-plt-title, .zyd-don-title) { font-weight: 800; line-height: 1.35; }
[lang="ar"] :is(.zyd-plt-intro, .zyd-don-intro, .zyd-plt-card-desc, .zyd-plt-card-tag) { line-height: 1.75; }

/* 2.15.58 — donate page: the heading sits in the left column, so the right
   column (QR / card) starts at the top; ChangeNOW's widget in its light
   theme on a white card, sized to its form. */
.zyd-don-layout { margin-top: 0; }
.zyd-don-top { margin-bottom: 24px; }
.zyd-don-side { top: calc(var(--header-h) + 14px); }
.zyd-don-cn-frame { min-height: 0; margin-top: 14px; border-radius: 14px; overflow: hidden; background: #fff; }
.zyd-don-cn-frame iframe { height: 360px; border-radius: 14px; background: #fff; }
@media (max-width: 860px) {
    .zyd-don-top { margin-bottom: 18px; }
}

/* 2.15.60 — card form (amount, estimate, our address, ChangeNOW link) instead
   of ChangeNOW's widget, which cannot price card purchases. On computers the
   panes and coins of the right column share one grid cell, so switching a tab
   or a coin never changes the page height (the footer stays put). */
.zyd-don-cn-pay { margin: 4px 0 16px; padding: 14px; border: 1px solid var(--border-str); border-radius: var(--radius-md); background: var(--bg-elev); }
.zyd-don-cn-label { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--text-mut); }
.zyd-don-cn-amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.zyd-don-cn-amount input, .zyd-don-cn-amount select {
    min-height: 46px; padding: 0 12px; border: 1px solid var(--border-str); border-radius: var(--radius-md);
    background: var(--bg-card); color: var(--text); font: inherit; font-size: 18px; font-weight: 600;
}
.zyd-don-cn-amount select { font-size: 15px; cursor: pointer; }
.zyd-don-cn-amount input:focus, .zyd-don-cn-amount select:focus { outline: none; border-color: var(--acc); }
.zyd-don-cn-get { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 12px 0 0; font-size: 13px; color: var(--text-mut); }
.zyd-don-cn-get strong { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.zyd-don-cn-coin { flex-basis: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }   /* one line whatever the network name: no height change */
.zyd-don-cn-go { display: flex; width: 100%; justify-content: center; min-height: 48px; margin-top: 12px; }
.zyd-don-cn-steps { margin: 12px 0 0; padding-inline-start: 20px; font-size: 13px; line-height: 1.6; color: var(--text-mut); }
@media (min-width: 861px) {
    .zyd-don-side[data-ready] { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
    .zyd-don-side[data-ready] .zyd-don-pane { grid-area: 2 / 1; }
    .zyd-don-side[data-ready] .zyd-don-pane[hidden] { display: block; visibility: hidden; pointer-events: none; }
    .zyd-don-side[data-ready] #zyd-don-pane-crypto { display: grid; grid-template-columns: minmax(0, 1fr); }
    .zyd-don-side[data-ready] .zyd-don-coin { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
    .zyd-don-side[data-ready] .zyd-don-coin:not(.is-on) { display: grid; visibility: hidden; pointer-events: none; }
    .zyd-don-coin[data-ready] .zyd-don-coin-head { grid-row: 1; }
    .zyd-don-coin[data-ready] .zyd-don-nets { grid-row: 2; }
    .zyd-don-coin[data-ready] .zyd-don-panel { grid-row: 3; grid-column: 1; }
    .zyd-don-coin[data-ready] .zyd-don-panel:not(.is-on) { display: block; visibility: hidden; pointer-events: none; }
}

/* 2.15.64 — card tab in two labelled steps: "Step 1" copy our address,
   "Step 2" open ChangeNOW. The step 2 button stays outlined until the
   address has been copied, then turns lime. */
.zyd-don-step { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; font-size: 14px; line-height: 1.45; color: var(--text-sec); }
.zyd-don-step-n {
    flex: 0 0 auto; padding: 3px 8px; border-radius: var(--radius-full); background: var(--acc); color: var(--acc-text);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.zyd-don-step-2 { margin-top: 20px; }
.zyd-don-cn .zyd-don-cn-go { margin-top: 0; background: transparent; color: var(--text); border: 1px solid var(--border-em); box-shadow: none; }
.zyd-don-cn .zyd-don-cn-go:hover { border-color: var(--acc); color: var(--acc); }
.zyd-don-cn.is-copied .zyd-don-cn-go { background: var(--acc); color: var(--acc-text); border-color: var(--acc); box-shadow: 0 8px 24px -10px var(--acc-glow); }
.zyd-don-cn:not(.is-copied) .zyd-don-step-2 .zyd-don-step-n { background: var(--bg-hover); color: var(--text-mut); }
:is([lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="ar"]) .zyd-don-step-n { font-family: inherit; letter-spacing: 0; }
.zyd-don-cn-est { direction: ltr; unicode-bidi: isolate; }   /* "47.52 USDC" also on right-to-left pages */

/* 2.15.66 — donate page in the light palette (see 2.15.1): solid actions
   (copy button, lit step 2 button) and the chosen network are ink with white
   text; step badges are the pastel lime chip with deep green text; the chosen
   coin tile has a deep green outline. */
:root[data-theme="light"] :is(.zyd-don-copy, .zyd-don-net[aria-pressed="true"], .zyd-don-cn.is-copied .zyd-don-cn-go) {
    background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: none;
}
:root[data-theme="light"] .zyd-don-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--border-em); }
:root[data-theme="light"] .zyd-don-step-n { background: var(--acc-chip); color: var(--acc); }
:root[data-theme="light"] .zyd-don-cn:not(.is-copied) .zyd-don-step-2 .zyd-don-step-n { background: var(--bg-hover); color: var(--text-mut); }
:root[data-theme="light"] .zyd-don-tile[aria-pressed="true"] { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); background: var(--acc-chip); }
:root[data-theme="light"] .zyd-don-tile-nets { color: var(--acc); }
:root[data-theme="light"] .zyd-don-cn .zyd-don-cn-go:hover { border-color: var(--acc); color: var(--acc); }
:root[data-theme="light"] .zyd-don-cn.is-copied .zyd-don-cn-go:hover { color: var(--bg); background: #27272A; }

/* ==========================================================================
   2.15.67 — extension pages, compact and personal. A short heading with the
   extension that was just installed (or removed) beside it, then our other
   extensions in a dense grid: four to a row on a wide screen, so two or
   three rows fit on the first screen. Phones: one card per line, the store
   button as an icon.
   ========================================================================== */
.zyd-xp-top { position: relative; overflow: hidden; padding: calc(var(--header-h) + 30px) 0 6px; }
.zyd-xp-top::before {
    content: ''; position: absolute; pointer-events: none;
    width: 640px; height: 640px; left: -240px; top: -320px;
    background: radial-gradient(circle, var(--acc-glow), transparent 62%); opacity: 0.2;
}
.zyd-xp-top-goodbye::before { opacity: 0.1; }
.zyd-xp-top > .zyd-container { position: relative; z-index: 1; }
.zyd-xp-top-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; align-items: center; }
.zyd-xp-top-grid.has-me { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.zyd-xp-top .zyd-plt-chip { padding: 6px 12px 6px 9px; gap: 8px; font-size: 11px; }
.zyd-xp-title {
    margin: 12px 0 8px; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 3.3vw, 44px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance;
}
.zyd-xp-intro { max-width: 680px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-sec); }

.zyd-xp-me {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px 14px;
    padding: 16px; border: 1px solid var(--border-em); border-radius: var(--radius-lg); background: var(--bg-card);
}
.zyd-xp-me-pic { position: relative; width: 56px; height: 56px; }
.zyd-xp-me-icon, .zyd-xp-card-icon {
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    width: 100%; height: 100%; border-radius: 14px; background: var(--bg-elev);
}
.zyd-xp-me-icon img, .zyd-xp-card-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zyd-xp-me-icon.is-letter, .zyd-xp-card-icon.is-letter { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--acc); }
.zyd-xp-me-state {
    position: absolute; right: -6px; bottom: -6px; display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border: 2px solid var(--bg-card); border-radius: 50%;
    background: var(--acc); color: var(--acc-text); font-size: 12px; font-weight: 800; line-height: 1;
}
.zyd-xp-me.is-removed .zyd-xp-me-state { background: var(--bg-hover); color: var(--text-sec); }
.zyd-xp-me.is-removed .zyd-xp-me-icon { filter: grayscale(1); opacity: 0.7; }
.zyd-xp-me-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zyd-xp-me-text strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.zyd-xp-me-text span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-mut); }
.zyd-xp-me-text span:empty { display: none; }
.zyd-xp-me-tip { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; color: var(--text-sec); }
.zyd-xp-me-again { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.zyd-xp-list { padding: 22px 0 80px; }
.zyd-xp-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.zyd-xp-list-head h2 {
    margin: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mut);
}
.zyd-xp-count {
    min-width: 24px; padding: 3px 8px; border-radius: var(--radius-full); background: var(--bg-elev);
    font-family: var(--font-mono); font-size: 11px; text-align: center; color: var(--text-sec);
}
.zyd-xp-list-all { margin-inline-start: auto; font-size: 13.5px; font-weight: 600; color: var(--text-sec); text-decoration: none; }
.zyd-xp-list-all:hover { color: var(--acc); }

.zyd-xp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.zyd-xp-card {
    position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 1fr auto;
    gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-card); color: var(--text);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.zyd-xp-card:hover { transform: translateY(-2px); border-color: var(--border-em); }
.zyd-xp-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.zyd-xp-card-link:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.zyd-xp-card-icon { width: 52px; height: 52px; border-radius: 13px; }
.zyd-xp-card-text { min-width: 0; }
.zyd-xp-card-name {
    margin: 1px 0 5px; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zyd-xp-card-desc, .zyd-xp-card-tag {
    margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-mut);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zyd-xp-card-tag { display: none; }
.zyd-xp-ad-mark {
    display: block; margin: 0 0 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-dim);
}
.zyd-xp-card.is-ad { border-style: solid; border-color: var(--border-em); }

.zyd-xp-add {
    position: relative; z-index: 2; grid-column: 1 / -1; justify-self: start;
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 11px;
    border: 1px solid var(--text); border-radius: var(--radius-full); background: var(--text); color: var(--bg);
    font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.zyd-xp-add svg { flex: 0 0 auto; width: 16px; height: 16px; }
.zyd-xp-add:hover { background: var(--acc); border-color: var(--acc); color: var(--acc-text); }
.zyd-xp-add:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
:root[data-theme="light"] .zyd-xp-add:hover { color: #fff; }
:root[data-theme="light"] .zyd-xp-me-state { background: var(--acc-chip); color: var(--acc); }
:root[data-theme="light"] .zyd-xp-list-all:hover { color: var(--acc); }
:is([lang="ja"], [lang="ko"], [lang="zh-CN"], [lang="ar"]) :is(.zyd-xp-list-head h2, .zyd-xp-ad-mark, .zyd-xp-me-text span) { letter-spacing: 0; }

@media (max-width: 900px) {
    .zyd-xp-top-grid.has-me { grid-template-columns: minmax(0, 1fr); }
    .zyd-xp-me { max-width: 520px; }
}
@media (max-width: 600px) {
    .zyd-xp-top { padding-top: calc(var(--header-h) + 18px); }
    .zyd-xp-title { margin: 10px 0 6px; font-size: 27px; }
    .zyd-xp-intro { font-size: 14.5px; }
    .zyd-xp-me { grid-template-columns: 46px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
    .zyd-xp-me-pic { width: 46px; height: 46px; }
    .zyd-xp-list { padding: 18px 0 56px; }
    .zyd-xp-cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .zyd-xp-card { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 12px; padding: 12px; }
    .zyd-xp-card-icon { width: 46px; height: 46px; border-radius: 12px; }
    .zyd-xp-card-name { margin-bottom: 2px; font-size: 15px; -webkit-line-clamp: 1; }
    .zyd-xp-card-desc { display: none; }
    .zyd-xp-card-tag { display: -webkit-box; font-size: 13px; -webkit-line-clamp: 2; }
    .zyd-xp-card .zyd-xp-add { grid-column: auto; width: 40px; min-height: 40px; padding: 0; justify-content: center; }
    .zyd-xp-card .zyd-xp-add-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .zyd-xp-card .zyd-xp-add svg { width: 18px; height: 18px; }
}

/* 2.15.68 — extension pages: cards loaded while scrolling. Cards off screen
   skip their layout and paint, so long lists stay smooth. */
.zyd-xp-card { content-visibility: auto; contain-intrinsic-size: auto 190px; }
.zyd-xp-more { display: flex; justify-content: center; align-items: center; min-height: 64px; margin-top: 12px; }
.zyd-xp-more-all { font-size: 14px; font-weight: 600; color: var(--text-sec); text-decoration: none; }
.zyd-xp-more-all:hover { color: var(--acc); }
.zyd-xp-spin { display: none; width: 26px; height: 26px; border: 2px solid var(--border-em); border-top-color: var(--acc); border-radius: 50%; animation: zydXpSpin 0.8s linear infinite; }
.zyd-xp-more.is-live .zyd-xp-more-all { display: none; }
.zyd-xp-more.is-live.is-loading .zyd-xp-spin { display: block; }
@keyframes zydXpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zyd-xp-spin { animation-duration: 2.4s; } }
@media (max-width: 600px) { .zyd-xp-card { contain-intrinsic-size: auto 86px; } }

/* 2.15.70 — donate page: the Crypto / Card tabs carry a thin green outline
   in the site's style; the chosen one a full green line. */
.zyd-don-tabs { border-color: color-mix(in srgb, var(--acc) 30%, var(--border)); }
.zyd-don-tab {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent);
    transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.zyd-don-tab:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 50%, transparent); }
.zyd-don-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--acc), 0 0 14px -6px var(--acc-glow); }
:root[data-theme="light"] .zyd-don-tab[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--acc); }

/* 2.15.71 — "Coming soon" per store for extensions waiting for review: a
   greyed badge with the store's logo on the app page and in the browser
   catalogs (not a link). */
.zyd-app-soon-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.zyd-app-hero-cta > .zyd-app-soon-row:first-child { margin-top: 0; }
.zyd-app-badge-soon-store svg { width: 22px; height: 22px; }
.zyd-app-badge-soon-store .zyd-app-badge-store { font-size: 16px; }
.zyd-plt-card-cta .zyd-app-badge-soon-store { min-height: 48px; padding: 9px 16px 9px 13px; gap: 11px; }
.zyd-plt-card-cta .zyd-app-badge-soon-store .zyd-app-badge-store { font-size: 15px; }

/* 2.15.73 — "Coming soon" block under the released apps on /works/ and the
   browser catalogs: the counts above are released apps only. */
.zyd-soon-head { margin: 56px 0 18px; }
.zyd-soon-grid { opacity: 0.92; }
@media (max-width: 760px) { .zyd-soon-head { margin-top: 36px; } }

/* 2.15.73 — journal list on computers as wide as the header: the date on the
   left, title and summary in the middle (summary kept to a readable line),
   "Read" on the right. Phones keep their own layout. */
@media (min-width: 901px) {
    .zyd-page-content.zyd-journal-page { max-width: var(--container); padding-left: 36px; padding-right: 36px; }
    .zyd-journal-page .zyd-journal-item {
        position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto;
        column-gap: 40px; align-items: baseline; padding: 30px 0;
    }
    .zyd-journal-page .zyd-journal-item:first-child { padding-top: 6px; }
    .zyd-journal-page .zyd-journal-date { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding-top: 10px; }
    .zyd-journal-page .zyd-journal-title { grid-column: 2; margin-bottom: 10px; max-width: 900px; }
    .zyd-journal-page .zyd-journal-title a::after { content: ''; position: absolute; inset: 0; }
    .zyd-journal-page .zyd-journal-excerpt { grid-column: 2; max-width: 760px; margin: 0; }
    .zyd-journal-page .zyd-journal-more { grid-column: 3; grid-row: 1 / span 2; align-self: center; white-space: nowrap; position: relative; z-index: 1; }
    .zyd-journal-page .zyd-journal-item:hover .zyd-journal-title a { color: var(--acc); }
    :root[data-theme="light"] .zyd-journal-page .zyd-journal-item:hover .zyd-journal-title a { color: var(--acc-readable, var(--acc)); }
}

/* 2.15.75 — plugins and games: third column on the home page. */
@media (min-width: 981px) { .zyd-plat-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zyd-plat-soon { display: inline-block; padding: 5px 10px; border: 1px solid var(--border-str); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mut); }
.zyd-plt-grid[hidden] { display: none; }
/* 2.15.77 — home platform columns on one grid: headings, the three cards and the
   "All …" links of every column share the same rows (subgrid), cards are equally
   tall, the button is as wide as the card and sits at its bottom. */
.zyd-plat-cols { grid-template-rows: none; }
.zyd-plat .zyd-plat-col { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto repeat(3, 1fr) auto; gap: 12px; }
.zyd-plat .zyd-plat-head { margin: 0; align-items: center; min-height: 52px; align-self: center; }
.zyd-plat .zyd-plat-tag { align-self: end; }
.zyd-plat .zyd-ext-item { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 12px; padding: 14px; }
.zyd-plat .zyd-ext-item-main { width: 100%; align-items: center; }
.zyd-plat .zyd-ext-name {
    white-space: normal; line-height: 1.2; min-height: 0; text-overflow: clip;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zyd-plat .zyd-ext-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zyd-plat .zyd-plat-btns { max-width: none; width: 100%; display: flex; flex-wrap: nowrap; gap: 6px; justify-content: stretch; }
.zyd-plat .zyd-plat-btns > * { flex: 1 1 0; min-width: 0; justify-content: center; box-sizing: border-box; min-height: 40px; margin: 0; }
.zyd-plat .zyd-plat-soon { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--radius-sm); font-size: 11px; }
.zyd-plat .zyd-plat-more { grid-row: -2; align-self: start; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; }
.zyd-plat .zyd-plat-more a { display: block; margin: 0; padding: 10px 2px; }
.zyd-plat .zyd-plat-more a + a { border-top: 1px solid var(--border); }
@media (min-width: 981px) {
    .zyd-plat-cols { grid-template-rows: auto repeat(3, 1fr) auto; row-gap: 12px; }
    .zyd-plat .zyd-plat-col { grid-row: span 5; grid-template-rows: subgrid; }
    .zyd-plat .zyd-plat-name { font-size: 20px; }
}
@media (max-width: 980px) { .zyd-plat-cols { gap: 14px; } }

/* 2.15.81 — Editorial guides */
.zyd-page-copy {
    margin-block: clamp(48px, 7vw, 104px);
    overflow-wrap: anywhere;
}
.zyd-page-copy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 6vw, 96px);
    border-block-start: 1px solid var(--border);
    padding-block-start: clamp(32px, 5vw, 64px);
}
.zyd-page-copy-intro {
    position: sticky;
    inset-block-start: calc(var(--header-h, 72px) + 24px);
    align-self: start;
    min-width: 0;
}
.zyd-page-copy-content { min-width: 0; max-inline-size: 66ch; }
.zyd-page-copy p {
    margin: 0;
    color: var(--text-mut);
    font: 400 16px/1.65 var(--font-sans);
}
.zyd-page-copy .zyd-page-copy-kicker {
    margin-block-end: 10px;
    color: var(--acc);
    font: 600 12px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
}
.zyd-page-copy h2 {
    margin: 0 0 16px;
    font: 700 clamp(32px, 3.2vw, 40px)/1.12 var(--font-display);
}
.zyd-page-copy h3,
.zyd-page-copy summary {
    margin: 0 0 6px;
    color: var(--text);
    font: 700 18px/1.4 var(--font-display);
}
.zyd-page-copy-block + .zyd-page-copy-block { margin-block-start: 24px; }
.zyd-page-copy a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.17em;
}
.zyd-page-copy a:hover { color: var(--acc); }
.zyd-page-copy-faq {
    margin-block-start: 32px;
    border-block-start: 1px solid var(--border);
}
.zyd-page-copy details { border-block-end: 1px solid var(--border); }
.zyd-page-copy summary {
    margin: 0;
    padding-block: 14px;
    cursor: pointer;
    list-style: none;
}
.zyd-page-copy summary::-webkit-details-marker { display: none; }
.zyd-page-copy summary:hover,
.zyd-page-copy details[open] summary { color: var(--acc); }
.zyd-page-copy details p { padding-block-end: 16px; }
@media (max-width: 767px) {
    .zyd-page-copy { padding-inline: 16px; }
    .zyd-page-copy-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .zyd-page-copy-intro { position: static; }
}

/* 2.15.83 — "Other platforms" on phones: short tiles, two in a row. */
@media (max-width: 980px) {
    .zyd-plt-hub-grid-compact .zyd-plt-tile { display: flex; min-height: 0; }
}
@media (max-width: 767px) {
    .zyd-plt-hub-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .zyd-plt-hub-grid-compact .zyd-plt-tile { gap: 10px; padding: 12px; }
    .zyd-plt-hub-grid-compact .zyd-plt-tile-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; }
    .zyd-plt-hub-grid-compact .zyd-plt-tile-logo svg { width: 20px; height: 20px; }
    .zyd-plt-hub-grid-compact .zyd-plt-tile-name { font-size: 15px; }
    .zyd-plt-hub-grid-compact .zyd-plt-tile-count { font-size: 10px; letter-spacing: 0.04em; }
    .zyd-plt-hub-grid-compact .zyd-plt-tile-arrow { display: none; }
}

/* 2.15.84 — phone fixes after a check of every page type. */
@media (max-width: 767px) {
    .zyd-plt-hub-grid-compact .zyd-plt-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .zyd-plat .zyd-plat-desktop .zyd-plat-head { grid-template-columns: minmax(0, 1fr); }
    .zyd-plat .zyd-plat-desktop .zyd-plat-logos { grid-row: auto; grid-column: 1; justify-self: start; margin-bottom: 8px; }
    .zyd-plat .zyd-plat-desktop .zyd-plat-tag, .zyd-plat .zyd-plat-desktop .zyd-plat-name { grid-column: 1; }
    .zyd-about-facts-grid > div { min-width: 0; }
    .zyd-about-facts-grid dd { overflow-wrap: anywhere; }
    .zyd-about-facts-grid > div:last-child dd { font-size: 13px; letter-spacing: -0.02em; }
}

/* 2.15.86: a store name never runs out of its button; the second button wraps instead. */
@media (min-width: 761px) { .zyd-plt-card-cta .zyd-app-badge { min-width: min-content; } }

/* 2.15.90: one device pixel looks thin on the curves at 125-150% scaling; 1.6px gives two there. No
   1px lift on hover either: it is 1.5 device pixels at 150% and blurs the outline. */
.zyd-plt-tab, .zyd-kind-btn, .zyd-plt-chip, .zyd-plt-hero-soon, .zyd-plat-soon { border-width: 1.6px; }
