/* HunaShield product page. Same quiet look as oopusoft.com: Newsreader, warm off-white, one narrow column,
   hairlines instead of boxes, dark theme follows the system. The only colour is the logo. */
:root {
    --bg: #FAFAF8;
    --text: #1B1B19;
    --muted: #5E5E58;
    --muted-soft: #6E6E67;
    --line: #E3E1D9;
    --accent: #9F1239;
    --column: 680px;
    --gutter: 1.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141413;
        --text: #EDEBE4;
        --muted: #A4A298;
        --muted-soft: #8E8C83;
        --line: #2E2D2A;
        --accent: #F2A0B5;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Newsreader', Georgia, serif;
    font-size: 21px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

p { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 5; }

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    font-size: 19px;
}
.topbar a { padding: 0.5rem 0; }

main { padding: clamp(2rem, 8vh, 5rem) 0 4rem; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 28px;
    letter-spacing: -0.01em;
    line-height: 1;
}
.brand svg { width: 38px; height: 43px; flex: none; }
.brand b { font-weight: 500; }
.brand span { font-weight: 400; color: var(--muted); }

h1 {
    margin: 3.5rem 0 1.5rem;
    font-size: clamp(2.5rem, 8.5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h1 em { font-style: italic; color: var(--muted); }

.lead { color: var(--muted); max-width: 34em; }

.cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.75rem; }
.cta a.go {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    min-height: 44px;
    transition: opacity 0.15s ease;
}
.cta a.go:hover { opacity: 0.85; }
.cta .small { font-size: 17px; color: var(--muted); }

/* The before/after is the demo: two monospace lines, no screenshot to go stale. */
.swap { margin-top: 4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.swap dl { margin: 0; display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem 1rem; align-items: baseline; }
.swap dt { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-soft); }
.swap dd { margin: 0; font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.swap dd.after { color: var(--accent); }
.swap .note { margin-top: 1rem; font-size: 15px; color: var(--muted-soft); }

section { margin-top: 4.5rem; }
h2 { margin: 0 0 1.25rem; font-size: 26px; font-weight: 500; line-height: 1.2; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 1rem 0 1rem 2.6rem; border-top: 1px solid var(--line); position: relative; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1rem; color: var(--muted-soft); }
.steps strong, .points strong { font-weight: 500; }
.steps span, .points span { display: block; color: var(--muted); }

.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 1rem 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }

.get p + p { margin-top: 1rem; }
.get .cta { margin-top: 1.75rem; }
.fine { font-size: 17px; color: var(--muted); }

.foot { padding: 2.5rem 0 max(2.5rem, env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted-soft); border-top: 1px solid var(--line); }
.foot p + p { margin-top: 0.25rem; }

@media (max-width: 768px) {
    body { font-size: 19px; }
    .brand { font-size: 24px; }
    .swap dl { grid-template-columns: 1fr; gap: 0.15rem; }
    .swap dd + dt { margin-top: 0.9rem; }
    h1 { margin-top: 2.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
    main > * { animation: rise 0.7s ease both; }
    main > :nth-child(2) { animation-delay: 0.06s; }
    main > :nth-child(3) { animation-delay: 0.12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Before/after demo: two sample documents, the made-up details highlighted */
.demo { margin: 4rem calc(50% - 50vw + var(--gutter)) 0; padding: 0; }
.pair { width: min(100%, 940px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.arrow { font-size: 34px; color: var(--muted-soft); }
.doc { background: #fff; color: #1B1B19; border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.25rem 1.5rem; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px -18px rgba(0,0,0,.25); }
@media (prefers-color-scheme: dark) { .doc { background: #1d1d1b; color: #EDEBE4; box-shadow: none; } }
.doc .tag { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); }
.doc.safe .tag { color: var(--accent); }
.doc .dt { margin: .35rem 0 1rem; font-size: 22px; font-weight: 500; }
.doc ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.35; }
.doc li { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; padding: .42rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.doc .k { color: var(--muted-soft); font-size: 14px; }
.doc .v { font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace; font-size: 13.5px; padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; justify-self: start; }
.v.real { background: rgba(159,18,57,.12); box-shadow: inset 0 -2px 0 rgba(159,18,57,.55); }
.v.safe { background: rgba(251,191,36,.28); box-shadow: inset 0 -2px 0 #fbbf24; }
@media (prefers-color-scheme: dark) { .v.real { background: rgba(242,160,181,.18); } .v.safe { background: rgba(251,191,36,.2); } }
.doc .ln { height: 7px; border-radius: 4px; background: var(--line); margin-top: 1rem; }
.doc .ln.s { width: 60%; margin-top: .6rem; }
.demo figcaption { width: min(100%, 940px); margin: 1rem auto 0; font-size: 15px; color: var(--muted-soft); text-align: center; }
@media (max-width: 768px) {
    .pair { grid-template-columns: 1fr; width: min(100%, 460px); }
    .arrow { transform: rotate(90deg); text-align: center; line-height: 1; }
    .doc li { grid-template-columns: 5.4rem 1fr; }
}

/* Video: one player, no autoplay, same width as the document demo */
.watch { margin: 5rem calc(50% - 50vw + var(--gutter)) 0; }
.watch h2, .watch .fine { width: min(100%, 940px); margin-inline: auto; }
.watch h2 { text-align: center; }
.watch .fine { margin-top: 1rem; text-align: center; font-size: 15px; color: var(--muted-soft); }
.watch video { display: block; width: min(100%, 820px); aspect-ratio: 16 / 9; margin-inline: auto; background: #0b0b0a; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); }
@media (prefers-color-scheme: dark) { .watch video { box-shadow: none; } }

.tabs { display: flex; justify-content: center; gap: .5rem; margin: 0 0 1.25rem; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 17px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; min-height: 44px; cursor: pointer; }
.tabs button.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.tabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
