/* Knit-Knot — cozy puzzle landing (logo: maroon · sage · mustard on cream knit)
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --kk-cream: #faf6ef;
    --kk-cream-deep: #f0e8dc;
    --kk-ink: #3a2a32;
    --kk-muted: #6f6168;
    --kk-maroon: #802b40;
    --kk-maroon-soft: rgba(128, 43, 64, 0.12);
    --kk-sage: #769c75;
    --kk-sage-soft: rgba(118, 156, 117, 0.18);
    --kk-mustard: #d4a045;
    --kk-mustard-soft: rgba(212, 160, 69, 0.2);
    --kk-lavender: #9d84b3;
    --kk-ocean: #4a7cb8;
    --kk-gold-warm: #c9943c;
    --kk-radius: 16px;
    --kk-radius-lg: 24px;
    --kk-max: 840px;
    --kk-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --kk-font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --kk-shadow: 0 8px 32px rgba(58, 42, 50, 0.08);
    --kk-shadow-hover: 0 14px 40px rgba(58, 42, 50, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 108px;
    }
}

body.kk {
    font-family: var(--kk-font-body);
    background: var(--kk-cream);
    color: var(--kk-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* subtle knit texture */
.kk-knit-bg {
    background-color: var(--kk-cream);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 5px,
            rgba(128, 43, 64, 0.028) 5px,
            rgba(128, 43, 64, 0.028) 6px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 5px,
            rgba(118, 156, 117, 0.04) 5px,
            rgba(118, 156, 117, 0.04) 6px
        );
}

/* ── Header ── */
.kk-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 246, 239, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(128, 43, 64, 0.12);
    box-shadow: 0 4px 24px rgba(58, 42, 50, 0.06);
}

.kk-nav {
    max-width: var(--kk-max);
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 3vw, 1.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.kk-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--kk-ink);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.kk-logo img:first-child {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(128, 43, 64, 0.2);
}

.kk-logo-mg {
    height: 22px;
    width: auto;
    border-radius: 5px;
    opacity: 0.88;
}

.kk-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.kk-nav-links a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--kk-muted);
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.kk-nav-links a:hover {
    color: var(--kk-maroon);
    border-color: rgba(128, 43, 64, 0.25);
    background: var(--kk-maroon-soft);
}

/* ── Hero ── */
.kk-hero {
    position: relative;
    padding: clamp(3.5rem, 9vw, 5.5rem) 1rem clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
}

.kk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 80% 15%, rgba(212, 160, 69, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 45% at 10% 80%, rgba(118, 156, 117, 0.2), transparent 50%),
        radial-gradient(ellipse 45% 40% at 60% 90%, rgba(128, 43, 64, 0.08), transparent 45%);
    pointer-events: none;
}

.kk-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--kk-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}

@media (max-width: 880px) {
    .kk-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.kk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kk-maroon);
    background: #fff;
    border: 1px solid rgba(128, 43, 64, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    box-shadow: var(--kk-shadow);
}

.kk-title {
    font-family: var(--kk-font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--kk-ink);
    margin-bottom: 0.35rem;
}

.kk-subtitle {
    font-family: var(--kk-font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 600;
    font-style: italic;
    color: var(--kk-sage);
    margin-bottom: 1rem;
}

.kk-lede {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--kk-muted);
    max-width: 28rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

@media (max-width: 880px) {
    .kk-lede {
        margin-left: auto;
        margin-right: auto;
    }
}

.kk-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 880px) {
    .kk-stat-row {
        justify-content: center;
    }
}

.kk-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid rgba(118, 156, 117, 0.35);
    color: var(--kk-ink);
    box-shadow: 0 2px 12px rgba(58, 42, 50, 0.06);
}

.kk-chip i {
    color: var(--kk-mustard);
}

.kk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

@media (max-width: 880px) {
    .kk-actions {
        justify-content: center;
    }
}

.kk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.kk-btn--primary {
    color: #fff;
    background: linear-gradient(145deg, var(--kk-maroon), #a03852);
    box-shadow: 0 6px 22px rgba(128, 43, 64, 0.35);
}

.kk-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(128, 43, 64, 0.42);
}

.kk-btn--ghost {
    color: var(--kk-sage);
    background: #fff;
    border: 2px dashed rgba(118, 156, 117, 0.45);
}

.kk-btn--ghost:hover {
    border-color: var(--kk-sage);
    background: var(--kk-sage-soft);
}

.kk-hero-art {
    display: flex;
    justify-content: center;
}

.kk-logo-xl {
    width: min(260px, 70vw);
    height: auto;
    border-radius: 28px;
    box-shadow: var(--kk-shadow-hover);
    animation: kk-bob 5s ease-in-out infinite;
}

@keyframes kk-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Sections ── */
.kk-section {
    padding: clamp(3rem, 6vw, 4.25rem) 1rem;
}

.kk-section--cream {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(128, 43, 64, 0.08);
    border-bottom: 1px solid rgba(128, 43, 64, 0.08);
}

.kk-container {
    max-width: var(--kk-max);
    margin: 0 auto;
}

.kk-section-head {
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.kk-eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kk-mustard);
    margin-bottom: 0.4rem;
}

.kk-section-head h2 {
    font-family: var(--kk-font-display);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--kk-ink);
    margin-bottom: 0.45rem;
}

.kk-section-head p {
    font-size: 0.92rem;
    color: var(--kk-muted);
    max-width: 34rem;
    margin: 0 auto;
}

/* Color palette grid */
.kk-colors {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 900px) {
    .kk-colors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .kk-colors {
        grid-template-columns: 1fr;
    }
}

.kk-color-card {
    background: #fff;
    border-radius: var(--kk-radius);
    padding: 1.15rem 1rem;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: var(--kk-shadow);
    transition: transform 0.18s, box-shadow 0.18s;
}

.kk-color-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kk-shadow-hover);
}

.kk-color-card--ocean {
    border-color: rgba(74, 124, 184, 0.45);
}

.kk-color-card--sage {
    border-color: rgba(118, 156, 117, 0.5);
}

.kk-color-card--gold {
    border-color: rgba(212, 160, 69, 0.55);
}

.kk-color-card--maroon {
    border-color: rgba(128, 43, 64, 0.45);
}

.kk-color-card--lavender {
    border-color: rgba(157, 132, 179, 0.45);
}

.kk-yarn-swatch {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.12);
}

.kk-yarn-swatch--ocean {
    background: linear-gradient(145deg, #5a8fd4, #3d6aa8);
}

.kk-yarn-swatch--sage {
    background: linear-gradient(145deg, #8fb88e, #5e8a5d);
}

.kk-yarn-swatch--gold {
    background: linear-gradient(145deg, #e8b84d, #c9943c);
}

.kk-yarn-swatch--maroon {
    background: linear-gradient(145deg, #a03852, #802b40);
}

.kk-yarn-swatch--lavender {
    background: linear-gradient(145deg, #b8a0cc, #8f749f);
}

.kk-color-card h3 {
    font-family: var(--kk-font-display);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.kk-color-card p {
    font-size: 0.8rem;
    color: var(--kk-muted);
    line-height: 1.45;
}

/* Journey timeline */
.kk-journey {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kk-stage {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem 1.25rem;
    background: #fff;
    border-radius: var(--kk-radius);
    border-left: 4px solid var(--kk-mustard);
    box-shadow: var(--kk-shadow);
}

@media (max-width: 600px) {
    .kk-stage {
        grid-template-columns: 1fr;
    }
}

.kk-stage-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(145deg, var(--kk-sage), #5a7d59);
}

.kk-stage h3 {
    font-family: var(--kk-font-display);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.kk-stage-range {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kk-maroon);
    margin-bottom: 0.45rem;
}

.kk-stage p {
    font-size: 0.88rem;
    color: var(--kk-muted);
    margin-bottom: 0.65rem;
    line-height: 1.55;
}

.kk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.kk-tags span {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--kk-cream-deep);
    color: var(--kk-ink);
}

/* Benefits */
.kk-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .kk-perks {
        grid-template-columns: 1fr;
    }
}

.kk-perk {
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem 1.15rem;
    background: #fff;
    border-radius: var(--kk-radius);
    border: 1px solid rgba(118, 156, 117, 0.2);
    box-shadow: var(--kk-shadow);
    align-items: flex-start;
}

.kk-perk i {
    font-size: 1.35rem;
    color: var(--kk-maroon);
    margin-top: 0.1rem;
}

.kk-perk h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.kk-perk p {
    font-size: 0.84rem;
    color: var(--kk-muted);
    line-height: 1.5;
}

/* Bottom CTA */
.kk-cta {
    text-align: center;
    padding: clamp(2.75rem, 5vw, 3.5rem) 1rem;
    background: linear-gradient(165deg, rgba(128, 43, 64, 0.09) 0%, rgba(118, 156, 117, 0.12) 100%);
    border-top: 1px solid rgba(128, 43, 64, 0.12);
}

.kk-cta h2 {
    font-family: var(--kk-font-display);
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    margin-bottom: 0.45rem;
}

.kk-cta > .kk-container > p {
    font-size: 0.9rem;
    color: var(--kk-muted);
    margin-bottom: 1.25rem;
}

/* Footer */
.kk-footer {
    padding: 2rem 1rem;
    background: var(--kk-ink);
    color: rgba(255, 255, 255, 0.75);
}

.kk-footer-inner {
    max-width: var(--kk-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.kk-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 1.1rem;
}

.kk-footer-links a {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.kk-footer-links a:hover {
    color: var(--kk-mustard);
}

.kk-footer-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.76rem;
    opacity: 0.85;
}

.kk-footer-copy img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

#download {
    scroll-margin-top: 96px;
}

@media (max-width: 768px) {
    #download {
        scroll-margin-top: 108px;
    }
}

/* ── Privacy (aligned with landing) ── */
.kk-privacy-hero {
    position: relative;
    padding: clamp(4rem, 9vw, 5.25rem) 1rem clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    overflow: hidden;
}

.kk-privacy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 160, 69, 0.15), transparent 55%),
        radial-gradient(ellipse 40% 40% at 100% 100%, rgba(118, 156, 117, 0.12), transparent 50%);
    pointer-events: none;
}

.kk-privacy-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
}

.kk-privacy-title {
    font-family: var(--kk-font-display);
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: var(--kk-ink);
    margin-bottom: 0.4rem;
}

.kk-privacy-meta {
    font-size: 0.82rem;
    color: var(--kk-muted);
}

.kk-privacy-main {
    padding: clamp(2rem, 4vw, 2.75rem) 1rem clamp(3rem, 6vw, 4rem);
}

.kk-privacy-prose {
    max-width: 600px;
    margin: 0 auto;
}

.kk-privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--kk-maroon);
    text-decoration: none;
    margin-bottom: 2rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(128, 43, 64, 0.22);
    box-shadow: var(--kk-shadow);
    transition: transform 0.15s;
}

.kk-privacy-back:hover {
    transform: translateY(-1px);
}

.kk-privacy-prose h2 {
    font-family: var(--kk-font-display);
    font-size: 1.05rem;
    margin: 2rem 0 0.55rem;
    color: var(--kk-ink);
}

.kk-privacy-prose h2:first-of-type {
    margin-top: 0;
}

.kk-privacy-prose h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--kk-sage);
    margin: 1.25rem 0 0.4rem;
}

.kk-privacy-prose p,
.kk-privacy-prose li {
    font-size: 0.9rem;
    color: var(--kk-muted);
    line-height: 1.7;
}

.kk-privacy-prose p {
    margin-bottom: 0.85rem;
}

.kk-privacy-prose ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.2rem;
}

.kk-privacy-prose strong {
    color: var(--kk-ink);
}

.kk-privacy-prose a {
    color: var(--kk-maroon);
    font-weight: 700;
    text-decoration: none;
}

.kk-privacy-prose a:hover {
    text-decoration: underline;
}

.kk-privacy-updated {
    margin-top: 1.75rem;
    font-size: 0.78rem;
    color: var(--kk-muted);
}
