/* ===========================================================
   "KNOW"-inspired theme — bold negative-tracking type, purple
   accent, kicker labels, rounded hover-lift cards, alive feel.
   Swap --purple / fonts once Walter locks in final branding.
   =========================================================== */
:root {
    --ink: #111114;
    --muted: #77777f;
    --line: #e9e9ee;
    --purple: #6558f5;
    --purple-dark: #4f42e0;
    --lav: #efedff;
    --bg: #ffffff;
    --surface: #f7f7fa;
    --radius: 22px;
    --radius-sm: 14px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 76px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

header.site-header .container {
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--ink);
    text-decoration: none;
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}
nav a:hover { color: var(--purple); }

.cart-link {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink) !important;
}
.cart-badge {
    background: var(--purple);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 4px;
}

/* ---------- Kicker ---------- */
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 850;
    color: var(--purple);
    margin-bottom: 18px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 120px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-decor {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    border: 1px solid var(--line);
    border-radius: 50%;
    z-index: 0;
}
.hero-decor::before, .hero-decor::after {
    content: "";
    position: absolute;
    inset: 55px;
    border: 1px dashed #e2e1e8;
    border-radius: 50%;
}
.hero-decor::after { inset: 110px; }

.hero-inner { position: relative; z-index: 2; max-width: 620px; }

.hero img.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(101,88,245,0.18);
    border: 3px solid #fff;
}

.hero h1 {
    font-size: clamp(48px, 7.5vw, 88px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: var(--ink);
    margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--purple); }

.hero p.tagline {
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 32px;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.gray { background: var(--surface); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

section h2 {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.055em;
    color: var(--ink);
}

.section-head p { max-width: 380px; color: var(--muted); line-height: 1.7; font-size: 15px; }

.bio-text { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 680px; }

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: block;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(17,17,20,0.12);
}

.product-card .cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--lav);
    display: block;
}

.cover-generated {
    display: flex;
    align-items: flex-end;
    padding: 22px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
}
.cover-generated span { width: 100%; }

.product-card .info { padding: 14px 6px 6px; }
.product-card .title { font-weight: 750; font-size: 16px; margin-bottom: 8px; letter-spacing: -0.01em; }
.product-card .price { color: var(--purple); font-weight: 800; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 750;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn, .btn-dark { background: var(--ink); color: #fff; }
.btn:hover { opacity: 0.88; }

.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #eeeef2; opacity: 1; }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); opacity: 1; }

.btn-block { width: 100%; }

/* ---------- Product detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: start;
}
.product-detail img.cover-large {
    width: 100%;
    border-radius: var(--radius);
    background: var(--lav);
    box-shadow: 0 24px 60px rgba(17,17,20,0.14);
}
.cover-generated-large {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(17,17,20,0.14);
    font-size: 40px !important;
    padding: 32px !important;
}
.product-detail h1 {
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.98;
    color: var(--ink);
    margin-bottom: 14px;
}
.product-detail .price-tag {
    font-size: 28px;
    color: var(--purple);
    font-weight: 850;
    margin-bottom: 20px;
    display: block;
}

/* ---------- Cart & checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.cart-table td {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.cart-table img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; margin-right: 14px; vertical-align: middle; background: var(--lav); }
.cart-table .qty-input {
    width: 56px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}
.cart-table .remove-link { color: #e0405a; font-size: 13px; text-decoration: none; font-weight: 600; }

.cart-summary {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 380px;
    margin-left: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.cart-summary .total { font-size: 22px; font-weight: 850; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s var(--ease);
}
.form-field input:focus { outline: none; border-color: var(--purple); }

/* ---------- Contact ---------- */
.contact-links a {
    color: var(--purple);
    text-decoration: none;
    margin-right: 22px;
    font-size: 16px;
    font-weight: 600;
}
.contact-links a:hover { text-decoration: underline; }

/* ---------- Background decoration (alive feel) ---------- */
.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #dcdae8 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 60% at 70% 40%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.blob-purple { background: #a99bff; }
.blob-green { background: #b8e2c8; }

/* ---------- Expert / consultation cards ---------- */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.expert-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    background: #fff;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.expert-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(17,17,20,0.10); }
.expert-face {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--lav);
    color: var(--purple);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 30px;
    font-weight: 800;
}
.expert-card h3 { font-size: 18px; font-weight: 750; margin-bottom: 4px; letter-spacing: -0.02em; }
.expert-card p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* ---------- Footer ---------- */
footer.site-footer {
    background: #111114;
    color: #cfcfd6;
    padding: 64px 0 28px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 44px;
}
.footer-grid .logo { font-size: 20px; font-weight: 900; letter-spacing: -0.06em; color: #fff; margin-bottom: 12px; }
.footer-grid .logo em { font-style: normal; color: var(--purple); }
.footer-grid p { font-size: 13px; color: #9a9aa4; line-height: 1.6; max-width: 260px; }
.footer-col b { color: #fff; font-size: 13px; display: block; margin-bottom: 14px; }
.footer-col a { display: block; color: #9a9aa4; font-size: 13px; margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-copy { border-top: 1px solid #2a2a30; padding-top: 20px; color: #77777f; font-size: 11px; text-align: center; }

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.placeholder-note {
    background: #fff9e6;
    border: 1px dashed #e0b400;
    color: #7a5a00;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 24px;
}

.empty-state { color: var(--muted); font-size: 16px; padding: 40px 0; }

/* ---------- Reveal-on-scroll (alive feel, no heavy JS needed) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
    nav { gap: 12px; }
    nav a.nav-link { display: none; }
    .hero { padding: 70px 0 56px; }
    .hero-decor { display: none; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-summary { max-width: 100%; }
    .expert-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero h1 { font-size: 42px; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions .btn { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .cover-generated { font-size: 20px; padding: 14px; }
}

/* ---------- Filters & search (books page) ---------- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; max-width: 480px; }
.filter-search {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}
.filter-search:focus { outline: none; border-color: var(--purple); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.genre-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple);
    background: var(--lav);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}

/* ---------- Expert photos ---------- */
.expert-face-photo {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(17,17,20,0.12);
}
.expert-face-large { width: 160px; height: 160px; margin: 0; }
.price-unit { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ---------- Booking (hourly-range picker) ---------- */
.booking-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.booking-row .form-field { flex: 1; min-width: 160px; margin-bottom: 0; }
.form-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}
.time-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.time-chip span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.time-chip:hover span { border-color: var(--purple); color: var(--purple); }
.time-chip.selected span { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- Blog ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.blog-card {
    display: block;
    text-decoration: none;
    color: var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(17,17,20,0.10); }
.blog-card img, .blog-card-noimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--lav); }
.blog-card .info { padding: 18px 20px; }
.blog-card .title { font-weight: 750; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.blog-card .excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.blog-card .date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.comments-section { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-head { font-size: 14px; margin-bottom: 6px; }
.comment-head span { color: var(--muted); font-size: 12px; margin-left: 8px; }
.comment p { font-size: 15px; color: var(--ink); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.25s var(--ease);
}
.contact-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(17,17,20,0.08); }
.contact-icon { font-size: 22px; }
.contact-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-value { font-size: 15px; font-weight: 700; word-break: break-word; }

@media (max-width: 800px) {
    .expert-face-large { width: 120px; height: 120px; }
}

.cart-thumb-generated { display: inline-block; width: 48px; height: 64px; border-radius: 8px; margin-right: 14px; vertical-align: middle; }

.video-cover-wrap { position: relative; }
.video-play-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(17,17,20,0.75);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    padding-left: 4px;
}
.type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    position: absolute;
    top: 10px;
    left: 10px;
    background: #18181d;
    color: #fff;
}

.cart-suggestions { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.cart-suggestions .product-grid { margin-top: 20px; }

.comment-reply { margin-top: 12px; margin-left: 20px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-sm); }
.comment-reply .comment-head span { color: var(--purple); font-weight: 700; }
