/*
 * Landing page. Tokens and shared controls are in base.css.
 * The hero keeps the live site's layout: author card, headline, two
 * actions and four quiet jump rows on the left; the floating PDF on the
 * right; the product name set huge and faint behind everything.
 */

.wrap { width: min(clamp(1320px, 78vw, 1560px), 100% - 64px); margin-inline: auto; }

/* -------------------------------------------------------------- Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--page) 86%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    transition: border-color var(--mid) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(clamp(1320px, 78vw, 1560px), 100% - 64px);
    height: 100%;
    margin-inline: auto;
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--raised); }
.nav__login { gap: 8px; }
.nav__login .icon { width: 16px; height: 16px; }

/* ----------------------------------------------------------- Account */

.section--tight { padding: 64px 0; }
.account { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.account__copy { max-width: 40rem; }
.account__copy p { margin-top: 12px; color: var(--text-2); }
.account__card {
    display: grid;
    gap: 12px;
    max-width: 440px;
    justify-self: end;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
}
.account__guest, .account__me { display: grid; gap: 12px; }
.account__guest[hidden], .account__me[hidden] { display: none; }
.account__card h3 { font-size: 22px; line-height: 28px; font-weight: 500; overflow-wrap: anywhere; }
.account__card h3 + p { margin-top: -8px; color: var(--text-2); font-size: 14px; }
.account__skip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.account__skip:hover { color: var(--text); }
.account__skip .icon { width: 14px; height: 14px; }
.account__avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--mark);
    color: var(--mark-ink);
    font-size: 20px;
    font-weight: 500;
}
.account__avatar img { width: 100%; height: 100%; object-fit: cover; }
.account__peek { display: grid; gap: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.account__peek li { display: grid; gap: 2px; padding: 10px 0; font-size: 13px; color: var(--text-3); }
.account__peek li + li { border-top: 1px solid var(--line); }
.account__peek b { font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav__toggle { display: none; }
.nav__theme { display: flex; }

/* ------------------------------------------------------------- Hero */

.hero {
    position: relative;
    display: grid;
    align-content: center;
    gap: 40px;
    min-height: calc(100vh - var(--nav-h));
    padding: 40px 0 48px;
    overflow: hidden;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
}

.author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.author:hover { border-color: var(--line-strong); background: var(--raised); }
.author img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.author__text { display: grid; }
.author__name { font-size: 15px; font-weight: 600; }
.author__role { font-size: 13px; color: var(--text-3); }

h1 {
    margin-top: 28px;
    font-family: var(--serif);
    font-size: clamp(40px, 4.6vw, 64px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.hero__sub { max-width: 34rem; margin-top: 20px; font-size: 17px; line-height: 27px; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.jumps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 34rem;
    margin-top: 40px;
}
.jump {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.jump > .icon { color: var(--text-3); }
.jump > span { display: grid; }
.jump__label { font-size: 12px; font-weight: 400; color: var(--text-3); }
.jump__arrow { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.jump:hover { border-color: var(--line-strong); background: var(--raised); }
.jump:hover .jump__arrow { transform: translateX(3px); color: var(--text); }

/* The desk: sized in em, one em is 1/56 of the width, so the whole picture
   scales as one. */
.hero__visual { container-type: inline-size; }
.desk {
    position: relative;
    width: 56em;
    height: 46em;
    font-size: calc(100cqw / 56);
    font-family: var(--paper);
    color: #111;
}
@supports not (font-size: 1cqw) { .desk { font-size: 10px; } }

.desk__field {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1em;
    width: 27em;
    height: 4.6em;
    padding: 0 1.4em;
    border: 1px solid var(--line-strong);
    border-radius: 1em;
    background: var(--raised);
    box-shadow: var(--pop-shadow);
    font-family: var(--sans);
    color: var(--text);
}
.desk__label { font-size: 1.3em; color: var(--text-3); }
.desk__typed { font-size: 1.5em; font-weight: 500; white-space: nowrap; }
.desk__caret { width: 1px; height: 1.9em; margin-left: -0.8em; background: var(--text); opacity: 0; }
.desk.is-typing .desk__caret { opacity: 1; }

.pile { position: absolute; left: 1.5em; top: 6.5em; width: 27em; height: 38.2em; }
.pile .sheet { position: absolute; inset: 0; }
.sheet--under-1 { transform: rotate(-1.6deg) translate(-0.5em, 0.4em); background: #ececec; }
.sheet--under-2 { transform: rotate(1.3deg) translate(0.7em, 0.7em); background: #dcdcdc; }
.sheet--top { padding: 2.2em 2.4em 0 2.2em; overflow: hidden; }
.sheet__page { font-size: 1.15em; font-weight: 700; text-align: center; }
.q { display: grid; grid-template-columns: 2.2em 1fr; margin-top: 1.8em; }
.q__n { font-size: 1.25em; font-weight: 700; }
.q__body p { font-size: 1.25em; line-height: 1.5; }
.q__body sup { font-size: 0.7em; line-height: 0; }
.q__marks { display: block; font-size: 1.25em; text-align: right; }
.dots {
    height: 8.4em;
    margin-top: 0.6em;
    background-image: radial-gradient(circle, #555 0.07em, transparent 0.09em);
    background-size: 0.42em 2.1em;
    background-position: 0 1.9em;
}
.dots--short { height: 4.2em; }
.sheet__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.2em 2.4em 1.4em 2.2em;
    background: var(--sheet);
}
.sheet__foot span { margin-left: 8.2em; font-size: 0.9em; }
.sheet__foot b { font-size: 1.15em; }

/* The floating PDF: the topical being made. It drifts a few pixels, slowly,
   the one loop on the page besides the demo itself. */
.pdf { position: absolute; left: 33em; top: 11em; width: 21.5em; height: 30.4em; }
.pdf__float { position: absolute; inset: 0; }
.pdf__back { position: absolute; inset: 0; transform: rotate(3deg) translate(0.8em, 0.6em); background: #e4e4e4; }
.pdf__cover {
    position: absolute;
    inset: 0;
    padding: 2.6em 2em 0;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 3.2em) 0, 100% 3.2em, 100% 100%, 0 100%);
}
.pdf__fold {
    position: absolute;
    right: 0;
    top: 0;
    width: 3.2em;
    height: 3.2em;
    background: linear-gradient(225deg, transparent 50%, #d6d6d6 50%);
}
.pdf__tab {
    position: absolute;
    left: -0.6em;
    bottom: 3.6em;
    padding: 0.5em 1em;
    border-radius: 0.4em;
    background: #1c1c1e;
    color: #fff;
    font-family: var(--sans);
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.pdf__shadow {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -2.4em;
    height: 1.6em;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    filter: blur(0.8em);
    z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
    .pdf__float { animation: drift 6s ease-in-out infinite alternate; }
    .pdf__shadow { animation: drift-shadow 6s ease-in-out infinite alternate; }
    .is-paused .pdf__float, .is-paused .pdf__shadow { animation-play-state: paused; }
}
@keyframes drift { from { transform: translateY(0) rotate(-0.4deg); } to { transform: translateY(-0.7em) rotate(0.4deg); } }
@keyframes drift-shadow { from { opacity: 0.9; transform: scaleX(1); } to { opacity: 0.6; transform: scaleX(0.92); } }

.booklet__title { font-size: 2.6em; font-weight: 700; line-height: 1; }
.booklet__source { margin-top: 0.7em; font-size: 1.05em; line-height: 1.3; color: #555; }
.booklet__topic { margin-top: 1.5em; font-size: 1.4em; font-weight: 700; line-height: 1.4; }
.booklet__count { margin-top: 1.4em; font-size: 1.15em; line-height: 1.3; }
.booklet__count span:first-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.booklet__list { margin-top: 1.2em; padding-top: 1.2em; border-top: 1px solid #ddd; }
.booklet__list li { display: flex; justify-content: space-between; font-size: 0.95em; line-height: 1.9; font-variant-numeric: tabular-nums; }
.booklet__list li span:first-child { font-weight: 700; }
.booklet__list li span:last-child { color: #555; }

/* Live numbers under the hero */
.pulse {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: stretch;
    gap: 12px;
}
.pulse > div {
    padding: 18px 24px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
}
.pulse dt { font-size: 13px; color: var(--text-2); }
.pulse dd { margin-top: 6px; font-size: 34px; font-weight: 500; line-height: 38px; letter-spacing: -0.015em; }
.pulse__state { display: flex; align-items: center; gap: 8px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pulse > div { box-shadow: var(--card-shadow); }
@media (prefers-reduced-motion: no-preference) {
    .dot--live { animation: live 2.4s var(--ease) infinite; }
}
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }

/* -------------------------------------------------------- Sections */

.section { padding: 96px 0; }
.section--band { background: color-mix(in srgb, var(--surface) 78%, transparent); border-block: 1px solid var(--line-strong); }
h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
h3 { font-size: 16px; font-weight: 600; line-height: 24px; }
.section__head { max-width: 46rem; margin-bottom: 40px; }
.section__head p, .split__head p { margin-top: 16px; font-size: 17px; line-height: 27px; color: var(--text-2); }
.section__head--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; max-width: none; }
.section__head--split > div { max-width: 44rem; }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.glance > div { padding: 18px 20px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.glance dt { font-size: 13px; line-height: 18px; color: var(--text-2); }
.glance dd { margin-top: 8px; font-size: 34px; font-weight: 500; line-height: 38px; letter-spacing: -0.015em; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.reveal { transition-delay: calc(var(--d, 0) * 80ms); }

/* How it works: four cards, each with a small stage that acts out its step
   once, the first time it scrolls into view. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px 16px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}
.step__n { margin-top: 12px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step p { color: var(--text-2); }
.stage {
    position: relative;
    height: 148px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--page);
    border: 1px solid var(--line);
}

/* 1. Pick a paper */
.mini-levels { position: absolute; left: 16px; right: 16px; top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-levels span { height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; color: var(--text-2); transition: background-color var(--mid) var(--ease), color var(--mid) var(--ease); }
.mini-card { position: absolute; left: 16px; right: 16px; top: 62px; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--raised); font-size: 12px; line-height: 16px; }
.mini-card b { font-size: 13px; font-weight: 600; }
.mini-card span { color: var(--text-2); }
.mini-card i { font-style: normal; color: var(--text-3); }

/* 2. Type your topics */
.mini-input { position: absolute; left: 16px; right: 16px; top: 22px; display: flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); font-size: 13px; }
.mini-input__text { display: inline-block; overflow: hidden; white-space: nowrap; }
.mini-input__caret { width: 1px; height: 16px; margin-left: 1px; background: var(--text); }
.mini-chips { position: absolute; left: 16px; right: 16px; top: 72px; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips .chip { height: 28px; padding: 0 10px; font-size: 13px; animation: none; }

/* 3. Matched */
.mini-sheet { position: absolute; left: 50%; top: 18px; width: 120px; height: 150px; margin-left: -60px; padding: 14px 12px; border-radius: 3px; background: var(--sheet); box-shadow: var(--sheet-shadow); display: grid; align-content: start; gap: 8px; }
.mini-sheet i { display: block; height: 5px; border-radius: 3px; background: #cfcfcf; position: relative; overflow: hidden; }
.mini-sheet i.s { width: 60%; }
.mini-sheet i.m::after { content: ""; position: absolute; inset: -2px 0; background: var(--mark); transform-origin: left; transform: scaleX(0); }
.mini-tick { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 14px; background: var(--raised-2); color: var(--ok); opacity: 0; }

/* 4. Get your PDF */
.mini-stack { position: absolute; left: 50%; top: 26px; width: 84px; height: 108px; margin-left: -64px; }
.mini-stack i, .mini-stack b { position: absolute; inset: 0; border-radius: 3px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.mini-stack i:nth-child(2) { transform: translate(6px, 6px); }
.mini-stack i:nth-child(3) { transform: translate(12px, 12px); }
.mini-stack b { inset: auto 0 22px; height: 18px; transform: translate(12px, 12px); background: #d9d9d9; border-radius: 2px; box-shadow: none; transform-origin: left; }
.mini-pdf { position: absolute; left: calc(50% + 40px); top: 92px; padding: 3px 8px; border-radius: 5px; background: var(--btn); color: var(--btn-text); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: no-preference) {
    .step.is-in .mini-levels span.is-on { animation: pick 480ms var(--ease) 500ms both; }
    .step.is-in .mini-card { animation: card-in 520ms var(--ease) 900ms both; }
    .step.is-in .mini-input__text { animation: type 900ms steps(11) 300ms both; }
    .step.is-in .mini-input__caret { animation: blink 0.9s steps(1) 4; }
    .step.is-in .mini-chips .chip { animation: rise 320ms var(--ease) both; animation-delay: 1300ms; }
    .step.is-in .mini-chips .chip + .chip { animation-delay: 1700ms; }
    .step.is-in .mini-chips .hl { animation: mark-on 560ms var(--ease) both; animation-delay: 1500ms; }
    .step.is-in .mini-chips .chip + .chip .hl { animation-delay: 1900ms; }
    .step.is-in .mini-sheet i.m::after { animation: sweep 560ms var(--ease) 700ms both; }
    .step.is-in .mini-sheet i.m2::after { animation-delay: 1100ms; }
    .step.is-in .mini-tick { animation: card-in 320ms var(--ease) 1600ms both; }
    .step.is-in .mini-stack i:nth-child(3) { animation: drop 480ms var(--ease) 500ms both; }
    .step.is-in .mini-stack i:nth-child(2) { animation: drop 480ms var(--ease) 800ms both; }
    .step.is-in .mini-stack i:nth-child(1) { animation: drop 480ms var(--ease) 1100ms both; }
    .step.is-in .mini-stack b { animation: strip 520ms var(--ease) 1600ms both; }
    .step.is-in .mini-pdf { animation: card-in 320ms var(--ease) 2000ms both; }
}
@media (prefers-reduced-motion: reduce) {
    .mini-levels span.is-on { background: var(--btn); color: var(--btn-text); }
    .mini-chips .hl { background-size: 100% 100%; color: var(--mark-ink); }
    .mini-sheet i.m::after { transform: none; }
    .mini-tick { opacity: 1; }
}
.mini-levels span.is-on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.mini-chips .hl { background-size: 100% 100%; color: var(--mark-ink); }
@keyframes pick { from { background: transparent; color: var(--text-2); border-color: var(--line-strong); } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes type { from { width: 0; } to { width: 11ch; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes mark-on { from { background-size: 0% 100%; color: var(--text); } to { background-size: 100% 100%; color: var(--mark-ink); } }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drop { from { opacity: 0; transform: translate(40px, -46px) rotate(8deg); } }
@keyframes strip { from { opacity: 0; transform: translate(12px, 30px); } }

/* Why it matters */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reason { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--raised); }
.reason .icon { color: var(--text-3); margin-bottom: 8px; }
.reason dt { font-size: 14px; color: var(--text-3); }
.reason dd { font-family: var(--serif); font-size: 22px; line-height: 30px; }

/* Activity */
.activity { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.activity__side { display: grid; gap: 16px; align-content: start; }
.feed { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.feed__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.feed__list { max-height: 600px; overflow: auto; }
.feed__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: start;
    padding: 14px 20px;
}
.feed__item + .feed__item { border-top: 1px solid var(--line); }
.feed__src { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--raised); color: var(--text-2); }
.feed__paper { font-weight: 500; }
.feed__topics { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 14px; }
.feed__topics .hl { color: var(--mark-ink); }
.feed__meta { display: grid; justify-items: end; gap: 2px; font-size: 13px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed__repeat { color: var(--text-2); }
.feed__empty { padding: 32px 20px; color: var(--text-3); }
@media (prefers-reduced-motion: no-preference) {
    .feed__item.is-new { animation: rise var(--slow) var(--ease); }
}

.discord { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.trending { padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.trending__sub { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.trending__list { margin-top: 12px; }
.trending__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 0; font-size: 14px; }
.trending__list li + li { border-top: 1px solid var(--line); }
.trending__list .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.trending__list .hl { justify-self: start; color: var(--mark-ink); }
.trending__list .meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--raised-2); overflow: hidden; }
.trending__list .meter span { display: block; height: 100%; border-radius: 2px; background: var(--text-2); }
.trending__list li:first-child .meter span { background: var(--mark); }
.trending__empty { display: block !important; color: var(--text-3); }
.discord__mark { width: 28px; height: 28px; color: var(--text-2); }
.discord p { color: var(--text-2); }
.discord__count { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text) !important; }

/* Download and about */
.download { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.download__icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 24px; }
.download__text p { margin-top: 16px; max-width: 32rem; font-size: 17px; line-height: 27px; color: var(--text-2); }
.download__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.download__meta { font-size: 13px; color: var(--text-3); }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { width: fit-content; display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.ticks .icon { margin-top: 2px; color: var(--ok); }
/* The desktop app's own colours are purple; shown in grey, the page keeps
   one accent. */
.download__shot img { border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: var(--pop-shadow); filter: grayscale(1) contrast(1.05); }

.about { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; }

.about__role { margin-top: 8px; color: var(--text-3); }
.about blockquote { margin-top: 24px; font-family: var(--serif); font-size: 22px; line-height: 32px; color: var(--text-2); }
.about__links { display: grid; gap: 10px; }
.link-card {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.link-card b { display: block; font-weight: 500; }
.link-card span span { display: block; font-size: 13px; color: var(--text-3); }
.link-card .icon { color: var(--text-2); }
.link-card__arrow { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.link-card:hover { border-color: var(--text-3); background: var(--raised); }
.link-card:hover .link-card__arrow { transform: translateX(3px); }

.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-3); }
.footer__inner ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; transition: color var(--fast) var(--ease); }
.footer a:hover { color: var(--text); }

/* Text never sits loose on the background lines: every block of words lives
   in a rounded box, like the Topic field in the demo. */
.hero__panel, .section__head:not(.section__head--split), .section__head--split > div,
.split__head, .account__copy, .download__text, .about__text {
    padding: 28px 32px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--card-shadow);
    width: fit-content;
    max-width: 100%;
}
.section--band .section__head:not(.section__head--split), .section--band .split__head,
.section--band .download__text { background: var(--raised); }
.download__text, .about__text { width: auto; }
.hero__panel { margin-top: 20px; }
.hero__panel h1 { margin-top: 0; }
.hero__panel .hero__sub { margin-top: 16px; }
.hero__panel .hero__actions { margin-top: 24px; }
.account__copy .ticks { margin-top: 20px; }

/* ------------------------------------------------------- Responsive */

@media (max-width: 1080px) {
    .account { grid-template-columns: 1fr; gap: 32px; }
    .account__card { justify-self: start; }
    .steps, .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .activity, .download, .section__head--split { grid-template-columns: 1fr; gap: 32px; }
    .about { grid-template-columns: 200px minmax(0, 1fr); }
    .about__links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { max-width: 620px; }
    .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pulse__state { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .nav__links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--page);
    }
    .nav__links.is-open { display: flex; }
    .nav__links a { padding: 12px; font-size: 15px; }
    .nav__login { margin-left: 0; }
    .nav__toggle { display: inline-flex; }
    .nav__theme { margin-left: auto; }
}
@media (max-width: 640px) {
    .wrap, .nav__inner { width: calc(100% - 40px); }
    .hero { min-height: 0; padding-top: 24px; }
    h1 { font-size: 38px; }
    .jumps { grid-template-columns: 1fr; }
    .steps, .reasons { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .about { grid-template-columns: 1fr; gap: 24px; }
    .nav__cta { display: none; }
    .hero__panel, .section__head:not(.section__head--split), .section__head--split > div,
    .split__head, .account__copy, .download__text, .about__text { padding: 20px; border-radius: 16px; }
    .nav__inner { gap: 8px; }
    .nav__login { padding: 0; width: 36px; justify-content: center; }
    .nav__login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .feed__item { grid-template-columns: 32px minmax(0, 1fr); }
    .feed__meta { grid-column: 2; justify-items: start; grid-auto-flow: column; gap: 12px; }
    .glance dd { font-size: 26px; line-height: 30px; }
    .glance > div { padding: 14px 14px 16px; }
    .pulse dd { font-size: 28px; line-height: 32px; }
    .about__links { grid-template-columns: 1fr; }
}

/* Developer portrait: a circle cropped square with the face kept high, a
   paper-white ring, a soft shadow and an offset highlighter disc behind it. */
.about__figure { position: relative; width: 240px; height: 240px; margin: 0; isolation: isolate; }
.about__figure::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--mark);
    transform: translate(14px, 14px);
}
.about__figure .about__photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 28%;
    border: 6px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line-strong), var(--card-shadow);
}
@media (max-width: 1080px) { .about__figure { width: 200px; height: 200px; } }
@media (max-width: 720px) { .about__figure { width: 160px; height: 160px; } }
