/* ═══════════════════════════════════════════════════════════════════════════
   sk-page.css — the content-page layout: /about/, /security/, /faq/
   ───────────────────────────────────────────────────────────────────────────
   OWNS:      .sk-page and its children.
   REQUIRES:  sk-tokens.css, sk-buttons.css.
   NEVER:     `!important`; never a selector matching .legal-page or any
              landing.css section class.

   These pages are read, not skimmed, so the measure is capped near 68
   characters and the type is a step larger than the marketing sections. The
   top padding derives from --nav-height, the same variable the heroes use, so
   the fixed navbar never covers the first heading.
   ═══════════════════════════════════════════════════════════════════════════ */

.sk-page {
    padding-top: calc(var(--nav-height) + 56px);
    padding-bottom: 72px;
}

.sk-page__wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ── Page head ─────────────────────────────────────────────────────────────── */
.sk-page__eyebrow {
    display: block;
    margin: 0 0 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.sk-page__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.sk-page__lede {
    max-width: 62ch;
    margin: 0 0 44px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ── Inline links, anywhere on a content page ────────────────────────────────
   A bare <a> inside a paragraph on /about/, /security/ or /faq/ had no rule
   reaching it at all: it rendered in Bootstrap's default #0d6efd blue with a
   static underline, neither of which is a Skylor colour. Excludes .sk-btn and
   .sk-card, which are already links styled as something else entirely.

   Colour alone does not carry the "this is a link" signal (UI_STANDARDS
   never-colour-alone) — the underline moves to hover/focus instead of
   disappearing, so the distinction survives for anyone who can't see colour,
   just not as a resting-state line under every mid-sentence link. */
.sk-page a:not(.sk-btn):not(.sk-card) {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.sk-page a:not(.sk-btn):not(.sk-card):hover,
.sk-page a:not(.sk-btn):not(.sk-card):focus-visible {
    text-decoration: underline;
}

/* ── Prose ─────────────────────────────────────────────────────────────────── */
.sk-prose { max-width: 68ch; }

.sk-prose h2 {
    margin: 40px 0 14px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}
.sk-prose h2:first-child { margin-top: 0; }

.sk-prose p {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.sk-prose blockquote {
    margin: 0 0 20px;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--primary-light);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── "How it started", text with a face beside it ──────────────────────────── */
.sk-story {
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: start;
    gap: 40px;
}
.sk-story__text { max-width: 60ch; }
/* Same rules as .sk-prose, kept separate because .sk-prose is max-width: 68ch
   on its own and this column needs a narrower measure to leave room for the
   photo without the two fighting over one class's width. */
.sk-story__text h2 {
    margin: 0 0 14px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}
.sk-story__text blockquote {
    margin: 0 0 20px;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--primary-light);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.sk-story__text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.sk-story__photo {
    width: 100%;
    /* height: auto is required, not decorative — the <img> carries a
       width/height attribute pair for its real 1024x1536 size (so the layout
       doesn't jump while it loads), and a definite height attribute makes the
       aspect-ratio rule below get ignored entirely: aspect-ratio only takes
       over when one dimension is auto. Without this the image rendered at
       its full 1536px intrinsic height inside a 220px-wide column — a
       tightly cropped sliver of forehead instead of the portrait. */
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-color);
}

@media (max-width: 767px) {
    /* Text first: the account is the point, the face confirms it rather than
       opening it. A 140px cap keeps the photo from pushing the quote below
       the fold on a phone. */
    .sk-story { grid-template-columns: 1fr; gap: 20px; }
    .sk-story__photo { max-width: 140px; margin: 0 auto; }
}

/* ── Section heading inside a page ─────────────────────────────────────────── */
.sk-page__section { margin-top: 56px; }

.sk-page__section-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.sk-page__section-sub {
    max-width: 62ch;
    margin: 0 0 24px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ── Card grid ─────────────────────────────────────────────────────────────── */
.sk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.sk-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    /* .sk-card is also used as <a class="sk-card"> (the "What we build" grid on
       /about/). An anchor underlines its own text by default, including block
       children's text, which is why the title and body both showed underlined —
       reset here covers both usages since a <div> never had one to begin with. */
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.sk-card:hover,
a.sk-card:focus-visible {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.sk-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: var(--sk-btn-radius);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1rem;
}

.sk-card__title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text-main);
}

.sk-card__body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sk-card__detail {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ── Fact row ──────────────────────────────────────────────────────────────── */
.sk-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0 0 40px;
    padding: 0;
}

.sk-facts__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.sk-facts__item > i { color: var(--primary); font-size: 0.875rem; }

/* ── The honest-limits panel on /security/ ─────────────────────────────────
   Deliberately not styled as a warning. It is a statement of fact, and dressing
   it in amber would make an honest disclosure look like an incident notice. */
.sk-panel {
    margin-top: 20px;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.sk-panel__list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.sk-panel__list li {
    position: relative;
    padding: 0 0 0 26px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.sk-panel__list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-light);
}

.sk-panel__closing {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────
   <details>/<summary>: open/close with zero JavaScript, keyboard-operable for
   free, and the answer text stays in the DOM for crawlers. */
.sk-faq { border-top: 1px solid var(--border-light); }

.sk-faq__item { border-bottom: 1px solid var(--border-light); }

.sk-faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 2px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
}
.sk-faq__q::-webkit-details-marker { display: none; }
.sk-faq__q:hover { color: var(--primary); }
.sk-faq__q:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.sk-faq__chev {
    flex: none;
    margin-top: 3px;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: transform var(--sk-transition);
}
.sk-faq__item[open] .sk-faq__chev { transform: rotate(180deg); }

.sk-faq__a {
    margin: 0;
    padding: 0 40px 20px 2px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Closing CTA ───────────────────────────────────────────────────────────── */
.sk-page__cta {
    margin-top: 64px;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    text-align: center;
}

.sk-page__cta h2 {
    margin: 0 0 8px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.sk-page__cta p {
    max-width: 52ch;
    margin: 0 auto 20px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.sk-page__cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ── Founder credit on the home page ───────────────────────────────────────
   What is left where "The Backstory" section used to be. One line, a face, and
   a link to /about/ where the full account now lives. */
.sk-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-body);
}

.sk-credit__photo {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}

.sk-credit__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.sk-credit__text a { font-weight: 600; white-space: nowrap; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sk-page { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 52px; }
    .sk-page__lede { margin-bottom: 32px; font-size: 1rem; }
    .sk-page__section { margin-top: 40px; }
    .sk-cards { grid-template-columns: 1fr; gap: 12px; }
    .sk-card { padding: 18px; }
    .sk-facts { gap: 10px 18px; }
    .sk-page__cta { margin-top: 44px; padding: 24px 18px; }
    .sk-page__cta-row { flex-direction: column; align-items: stretch; }
    .sk-credit { flex-direction: column; text-align: center; gap: 12px; padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .sk-faq__chev { transition: none; }
}
