/* MHUI 2026 — Proposal 3: "Golden Hour & Cozy Companion" Visual System */
:root {
    --forest-950: #2c1e16;
    --forest-800: #453022;
    --forest-700: #4f6644;
    --forest-600: #6e8562;
    --forest-100: #ebf0e8;
    --gold-700: #9e5c16;
    --gold-600: #c87d28;
    --gold-500: #d4943a;
    --gold-100: #fdf3e3;
    --cream-50: #fdf8f2;
    --cream-100: #faf3e8;
    --cream-200: #e8d8c3;
    --sky-100: #e5eff2;
    --clay-100: #fceee9;
    --amber-100: #fdf3e3;
    --amber-800: #7a4e16;
    --danger-100: #f9e3de;
    --danger-800: #7a2f22;
    --ink: #2c1e16;
    --muted: #6e5a4b;
    --line: #e2d1bc;
    --surface: #fffcf7;
    --white: #ffffff;
    --focus: #b87624;
    --shadow: 0 22px 56px rgba(44, 30, 22, 0.10);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --content-width: 1280px;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 88% 6%, rgba(212, 148, 58, 0.20), transparent 28rem),
        radial-gradient(circle at 8% 12%, rgba(110, 133, 98, 0.18), transparent 27rem),
        radial-gradient(circle at 50% 92%, rgba(212, 148, 58, 0.12), transparent 32rem),
        var(--cream-50);
    color: var(--ink);
    font-family: Aptos, "Segoe UI", Calibri, "Trebuchet MS", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        repeating-radial-gradient(ellipse at -10% 30%, transparent 0 62px, rgba(110, 133, 98, 0.03) 63px 64px),
        repeating-radial-gradient(ellipse at 110% 65%, transparent 0 76px, rgba(200, 125, 40, 0.03) 77px 78px);
    content: "";
    pointer-events: none;
}

body.admin-page {
    background:
        radial-gradient(circle at 12% 4%, rgba(110, 133, 98, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(212, 148, 58, 0.16), transparent 26rem),
        var(--cream-100);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--gold-700);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.1em;
}

a:hover {
    color: var(--forest-950);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

h1,
h2,
h3,
.brand {
    color: var(--forest-950);
    font-family: Georgia, "Times New Roman", serif;
    hyphens: auto;
    line-height: 1.13;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.35rem, 6.5vw, 4.75rem);
    letter-spacing: -0.04em;
}

h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.75rem, 4vw, 2.85rem);
    letter-spacing: -0.025em;
}

h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

p,
ul,
ol {
    margin-top: 0;
}

code,
.hash-value {
    overflow-wrap: anywhere;
    font-family: "Cascadia Mono", Consolas, monospace;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--forest-950);
    color: var(--white);
    transform: translateY(-180%);
}

.skip-link:focus {
    color: var(--white);
    transform: translateY(0);
}

/* Header & Navigation */
.site-header {
    border-bottom: 1px solid rgba(44, 30, 22, 0.10);
    background: rgba(253, 248, 242, 0.92);
}

@supports (backdrop-filter: blur(14px)) {
    .site-header {
        position: sticky;
        z-index: 20;
        top: 0;
        backdrop-filter: blur(14px);
    }
}

.header-inner,
.page-shell,
.footer-inner {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

.header-inner {
    display: flex;
    min-height: 5.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.85rem;
    color: var(--forest-950);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 3.4rem;
    height: 3.4rem;
    padding: 2px;
    border: 2px solid var(--gold-500);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(44, 30, 22, 0.12);
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.45rem;
}

.brand-text small {
    color: var(--muted);
    font-family: Aptos, "Segoe UI", Calibri, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-navigation {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2.6vw, 2.2rem);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(0.15rem, 0.9vw, 0.65rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    background: var(--gold-100);
    color: var(--forest-950);
    text-decoration: underline;
    text-decoration-color: var(--gold-500);
    text-decoration-thickness: 0.16rem;
    text-underline-offset: 0.42rem;
}

.nav-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.7rem;
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--forest-950);
    cursor: pointer;
}

.nav-toggle > span:not(.visually-hidden) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0.28rem 0;
    border-radius: 99px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Buttons & Links */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.78rem 1.35rem;
    border: 2px solid var(--forest-950);
    border-radius: 999px;
    background: var(--forest-950);
    color: var(--white);
    cursor: pointer;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    background: var(--forest-800);
    border-color: var(--forest-800);
    color: var(--white);
    box-shadow: 0 10px 26px rgba(44, 30, 22, 0.20);
    transform: translateY(-1px);
}

.button-gold {
    border-color: var(--gold-600);
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(200, 125, 40, 0.24);
}

.button-gold:hover {
    border-color: var(--gold-700);
    background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-700) 100%);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(158, 92, 22, 0.30);
}

.button-secondary {
    border-color: var(--cream-200);
    background: var(--surface);
    color: var(--forest-950);
}

.button-secondary:hover {
    border-color: var(--gold-500);
    background: var(--gold-100);
    color: var(--forest-950);
}

.button-compact {
    min-height: 2.95rem;
    padding: 0.62rem 1.05rem;
    font-size: 0.93rem;
}

.button-large {
    min-height: 4.1rem;
    padding-inline: 1.8rem;
    font-size: 1.06rem;
}

.button-small {
    min-height: 2.55rem;
    padding: 0.52rem 0.95rem;
    font-size: 0.88rem;
}

.button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.button svg,
.text-link svg,
.release-trust svg,
.feature-icon svg,
.route-pin svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

/* Page Shell & Hero */
.page-shell {
    padding-block: clamp(2rem, 5vw, 4.8rem);
}

.landing-page .page-shell {
    padding-top: clamp(1.8rem, 4vw, 3.6rem);
}

.hero {
    display: grid;
    min-height: min(46rem, calc(100vh - 5.5rem));
    align-items: center;
    gap: clamp(2rem, 5.5vw, 5.5rem);
    grid-template-columns: minmax(0, 1.06fr) minmax(24rem, 0.94fr);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 47rem;
}

.hero-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    border: 1px solid var(--cream-200);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 6px 18px rgba(44, 30, 22, 0.06);
    color: var(--gold-700);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-brand-pill img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
    padding: 0.44rem 0.88rem;
    border: 1px solid #e3c89e;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--gold-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 48rem;
    margin-bottom: 1.25rem;
    font-size: clamp(2.85rem, 4.8vw, 4.85rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-wrap: pretty;
}

.hero-accent {
    color: var(--gold-600);
    font-style: italic;
    font-weight: 400;
}

.lead {
    max-width: 39rem;
    margin-bottom: 1.65rem;
    color: var(--muted);
    font-size: clamp(1.06rem, 1.55vw, 1.26rem);
}

.hero-buttons {
    align-items: center;
}

.text-link {
    display: inline-flex;
    min-height: 3.5rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.25rem;
    color: var(--forest-950);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--gold-500);
    text-decoration-thickness: 0.14rem;
    text-underline-offset: 0.42rem;
}

.release-trust {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.65rem;
    padding: 0.85rem 1.1rem;
    max-width: 34rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.86);
}

.release-trust p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.release-trust strong {
    color: var(--forest-950);
}

.trust-shield {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--forest-100);
    color: var(--forest-700);
}

.landing-page .hero-copy > .status-message {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* Hero Visual & Phone Mockup */
.hero-visual {
    position: relative;
    min-height: 42rem;
}

.route-stage {
    position: absolute;
    top: 8%;
    right: 0;
    bottom: 7%;
    left: 6%;
    overflow: hidden;
    border-radius: 42% 30% 38% 32%;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.55), transparent 18rem),
        linear-gradient(140deg, #e5ede0 0%, #d2dfc9 52%, #f2e2c8 100%);
    box-shadow:
        inset 0 0 0 1px rgba(79, 102, 68, 0.14),
        0 24px 52px rgba(44, 30, 22, 0.08);
}

.route-stage::before,
.route-stage::after {
    position: absolute;
    width: 8rem;
    height: 13rem;
    border-radius: 50%;
    border-left: 3px solid rgba(255, 252, 247, 0.68);
    content: "";
    transform: rotate(32deg);
}

.route-stage::before {
    top: 8%;
    left: 12%;
}

.route-stage::after {
    right: 8%;
    bottom: 5%;
}

.route-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--forest-700);
    stroke-dasharray: 10 7;
    stroke-linecap: round;
    stroke-width: 6;
}

.route-start {
    position: absolute;
    bottom: 6.5%;
    left: 12%;
    width: 1.95rem;
    height: 1.95rem;
    border: 0.42rem solid var(--surface);
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 4px 12px rgba(44, 30, 22, 0.22);
}

.route-pin {
    position: absolute;
    top: 7%;
    right: 22%;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--gold-600);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(44, 30, 22, 0.22);
}

.phone-frame {
    position: absolute;
    z-index: 3;
    top: 1%;
    right: 13%;
    width: min(20.5rem, 61%);
    overflow: hidden;
    border: 9px solid #2c1e16;
    border-radius: 45px;
    background: #2c1e16;
    box-shadow: 0 28px 56px rgba(44, 30, 22, 0.28);
}

.phone-frame::after {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 252, 247, 0.25);
    border-radius: 35px;
    content: "";
    pointer-events: none;
}

.phone-frame img {
    width: 100%;
    height: auto;
    border-radius: 35px;
}

.phone-camera {
    position: absolute;
    z-index: 4;
    top: 0.72rem;
    left: 50%;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: #1a110c;
    transform: translateX(-50%);
}

.distance-bubble {
    position: absolute;
    z-index: 4;
    top: 23%;
    right: -1%;
    display: flex;
    min-width: 8.6rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.05rem;
    border: 1px solid var(--cream-200);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 14px 30px rgba(44, 30, 22, 0.13);
}

.distance-bubble strong {
    color: var(--gold-700);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
}

.distance-bubble span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.companion-bubble {
    position: absolute;
    z-index: 4;
    bottom: 12%;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--cream-200);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 14px 30px rgba(44, 30, 22, 0.12);
}

.companion-bubble img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1.5px solid var(--gold-500);
    object-fit: cover;
}

.companion-bubble strong {
    display: block;
    color: var(--forest-950);
    font-size: 0.86rem;
    line-height: 1.2;
}

.companion-bubble span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
}

/* Feature Rail */
.feature-rail {
    display: grid;
    overflow: hidden;
    margin-top: clamp(1rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.95);
    box-shadow: 0 16px 38px rgba(44, 30, 22, 0.07);
    grid-template-columns: repeat(3, 1fr);
}

.feature-rail article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem;
}

.feature-rail article + article {
    border-left: 1px solid var(--cream-200);
}

.feature-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    background: var(--forest-100);
    color: var(--forest-700);
}

.feature-icon-sage {
    background: var(--forest-100);
    color: var(--forest-700);
}

.feature-icon-gold {
    background: var(--gold-100);
    color: var(--gold-700);
}

.feature-icon-clay {
    background: var(--clay-100);
    color: var(--danger-800);
}

.feature-rail h2 {
    margin: 0 0 0.22rem;
    font-size: 1.22rem;
}

.feature-rail p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* Sections & Cards */
.hero-card,
.info-card,
.release-panel,
.legal-content,
.toc,
.support-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 247, 0.95);
    box-shadow: var(--shadow);
}

.section {
    padding-block: clamp(3.4rem, 6.8vw, 6.2rem);
}

.section-heading {
    max-width: 48rem;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-heading h2 {
    font-size: clamp(2.25rem, 4.2vw, 3.8rem);
}

.section-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}

/* Story Timeline Cards ("Ein Tag mit deinem Hund") */
.story-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 14rem;
    gap: 1.1rem;
    padding: clamp(1.5rem, 3.2vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(44, 30, 22, 0.05);
}

.story-card-wide {
    grid-column: 1 / -1;
    background:
        linear-gradient(120deg, rgba(235, 240, 232, 0.95) 0%, rgba(253, 243, 227, 0.88) 100%),
        var(--surface);
}

.story-card-gold {
    background: linear-gradient(145deg, #fffcf7 0%, #fdf3e3 100%);
}

.story-card-clay {
    background: linear-gradient(145deg, #fffcf7 0%, #fceee9 100%);
}

.story-card-warm {
    background: linear-gradient(120deg, #faf3e8 0%, #f3e4cf 100%);
}

.story-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.36rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.story-badge-sage {
    background: var(--forest-700);
    color: var(--white);
}

.story-badge-gold {
    background: var(--gold-100);
    border: 1px solid #e5c693;
    color: var(--gold-700);
}

.story-badge-clay {
    background: var(--clay-100);
    border: 1px solid #eabfb1;
    color: var(--danger-800);
}

.story-badge-espresso {
    background: var(--forest-950);
    color: var(--gold-100);
}

.story-number {
    align-self: flex-start;
    color: var(--gold-600);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 700;
}

.story-card h3 {
    font-size: clamp(1.38rem, 2.4vw, 1.95rem);
}

.story-card p {
    max-width: 48rem;
    margin-bottom: 0;
    color: var(--muted);
}

/* Release Panel (Warm Espresso & Gold) */
.release-section {
    padding-inline: clamp(1rem, 3vw, 2.2rem);
    border-radius: 36px;
    background:
        radial-gradient(circle at 90% 15%, rgba(212, 148, 58, 0.24), transparent 24rem),
        linear-gradient(135deg, #2c1e16 0%, #3d2a1d 100%);
    color: var(--white);
    box-shadow: 0 24px 56px rgba(44, 30, 22, 0.20);
}

.release-panel {
    display: grid;
    gap: 2rem;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    border: 0;
    background: transparent;
    box-shadow: none;
    grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
}

.release-intro h2,
.release-intro p {
    color: var(--white);
}

.release-intro .eyebrow {
    border-color: rgba(212, 148, 58, 0.45);
    background: rgba(212, 148, 58, 0.18);
    color: #f9dfb8;
}

.release-grid {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metadata-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 248, 238, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(255, 252, 247, 0.07);
}

.metadata-item dt,
.metadata-label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(253, 243, 227, 0.72);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.metadata-item dd,
.metadata-value,
.release-grid code {
    margin: 0;
    color: var(--white);
    font-weight: 800;
}

.metadata-wide {
    grid-column: 1 / -1;
}

.hash-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.hash-value {
    min-width: 0;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.55;
}

.release-grid .button-secondary {
    border-color: rgba(253, 243, 227, 0.45);
    background: rgba(255, 252, 247, 0.10);
    color: var(--white);
}

.release-grid .button-secondary:hover {
    border-color: var(--gold-500);
    background: var(--gold-500);
    color: var(--forest-950);
}

.status-message {
    min-height: 1.6em;
    margin: 0.75rem 0 0;
    color: rgba(253, 243, 227, 0.82);
    font-size: 0.88rem;
}

/* Installation Steps */
.centered-heading {
    margin-inline: auto;
    text-align: center;
}

.steps {
    display: grid;
    gap: 1.1rem;
    padding: 0;
    counter-reset: install-step;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
}

.steps li {
    position: relative;
    min-height: 13rem;
    padding: 5rem 1.5rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.95);
    box-shadow: 0 10px 26px rgba(44, 30, 22, 0.05);
    counter-increment: install-step;
}

.steps li::before {
    position: absolute;
    top: 1.2rem;
    left: 1.25rem;
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--white);
    content: counter(install-step);
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(200, 125, 40, 0.25);
}

.steps strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--forest-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.steps span {
    color: var(--muted);
}

/* Notices */
.notice {
    margin-top: 1.25rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid var(--line);
    border-left: 0.35rem solid var(--forest-600);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.notice-warning {
    border-color: #e2c285;
    border-left-color: var(--gold-600);
    background: var(--amber-100);
    color: #4f330d;
}

.notice-danger {
    border-color: #d99a8d;
    border-left-color: var(--danger-800);
    background: var(--danger-100);
    color: var(--danger-800);
}

.notice-info {
    border-color: #c5d4be;
    border-left-color: var(--forest-600);
    background: var(--forest-100);
}

/* Security Section */
.security-section {
    display: grid;
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
    grid-template-columns: minmax(0, 0.82fr) minmax(28rem, 1.18fr);
}

.security-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.security-card {
    min-height: 12rem;
    padding: 1.55rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.94);
    box-shadow: 0 10px 26px rgba(44, 30, 22, 0.05);
}

.security-card > span {
    display: inline-block;
    margin-bottom: 1.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--gold-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.security-card h3 {
    font-size: 1.28rem;
}

.security-card p {
    margin: 0;
    color: var(--muted);
}

/* FAQ Preview & Subpage Components */
.faq-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(115deg, var(--gold-100) 0%, var(--forest-100) 100%);
}

.faq-preview h2 {
    margin-bottom: 0.5rem;
}

.faq-preview p {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
}

.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    padding: clamp(1.25rem, 3vw, 1.8rem);
    box-shadow: 0 10px 28px rgba(44, 30, 22, 0.06);
}

.info-card:nth-child(3n + 1) {
    background: rgba(235, 240, 232, 0.78);
}

.info-card:nth-child(3n + 2) {
    background: rgba(253, 243, 227, 0.82);
}

.info-card:nth-child(3n + 3) {
    background: rgba(252, 238, 233, 0.76);
}

.info-card p:last-child,
.notice p:last-child,
.support-panel p:last-child {
    margin-bottom: 0;
}

.check-list,
.plain-list {
    padding-left: 1.2rem;
}

.check-list li,
.plain-list li {
    margin-bottom: 0.55rem;
}

.content-layout {
    display: grid;
    align-items: start;
    gap: 1.5rem;
    grid-template-columns: minmax(13rem, 0.3fr) minmax(0, 1fr);
}

.toc {
    position: sticky;
    top: 6.2rem;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(44, 30, 22, 0.06);
}

.toc h2 {
    font-size: 1.15rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-block: 0.4rem;
}

.toc a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.toc a:hover {
    color: var(--forest-950);
    text-decoration: underline;
}

.legal-content {
    min-width: 0;
    padding: clamp(1.4rem, 4vw, 3rem);
    box-shadow: 0 12px 32px rgba(44, 30, 22, 0.06);
}

.legal-content > section {
    padding-block: 1.25rem;
    scroll-margin-top: 6rem;
}

.legal-content > section + section {
    border-top: 1px solid var(--cream-200);
}

.legal-content h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content h3 {
    margin-top: 1.3rem;
}

.legal-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--cream-200);
    color: var(--muted);
}

.data-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    contain: layout inline-size paint;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 40rem;
    border-collapse: collapse;
}

.table-scroll-hint {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--gold-100);
    color: var(--forest-950);
}

.faq-list {
    display: grid;
    gap: 0.85rem;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 8px 22px rgba(44, 30, 22, 0.05);
}

.faq-list details[open] {
    border-color: var(--gold-500);
}

.faq-list summary {
    padding: 1.15rem 3rem 1.15rem 1.3rem;
    color: var(--forest-950);
    cursor: pointer;
    font-weight: 800;
}

.faq-answer {
    padding: 0 1.3rem 1.3rem;
    color: var(--muted);
}

.faq-answer p:last-child,
.faq-answer ul:last-child,
.faq-answer ol:last-child {
    margin-bottom: 0;
}

.support-panel {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    grid-template-columns: minmax(0, 1fr) auto;
    box-shadow: 0 10px 28px rgba(44, 30, 22, 0.07);
}

/* Footer */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(44, 30, 22, 0.12);
    background: rgba(250, 243, 232, 0.84);
}

.footer-inner {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand img {
    width: 3.1rem;
    height: 3.1rem;
    padding: 2px;
    border: 2px solid var(--gold-500);
    border-radius: 50%;
    background: var(--white);
}

.footer-brand p {
    margin: 0;
    line-height: 1.25;
}

.footer-brand strong {
    color: var(--forest-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.footer-brand span {
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.text-small {
    font-size: 0.9rem;
}

.stack > * + * {
    margin-top: 1rem;
}

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

[hidden] {
    display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        position: relative;
        flex-direction: row;
        align-items: center;
        padding-block: 0.65rem;
    }

    .site-navigation {
        position: absolute;
        z-index: 30;
        top: calc(100% + 0.5rem);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 252, 247, 0.98);
        box-shadow: var(--shadow);
        flex-direction: column;
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation .nav-list {
        display: grid;
        overflow: visible;
        grid-template-columns: repeat(2, 1fr);
    }

    .site-navigation .nav-link {
        padding: 0.8rem;
    }

    .nav-actions .button {
        flex: 1;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr);
    }

    .security-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .site-header {
        position: sticky;
    }

    .hero,
    .release-panel,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero > * {
        min-width: 0;
    }

    .hero-copy {
        max-width: 46rem;
    }

    .hero-visual {
        width: min(100%, 38rem);
        min-height: 40rem;
        margin-inline: auto;
    }

    .feature-rail {
        grid-template-columns: 1fr;
    }

    .feature-rail article + article {
        border-top: 1px solid var(--cream-200);
        border-left: 0;
    }

    .toc {
        position: static;
    }

    .toc ol {
        columns: 2;
    }

    .card-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .page-shell,
    .footer-inner {
        width: min(calc(100% - 1.5rem), var(--content-width));
    }

    .page-shell {
        padding-block: 1.7rem;
    }

    .brand {
        font-size: 1.3rem;
    }

    .brand img {
        width: 2.9rem;
        height: 2.9rem;
    }

    .site-navigation .nav-list {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        flex-direction: column;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11.5vw, 3.6rem);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .hero h1 br {
        display: none;
    }

    .button-row,
    .button-row .button,
    .support-panel .button,
    .hero-buttons .button,
    .hero-buttons .text-link {
        max-width: 100%;
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .release-trust {
        align-items: flex-start;
    }

    .hero-visual {
        min-height: 34rem;
    }

    .phone-frame {
        right: 12%;
        width: 66%;
        border-width: 7px;
        border-radius: 35px;
    }

    .phone-frame img,
    .phone-frame::after {
        border-radius: 27px;
    }

    .distance-bubble {
        top: 19%;
        right: 0;
        min-width: auto;
        padding: 0.7rem 0.85rem;
    }

    .distance-bubble span {
        display: none;
    }

    .companion-bubble {
        bottom: 6%;
        padding: 0.5rem 0.75rem;
    }

    .companion-bubble span {
        display: none;
    }

    .story-grid,
    .security-grid,
    .card-grid,
    .steps,
    .release-grid,
    .support-panel {
        grid-template-columns: 1fr;
    }

    .story-card-wide,
    .metadata-wide {
        grid-column: auto;
    }

    .hash-row {
        align-items: stretch;
        flex-direction: column;
    }

    .release-section {
        margin-inline: -0.25rem;
        padding-inline: 0;
        border-radius: 28px;
    }

    .release-panel {
        padding: 1.3rem;
    }

    .faq-preview {
        padding-block: 2rem;
    }

    .toc ol {
        columns: 1;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
