/* Shared stylesheet for NannaLife marketing subpages.
   Tokens, fonts, and component styling mirror public/landing-page/index.html.
   index.html keeps its own inline styles; this file serves every other page. */

:root {
    color-scheme: dark;
    --bg: #121213;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text-1: #ececee;
    --text-2: #a4a4ad;
    --text-3: #6e6e78;
    --brand: #fb3747;
    --ok: #64c431;
    --warn: #f6a713;
    --crit: #ff5e6b;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-display: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-width: 300px;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before,
body::after {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.04);
    content: "";
    pointer-events: none;
}

body::before { left: 7.5vw; }
body::after { right: 7.5vw; }

main { position: relative; z-index: 1; }

::selection { background: rgba(251, 55, 71, 0.32); color: var(--text-1); }

a { color: inherit; text-decoration: none; }
button { border: 0; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
    border-radius: 4px;
}

h1, h2, h3, h4 { font-weight: 500; }

.mono { font-family: var(--font-mono); font-weight: 500; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.kicker::before {
    width: 18px;
    height: 1px;
    background: var(--brand);
    content: "";
}

.container {
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: fixed;
    top: -48px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--text-1);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    transition: top 200ms var(--ease);
}

.skip-link:focus-visible { top: 12px; }

/* ---------- Nav ---------- */

.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    transition: background-color 320ms var(--ease), border-color 320ms var(--ease);
}

.nav.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(18, 18, 19, 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.brand img { width: 26px; height: 26px; object-fit: contain; }

.nav-links {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-3);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 200ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--text-1); }

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--text-1);
    color: #101012;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), background-color 260ms var(--ease);
}

.button .arrow { transition: transform 260ms var(--ease); }

.button:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.button:hover .arrow { transform: translateX(3px); }
.button:active { transform: translateY(0) scale(0.98); }

.button-small { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 0.78rem; }

/* ---------- Page hero ---------- */

.page-hero { padding: 168px 0 0; }

.page-hero h1 {
    max-width: 22ch;
    margin: 26px 0 0;
    font-size: clamp(2.25rem, 5.2vw, 3.9rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.page-hero .lede {
    max-width: 56ch;
    margin: 26px 0 0;
    color: var(--text-2);
    font-size: 1.06rem;
    line-height: 1.65;
}

.page-hero .page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.crumbs a { transition: color 200ms var(--ease); }
.crumbs a:hover { color: var(--text-1); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

.page-meta {
    margin: 28px 0 0;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section { padding: 130px 0; position: relative; }

.section-tight { padding: 0 0 130px; }

.section-prose { padding: 84px 0 140px; }

.section-head { max-width: 720px; margin-bottom: 64px; }

.section-head h2 {
    margin: 22px 0 0;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-head .lede {
    max-width: 52ch;
    margin: 22px 0 0;
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.65;
}

.section-head h2:first-child { margin-top: 0; }

/* ---------- Prose ---------- */

.prose { max-width: 68ch; }

.prose > .answer {
    max-width: 62ch;
    margin: 0;
    color: var(--text-1);
    font-size: 1.14rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.prose h2 {
    margin: 76px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.prose h3 {
    margin: 46px 0 0;
    font-size: 1.14rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.prose h4 {
    margin: 34px 0 0;
    color: var(--text-1);
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.prose h2 + p, .prose h3 + p { margin-top: 18px; }

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

.prose ul, .prose ol { margin: 20px 0 0; padding-left: 22px; color: var(--text-2); }

.prose li { margin-top: 10px; line-height: 1.65; }
.prose li::marker { color: var(--text-3); }

.prose strong { color: var(--text-1); font-weight: 500; }

.prose a {
    color: var(--text-1);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
    transition: text-decoration-color 200ms var(--ease);
}

.prose a:hover { text-decoration-color: var(--brand); }

.prose code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 0.86em;
    color: var(--text-1);
}

.prose hr { margin: 64px 0 0; border: 0; border-top: 1px solid var(--line); }

.small { color: var(--text-3); font-size: 0.88rem; line-height: 1.6; }

/* ---------- Tables ---------- */

.table-wrap {
    margin: 34px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-x: auto;
}

table { width: 100%; min-width: 580px; border-collapse: collapse; }

caption {
    padding: 18px 20px 0;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
}

th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    font-size: 0.93rem;
    line-height: 1.6;
    vertical-align: top;
}

tr:last-child td { border-bottom: 0; }
tbody th { color: var(--text-1); font-family: var(--font-display); font-size: 0.94rem; letter-spacing: -0.01em; text-transform: none; white-space: normal; }

th.is-brand, td.is-brand { background: rgba(255, 255, 255, 0.025); color: var(--text-1); }
th.is-brand { color: var(--text-1); }

td .yes { color: var(--ok); }
td .no { color: var(--text-3); }

/* ---------- Hairline grids ---------- */

.grid-hairline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
    overflow: hidden;
}

.grid-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 34px 30px 36px;
    background: var(--bg);
    transition: background-color 320ms var(--ease);
}

.grid-card:hover { background: rgba(255, 255, 255, 0.022); }

.grid-card h3 { margin: 0; font-size: 1.14rem; letter-spacing: -0.025em; }
.grid-card p { margin: 0; color: var(--text-2); font-size: 0.92rem; line-height: 1.62; }

.grid-card .card-foot {
    margin-top: auto;
    padding-top: 16px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 260ms var(--ease);
}

.grid-card:hover .card-foot { color: var(--brand); }

/* ---------- Split columns ---------- */

.split-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    margin-top: 40px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
    overflow: hidden;
}

.split-col { padding: 32px 30px 36px; background: var(--bg); }

.split-col h3 {
    margin: 0 0 20px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.split-col.is-pick h3 { color: var(--ok); }

.split-col ul { margin: 0; padding: 0; list-style: none; }

.split-col li {
    position: relative;
    margin-top: 13px;
    padding-left: 20px;
    color: var(--text-2);
    font-size: 0.93rem;
    line-height: 1.62;
}

.split-col li::before {
    position: absolute;
    top: 0.66em;
    left: 0;
    width: 7px;
    height: 1px;
    background: var(--text-3);
    content: "";
}

.split-col.is-pick li::before { background: var(--ok); }

/* ---------- Definition list ---------- */

.list-plain {
    margin: 34px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.list-plain li {
    display: flex;
    gap: 28px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    font-size: 0.94rem;
    line-height: 1.62;
}

.list-plain strong { flex: 0 0 220px; color: var(--text-1); font-weight: 500; }

/* ---------- Callout ---------- */

.callout {
    display: flex;
    gap: 16px;
    margin: 46px 0 0;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--brand);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.015);
}

.callout p { margin: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.62; }
.callout strong { color: var(--text-1); font-weight: 500; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 26px 4px;
    background: transparent;
    color: var(--text-1);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
}

.faq-icon::before,
.faq-icon::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 1.5px;
    background: var(--text-3);
    content: "";
    transition: transform 320ms var(--ease), background-color 320ms var(--ease);
}

.faq-icon::after { transform: rotate(90deg); }

.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: var(--brand); }

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 420ms var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner { overflow: hidden; }

.faq-a p {
    max-width: 58ch;
    margin: 0;
    padding: 0 4px 28px;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-a p + p { padding-top: 0; margin-top: -14px; }

.faq-a a {
    color: var(--text-1);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

.faq-a a:hover { text-decoration-color: var(--brand); }

/* ---------- Closing ---------- */

.closing { padding: 40px 0 170px; text-align: center; }

.closing h1,
.closing h2 {
    margin: 26px 0 0;
    font-size: clamp(2.4rem, 5.6vw, 4.2rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.closing .lede {
    max-width: 36ch;
    margin: 22px auto 0;
    color: var(--text-2);
    font-size: 1.02rem;
}

.closing .button { margin-top: 42px; }

/* ---------- Footer ---------- */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding-right: 36px;
    padding-left: 36px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

.footer a {
    color: var(--text-3);
    font-size: 0.78rem;
    transition: color 200ms var(--ease);
}

.footer a:hover { color: var(--text-1); }

.footer-copy { color: var(--text-3); font-size: 0.78rem; }

/* ---------- Reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .section { padding: 100px 0; }
    .section-tight { padding-bottom: 100px; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-inner > .button { margin-left: auto; }

    .page-hero { padding: 140px 0 0; }
    .page-hero h1 { max-width: none; }

    .section { padding: 84px 0; }
    .section-tight { padding-bottom: 84px; }
    .section-head { margin-bottom: 48px; }

    .prose h2 { margin-top: 58px; }

    .list-plain li { flex-direction: column; gap: 6px; }
    .list-plain strong { flex-basis: auto; }

    .closing { padding: 24px 0 120px; }

    .footer-inner { gap: 12px; padding: 18px 0; }
    .footer .brand { gap: 0; }
    .footer .brand span { display: none; }
    .footer-links { gap: 14px; margin-left: auto; }
    .footer-copy { display: none; }
}

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

    [data-reveal] { opacity: 1; transform: none; transition: none; }

    *, *::before, *::after {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}
