/* The landing page (/index.php) and the hub (/hub/), styled after adobe.com: Source Sans 3, heavy tight headings, a
   bright blue and a black outline pill, big rounded cards, white with light grey sections, and soft colour gradients. */
:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --card: #ffffff;
    --border: #e1e1e1;
    --ink: #131313;
    --ink-2: #505050;
    --accent: #3b63fb;
    --accent-hover: #274dea;
    --on-accent: #ffffff;
    --link: #274dea;
    --glow-1: rgba(120, 150, 255, 0.35);
    --glow-2: rgba(255, 140, 190, 0.28);
    --glow-3: rgba(255, 190, 120, 0.3);
    --art: #eef1ff;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #131313;
        --bg-alt: #1d1d1d;
        --card: #222222;
        --border: #333333;
        --ink: #f2f2f2;
        --ink-2: #b0b0b0;
        --accent: #3b63fb;
        --accent-hover: #5078ff;
        --link: #8aa2ff;
        --glow-1: rgba(80, 110, 255, 0.28);
        --glow-2: rgba(230, 80, 150, 0.2);
        --glow-3: rgba(255, 150, 70, 0.16);
        --art: #1f2333;
        --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.45);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Pill buttons */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill-sm { padding: 6px 16px; font-size: 0.9375rem; }
.pill-blue { background: var(--accent); color: var(--on-accent); }
.pill-blue:hover { background: var(--accent-hover); }
.pill-outline { border-color: var(--ink); color: var(--ink); }
.pill-outline:hover { background: var(--ink); color: var(--bg); }
.pill-white { background: #ffffff; color: #131313; }
.pill-white:hover { background: #e8e8e8; }
.link { color: var(--link); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { margin: 0 0 12px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }

/* Top bar */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > a, .drop > summary {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.nav-links > a:hover, .drop > summary:hover, .drop[open] > summary { background: var(--bg-alt); }
.drop { position: relative; }
.drop > summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.drop > summary::-webkit-details-marker { display: none; }
.nav-links .drop > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s; }
.nav-links .drop[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.drop-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.drop-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 0.95rem; }
.drop-panel a:hover { background: var(--bg-alt); }
.drop-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 620px; padding: 12px; }
.drop-app { align-items: flex-start !important; }
.drop-app img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.drop-app span { font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; }
.drop-app strong { display: block; margin-bottom: 2px; font-size: 1rem; color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.apps > summary, .menu > summary { justify-content: center; width: 40px; height: 40px; padding: 0; font-size: 1.25rem; }
.apps svg { fill: currentColor; }
.apps .drop-panel, .menu .drop-panel { left: auto; right: 0; }
.apps-panel { display: grid; grid-template-columns: repeat(2, 120px); gap: 4px; padding: 12px; }
.apps-panel a { flex-direction: column; gap: 8px; padding: 14px 8px; font-weight: 600; text-align: center; }
.apps-panel img { width: 48px; height: 48px; border-radius: 12px; }
.apps-panel .apps-all { grid-column: 1 / -1; padding: 10px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--link); font-weight: 700; }
.login { padding: 8px 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border-radius: 8px; }
.login:hover { background: var(--bg-alt); }
.menu { display: none; }
.menu-panel { width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow-y: auto; }
.menu-panel img { width: 28px; height: 28px; border-radius: 7px; }
.menu-head { margin: 8px 12px 4px; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.menu-panel hr { margin: 8px 0; border: 0; border-top: 1px solid var(--border); }
@media (max-width: 860px) {
    .nav-links { display: none; }
    .menu { display: block; }
}
@media (max-width: 400px) { .apps { display: none; } }

/* Hero: words on the left, the Video editor's preview on the right, on soft colour glows */
.hero {
    padding: 72px 0 88px;
    background:
        radial-gradient(60% 70% at 85% 20%, var(--glow-1), transparent 70%),
        radial-gradient(50% 60% at 60% 90%, var(--glow-2), transparent 70%),
        radial-gradient(45% 55% at 5% 10%, var(--glow-3), transparent 70%),
        var(--bg);
}
.hero-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.hero-lead { max-width: 520px; margin: 0 0 32px; font-size: 1.25rem; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; padding: 0 0 48px 40px; }
.hero-art img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
/* A second picture laid over the corner of the first, like adobe.com's layered hero art */
.hero-art .hero-peek {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28%;
    border: 4px solid var(--bg);
    border-radius: 16px;
    transform: rotate(-4deg);
}
@media (max-width: 860px) {
    .hero { padding: 48px 0 56px; }
    .hero-row { grid-template-columns: 1fr; gap: 40px; }
    .hero-art { padding: 0 0 32px 24px; }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 64px 0 72px; }
.section-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.section-lead { max-width: 580px; margin: 0 auto 40px; text-align: center; font-size: 1.2rem; color: var(--ink-2); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* Editor cards with filter chips: radio buttons, so they work without a script */
.rail > input, .tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips label {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chips label:hover { border-color: var(--ink); }
#chip-all:checked ~ .chips label[for="chip-all"],
#chip-images:checked ~ .chips label[for="chip-images"],
#chip-video:checked ~ .chips label[for="chip-video"],
#chip-drawing:checked ~ .chips label[for="chip-drawing"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
#chip-all:focus-visible ~ .chips label[for="chip-all"],
#chip-images:focus-visible ~ .chips label[for="chip-images"],
#chip-video:focus-visible ~ .chips label[for="chip-video"],
#chip-drawing:focus-visible ~ .chips label[for="chip-drawing"] { outline: 2px solid var(--accent); outline-offset: 2px; }
#chip-images:checked ~ .cards .card:not(.in-images),
#chip-video:checked ~ .cards .card:not(.in-video),
#chip-drawing:checked ~ .cards .card:not(.in-drawing) { display: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    /* A rail you swipe sideways, like adobe.com's app cards on a phone */
    .cards {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        padding: 4px 16px 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
    }
    .card { flex: 0 0 78%; scroll-snap-align: start; }
}
.card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img { width: 56px; height: 56px; border-radius: 14px; }
.card h3 { margin: 18px 0 6px; font-size: 1.4rem; }
.card p { flex: 1; margin: 0 0 22px; color: var(--ink-2); }
.card-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Tabs: underlined words, the screenshot in a big rounded card */
.tab-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 32px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.tab-list label {
    padding: 10px 16px 12px;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink-2);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.tab-list label:hover { color: var(--ink); }
@media (max-width: 600px) { .tab-list { justify-content: flex-start; gap: 0; } .tab-list label { padding: 10px 12px 12px; } }
.tab-panel {
    display: none;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 24px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.tab-panel img { border-radius: 14px; border: 1px solid var(--border); }
.panel-copy { padding-right: 16px; }
.panel-copy h3 { margin: 0 0 16px; font-size: 2rem; }
.panel-copy ul { margin: 0 0 28px; padding: 0; list-style: none; }
.panel-copy li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--border); }
/* Feather's check as a mask, so it takes the accent colour */
.panel-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; gap: 24px; padding: 12px 12px 24px; } .panel-copy { padding: 0 8px; } }

#tab-screenshot:checked ~ .panel-screenshot,
#tab-photo:checked ~ .panel-photo,
#tab-video:checked ~ .panel-video,
#tab-sketch:checked ~ .panel-sketch,
#tab-vector:checked ~ .panel-vector,
#tab-lab:checked ~ .panel-lab { display: grid; }
#tab-screenshot:checked ~ .tab-list label[for="tab-screenshot"],
#tab-photo:checked ~ .tab-list label[for="tab-photo"],
#tab-video:checked ~ .tab-list label[for="tab-video"],
#tab-sketch:checked ~ .tab-list label[for="tab-sketch"],
#tab-vector:checked ~ .tab-list label[for="tab-vector"],
#tab-lab:checked ~ .tab-list label[for="tab-lab"] { border-color: var(--ink); color: var(--ink); }
#tab-screenshot:focus-visible ~ .tab-list label[for="tab-screenshot"],
#tab-photo:focus-visible ~ .tab-list label[for="tab-photo"],
#tab-video:focus-visible ~ .tab-list label[for="tab-video"],
#tab-sketch:focus-visible ~ .tab-list label[for="tab-sketch"],
#tab-vector:focus-visible ~ .tab-list label[for="tab-vector"],
#tab-lab:focus-visible ~ .tab-list label[for="tab-lab"] { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Large media cards: a picture on top, words below; the first one is wide, with the picture on the left */
.media-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mcard { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 24px; }
.mcard-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.mcard-art { display: flex; align-items: center; justify-content: center; height: 340px; padding: 32px; overflow: hidden; background: var(--art); }
.mcard-wide .mcard-art { height: auto; min-height: 340px; }
.mcard-body { padding: 32px; }
.mcard-wide .mcard-body { align-self: center; padding: 48px; }
.mcard-body h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.mcard-body p:not(.eyebrow) { margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 860px) {
    .media-cards { grid-template-columns: 1fr; }
    .mcard-wide { grid-template-columns: 1fr; }
    .mcard-art, .mcard-wide .mcard-art { height: 280px; min-height: 0; padding: 24px; }
    .mcard-body, .mcard-wide .mcard-body { padding: 24px; }
}

.art-dark { background: linear-gradient(135deg, #1b2350, #3b2a5c 60%, #5a2c4a); }
.code-card {
    width: 100%;
    max-width: 440px;
    padding: 20px 24px 24px;
    background: #16161a;
    color: #e6e6e4;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.code-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.code-card code { display: block; font: 0.95rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.code-card .k { color: #8ab4f8; }
.code-card .v { color: #81c995; }
.code-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #2c2c32; font-size: 0.9rem; color: #b5b5b5; }

/* The phone peeks up from the bottom of its card */
.art-phone { align-items: flex-start; padding-bottom: 0; background: linear-gradient(160deg, #ffe3ec, #e4e8ff); }
.phone {
    width: 220px;
    padding: 9px;
    background: #111;
    border-radius: 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px #333;
}
.phone img { border-radius: 28px; }

.art-icons { background: linear-gradient(160deg, #e2f6ec, #fff1dc); }
.icon-grid { display: grid; grid-template-columns: repeat(2, 96px); gap: 24px; }
.icon-grid img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); transition: transform 0.2s; }
.icon-grid a:hover img { transform: translateY(-3px); }
@media (prefers-color-scheme: dark) {
    .art-phone { background: linear-gradient(160deg, #3a2030, #1e2440); }
    .art-icons { background: linear-gradient(160deg, #173027, #33281a); }
}

/* Gradient banner, with pictures made in the editors faintly behind it on wide screens */
.banner { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(110deg, #2f4fe0, #7b3fe4 55%, #e0457b); color: #ffffff; }
.banner-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.banner-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 40px; padding-left: 30%; opacity: 0.22; pointer-events: none; }
.banner-art img { height: 300px; width: auto; border-radius: 16px; transform: rotate(-6deg); }
.banner-art img:nth-child(2) { transform: rotate(5deg) translateY(30px); }
@media (max-width: 860px) { .banner-art { display: none; } }
.banner h2 { margin: 0 0 6px; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
.banner p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 1.2rem; }

/* Footer */
.footer { padding: 56px 0 24px; background: var(--bg-alt); font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 10px 0 0; color: var(--ink-2); }
.footer h3 { margin: 0 0 12px; font-size: 0.85rem; letter-spacing: 0; color: var(--ink-2); }
.footer nav a { display: block; padding: 4px 0; text-decoration: none; }
.footer nav a:hover { color: var(--link); text-decoration: underline; }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--ink-2);
    font-size: 0.85rem;
}
.footer-legal p { margin: 0; }
@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-promises { margin: 16px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.footer-promises li { padding: 3px 0; }
.top-link { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.top-link:hover { color: var(--link); }

/* Strip above the top bar: what's new */
.strip { background: var(--ink); color: var(--bg); font-size: 0.9rem; }
.strip-row { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; }
.strip p { margin: 0; padding: 8px 0; text-align: center; }
.strip a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.strip-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 0.85rem; cursor: pointer; }
.strip-close:hover { background: rgba(127, 127, 127, 0.3); }

/* "What do you want to do?": task tiles, each tinted by its editor */
.tasks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.task {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.task:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.task-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; font-size: 1.5rem; background: var(--tint); }
.task strong { display: block; line-height: 1.25; }
.task span:last-child { font-size: 0.875rem; color: var(--ink-2); }
.task-screenshot { --tint: #e3ecff; }
.task-photo { --tint: #ffe4ef; }
.task-video { --tint: #efe3ff; }
.task-sketch { --tint: #e2f6ec; }
.task-vector { --tint: #ddf1f7; }
.task-lab { --tint: #fdf0d5; }
@media (prefers-color-scheme: dark) {
    .task-screenshot { --tint: #1e2a4a; }
    .task-photo { --tint: #3a1f2c; }
    .task-video { --tint: #2c2245; }
    .task-sketch { --tint: #173027; }
    .task-vector { --tint: #13303a; }
    .task-lab { --tint: #3a2a12; }
}
@media (max-width: 960px) { .tasks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .tasks { gap: 10px; }
    .task { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .task-icon { width: 40px; height: 40px; font-size: 1.25rem; }
}

/* Templates: a title with a button beside it, then a rail of thumbnails you scroll sideways */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .section-title, .section-head .section-lead { text-align: left; margin-left: 0; }
.section-head .section-lead { margin-bottom: 0; }
.tpl-rail {
    display: flex;
    gap: 20px;
    margin: 0 -16px;
    padding: 8px 16px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
}
@media (min-width: 768px) { .tpl-rail { margin: 0 -32px; padding: 8px 32px 20px; scroll-padding: 0 32px; } }
.tpl { flex: none; scroll-snap-align: start; text-decoration: none; }
.tpl img { height: 280px; width: auto; max-width: none; margin-bottom: 12px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 0, 0, 0.08); transition: transform 0.2s, box-shadow 0.2s; }
.tpl:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl strong { display: block; }
.tpl span { font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 600px) { .tpl img { height: 220px; } }
.hint { margin: 8px 0 0; font-size: 0.9rem; color: var(--ink-2); }

/* Spotlight rows: picture and words side by side, swapping sides each row */
.spots { display: grid; gap: 96px; }
.spot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.spot:nth-child(even) .spot-art { order: 2; }
.spot-art { display: flex; align-items: center; justify-content: center; min-height: 360px; padding: 40px; border-radius: 28px; overflow: hidden; }
.spot-art img { border-radius: 12px; box-shadow: var(--shadow); }
.spot-photo { background: linear-gradient(140deg, #ffe0ea, #ffeccc); }
.spot-video { background: linear-gradient(140deg, #e5dcff, #d7e6ff); }
.spot-sketch { background: linear-gradient(140deg, #dbf3e7, #e9eefc); }
@media (prefers-color-scheme: dark) {
    .spot-photo { background: linear-gradient(140deg, #3a1f2c, #3a2c17); }
    .spot-video { background: linear-gradient(140deg, #2a2148, #1c2742); }
    .spot-sketch { background: linear-gradient(140deg, #163126, #1d2236); }
}
.spot-copy h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.spot-copy p:not(.eyebrow) { margin: 0 0 28px; font-size: 1.15rem; color: var(--ink-2); }
@media (max-width: 860px) {
    .spots { gap: 64px; }
    .spot { grid-template-columns: 1fr; gap: 28px; }
    .spot:nth-child(even) .spot-art { order: 0; }
    .spot-art { min-height: 0; padding: 20px; border-radius: 20px; }
}

/* Made in PixelDodo: a masonry of pictures with a caption under each */
.gallery { columns: 3; column-gap: 20px; }
.piece { break-inside: avoid; margin: 0 0 20px; }
.piece img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }
.piece figcaption { padding: 10px 4px 0; font-size: 0.9rem; color: var(--ink-2); }
.piece strong { display: block; color: var(--ink); }
@media (max-width: 860px) { .gallery { columns: 2; column-gap: 12px; } .piece { margin-bottom: 12px; } }

/* Compare the editors: the table scrolls sideways inside its box on narrow screens, never the page */
.compare-box { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 24px; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { vertical-align: bottom; font-size: 1.1rem; font-weight: 800; }
.compare thead img { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 10px; }
.compare tbody th { width: 20%; font-weight: 700; color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare tbody tr:not(.compare-open):hover { background: var(--bg-alt); }
.compare .yes { display: inline-flex; color: var(--accent); }
.compare .yes .icon { stroke-width: 3; }
.compare .no { color: var(--ink-2); }
.compare thead th:first-of-type, .compare tbody th { position: sticky; left: 0; background: var(--card); }

/* Learn: a card per guide with its most-read sections */
.learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lcard { display: flex; flex-direction: column; padding: 28px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.lcard img { width: 44px; height: 44px; border-radius: 12px; }
.lcard h3 { margin: 16px 0 6px; font-size: 1.3rem; }
.lcard p { margin: 0 0 16px; color: var(--ink-2); }
.lcard ul { flex: 1; margin: 0 0 20px; padding: 0; list-style: none; }
.lcard li a { display: block; padding: 8px 0; border-top: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.lcard li a:hover { color: var(--link); }
@media (max-width: 960px) { .learn { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .learn { grid-template-columns: 1fr; } }

/* Questions and answers: an accordion of <details> */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 40px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    list-style: none;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 4px 22px; color: var(--ink-2); }
html { scroll-padding-top: 80px; }
@media (max-width: 600px) {
    .compare { min-width: 620px; font-size: 0.9rem; }
    .compare th, .compare td { padding: 12px 14px; }
    .compare tbody th { width: 110px; }
}

/* Hub (/hub/): a greeting with a search box on a soft gradient, then rows of editor cards, task tiles and templates */
[hidden] { display: none !important; }
.hub-hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(50% 90% at 90% 0%, var(--glow-1), transparent 70%),
        radial-gradient(40% 80% at 55% 100%, var(--glow-2), transparent 70%),
        radial-gradient(40% 90% at 0% 0%, var(--glow-3), transparent 70%),
        var(--bg);
}
.hub-hero h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; }
.hub-lead { margin: 0 0 24px; font-size: 1.2rem; color: var(--ink-2); }
.hub-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    padding: 0 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    color: var(--ink-2);
}
.hub-search:focus-within { border-color: var(--accent); }
.hub-search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; }
.hub-none { margin: 16px 0 0; color: var(--ink-2); }
.hub-section { padding: 40px 0 8px; }
.hub-section:last-of-type { padding-bottom: 64px; }
.hub-title { margin: 0 0 20px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.hub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.hub-head .hub-title { margin: 0; }
.hub-section .tasks { margin-top: 0; }

/* Editor cards: the editor's screenshot on top, its icon, name, line and buttons below */
.hub-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hub-app {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.hub-app:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hub-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--art); }
.hub-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hub-app-body { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.hub-app-body > img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.hub-app-words { flex: 1; min-width: 0; }
.hub-app h3 { margin: 0 0 2px; font-size: 1.3rem; }
.hub-app p { margin: 0; font-size: 0.95rem; line-height: 1.4; color: var(--ink-2); }
.hub-app .card-links { flex: none; }
@media (max-width: 860px) { .hub-apps { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .hub-hero { padding: 36px 0 28px; }
    .hub-section { padding: 32px 0 4px; }
    .hub-apps { gap: 16px; }
    .hub-app-body { flex-wrap: wrap; gap: 12px 14px; padding: 14px 16px 16px; }
    .hub-app .card-links { width: 100%; }
}

/* Where work is kept: a tinted card with an icon */
.hub-note { display: flex; gap: 20px; align-items: flex-start; padding: 28px; background: var(--art); border-radius: 20px; }
.hub-note-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--card); font-size: 1.6rem; }
.hub-note h2 { margin: 0 0 6px; font-size: 1.4rem; }
.hub-note p { max-width: 720px; margin: 0 0 14px; color: var(--ink-2); }
@media (max-width: 600px) { .hub-note { flex-direction: column; gap: 14px; padding: 20px; } }

/* Legal pages (legal/): a title on a soft gradient, a list of parts, then readable text and tables */
.footer-policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-policies a { color: var(--ink-2); text-decoration: none; }
.footer-policies a:hover { color: var(--link); text-decoration: underline; }
.legal-wrap { max-width: 860px; }
.legal-hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(50% 90% at 90% 0%, var(--glow-1), transparent 70%),
        radial-gradient(40% 90% at 0% 0%, var(--glow-3), transparent 70%),
        var(--bg);
}
.legal-hero .eyebrow a { color: inherit; text-decoration: none; }
.legal-hero .eyebrow a:hover { text-decoration: underline; }
.legal-hero h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.25rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; }
.legal-lead { margin: 0 0 12px; font-size: 1.2rem; color: var(--ink-2); }
.legal-date { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.legal-toc { margin: 8px 0 8px; padding: 18px 22px; background: var(--bg-alt); border-radius: 16px; }
.legal-toc p { margin: 0 0 6px; font-weight: 700; }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { padding: 2px 0; break-inside: avoid; }
.legal-toc a { color: var(--link); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal section { padding-top: 32px; }
.legal h2 { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.15; }
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { padding: 3px 0; }
.legal a { color: var(--link); }
.legal code { padding: 1px 5px; background: var(--bg-alt); border-radius: 5px; font-size: 0.88em; overflow-wrap: anywhere; }
/* Tables scroll sideways inside their box on narrow screens, never the page */
.legal-table { margin: 8px 0 14px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.legal-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal-table thead th { background: var(--bg-alt); font-size: 0.85rem; color: var(--ink-2); }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table tbody th { font-weight: 700; white-space: nowrap; }
.legal-others { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 72px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Feather icons (landing/icons.php) sit on the text's line and take its colour */
.icon { display: inline-block; flex: none; vertical-align: -0.15em; }
.footer-promises li { display: flex; align-items: center; gap: 8px; }
.code-note { display: flex; align-items: center; gap: 8px; }
.strip-close { display: inline-grid; place-items: center; }
.menu > summary .icon { display: block; }
.hub-note-icon { color: var(--accent); }
/* Task tiles: the icon in its editor's colour on its editor's tint */
.task-icon { color: var(--tint-ink); }
.task-screenshot { --tint-ink: #2f5bd8; }
.task-photo { --tint-ink: #c2336f; }
.task-video { --tint-ink: #7a3fe0; }
.task-sketch { --tint-ink: #1f8a5a; }
.task-vector { --tint-ink: #0b6a85; }
.task-lab { --tint-ink: #9a5806; }
@media (prefers-color-scheme: dark) {
    .task-screenshot { --tint-ink: #a9b8ff; }
    .task-photo { --tint-ink: #ff9cc3; }
    .task-video { --tint-ink: #c9a8ff; }
    .task-sketch { --tint-ink: #74d9a8; }
    .task-vector { --tint-ink: #7fd3ea; }
    .task-lab { --tint-ink: #f5c26b; }
}
