:root {
    --bg: #b9c9b4;
    --ink: #14241c;
    --muted: #3f5748;
    --accent: #2a7d45;
    --accent-2: #1c6f62;
    --line: rgba(20, 36, 28, 0.16);
    --font: "Ubuntu", sans-serif;
    --shadow: 0 18px 40px rgba(20, 36, 28, 0.12);
    --surface: rgba(236, 242, 230, 0.78);
}

* { box-sizing: border-box; }

.site-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 420px at 12% 18%, rgba(62, 110, 72, 0.08), transparent 55%),
        radial-gradient(800px 380px at 90% 70%, rgba(40, 90, 78, 0.06), transparent 50%);
    position: relative;
}

.site-nav,
.hero,
.features-marquee,
.showcase,
.how,
.split,
.cta-band,
.blog-page,
.foot-wave,
.site-foot,
.auth-card,
.ad-slot,
.page-shell {
    position: relative;
    z-index: 1;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
}

.site-nav-over {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.page-shell {
    width: min(100% - 2rem, 960px);
    margin: 0 auto;
    padding: 0 0 1rem;
}

.site-brand,
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.site-brand span {
    display: grid;
    gap: 0.1rem;
    line-height: 1.05;
}

.site-brand strong {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.site-brand small {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(238, 247, 241, 0.82);
}

.site-nav-over .site-brand {
    color: #f7fbf8;
}

.site-nav-over .btn-ghost {
    color: #f7fbf8;
    background: rgba(8, 20, 15, 0.28);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

.site-brand svg,
.brand-mark {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.site-nav-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--line);
    cursor: pointer;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    transition: transform 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(47, 154, 85, 0.45); }

.btn-primary {
    background: linear-gradient(135deg, #3db86a, var(--accent-2));
    color: #fff;
    border-color: transparent;
}

.btn-ghost { background: rgba(255, 255, 255, 0.55); }
.btn-lg { padding: 0.85rem 1.35rem; }

.hero-scene {
    position: relative;
    min-height: min(92vh, 860px);
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transform: scale(1.02);
    animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 20, 15, 0.35) 0%, rgba(8, 20, 15, 0.2) 35%, rgba(8, 20, 15, 0.72) 72%, rgba(8, 20, 15, 0.2) 100%),
        linear-gradient(90deg, rgba(8, 20, 15, 0.55) 0%, rgba(8, 20, 15, 0.15) 55%, transparent 100%);
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    height: clamp(72px, 12vw, 120px);
    color: var(--bg);
    background: transparent;
    pointer-events: none;
    animation: wave-rise 900ms ease both;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: var(--bg);
}

@keyframes wave-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: min(100% - 2rem, 720px);
    margin: 0 auto 0 clamp(1rem, 4vw, 2.5rem);
    justify-self: start;
    padding: 7.5rem 0 4.5rem;
    animation: hero-rise 700ms ease both;
}

.hero-brand {
    margin: 0 0 0.35rem;
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
    margin: 0 0 0.85rem;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #9be15d;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 16ch;
    line-height: 1.2;
    color: #f3faf5;
}

.hero-lede {
    margin: 1rem 0 0;
    color: rgba(238, 247, 241, 0.86);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 40ch;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.6rem;
}

.hero-scene .btn-ghost {
    color: #f7fbf8;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-scene .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes hero-drift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-1.2%, 1%, 0); }
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.features-marquee {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 1.35rem 0 1.75rem;
    border-radius: 18px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.features-track {
    display: flex;
    width: max-content;
    animation: features-marquee 48s linear infinite;
}

.features-marquee:hover .features-track {
    animation-play-state: paused;
}

.features-set {
    display: flex;
    gap: 0.9rem;
    flex-shrink: 0;
    padding-right: 0.9rem;
}

.features-set article {
    width: min(280px, 72vw);
    flex: 0 0 auto;
    padding: 1.15rem 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.features-set h2 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
}

.features-set p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

@keyframes features-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.section-head {
    margin: 0 0 1.35rem;
    width: 100%;
    max-width: none;
}

.section-head h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
}

.section-head > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 1.02rem;
    max-width: 62ch;
}


.showcase {
    padding: 0.5rem 0 2.25rem;
}

.shot {
    margin: 0;
    animation: shot-in 700ms ease both;
}

.shot-lead {
    margin-bottom: 1rem;
}

.shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #0b0f0e;
}

.shot figcaption {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.75rem;
}

.shot figcaption strong {
    font-size: 1.05rem;
}

.shot figcaption span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.95rem;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.shot-grid .shot:nth-child(2) {
    animation-delay: 120ms;
}

@keyframes shot-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.how {
    padding: 0.5rem 0 2rem;
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.how-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.how-steps li:last-child {
    border-bottom: 1px solid var(--line);
}

.how-num {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(47, 154, 85, 0.14);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.how-steps h3 {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
}

.how-steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.5rem 0 1.75rem;
    border-top: 1px solid var(--line);
}

.split-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
}

.split-flip .split-body {
    grid-template-columns: 0.8fr 1.2fr;
}

.split-flip .split-body > p {
    order: 2;
}

.split h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    letter-spacing: -0.02em;
}

.split-body > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.split-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.split-list li {
    padding-left: 1.1rem;
    position: relative;
    color: var(--ink);
    line-height: 1.4;
}

.split-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
}

.cta-band {
    margin: 0.5rem 0 2rem;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--line);
    text-align: left;
}

.cta-band h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    letter-spacing: -0.02em;
}

.cta-band > p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.5;
}

.site-foot {
    --foot-bg: #1d2f25;
    --foot-ink: #e8f0ea;
    --foot-muted: rgba(232, 240, 234, 0.62);
    --foot-line: rgba(232, 240, 234, 0.14);
    margin: 1.25rem 0 0;
    padding: 0 0 2.5rem;
    color: var(--foot-muted);
    text-align: left;
    font-size: 0.9rem;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.foot-wave {
    display: block;
    width: 100%;
    height: clamp(80px, 14vw, 140px);
    margin: 0;
    line-height: 0;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.foot-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.foot-wave path {
    fill: var(--foot-bg);
}

.site-foot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(80px, 14vw, 140px);
    bottom: 0;
    background: var(--foot-bg);
    z-index: 0;
}

.foot-runner {
    position: absolute;
    right: clamp(0.25rem, 3vw, 2.5rem);
    bottom: 0;
    width: min(180px, 28vw);
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    background: transparent;
    opacity: 0.92;
}

@media (max-width: 720px) {
    .foot-runner {
        width: min(120px, 34vw);
        opacity: 0.75;
    }
    .foot-inner {
        padding-right: min(34vw, 140px);
    }
}

.foot-inner {
    position: relative;
    z-index: 2;
    padding-top: 0.35rem;
    padding-right: min(200px, 26vw);
}

.foot-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem 1.5rem;
}

.foot-brand {
    display: grid;
    gap: 0.15rem;
    line-height: 1.15;
    min-width: 0;
}

.foot-brand strong {
    color: var(--foot-ink);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.foot-brand span {
    color: var(--foot-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.foot-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem 0.15rem;
}

.foot-nav a,
.foot-nav button {
    color: var(--foot-ink);
    text-decoration: none;
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    background: none;
    border: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.foot-nav a:hover,
.foot-nav button:hover {
    color: #b7e88a;
    background: rgba(255, 255, 255, 0.06);
}

.foot-nav form {
    display: contents;
}

.foot-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.foot-nav-account {
    gap: 0.1rem;
}

.foot-nav-account a,
.foot-nav-account button {
    color: var(--foot-muted);
    font-size: 0.86rem;
}

.foot-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    color: var(--foot-ink);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--foot-line);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.foot-social:hover {
    color: #fff;
    background: #1877f2;
    border-color: #1877f2;
    transform: translateY(-1px);
}

.foot-social svg {
    display: block;
}

.foot-meta {
    margin-top: 1.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--foot-line);
}

.foot-copy {
    margin: 0;
    color: var(--foot-muted);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.site-foot p {
    margin: 0;
}

@media (max-width: 720px) {
    .foot-bar {
        grid-template-columns: 1fr auto;
        gap: 0.85rem 1rem;
    }
    .foot-nav {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 560px) {
    .foot-bar {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .foot-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .foot-nav a,
    .foot-nav button {
        padding-left: 0;
        padding-right: 0.85rem;
    }
    .foot-nav a:hover,
    .foot-nav button:hover {
        background: transparent;
    }
}

.auth-body {
    --ink: #eef7f1;
    --muted: #9bb5a8;
    --accent: #9be15d;
    --accent-2: #2bbbad;
    --line: rgba(238, 247, 241, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color: var(--ink);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(1000px 600px at 15% -10%, rgba(155, 225, 93, 0.18), transparent 55%),
        radial-gradient(900px 500px at 100% 80%, rgba(43, 187, 173, 0.14), transparent 50%),
        linear-gradient(165deg, #08140f 0%, #0f241c 50%, #0b1a14 100%);
}

.auth-card {
    width: min(100%, 420px);
    padding: 1.5rem 1.4rem 1.6rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(18, 42, 33, 0.78);
    box-shadow: var(--shadow);
}

.auth-card-wide {
    width: min(100%, 560px);
}

.auth-body .btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
}

.auth-body .btn-primary {
    color: #08140f;
}

.auth-brand { margin-bottom: 1rem; }
.auth-card h1 { margin: 0 0 0.35rem; font-size: 1.7rem; }
.auth-lede { margin: 0 0 1rem; color: var(--muted); }

.auth-form {
    display: grid;
    gap: 0.8rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.auth-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-form input {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--ink);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    font: inherit;
}

.auth-form input[type="checkbox"] {
    appearance: auto;
    width: auto;
    padding: 0;
}

.auth-terms {
    margin-top: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 0.65rem;
}

.auth-terms h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent);
}

.auth-terms p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--ink) !important;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-check input {
    margin-top: 0.2rem;
}

.auth-error {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.35);
    color: #ffc9c9;
}

.auth-success {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(155, 225, 93, 0.12);
    border: 1px solid rgba(155, 225, 93, 0.35);
    color: #d7f7b8;
}

.user-menu-site {
    position: relative;
    z-index: 50;
}

.user-menu-site .user-menu-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    z-index: 1;
}

.user-menu-site .user-menu-trigger::-webkit-details-marker { display: none; }

.user-menu-site .user-menu-trigger::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.85;
    flex-shrink: 0;
}

.user-menu-site.is-open .user-menu-trigger::after {
    transform: rotate(-135deg) translateY(-1px);
}

.user-menu-site .user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 12rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #162621;
    box-shadow: var(--shadow);
    z-index: 60;
    pointer-events: auto;
}

.user-menu-site .user-menu-panel[hidden] {
    display: none !important;
}

.user-menu-site .user-menu-panel form {
    display: contents;
}

.user-menu-site .user-menu-panel a,
.user-menu-site .user-menu-panel button {
    display: block;
    width: 100%;
    text-align: left;
    color: #eef7f1;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.25;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.user-menu-site .user-menu-panel a:hover,
.user-menu-site .user-menu-panel button:hover {
    background: rgba(155, 225, 93, 0.16);
    color: #9be15d;
}

@media (max-width: 560px) {
    .auth-grid { grid-template-columns: 1fr; }
}

.auth-switch {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-switch a { color: var(--accent-2); }

.auth-switch .inline-form { display: inline; }

.auth-switch .link-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--accent-2);
    text-decoration: underline;
    cursor: pointer;
}

/* Ad slots */
.ad-slot {
    margin: 0.75rem clamp(1rem, 3vw, 2.5rem);
}

.ad-placeholder {
    min-height: 90px;
    display: grid;
    place-content: center;
    gap: 0.2rem;
    text-align: center;
    border: 1px dashed rgba(155, 225, 93, 0.35);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--muted);
    padding: 1rem;
}

.ad-placeholder span {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.ad-placeholder small { font-size: 0.78rem; }

.ad-slot-sidebar .ad-placeholder { min-height: 250px; }
.ad-slot-header .ad-placeholder,
.ad-slot-footer .ad-placeholder { min-height: 90px; }

.app-layout {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(160px, 200px);
    grid-template-areas:
        "ring search ads"
        "ring diary ads"
        "total total ads";
}

.ad-rail {
    grid-area: ads;
}

.ad-rail .ad-slot {
    margin: 0;
    position: sticky;
    top: 1rem;
}

@media (max-width: 1100px) {
    .app-layout {
        grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
        grid-template-areas:
            "ring search"
            "ring diary"
            "total total"
            "ads ads";
    }
    .ad-rail .ad-slot { position: static; }
}

@media (max-width: 960px) {
    .shot-grid { grid-template-columns: 1fr; }
    .split-body,
    .split-flip .split-body { grid-template-columns: 1fr; }
    .split-flip .split-body > p { order: 0; }
    .hero-copy {
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 2.5rem;
    }
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "ring"
            "search"
            "diary"
            "total"
            "ads";
    }
}

/* Blog */
.blog-page {
    padding: 1.5rem 0 2rem;
}

.blog-shell {
    padding-bottom: 2rem;
}

.blog-hero {
    margin: 0 0 1.75rem;
    max-width: 38rem;
}

.blog-kicker {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.blog-lede {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 34rem;
}

.blog-list {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.blog-card {
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.blog-card.is-featured {
    border-color: rgba(42, 125, 69, 0.35);
    background:
        linear-gradient(135deg, rgba(42, 125, 69, 0.08), transparent 55%),
        var(--surface);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.blog-card-meta time {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(42, 125, 69, 0.14);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.blog-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.blog-post {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
}

.blog-post-head {
    margin: 0 0 1.25rem;
    max-width: 40rem;
}

.blog-post-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.blog-prose {
    max-width: 40rem;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.7;
}

.blog-prose p {
    margin: 0 0 1.1rem;
}

.blog-prose h3 {
    margin: 1.6rem 0 0.65rem;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.blog-prose ul {
    margin: 0 0 1.25rem;
    padding: 0 0 0 1.15rem;
}

.blog-prose li {
    margin: 0 0 0.45rem;
}

.blog-prose a {
    color: var(--accent-2);
    font-weight: 600;
}

.blog-signoff {
    margin-top: 1.5rem !important;
    color: var(--muted);
    font-weight: 600;
}

.blog-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.import-help {
    margin: 1.35rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
}

.import-help h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: var(--ink);
}

.import-help p,
.import-help li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.import-help p { margin: 0 0 0.65rem; }
.import-help ul { margin: 0 0 0.75rem; padding-left: 1.15rem; }
.import-help li { margin: 0 0 0.35rem; }
.import-help code {
    font-size: 0.84em;
    color: #d7f7b8;
}

.import-format { margin-bottom: 0 !important; }

.import-notes {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-media img,
    .hero-wave,
    .features-track,
    .shot {
        animation: none;
    }
    .features-marquee {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}
