/* Solobiz.ai — Phase 1 page-template layer.
   Loaded after style.css (tokens) + layout.css (kit grammar).
   Scope: full-bleed reset for the two marketing templates, reveal hardening,
   and the few one-off components not already in layout.css. */

/* ============================================================
   REVEAL — wire the stagger delay (missing from child style.css)
   + a JS-fail safety net (the vanilla scroll-reveal has none).
   If scroll-reveal.js never runs, content still fades in by 2.6s
   instead of staying invisible forever.
   ============================================================ */
.reveal { transition-delay: var(--reveal-delay, 0ms); }
.reveal { animation: sb-reveal-safety 1ms linear 2.6s forwards; }
@keyframes sb-reveal-safety { to { opacity: 1; transform: none; } }
.reveal.is-in-view { animation: none; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ============================================================
   FULL-BLEED MARKETING TEMPLATES
   GeneratePress 3.6.1, separate-containers. These templates render
   sections straight into .site-main (no .inside-article box), so we
   only need to drop the content container's width/padding and let the
   .alt/.deep bands break out to the viewport edges.
   Scoped to the two body classes — never touches header/footer/other pages.
   ============================================================ */
/* Applied to every bespoke /page-templates/ page + single posts via the
   `sb-fullbleed` body class (added by a body_class filter in functions.php) —
   so all bespoke pages behave identically with no per-template CSS edits. */
.sb-fullbleed #content,
.sb-fullbleed .content-area,
.sb-fullbleed .site-main {
	max-width: none;
	width: auto;
	padding-left: 0;
	padding-right: 0;
}
/* The GP header is NOT sticky/fixed on this site (verified in the served CSS),
   so scoping overflow-x to these page bodies safely absorbs the scrollbar-width
   overflow the break-out creates — without establishing a scroll container that
   could break a sticky element. (Header stays centred via .inside-header;
   footer via .wrap — neither is touched here.) */
body.sb-fullbleed { overflow-x: hidden; }

/* colour bands run edge-to-edge regardless of the GP container width;
   their inner .wrap re-centres content to 1280, aligned with the cream sections. */
.sb-fullbleed .alt,
.sb-fullbleed .deep {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ============================================================
   DEEP-INK "heavy moment" line (home worldview / membership 不作为成本)
   ============================================================ */
.deep-quote {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(34px, 4.6vw, 60px);
	line-height: 1.3;
	letter-spacing: 0;            /* CJK: never negative tracking */
	max-width: 20em;
	margin: 0 auto;
	color: var(--color-ink-inverse);
}

/* ============================================================
   TRUST EVIDENCE — 2×3 hairline grid (home, PRD 模块4A, placeholder)
   ============================================================ */
.evidence {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: var(--hairline);
	margin-top: var(--space-7);
}
.evidence__cell {
	display: block;
	padding: var(--space-6);
	border-bottom: var(--hairline);
	border-right: var(--hairline);
	text-decoration: none;
	color: inherit;
	transition: padding-left var(--dur-short) var(--ease-out-quart);
}
.evidence__cell:nth-child(3n) { border-right: 0; }
.evidence__cell:hover { padding-left: calc(var(--space-6) + 8px); }
.evidence__title { font-family: var(--font-display); font-size: 24px; color: var(--color-ink); margin-bottom: 10px; line-height: 1.2; }
.evidence__desc { font-size: 14px; color: var(--color-ink-mid); line-height: 1.7; margin: 0 0 16px; }
.evidence__link { font-size: 13px; color: var(--color-accent); letter-spacing: 0; }   /* CJK link: no positive tracking */
@media (max-width: 900px) {
	.evidence { grid-template-columns: 1fr; }
	.evidence__cell { border-right: 0; }
}

/* ============================================================
   7-DAY GUARANTEE — quiet hairline list (membership, PRD §11.13A)
   ============================================================ */
.guarantee {
	list-style: none;
	padding: 0;
	margin: var(--space-6) 0 0;
	max-width: 46em;
}
.guarantee li {
	padding: 13px 0;
	border-top: var(--hairline);
	font-size: 15px;
	color: var(--color-ink-mid);
	line-height: 1.6;
}

/* ============================================================
   EDITORIAL ROW VARIANTS — learn entries (trailing link) /
   product Volumes (label + trailing price). Base .ed-row is 56px 1fr.
   ============================================================ */
.ed-row--link { grid-template-columns: 56px 1fr auto; }
.ed-row--vol  { grid-template-columns: 120px 1fr auto; }
.ed-row__link { font-size: 14px; color: var(--color-accent); letter-spacing: 0; align-self: center; white-space: nowrap; }
.ed-row__price { font-family: var(--font-display); font-size: 22px; color: var(--color-ink-mid); align-self: center; white-space: nowrap; }
@media (max-width: 900px) {
	.ed-row--link, .ed-row--vol { grid-template-columns: 1fr; gap: 10px; }
	.ed-row__link, .ed-row__price { margin-top: 6px; }
}

/* Centered serif aphorism on cream / alt ground (e.g. /products closing) */
.section-quote {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.3;
	letter-spacing: 0;
	max-width: 22em;
	margin: 0 auto var(--space-6);
	color: var(--color-ink);
}

/* ============================================================
   WOOCOMMERCE MY ACCOUNT — quiet-luxury "delivery center"
   (account page only — never the cart/checkout)
   ============================================================ */
.acct-head { margin-bottom: var(--space-7); }
/* Two-column (nav | content) only when the nav exists (logged in) — :has keeps
   the logged-out login form full-width, not squeezed into a column. */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--space-8);
	align-items: start;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: var(--hairline); }
.woocommerce-MyAccount-navigation li { border-bottom: var(--hairline); }
.woocommerce-MyAccount-navigation li a {
	display: block; padding: 15px 0; font-size: 14px; letter-spacing: 0.04em;
	color: var(--color-ink-mid); text-decoration: none;
	transition: color var(--dur-hover) var(--ease-out-cubic), padding-left var(--dur-short) var(--ease-out-quart);
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a { color: var(--color-ink); }
.woocommerce-MyAccount-navigation li.is-active a { box-shadow: inset 2px 0 0 var(--color-accent); padding-left: 12px; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { color: var(--color-ink-mid); }
/* logged-out login form: centred, calm */
.woocommerce-account .woocommerce-form-login { max-width: 440px; border: 0; padding: 0; }
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme { font-size: 13px; color: var(--color-ink-soft); }
@media (max-width: 900px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ============================================================
   WOOCOMMERCE BLOCKS — cart / checkout quiet-luxury recolor.
   CSS-ONLY: square corners, hairlines, ink CTAs, no shadow/radius. Does NOT touch
   block structure, JS, or the Stripe payment iframe (left entirely to Stripe).
   Prices kept in Inter for legibility (§11 conversion clarity).
   ============================================================ */
/* strip rounded / shadowed chrome from block components */
.wc-block-components-panel,
.wc-block-cart-item__wrap,
.wc-block-components-order-summary,
.wc-block-checkout__main,
.wc-block-components-text-input input,
.wc-block-components-text-input,
.wc-block-components-select .wc-block-components-select__select,
.wc-block-components-quantity-selector,
.wc-block-components-address-card {
	border-radius: 0 !important;
	box-shadow: none !important;
}
/* fields → square + hairline; focus → ink */
.wc-block-components-text-input input,
.wc-block-components-select .wc-block-components-select__select {
	border: 1px solid var(--color-rule) !important;
	border-radius: 0 !important;
	background: transparent !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-select .wc-block-components-select__select:focus {
	border-color: var(--color-ink) !important;
	outline: none !important;
	box-shadow: none !important;
}
/* primary CTAs (proceed to checkout / place order) → ink fill, square, wide caps */
.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--color-ink) !important;
	color: var(--color-bg) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	font-weight: 500;
}
.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--color-ink-mid) !important; }
/* secondary / text buttons + accents → hairline ink / copper */
.wc-block-components-button.outlined { border: 1px solid var(--color-ink) !important; border-radius: 0 !important; color: var(--color-ink) !important; box-shadow: none !important; }
.wc-block-components-button.text,
.wc-block-components-totals-coupon-link,
.wc-block-cart__sidebar a { color: var(--color-accent) !important; }
/* totals / line separators → hairline */
.wc-block-components-totals-item,
.wc-block-components-totals-wrapper,
.wc-block-cart-item__wrap { border-color: var(--color-rule) !important; }
.wc-block-components-totals-footer-item { border-top: var(--hairline) !important; }
.wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__value { color: var(--color-ink); }
