@import url("/assets/css/harpelle-site.css");

:root {
    --track-blue: #4F8DA8;
    --track-coral: #B86F63;
    --track-bg: var(--he-light);
    --track-card: var(--he-surface);
    --track-text: var(--he-dark);
    --track-text-2: rgba(53, 49, 46, 0.72);
    --track-text-3: var(--he-neutral);
    --track-border: var(--he-border);
    --track-dark: var(--he-dark);
    --track-success: #2F7D4F;
    --track-warning: #9A6A16;
    --track-error: #A33D34;
    --radius-sm: var(--he-radius-sm);
    --radius-md: var(--he-radius-md);
    --radius-lg: var(--he-radius-lg);
    --shadow-card: none;
    --max: var(--he-max);
    --accent: var(--he-purple);
    --accent-bg: rgba(146, 128, 160, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--he-light);
    color: var(--he-dark);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--he-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-nav {
    background: rgba(247, 245, 242, 0.92);
    position: sticky;
    top: 0;
    z-index: 20;
}

.help-hero {
    background: linear-gradient(180deg, var(--he-light), #fff);
}

.help-hero-inner,
.page-shell,
.manual-grid {
    margin: 0 auto;
    max-width: var(--he-max);
}

.eyebrow {
    color: var(--he-purple);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

h1 {
    color: var(--he-dark);
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    letter-spacing: 0;
    line-height: 1.06;
    max-width: 840px;
    text-wrap: balance;
}

.hero-copy {
    color: rgba(53, 49, 46, 0.72);
    font-size: 1.06rem;
    margin-top: 18px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.share-strip {
    background: #fff;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-md);
    display: inline-grid;
    gap: 2px;
    margin-top: 24px;
    max-width: 100%;
    padding: 14px 18px;
}

.share-strip span {
    color: var(--he-neutral);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.share-strip strong {
    color: var(--he-dark);
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    overflow-wrap: anywhere;
}

.button {
    align-items: center;
    border-radius: var(--he-radius-sm);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
}

.button.primary {
    background: var(--he-dark);
    color: var(--he-light);
}

.button.secondary {
    background: #fff;
    border: 1px solid var(--he-border);
    color: var(--he-dark);
}

.button:hover {
    text-decoration: none;
}

.page-shell {
    padding: 42px 24px 72px;
}

.guide-grid,
.screen-gallery,
.demo-grid,
.packet-grid,
.note-grid,
.field-grid,
.print-grid,
.related-grid {
    display: grid;
    gap: 16px;
}

.guide-grid,
.demo-grid,
.packet-grid,
.screen-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-grid,
.field-grid,
.print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card,
.article-card,
.callout,
.quick-panel,
.related-card,
.demo-card,
.packet-card,
.test-script,
.feedback-panel,
.known-notes,
.feedback-form,
.print-sheet,
.print-block {
    background: #fff;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-md);
    box-shadow: none;
}

.guide-card,
.related-card,
.screen-card {
    color: inherit;
    display: block;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-card {
    min-height: 204px;
    padding: 22px;
}

.guide-card:hover,
.related-card:hover,
.screen-card:hover {
    border-color: var(--he-border-strong);
    box-shadow: var(--he-shadow-soft);
    text-decoration: none;
    transform: translateY(-2px);
}

.guide-card .number,
.packet-card .number {
    color: var(--he-purple);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.guide-card h2 {
    color: var(--he-dark);
    font-size: 1.05rem;
    letter-spacing: 0;
    line-height: 1.35;
    margin-bottom: 8px;
}

.guide-card p,
.screen-card span,
.demo-card p,
.demo-card li,
.packet-card p,
.packet-card li,
.test-script p,
.feedback-panel p,
.feedback-box li,
.known-notes p,
.article-card p,
.article-card li {
    color: rgba(53, 49, 46, 0.72);
}

.screen-gallery {
    margin: 36px 0 12px;
}

.screen-card {
    border: 1px solid transparent;
    border-radius: var(--he-radius-md);
    padding: 10px;
}

.screen-card img,
.demo-card img,
.article-visual img {
    aspect-ratio: 720 / 1468;
    background: rgba(247, 245, 242, 0.8);
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-md);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.screen-card strong,
.screen-card span {
    display: block;
}

.screen-card strong {
    font-size: 0.9rem;
    margin-top: 10px;
}

.screen-card span {
    font-size: 0.8rem;
    margin-top: 2px;
}

.demo-card {
    overflow: hidden;
}

.demo-card-body {
    padding: 18px;
}

.demo-card h2,
.demo-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.demo-card ol,
.demo-card ul {
    margin-top: 10px;
    padding-left: 20px;
}

.article-card .demo-card {
    margin: 26px 0 30px;
    max-width: 420px;
}

.article-card .demo-card h2,
.article-card .demo-card h3 {
    border-top: 0;
    font-size: 1.05rem;
    margin-top: 0;
    padding-top: 0;
}

.packet-card {
    padding: 22px;
}

.packet-card h2,
.test-script h2,
.feedback-panel h2,
.known-notes h2 {
    font-size: 1.25rem;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 10px;
}

.packet-card ul,
.feedback-box ul {
    padding-left: 20px;
}

.packet-card li,
.feedback-box li {
    margin: 8px 0;
}

.test-script,
.feedback-panel,
.known-notes {
    display: grid;
    gap: 24px;
    margin: 32px 0;
    padding: clamp(24px, 4vw, 34px);
}

.test-script {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.feedback-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.feedback-box {
    background: rgba(247, 245, 242, 0.72);
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
    padding: 20px;
}

.feedback-box .button {
    margin-top: 14px;
}

.feedback-form {
    display: grid;
    gap: 18px;
    margin: 32px 0;
    padding: clamp(22px, 4vw, 34px);
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--he-dark);
    font-size: 0.88rem;
    font-weight: 800;
}

.field small {
    color: var(--he-neutral);
    font-size: 0.78rem;
}

.field input,
.field select,
.field textarea {
    background: #fff;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
    color: var(--he-dark);
    font: inherit;
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--he-dark);
    box-shadow: 0 0 0 3px rgba(53, 49, 46, 0.12);
    outline: none;
}

.hidden-field {
    display: none;
}

.form-status {
    border-radius: var(--he-radius-sm);
    display: none;
    font-size: 0.9rem;
    padding: 14px 16px;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: #EAF6EF;
    color: #215D39;
}

.form-status.error {
    background: #F8EDEA;
    color: #7C2E28;
}

.manual-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    padding: 34px 24px 76px;
}

.article-nav {
    align-self: start;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-md);
    padding: 18px;
    position: sticky;
    top: 104px;
}

.article-nav p {
    color: var(--he-neutral);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-nav a {
    border-radius: 8px;
    color: rgba(53, 49, 46, 0.72);
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 10px;
}

.article-nav a:hover,
.article-nav a.active {
    background: var(--accent-bg);
    color: var(--he-dark);
    text-decoration: none;
}

.article-card {
    padding: clamp(24px, 4vw, 42px);
}

.article-card h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 14px;
}

.article-card h2 {
    border-top: 1px solid var(--he-border);
    font-size: 1.35rem;
    letter-spacing: 0;
    margin-top: 34px;
    padding-top: 28px;
}

.article-card h3 {
    font-size: 1rem;
    margin-top: 22px;
}

.article-card ul,
.article-card ol {
    padding-left: 22px;
}

.article-card li {
    margin: 8px 0;
}

.article-visual {
    margin: 28px 0;
}

.article-visual img {
    max-width: min(100%, 440px);
}

.article-visual.full img {
    max-width: min(100%, 560px);
}

.article-visual figcaption {
    color: var(--he-neutral);
    font-size: 0.84rem;
    margin-top: 10px;
}

.quick-panel {
    background: linear-gradient(180deg, #fff, rgba(247, 245, 242, 0.72));
    margin: 26px 0;
    padding: 22px;
}

.quick-panel strong {
    color: var(--he-dark);
}

.step-list {
    counter-reset: steps;
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 20px 0;
    padding: 0 !important;
}

.step-list li {
    background: #fff;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
    color: rgba(53, 49, 46, 0.72);
    padding: 14px 16px 14px 46px;
    position: relative;
}

.step-list li::before {
    align-items: center;
    background: var(--he-dark);
    border-radius: 999px;
    color: #fff;
    content: counter(steps);
    counter-increment: steps;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    left: 14px;
    position: absolute;
    top: 16px;
    width: 24px;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 6px 9px;
    text-transform: uppercase;
}

.badge.premium {
    background: rgba(154, 106, 22, 0.14);
    color: #6F4B0E;
}

.badge.free {
    background: var(--accent-bg);
    color: var(--he-dark);
}

.callout {
    border-left: 4px solid var(--he-purple);
    margin: 24px 0;
    padding: 18px 20px;
}

.callout.warning {
    border-left-color: var(--track-warning);
}

.callout.premium {
    border-left-color: #9A6A16;
}

.related-grid {
    margin-top: 24px;
}

.related-card {
    color: inherit;
    padding: 18px;
}

.footer {
    border-top: 1px solid var(--he-border);
    color: var(--he-neutral);
    font-size: 0.85rem;
    padding: 34px 24px;
    text-align: center;
}

.footer a {
    color: rgba(53, 49, 46, 0.72);
    font-weight: 700;
    margin: 0 10px;
}

.print-sheet {
    margin: 32px auto;
    max-width: 860px;
    padding: clamp(24px, 5vw, 44px);
}

.print-sheet h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.print-grid {
    margin-top: 26px;
}

.print-block {
    padding: 18px;
}

.print-block h2 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.check-list {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.check-list li::before {
    border: 1px solid var(--he-neutral);
    border-radius: 3px;
    content: "";
    display: inline-block;
    height: 13px;
    margin-right: 9px;
    vertical-align: -2px;
    width: 13px;
}

.match-code-space {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 18px 0;
}

@media (max-width: 900px) {
    .guide-grid,
    .screen-gallery,
    .demo-grid,
    .packet-grid,
    .note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .guide-grid,
    .related-grid,
    .screen-gallery,
    .demo-grid,
    .packet-grid,
    .note-grid,
    .field-grid,
    .print-grid {
        grid-template-columns: 1fr;
    }

    .test-script,
    .feedback-panel {
        grid-template-columns: 1fr;
    }

    .manual-grid {
        display: block;
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-nav {
        margin-bottom: 20px;
        position: static;
    }

    .field.full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .site-nav,
    .help-hero,
    .page-shell,
    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .help-hero {
        padding-top: 46px;
    }

    h1 {
        font-size: 1.9rem;
        line-height: 1.1;
    }

    .hero-copy {
        font-size: 1rem;
        max-width: 100%;
    }

    .button {
        font-size: 0.86rem;
        padding-left: 14px;
        padding-right: 14px;
    }

    .guide-card {
        min-height: 0;
        padding: 20px 18px;
    }

    .article-card {
        border-radius: var(--he-radius-md);
        padding: 22px 18px;
    }

    .article-card h1,
    .guide-card h2,
    .guide-card p,
    .hero-copy {
        overflow-wrap: break-word;
    }
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    .site-nav,
    .footer,
    .hero-actions,
    .no-print {
        display: none !important;
    }

    .page-shell,
    .print-sheet {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding: 0;
        width: 100%;
    }

    .print-sheet,
    .print-block {
        border-color: #999;
    }
}
