/* Public client-site pages: extra pages, blog, shop, cart.
   Sits on top of client_page_base.html's tokens (--ink, --ink-soft,
   --line, --accent, --font-heading). */
main.site-main { max-width: none; padding: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 64px 0; }
.sec + .sec { padding-top: 24px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; }
.sec-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; white-space: pre-line; }
.btn-site { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 0; cursor: pointer; font-family: var(--font-body); transition: transform .12s ease, box-shadow .12s ease; }
.btn-site:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-site.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-site[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.prose { color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; margin: 1.6em 0 .5em; letter-spacing: -0.01em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose p { margin: 0 0 1.1em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { color: var(--ink); background: #F7F8FA; }
.prose code { background: #F2F3F5; padding: 2px 5px; border-radius: 4px; font-size: .92em; }
.prose a { color: var(--accent); }

/* hero */
.s-hero { position: relative; padding: 96px 0 84px; text-align: center; background: #F7F8FA; overflow: hidden; }
.s-hero.has-img { color: #fff; background: #1F2430; }
.s-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.s-hero.has-img .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,26,.55), rgba(15,18,26,.7)); }
.s-hero .wrap { position: relative; max-width: 820px; }
.s-hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.s-hero.has-img .eyebrow { color: #fff; opacity: .85; }
.s-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.03em; margin: 0 0 18px; }
.s-hero p.sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); margin: 0 auto 28px; max-width: 640px; white-space: pre-line; }
.s-hero.has-img p.sub { color: rgba(255,255,255,.88); }

/* image + text */
.s-imgtext .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.s-imgtext.right .photo { order: 2; }
.s-imgtext .photo img { width: 100%; border-radius: 18px; display: block; aspect-ratio: 4/3; object-fit: cover; }
.s-imgtext h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; background: #fff; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 24px 50px -28px rgba(20,40,80,.35); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin: 0 0 6px; font-size: 19px; }
.plan .price { font-family: var(--font-heading); font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; margin: 8px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.plan .desc { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; align-content: start; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan .btn-site { width: 100%; }
.plan:not(.featured) .btn-site { background: var(--ink); }

/* cards / features */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card-s { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.card-s img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-s .body { padding: 22px; }
.card-s h3 { margin: 0 0 8px; font-size: 18px; }
.card-s p { margin: 0; color: var(--ink-soft); font-size: 15px; white-space: pre-line; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; white-space: pre-line; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quote { background: #F7F8FA; border-radius: 18px; padding: 26px; margin: 0; }
.quote blockquote { margin: 0 0 16px; font-size: 16px; color: var(--ink); white-space: pre-line; }
.quote figcaption { font-size: 14px; font-weight: 650; }
.quote figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }

/* stats */
.s-stats { background: var(--ink); color: #fff; }
.s-stats .sec-head h2 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.stats b { display: block; font-family: var(--font-heading); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.stats span { font-size: 13.5px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* cta */
.s-cta .box { background: var(--accent); color: #fff; border-radius: 24px; padding: 52px 32px; text-align: center; }
.s-cta h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; letter-spacing: -0.02em; }
.s-cta p { margin: 0 auto 24px; opacity: .9; max-width: 560px; white-space: pre-line; }
.s-cta .btn-site { background: #fff; color: var(--ink); }

/* contact form */
.form-s { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.form-s .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-s input, .form-s textarea, .field-s { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.form-s input:focus, .form-s textarea:focus { outline: none; border-color: var(--accent); }
.form-s textarea { min-height: 130px; resize: vertical; }
.form-s .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14.5px; text-align: center; }
.form-msg.err { color: #C0392B; }
.form-done { text-align: center; padding: 30px; background: #F0F9F4; border-radius: 16px; color: #17603A; font-weight: 600; }

/* video / gallery */
.video { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.caption { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 12px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gal figure { margin: 0; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.gal figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
hr.div { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.p-card { text-decoration: none; color: inherit; display: block; }
.p-card .img { aspect-ratio: 1; border-radius: 16px; background: #F2F3F5 center/cover no-repeat; margin-bottom: 12px; position: relative; overflow: hidden; }
.p-card .img .tag { position: absolute; top: 10px; left: 10px; background: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.p-card h3 { font-size: 16px; margin: 0 0 4px; font-family: var(--font-body); font-weight: 650; }
.p-card .pr { font-size: 15px; color: var(--ink); }
.p-card .pr s { color: var(--ink-soft); margin-left: 6px; font-size: 13.5px; }
.p-card:hover h3 { color: var(--accent); }

/* product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 48px 0 72px; }
.pdp .main-img { aspect-ratio: 1; border-radius: 20px; background: #F2F3F5 center/cover no-repeat; }
.pdp .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp .thumbs button { width: 68px; height: 68px; border-radius: 12px; border: 2px solid transparent; background: #F2F3F5 center/cover no-repeat; cursor: pointer; padding: 0; }
.pdp .thumbs button.on { border-color: var(--accent); }
.pdp h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 12px; }
.pdp .price { font-size: 24px; font-weight: 700; margin: 0 0 22px; }
.pdp .price s { color: var(--ink-soft); font-weight: 500; font-size: 18px; margin-left: 8px; }
.pdp label.lbl { display: block; font-size: 13px; font-weight: 650; margin: 0 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.opts button { padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 14.5px; cursor: pointer; }
.opts button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.opts button:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty input { width: 36px; text-align: center; border: 0; font: inherit; font-size: 16px; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn-site { flex: 1; }
.pdp .meta { font-size: 13.5px; color: var(--ink-soft); display: grid; gap: 6px; margin-top: 18px; }

/* cart */
.cart-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: none; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.cart-float.on { display: inline-flex; }
.cart-float .n { background: var(--accent); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 6px; }
.cart-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 76px; height: 76px; border-radius: 12px; background: #F2F3F5 center/cover no-repeat; }
.cart-line .nm { font-weight: 650; }
.cart-line .vr { font-size: 13.5px; color: var(--ink-soft); }
.cart-line .rm { background: none; border: 0; color: var(--ink-soft); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; margin-top: 4px; }
.cart-line .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.cart-line .qty { height: 36px; }
.cart-sum { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding: 20px 0 6px; }
.cart-note { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }
.toast-s { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; z-index: 60; pointer-events: none; }
.toast-s.on { opacity: 1; transform: translateX(-50%); }

/* blog */
.blog-hero { padding: 64px 0 28px; text-align: center; }
.blog-hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; margin: 0 0 10px; }
.blog-hero p { color: var(--ink-soft); font-size: 17px; margin: 0 auto; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; }
.chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.chips a.on, .chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.feature-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 48px; }
.feature-post .img { height: 100%; min-height: 280px; background: #EEF1F5 center/cover no-repeat; }
.feature-post .body { padding: 32px 32px 32px 0; }
.feature-post h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 8px 0 10px; }
.cat-block { margin-bottom: 52px; }
.cat-block h2 { font-size: 22px; margin: 0 0 18px; display: flex; justify-content: space-between; align-items: baseline; }
.cat-block h2 a { font-size: 14px; font-weight: 600; text-decoration: none; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.post-card { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 18px 40px -24px rgba(20,30,50,.35); transform: translateY(-2px); }
.post-card .img { aspect-ratio: 16/9; background: #EEF1F5 center/cover no-repeat; }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 17.5px; line-height: 1.3; margin: 0; }
.post-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.meta-s { font-size: 13px; color: var(--ink-soft); margin-top: auto; }
.crumbs { font-size: 13.5px; color: var(--ink-soft); margin: 36px 0 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.post-head h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1.12; margin: 8px 0 14px; }
.post-head .lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 18px; }
.post-cover { width: 100%; border-radius: 20px; display: block; margin: 26px 0 36px; aspect-ratio: 16/8; object-fit: cover; }
.related { border-top: 1px solid var(--line); margin-top: 56px; padding: 44px 0 72px; }
.related h2 { font-size: 22px; margin: 0 0 20px; }
.preview-bar { position: sticky; top: 0; z-index: 99; background: #FEF3C7; color: #78350F; text-align: center; font-size: 13px; font-weight: 600; padding: 7px; }

@media (max-width: 760px) {
  .sec { padding: 48px 0; }
  .s-hero { padding: 72px 0 60px; }
  .s-imgtext .grid, .pdp, .feature-post { grid-template-columns: 1fr; gap: 24px; }
  .s-imgtext.right .photo { order: 0; }
  .feature-post .body { padding: 0 22px 26px; }
  .feature-post .img { min-height: 200px; }
  .form-s .row { grid-template-columns: 1fr; }
  .pdp { padding-top: 24px; }
  .cart-line { grid-template-columns: 60px 1fr; }
  .cart-line .thumb { width: 60px; height: 60px; }
  .cart-line .right { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}

/* video_list / youtube_channel / order_catalog sections (10-25) */
.vlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.vl-item { margin: 0; }
.vl-item figcaption { padding: 12px 2px 0; }
.vl-item h3 { margin: 0 0 6px; font-size: 18px; }
.vl-item p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.ocat .body { display: flex; flex-direction: column; gap: 8px; }
.ocat .ocat-price { font-weight: 600; color: var(--ink) !important; font-size: 17px !important; }
.ocat .ocat-add { margin-top: auto; align-self: flex-start; cursor: pointer; font: inherit; }
.ocat .ocat-add.added { opacity: .75; }
@media (max-width: 640px) { .vlist { grid-template-columns: 1fr; } }
