/* Walk Club Bergamo: light and airy, the club's bordeaux used only as accent
   (headings, buttons, the route). Accent mirrors config Club.Colors.Accent. */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("../fonts/atkinson-next.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

/* Atkinson's zero is slashed: next to a colon "10:00" reads like "16:69".
   Digits come from Bricolage, everything else stays Atkinson. */
@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("../fonts/bricolage.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0030-0039;
}

:root {
    --bg: #fdf9f7;
    --surface: #ffffff;
    --tint: #f7eeeb;
    --text: #2b1b1f;
    --muted: #6c5b60;
    --line: #eadfdb;
    --accent: #6e1d2d;
    --accent-hover: #591624;
    --accent-soft: #f3e3e3;
    --ok: #2f6b55;

    --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
    --body: "Atkinson Hyperlegible Next", system-ui, sans-serif;

    --wrap: 1180px;
    --gutter: clamp(18px, 4vw, 40px);
    --radius: 20px;
    --shadow: 0 1px 2px rgba(70, 25, 35, .05), 0 14px 36px -16px rgba(70, 25, 35, .18);
    --ease: cubic-bezier(.16, 1, .3, 1);

    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

p {
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 92%;
    letter-spacing: -.01em;
    line-height: 1.08;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 30;
    padding: .6rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 50px;
    padding: .75rem 1.5rem;
    border: 0;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}

.btn:active {
    transform: scale(.98);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(110, 29, 45, .7);
}

.btn--primary:hover {
    background: var(--accent-hover);
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 1.5px rgba(110, 29, 45, .35);
}

.btn--ghost:hover {
    background: var(--accent-soft);
}

.btn--light {
    background: #fff;
    color: var(--accent);
}

.btn--light:hover {
    background: var(--accent-soft);
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: .6;
    cursor: progress;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(110, 29, 45, .3);
    text-underline-offset: .22em;
}

.link:hover {
    text-decoration-color: currentColor;
}

.link svg,
.done-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(253, 249, 247, .9);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.brand__mark {
    width: 42px;
    height: 42px;
    flex: none;
}

.brand__name {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 90%;
    font-size: 1.2rem;
    color: var(--accent);
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
    font-weight: 600;
    font-size: .98rem;
}

.topbar__nav a {
    white-space: nowrap;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease;
}

.topbar__nav a:hover {
    color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding-top: clamp(28px, 6vw, 72px);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.hero__title {
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    font-weight: 700;
    color: var(--accent);
    max-width: 16ch;
}

.hero__lead {
    margin-top: 1.2rem;
    max-width: 50ch;
    font-size: 1.18rem;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.8rem;
}

.hero__skyline {
    width: min(100%, 1180px);
    margin: clamp(8px, 2vw, 24px) auto 0;
    color: var(--accent);
    opacity: .55;
}

.next-card {
    display: grid;
    gap: .55rem;
    padding: 1.6rem 1.7rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}

.next-card:hover {
    transform: translateY(-3px);
}

.next-card__date {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: .3rem;
    color: var(--muted);
    line-height: 1.3;
}

.next-card__date strong {
    display: block;
    color: var(--accent);
    font-weight: 700;
}

.next-card__date b {
    font-family: var(--display);
    font-weight: 700;
    font-size: 3.6rem;
    line-height: .9;
    color: var(--accent);
}

.next-card__title {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 92%;
    font-size: 1.6rem;
    line-height: 1.1;
}

.next-card__meta {
    color: var(--muted);
    font-size: .98rem;
}

.next-card__people {
    margin-top: .4rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.next-card__people b {
    color: var(--accent);
    font-size: 1.15rem;
}

/* ---------- Section heads ---------- */

.section-head {
    max-width: 60ch;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head__title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    color: var(--accent);
}

.section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem 2rem;
    max-width: none;
}

.section-head__back {
    margin-bottom: 1rem;
}

.section-head__title--page {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.section-head__name {
    margin-top: .3rem;
    font-family: var(--display);
    font-weight: 600;
    font-stretch: 92%;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    color: var(--text);
}

.section-head__lead {
    margin-top: .8rem;
    color: var(--muted);
    font-size: 1.08rem;
}

/* ---------- The walk ---------- */

.walk {
    padding: clamp(56px, 8vw, 104px) 0;
    background: var(--tint);
}

.walk__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.walk__info {
    display: grid;
    gap: 1.6rem;
}

.notice {
    padding: .9rem 1.1rem;
    border-radius: 14px;
    background: var(--surface);
    font-weight: 600;
}

.notice--off {
    color: var(--accent);
}

.facts {
    display: grid;
    margin: 0;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.fact {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 1rem 1.3rem;
}

.fact + .fact {
    border-top: 1px solid var(--line);
}

.fact dt {
    color: var(--muted);
    font-size: .95rem;
}

.fact dd {
    margin: 0;
    font-weight: 700;
}

.fact__hint {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: .95rem;
}

.signup {
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.signup__people {
    color: var(--muted);
}

.signup__people b {
    color: var(--accent);
    font-size: 1.15rem;
}

.signup__form {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
}

.signup__me {
    padding: .7rem .9rem;
    border-radius: 12px;
    background: var(--accent-soft);
    font-size: .95rem;
}

.signup__me a,
.topbar__nav .topbar__me {
    color: var(--accent);
    font-weight: 700;
}

.signup__note {
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

.field {
    display: grid;
    gap: .35rem;
}

.field label {
    font-weight: 600;
    font-size: .95rem;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: .7rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-family: var(--body);
    font-size: 1.05rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(110, 29, 45, .12);
}

.field input[aria-invalid="true"] {
    border-color: #b3263e;
}

.field__opt {
    font-weight: 400;
    color: var(--muted);
}

.recover__text {
    color: var(--muted);
    margin-top: -.5rem;
}

.recover__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.topbar__nav .topbar__out {
    padding: .35rem .9rem;
    border-radius: 999px;
    color: var(--accent);
    box-shadow: inset 0 0 0 1.5px rgba(110, 29, 45, .35);
    font-weight: 700;
}

.topbar__nav .topbar__out:hover {
    background: var(--accent-soft);
}

.me__out {
    margin-top: 1rem;
    min-height: 44px;
    padding: .55rem 1.3rem;
}

.recover__ok {
    padding: .7rem .9rem;
    border-radius: 12px;
    background: #e5f0eb;
    color: var(--ok);
    font-weight: 600;
    font-size: .95rem;
}

.recover__new {
    display: grid;
    gap: .8rem;
    justify-items: start;
    padding: .9rem 1rem;
    border-radius: 12px;
    background: var(--tint);
    font-size: .95rem;
}

.recover__new strong {
    display: block;
    color: var(--text);
}

.form-error {
    padding: .7rem .9rem;
    border-radius: 12px;
    background: #fbe9ea;
    color: #8f1a2d;
    font-weight: 600;
    font-size: .95rem;
}

.signup__done {
    display: grid;
    justify-items: start;
    gap: .7rem;
}

.signup__done:focus {
    outline: none;
}

.signup__done .signup__me {
    padding: .7rem .9rem;
    border-radius: 12px;
    background: var(--accent-soft);
    font-size: .95rem;
}

.signup__me a,
.topbar__nav .topbar__me {
    color: var(--accent);
    font-weight: 700;
}

.signup__note {
    text-align: left;
}

.done-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5f0eb;
    color: var(--ok);
}

.done-mark svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.4;
}

.signup__done-title {
    font-size: 1.6rem;
    color: var(--accent);
}

/* ---------- Map ---------- */

.walk__map {
    position: sticky;
    top: 88px;
    margin: 0;
    height: clamp(420px, 62vh, 640px);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f6f1ee;
    box-shadow: var(--shadow);
}

.map {
    position: absolute;
    inset: 0;
}

.map__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map .maplibregl-canvas {
    opacity: 0;
    transition: opacity .5s ease;
}

.map.is-ready .maplibregl-canvas {
    opacity: 1;
}

.map__legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    max-width: calc(100% - 64px);
    padding: .5rem .85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    font-size: .88rem;
    font-weight: 600;
    box-shadow: 0 4px 14px -8px rgba(70, 25, 35, .4);
}

.map__legend span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.legend-start i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px var(--accent);
}

.legend-km i,
.mk-km {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-family: var(--display);
    font-style: normal;
    font-weight: 700;
    font-size: .74rem;
    line-height: 1;
}

.mk-start {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 7px var(--accent), 0 4px 12px rgba(70, 25, 35, .35);
}

.maplibregl-ctrl-group {
    border-radius: 12px !important;
    box-shadow: 0 4px 14px -8px rgba(70, 25, 35, .4) !important;
}

.maplibregl-ctrl-attrib {
    font-size: 11px;
}

/* ---------- How it works ---------- */

.how {
    padding: clamp(64px, 9vw, 112px) 0;
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A real sequence: numbered, joined by a dotted path */
.how__steps {
    counter-reset: step;
}

.how__steps li {
    position: relative;
    display: grid;
    gap: .5rem;
    justify-items: start;
    counter-increment: step;
}

.how__steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
}

.how__steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 56px;
    right: -8px;
    border-top: 2px dotted rgba(110, 29, 45, .35);
}

.how__steps h3 {
    margin-top: .5rem;
    font-size: 1.3rem;
}

.how__steps p {
    color: var(--muted);
    max-width: 34ch;
}

/* ---------- Dates ---------- */

.dates {
    padding: 0 0 clamp(64px, 9vw, 112px);
}

.dates__list {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.date-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.3rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .2s ease, transform .25s var(--ease);
}

.date-row:hover {
    border-color: rgba(110, 29, 45, .35);
    transform: translateY(-2px);
}

.date-row--current {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.date-row--off {
    opacity: .6;
}

.date-row--off .date-row__title {
    text-decoration: line-through;
}

.date-chip {
    display: grid;
    place-content: center;
    justify-items: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    line-height: 1;
}

.date-chip b {
    font-family: var(--display);
    font-size: 1.6rem;
}

.date-chip small {
    font-size: .8rem;
    font-weight: 700;
}

.date-row__main {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.date-row__title {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 92%;
    font-size: 1.2rem;
}

.date-row__meta,
.date-row__side {
    color: var(--muted);
    font-size: .95rem;
}

.date-row__side {
    white-space: nowrap;
}

.dates__past {
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: .95rem;
}

.dates__past a {
    color: var(--accent);
}

.empty {
    color: var(--muted);
}

/* ---------- Walks page ---------- */

.walks-page {
    padding: clamp(36px, 7vw, 80px) 0 clamp(64px, 9vw, 112px);
}

.walks-page__h {
    margin: clamp(36px, 5vw, 56px) 0 1rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.walks-page .section-head + .walks-page__h {
    margin-top: 0;
}

.feature-walk {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    transition: transform .3s var(--ease);
}

.feature-walk:hover {
    transform: translateY(-3px);
}

.feature-walk__map {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    background: #fff;
    border-right: 1px solid var(--line);
}

.feature-walk__body {
    display: grid;
    align-content: center;
    gap: .55rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.feature-walk__cta {
    justify-self: start;
    margin-top: .6rem;
}

/* ---------- Past walks ---------- */

.past {
    padding: 0 0 clamp(64px, 9vw, 112px);
}

.past__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.past-card {
    display: grid;
    height: 100%;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s ease;
}

.past-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.past-card__map {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 260;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.past-card__body {
    display: grid;
    gap: .2rem;
    padding: 1rem 1.2rem 1.2rem;
}

.past-card__people {
    color: var(--muted);
}

.past-card__people b {
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--accent);
}

.past-card__title {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 92%;
    font-size: 1.2rem;
}

.past-card__meta {
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- About + FAQ ---------- */

.about {
    padding: clamp(64px, 9vw, 112px) 0;
    background: var(--tint);
}

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.about__text {
    margin: 1rem 0 1.4rem;
    max-width: 52ch;
    font-size: 1.12rem;
}

.faq {
    display: grid;
    gap: .7rem;
}

.faq__title {
    margin-bottom: .4rem;
    font-size: 1.4rem;
    color: var(--accent);
}

.faq details {
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(-135deg) translateX(-3px);
}

.faq details p {
    padding: 0 1.2rem 1.1rem;
    color: var(--muted);
}

/* ---------- Your walks ---------- */

.mine {
    padding: clamp(64px, 9vw, 112px) 0;
}

.mine__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.mine__text {
    margin: 1rem 0 1.4rem;
    max-width: 50ch;
    color: var(--muted);
    font-size: 1.08rem;
}

.recover {
    display: grid;
    gap: 1rem;
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.recover__title {
    font-weight: 700;
}

.recover .btn {
    justify-self: start;
}

/* ---------- Channel ---------- */

.channel {
    padding: 0 0 clamp(64px, 9vw, 112px);
}

.channel__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 24px;
    background: var(--accent);
    color: #fff;
}

.channel__title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.channel__box p {
    margin-top: .3rem;
    opacity: .85;
}

/* ---------- Footer ---------- */

.site-foot {
    padding-bottom: 28px;
    border-top: 1px solid var(--line);
}

.site-foot__skyline {
    width: min(100% - 2 * var(--gutter), 760px);
    margin: 28px auto 0;
    color: var(--accent);
    opacity: .4;
}

.site-foot__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.site-foot__club {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.site-foot__mark {
    width: 48px;
    height: 48px;
}

.site-foot__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
}

.site-foot__line {
    color: var(--muted);
    font-size: .95rem;
}

.site-foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    font-weight: 600;
    font-size: .95rem;
}

.site-foot__links a {
    color: var(--muted);
    text-underline-offset: .2em;
}

.site-foot__credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin: 2.4rem auto 0;
    padding-top: 2.4rem;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--muted);
    text-decoration: none;
    opacity: .85;
    transition: opacity .15s ease;
}

.site-foot__credit:hover {
    opacity: 1;
}

.site-foot__credit img {
    height: 16px;
    width: auto;
}

/* ---------- Sticky CTA (phones) ---------- */

.sticky-cta {
    display: none;
}

/* ---------- Simple pages (legal, 404, missing credential) ---------- */

.solo {
    padding: clamp(48px, 10vw, 120px) 0;
}

.solo__box {
    display: grid;
    gap: 1.2rem;
    justify-items: start;
    max-width: 640px;
}

.solo__box h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    color: var(--accent);
}

.solo__box p {
    color: var(--muted);
    font-size: 1.12rem;
}

/* ---------- Personal page ---------- */

.me {
    padding: clamp(36px, 7vw, 80px) 0 clamp(64px, 9vw, 112px);
}

.me__head h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    color: var(--accent);
}

.me__head p {
    margin-top: .8rem;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.1rem;
}

.me__switch {
    margin-top: 1rem !important;
    font-size: .98rem !important;
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(110, 29, 45, .3);
    text-underline-offset: .22em;
    cursor: pointer;
}

.me__block {
    margin-top: clamp(40px, 6vw, 64px);
}

.me__block h2 {
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.badges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.badge {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .5rem;
    padding: 1.2rem 1rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
}

.badge__num {
    display: grid;
    place-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px dashed var(--line);
    color: var(--muted);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
}

.badge--got .badge__num {
    border: 0;
    background: var(--accent);
    color: #fff;
}

.badge__label {
    font-weight: 700;
}

.badge__left {
    color: var(--muted);
    font-size: .92rem;
}



.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr));
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
}

.card-actions--center {
    justify-content: center;
}

.card-actions .btn {
    min-height: 44px;
    padding: .55rem 1.1rem;
    font-size: .95rem;
}

.walk__links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.6rem;
}

.cards__preview {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    margin-bottom: .5rem;
    border-radius: 16px;
    background: var(--tint);
    box-shadow: var(--shadow);
}

.cards__title {
    font-weight: 700;
}

.cards__meta {
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: .4rem;
}

.dates__list--me .date-row:hover {
    transform: none;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    .hero__text,
    .next-card {
        animation: rise .8s var(--ease) both;
    }

    .next-card {
        animation-delay: .12s;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(14px);
        }
    }

    .signup__done:not([hidden]) {
        animation: rise .6s var(--ease) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {

    .hero__grid,
    .walk__grid,
    .about__grid,
    .mine__grid {
        grid-template-columns: 1fr;
    }

    .walk__map {
        position: relative;
        top: 0;
        order: -1;
        height: min(68svh, 520px);
    }

    .how__steps,
    .past__list,
    .feature-walk {
        grid-template-columns: 1fr;
    }

    .how__steps li::after {
        display: none;
    }

    .feature-walk__map {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 640px) {

    body {
        font-size: 1rem;
    }

    .hide-sm {
        display: none;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
    }

    .brand__name {
        font-size: 1.02rem;
        white-space: nowrap;
    }

    .brand {
        gap: .5rem;
    }

    .topbar__nav {
        gap: .9rem;
        font-size: .92rem;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .fact {
        grid-template-columns: 1fr;
        gap: .1rem;
    }

    .date-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .date-row__side {
        grid-column: 2;
        white-space: normal;
    }

    .legend-km {
        display: none !important;
    }

    .channel .btn {
        width: 100%;
    }

    .sticky-cta {
        position: fixed;
        z-index: 25;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        padding: .45rem .45rem .45rem 1.1rem;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        box-shadow: 0 14px 30px -10px rgba(70, 25, 35, .6);
        transition: transform .35s var(--ease), opacity .3s ease;
    }

    .sticky-cta .btn {
        min-height: 44px;
        padding: .55rem 1.2rem;
    }

    .sticky-cta.is-hidden {
        transform: translateY(140%);
        opacity: 0;
        pointer-events: none;
    }

    .site-foot {
        padding-bottom: 92px;
    }
}
