/* =====================================================================
   FreeScreenRec – site stylesheet
   Look: paper + ink, one "record red" accent, viewfinder details,
   monospace timecode. No gradients, no glows.
   ===================================================================== */

:root {
    --paper: #f4f1ea;
    --paper-2: #ebe6da;
    --card: #fffdf8;
    --ink: #141414;
    --ink-2: #3b3934;
    --muted: #6f6a60;
    --rule: #d8d1c2;
    --red: #e0352b;
    --red-dark: #b8241c;
    --red-soft: #fbe9e6;

    --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --radius: 4px;
    /* aliases used by a few inline styles */
    --primary: var(--red);
    --primary-dark: var(--red-dark);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body > footer { margin-top: auto; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; }
strong { font-weight: 600; color: var(--ink); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.small { font-size: 0.85rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 241, 234, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo img { display: inline-block; width: 26px; height: 26px; vertical-align: -5px; margin-right: 8px; }
.logo span { color: var(--red); }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    padding: 4px 0;
}
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- Homepage hero ---------- */
.hero-top { padding: 64px 0 32px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-top h1 {
    font-weight: 800;
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: 12ch;
}
.hl { background: linear-gradient(transparent 64%, rgba(224, 53, 43, 0.28) 64%, rgba(224, 53, 43, 0.28) 92%, transparent 92%); padding: 0 0.04em; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-top: 22px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 22px; font-family: var(--mono); font-size: 0.85rem; color: var(--ink); }
.hero-badges li { display: inline-flex; align-items: center; }
.hero-badges li + li::before { content: '/'; color: var(--rule); margin: 0 12px; }
.hero-badges i { display: none; }

/* ---------- Recorder ---------- */
.recorder-section {
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--ink);
    margin: 8px 0 24px;
}
.recorder-container { display: grid; grid-template-columns: 1.65fr 1fr; }
.preview-area { background: var(--ink); padding: 20px 20px 16px; color: #e9e4d8; }
.preview-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1d1c1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* viewfinder corner brackets */
.preview-container::after {
    content: '';
    position: absolute;
    inset: 14px;
    pointer-events: none;
    opacity: 0.6;
    background:
        linear-gradient(#f4f1ea, #f4f1ea) top left / 22px 2px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) top left / 2px 22px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) top right / 22px 2px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) top right / 2px 22px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) bottom left / 22px 2px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) bottom left / 2px 22px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) bottom right / 22px 2px no-repeat,
        linear-gradient(#f4f1ea, #f4f1ea) bottom right / 2px 22px no-repeat;
}
.preview-placeholder { text-align: center; padding: 20px; font-family: var(--mono); font-size: 0.85rem; color: #9b968b; }
.preview-placeholder i { font-size: 1.8rem; color: #57534c; margin-bottom: 12px; }
.preview-placeholder p { margin: 2px 0; }
#previewVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none; z-index: 1; }

.timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: #f4f1ea;
}
.rec-label { font-size: 0.75rem; letter-spacing: 0.12em; color: #8d887e; border: 1px solid #45423c; padding: 2px 6px; border-radius: 2px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #57534c; display: inline-block; }
.is-recording .rec-dot { background: var(--red); animation: blink 1s steps(2, start) infinite; }
.is-recording .rec-label { color: #fff; border-color: var(--red); background: var(--red); }
.is-paused .rec-dot { background: #e0a42b; }
.is-paused .rec-label { color: #e0a42b; border-color: #e0a42b; }
.rec-size { font-size: 0.9rem; color: #b5afa3; letter-spacing: 0.02em; }
#statusMessage { font-family: var(--mono); font-size: 0.78rem; color: #b5afa3; margin-top: 6px; min-height: 1.3em; }
#statusMessage[data-error="true"] { color: #ff8f84; }

.recorder-controls-area { padding: 24px; border-left: 1.5px solid var(--ink); }
.recorder-controls { display: flex; flex-direction: column; gap: 14px; }
.rec-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.08s;
}
.rec-btn:active:not(:disabled) { transform: translateY(1px); }
.rec-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.start-btn { background: var(--red); border-color: var(--red); color: #fff; font-size: 1.05rem; padding: 15px 18px; }
.start-btn:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); }
.pause-btn:hover:not(:disabled), .stop-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.download-btn { background: var(--ink); color: var(--paper); }
.download-btn:hover:not(:disabled) { background: #000; }
.rec-btn-row { display: flex; gap: 10px; }

.control-group { border-top: 1px solid var(--rule); padding-top: 16px; }
.h3-like {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; }
.checkbox-item input { width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; }
.checkbox-item label { font-size: 0.95rem; cursor: pointer; }
.option-hint { font-size: 0.78rem; color: var(--muted); margin: -6px 0 0 27px; }
.quality-select {
    width: 100%;
    padding: 11px 12px;
    font-family: var(--sans);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
}
.file-info { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); min-height: 1.2em; }

/* File Size: three-way segmented choice under Video Quality */
.size-choice { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.size-legend { padding: 0; margin-bottom: 8px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.segmented { display: flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented label { flex: 1; text-align: center; padding: 9px 6px; font-size: 0.88rem; cursor: pointer; white-space: nowrap; user-select: none; transition: background 0.15s, color 0.15s; }
.segmented label + input + label { border-left: 1px solid var(--rule); }
.segmented label:hover { background: rgba(0, 0, 0, 0.05); }
.segmented input:checked + label { background: var(--ink); color: var(--paper); font-weight: 600; }
.segmented input:focus-visible + label { outline: 2px solid var(--red); outline-offset: -3px; }
.segmented input:disabled + label { cursor: not-allowed; opacity: 0.55; }
.segmented input:disabled:checked + label { opacity: 0.8; }
.size-estimate { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- Home sections ---------- */
.how-it-works, .features, .why-choose { padding: 80px 0; border-top: 1px solid var(--rule); }
.how-it-works { border-top: 0; padding-top: 56px; }
.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; max-width: 20ch; }
.section-title > p { color: var(--muted); margin-top: 10px; max-width: 56ch; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--red);
    margin-bottom: 18px;
}
.step-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-2); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card { border-top: 1px solid var(--rule); padding-top: 20px; }
.feature-icon { margin-bottom: 14px; }
.feature-icon i { font-size: 1.3rem; color: var(--red); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
.benefit { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.benefit-icon {
    flex: 0 0 38px;
    height: 38px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefit-icon i { font-size: 0.95rem; }
.benefit-content h3 { font-size: 1.2rem; margin-bottom: 4px; }
.benefit-content p { color: var(--ink-2); }

.stats { background: var(--ink); color: #e9e4d8; padding: 80px 0; }
.stats .section-title h2 { color: var(--paper); }
.stats .section-title p { color: #a8a294; }
.stats-container { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #34322e; }
.stat-box { padding: 26px 20px 0; border-left: 1px solid #34322e; }
.stat-box:first-child { border-left: 0; padding-left: 0; }
.stat-number { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--paper); margin-bottom: 12px; }
.stat-box:first-child .stat-number { color: var(--red); }
.stat-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: #a8a294; }
.home-faq-link { margin-top: 44px; color: #a8a294; }
.home-faq-link a { color: var(--paper); }

/* ---------- Inner pages ---------- */
.page-content { padding-top: 56px; padding-bottom: 80px; }
.page-content .container { padding: 0; } /* nested container on some pages */
.page-content .section-title > h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}
.page-content .section-title > p:first-of-type {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 60ch;
    margin-top: 14px;
    padding-bottom: 28px;
    border-bottom: 1.5px solid var(--ink);
    margin-bottom: 40px;
}
.page-content .section-title { margin-bottom: 0; }
.page-content .recorder-section { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; margin: 0; }

.about-content { display: grid; grid-template-columns: 1fr; gap: 48px; }
.about-content:has(.about-text) { grid-template-columns: 1.3fr 1fr; align-items: start; }
.content-card { max-width: 760px; }

.page-content p, .content-card p { color: var(--ink-2); line-height: 1.75; margin-bottom: 1em; }
.page-content h2 { font-size: 1.6rem; letter-spacing: -0.025em; margin: 44px 0 12px; }
.page-content .content-card > h2:first-child,
.about-text > h2:first-child,
.mission-values > h2:first-child,
.contact-information > h2:first-child { margin-top: 0; }
.page-content h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; margin: 28px 0 8px; letter-spacing: 0; }
.page-content ul, .page-content ol { margin: 0 0 1.2em 1.3em; color: var(--ink-2); }
.page-content li { margin-bottom: 0.45em; line-height: 1.7; }
.page-content li::marker { color: var(--red); }

.table-container { overflow-x: auto; margin: 16px 0 26px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th {
    text-align: left;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1.5px solid var(--ink);
}
td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }

.effective-date { border-left: 3px solid var(--red); padding: 2px 0 2px 14px; margin-bottom: 28px; }
.effective-date p { font-family: var(--mono); font-size: 0.85rem; margin: 0; color: var(--muted); }
.contact-info, .info-box, .highlight-box, .tip-box, .license-box, .copyright-notice {
    background: var(--card);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--ink);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 26px 0;
}
.contact-info h2, .info-box h2, .license-box h3, .tip-box h3 { margin-top: 0 !important; font-size: 1.2rem; }
.contact-info p:last-child, .info-box p:last-child, .highlight-box p:last-child, .tip-box p:last-child,
.license-box p:last-child, .copyright-notice p:last-child, .warning-box p:last-child { margin-bottom: 0; }
.warning-box { background: var(--red-soft); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 14px 20px; margin: 22px 0; }
.mit-license-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--paper);
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.policy-link { color: inherit; }

/* About */
.about-text h2, .mission-values h2 { font-size: 1.6rem; margin-bottom: 14px; }
.mission-values { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.mission-values ul { list-style: none; margin: 0; }
.mission-values li { position: relative; padding-left: 26px; margin-bottom: 14px; }
.mission-values li::before { content: '—'; position: absolute; left: 0; color: var(--red); }

/* FAQ */
.faq-section { max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    cursor: pointer;
}
.faq-question::after { content: '+'; font-family: var(--mono); font-size: 1.4rem; font-weight: 400; color: var(--red); flex-shrink: 0; }
.faq-question[aria-expanded="true"]::after { content: '\2212'; }
.faq-question:hover { color: var(--red-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.show { max-height: 600px; }
.faq-answer p { padding-bottom: 20px; margin: 0; max-width: 68ch; }

/* Contact */
.contact-container { max-width: 760px; }
.contact-details { margin-top: 20px; }
.contact-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.contact-icon {
    flex: 0 0 42px;
    height: 42px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-text h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
}
.contact-text p { margin: 0 0 2px; }
.contact-text p:first-of-type { font-size: 1.1rem; color: var(--ink); }

/* ---------- Blog listing ---------- */
.blog-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 36px; }
.blog-post { display: flex; flex-direction: column; }
.post-image { aspect-ratio: 3 / 2; overflow: hidden; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper-2); }
.post-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.4s ease; }
.blog-post:hover .post-image img { transform: scale(1.03); }
.post-content { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.post-content h2 { font-size: 1.45rem; line-height: 1.18; margin: 0 0 10px !important; letter-spacing: -0.025em; }
.post-content p { color: var(--muted); font-size: 0.98rem; }
.read-more {
    align-self: flex-start;
    margin-top: auto;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1.5px solid var(--red);
    padding-bottom: 2px;
}
.read-more i { font-size: 0.7rem; margin-left: 4px; }

/* ---------- Blog article ---------- */
.breadcrumb { padding-top: 28px; }
.breadcrumb-content { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.breadcrumb-content a { color: var(--muted); }
.breadcrumb-content i { font-size: 0.65rem; }
.breadcrumb-content span { color: var(--ink); }
.blog-content { max-width: 860px; margin: 24px auto 80px; }
.featured-image { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.featured-image img { width: 100%; height: auto; max-height: 540px; object-fit: contain; margin: 0 auto; }
.blog-detail-content { max-width: 700px; margin: 0 auto; padding-top: 44px; }
.blog-detail-content h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 28px; }
.blog-detail-content p, .blog-detail-content li { font-size: 1.08rem; line-height: 1.78; color: var(--ink-2); }
.blog-detail-content p { margin-bottom: 1.1em; }
.blog-detail-content h2 { font-size: 1.7rem; margin: 52px 0 14px; }
.blog-detail-content h3 { font-size: 1.55rem; letter-spacing: -0.025em; margin: 52px 0 14px; }
.blog-detail-content h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 26px 0 8px; }
.blog-detail-content h5 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 56px 0 12px; }
.blog-detail-content ul, .blog-detail-content ol { margin: 0 0 1.3em 1.3em; }
.blog-detail-content li { margin-bottom: 0.5em; }
.blog-detail-content li::marker { color: var(--red); }
.blog-detail-content a { color: var(--ink); font-weight: 500; }
.tip-box h3 { font-family: var(--sans); font-size: 1rem; }
.tip-box i { color: var(--red); }
.hastage { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.hastage li { font-family: var(--mono); font-size: 0.78rem !important; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px; padding: 3px 9px; margin: 0 !important; }
.hastage li::marker { content: ''; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #cfc9bc; padding: 64px 0 28px; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-column h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8f897d;
    margin-bottom: 16px;
}
.footer-column:first-child h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--paper); }
.footer-column p { font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #e9e4d8; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #ff7a6e; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2c2a27; font-family: var(--mono); font-size: 0.75rem; color: #8f897d; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .recorder-container { grid-template-columns: 1fr; }
    .recorder-controls-area { border-left: 0; border-top: 1.5px solid var(--ink); }
    .steps-grid, .features-grid { grid-template-columns: 1fr; gap: 28px; }
    .benefits { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .stat-box:nth-child(3) { border-left: 0; padding-left: 0; }
    .about-content:has(.about-text) { grid-template-columns: 1fr; }
    .blog-posts { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .header-container { flex-wrap: wrap; row-gap: 6px; }
    nav ul { gap: 18px; }
    nav a { font-size: 0.9rem; }
    .logo { font-size: 1.2rem; }
    .hero-top { padding: 40px 0 24px; }
    .recorder-section { box-shadow: 5px 5px 0 var(--ink); }
    .preview-area { padding: 14px 14px 12px; }
    .recorder-controls-area { padding: 18px; }
    .rec-btn-row { flex-direction: row; }
    .how-it-works, .features, .why-choose, .stats { padding: 56px 0; }
    .page-content { padding-top: 36px; padding-bottom: 56px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
    .blog-detail-content p, .blog-detail-content li { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* hero: headline left, copy right (desktop) */
@media (min-width: 901px) {
    .hero-top .container {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        column-gap: 56px;
        align-items: end;
    }
    .hero-top .hero-eyebrow { grid-column: 1 / -1; justify-self: start; }
    .hero-top h1 { grid-column: 1; grid-row: 2 / span 2; }
    .hero-top .hero-sub { grid-column: 2; grid-row: 2; margin-top: 0; }
    .hero-top .hero-badges { grid-column: 2; grid-row: 3; margin-top: 18px; align-self: start; }
}

.page-content .faq-section { border-top: 0; }
.page-content .section-title > h1 { letter-spacing: -0.032em; }
.hero-top h1 { letter-spacing: -0.04em; }

/* ---------- Recorder polish (v4) ---------- */
/* Solid header: nothing shows through while scrolling */
header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 100;
}

/* Card: soft shadow instead of the hard offset block */
.recorder-section {
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04), 0 28px 50px -30px rgba(20, 20, 20, 0.5);
}

/* Left panel: preview fills the full height, status sits in a strip at the bottom */
.preview-area {
    display: flex;
    flex-direction: column;
    padding: 18px;
}
.preview-container {
    flex: 1;
    aspect-ratio: auto;
    min-height: 320px;
    border-radius: 4px;
}
.timer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #2c2a27;
    font-size: 1.25rem;
}
#statusMessage { margin-top: 4px; }

/* Right panel */
.recorder-controls-area { background: var(--card); padding: 22px 24px; }
.recorder-controls { gap: 12px; }
.control-group { padding-top: 14px; }

/* Buttons: lighter disabled states */
.rec-btn:disabled { opacity: 1; cursor: not-allowed; }
.pause-btn:disabled, .stop-btn:disabled {
    color: #b3ad9f;
    border-color: var(--rule);
    background: transparent;
}
.download-btn:disabled {
    background: transparent;
    color: #a39d90;
    border: 1.5px dashed var(--rule);
}
.download-btn:not(:disabled) {
    background: #1f7a4d;
    border-color: #1f7a4d;
    color: #fff;
}
.download-btn:not(:disabled):hover { background: #17603c; border-color: #17603c; }
.start-btn:disabled { background: #e9a19c; border-color: #e9a19c; color: #fff; }

@media (max-width: 900px) {
    .preview-container { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
    .recorder-section { box-shadow: 0 20px 40px -28px rgba(20, 20, 20, 0.5); }
}

/* ---------- Blog improvements (v5) ---------- */
.post-meta-line {
    font-family: var(--mono);
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted) !important;
    margin: 0 0 8px !important;
}
.blog-detail-content h1 + .post-meta-line { margin: -14px 0 30px !important; }
.post-image-link { display: block; height: 100%; }
.post-content h2 a { text-decoration: none; color: var(--ink); }
.post-content h2 a:hover { color: var(--red-dark); }
.blog-post:hover .post-content h2 a { text-decoration: underline; text-decoration-color: var(--red); }

.article-cta {
    margin: 56px 0 0;
    padding: 28px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
}
.article-cta-kicker {
    font-family: var(--mono);
    font-size: 0.72rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff7a6e !important;
    margin: 0 0 8px !important;
}
.article-cta-title {
    font-family: var(--display);
    font-size: 1.5rem !important;
    font-weight: 700;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    color: var(--paper) !important;
    margin: 0 0 20px !important;
    max-width: 26ch;
}
.blog-detail-content a.article-cta-btn {
    display: inline-flex;
    width: auto;
    color: #fff;
    text-decoration: none;
}
.related-posts { margin-top: 48px; border-top: 1.5px solid var(--ink); }
.related-title {
    font-family: var(--mono);
    font-size: 0.72rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted) !important;
    margin: 16px 0 4px !important;
}
.related-posts ul { list-style: none; margin: 0 !important; }
.related-posts li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    margin: 0 !important;
}
.related-posts li::marker { content: ''; }
.related-posts a {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
}
.related-posts a:hover { color: var(--red-dark); text-decoration: underline; }
.related-posts span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
    .related-posts li { flex-direction: column; gap: 4px; }
    .article-cta { padding: 22px; }
}
/* related posts live in a <nav>: undo the header nav flex layout */
.related-posts ul { display: block; gap: 0; }

/* ---------- Homepage v6 ---------- */
/* headings: no awkward early line break */
.section-title h2 { max-width: none; }

/* "The short version": light band, clearly separate from the black footer */
.stats { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--rule); }
.stats .section-title h2 { color: var(--ink); }
.stats .section-title p { color: var(--muted); }
.stats-container { border-top: 1.5px solid var(--ink); }
.stat-box { border-left: 1px solid var(--rule); }
.stat-number { color: var(--ink); }
.stat-label { color: var(--muted); }

/* Quick FAQ on the homepage */
.home-faq { padding: 80px 0 96px; }
.home-faq .faq-section { border-top: 1.5px solid var(--ink); }
.home-faq .section-title a { color: var(--ink); }
@media (max-width: 640px) { .home-faq { padding: 56px 0 64px; } }

/* ---------- MP4 export button ---------- */
.mp4-btn { background: transparent; color: var(--ink); }
.mp4-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.mp4-btn:disabled { color: #b3ad9f; border-color: var(--rule); border-style: dashed; }
.mp4-btn.is-busy {
    background: repeating-linear-gradient(-45deg, var(--paper-2) 0 10px, var(--card) 10px 20px);
    background-size: 200% 100%;
    animation: mp4-busy 1.2s linear infinite;
    font-family: var(--mono);
    font-size: 0.85rem;
}
@keyframes mp4-busy { to { background-position: 28px 0; } }
.mp4-hint { margin: -4px 0 0 0; }

[hidden] { display: none !important; }


/* Recording options: microphone + cursor side by side */
.checkbox-group { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
.checkbox-group > .checkbox-item:first-child,
.checkbox-group > .option-hint { flex-basis: 100%; }
.option-hint.is-error { color: var(--red); }
.checkbox-group > .checkbox-item { white-space: nowrap; }

/* Video quality sits at the very top of the controls (no divider line above it) */
.control-group.quality-group { border-top: 0; padding-top: 0; }

/* Start / Pause+Stop slot, placed after the settings */
.rec-action { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 2px; }
.rec-action .start-btn { padding: 16px 18px; font-size: 1.08rem; }
.rec-action .rec-btn-row .rec-btn { padding: 15px 18px; }
