/* The Love Diary — public tools, account forms, products. Works standalone; picks up theme tokens when present. */
.tld-tool, .tld-auth, .tld-cards, .tld-products, .tld-pricing, .tld-newsletter {
	--_rose: var(--tld-rose, #b3264f);
	--_rose-dark: var(--tld-rose-dark, #8e1b3d);
	--_soft: var(--tld-rose-soft, #fbe9ee);
	--_ink: var(--tld-ink, #2a1520);
	--_muted: var(--tld-muted, #6f5a63);
	--_line: var(--tld-line, #efdfe4);
	--_serif: var(--tld-serif, Georgia, serif);
}
.tld-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tld-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--_rose, #b3264f); background: var(--_rose, #b3264f); color: #fff !important; font-weight: 600; text-decoration: none !important; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.tld-button:hover { background: var(--_rose-dark, #8e1b3d); border-color: var(--_rose-dark, #8e1b3d); }
.tld-button-ghost { background: transparent; color: var(--_rose, #b3264f) !important; }
.tld-button-ghost:hover { background: var(--_soft, #fbe9ee); }
.tld-button-block { width: 100%; }
.tld-button.is-disabled { opacity: .55; cursor: default; }
.tld-button:disabled { opacity: .6; }

.tld-tool { margin: 24px 0; }
.tld-tool-form label, .tld-auth label { display: block; font-weight: 600; margin-bottom: 6px; }
.tld-tool-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tld-tool-row > input, .tld-tool-row > select { flex: 1 1 200px; }
.tld-tool input, .tld-tool select, .tld-auth input:not([type=checkbox]), .tld-auth select, .tld-newsletter input[type=email] {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #dccbd1; border-radius: 12px; font: inherit; background: #fff; color: var(--_ink);
}
.tld-tool input:focus, .tld-tool select:focus, .tld-auth input:focus, .tld-auth select:focus, .tld-newsletter input:focus { border-color: var(--_rose); outline: 3px solid rgba(179, 38, 79, .15); }
.tld-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.tld-filters p { margin: 0; }
.tld-tool-result { margin-top: 20px; }
.tld-result-card { background: #fff; border: 1px solid var(--_line); border-radius: 18px; padding: 22px; box-shadow: 0 6px 24px rgba(42, 21, 32, .06); }
.tld-result-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--_muted); margin: 0 0 8px; }
.tld-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin: 8px 0 14px; }
.tld-result-grid div { background: var(--_soft); border-radius: 14px; padding: 14px 4px; }
.tld-result-grid strong { display: block; font: 600 2.2rem/1 var(--_serif); color: var(--_rose-dark); }
.tld-result-grid span { font-size: .85rem; color: var(--_muted); }
.tld-result-total { font-size: 1.1rem; }
.tld-result-list { padding-left: 1.1em; }
.tld-result-list li { margin: 4px 0; }
.tld-result-list span { color: var(--_muted); }
.tld-idea-text, .tld-q-text { font: 600 clamp(1.25rem, 3vw, 1.6rem)/1.35 var(--_serif); margin: 0 0 14px; }
.tld-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tld-chips span { background: var(--_soft); color: var(--_rose-dark); padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.tld-tool-cta { margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--_soft); text-align: center; }
.tld-tool-cta p { margin: 0 0 12px; }
.tld-alert { background: #fdecea; color: #8f1c13; border-radius: 12px; padding: 12px 14px; }
.tld-loading { color: var(--_muted); }

/* Auth */
.tld-auth { max-width: 480px; margin: 0 auto; }
.tld-auth-lede { font-size: 1.1rem; color: var(--_muted); }
.tld-auth-form p, .tld-auth-login p { margin: 0 0 16px; }
.tld-hint { font-weight: 400; color: var(--_muted); font-size: .9rem; }
.tld-auth .tld-check label, .tld-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.tld-auth input[type=checkbox], .tld-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--_rose); flex-shrink: 0; }
.tld-auth-alt { text-align: center; color: var(--_muted); font-size: .95rem; }
.tld-auth-login .login-submit input { width: 100%; min-height: 48px; border-radius: 999px; border: 0; background: var(--_rose); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; }
.tld-auth-login .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }

/* Cards */
.tld-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.tld-card-link { display: block; background: #fff; border: 1px solid var(--_line); border-radius: 18px; padding: 20px; color: var(--_ink) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
a.tld-card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(42, 21, 32, .08); }
.tld-card-link h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.tld-card-link p { margin: 0; color: var(--_muted); font-size: .95rem; }
.tld-card-link.is-soon { opacity: .7; }
.tld-card-icon { font-size: 1.6rem; }
.tld-lede { font-size: 1.15rem; }

/* Products */
.tld-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 24px 0 10px; }
.tld-product { background: #fff; border: 1px solid var(--_line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; }
.tld-product h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.tld-product p { margin: 0 0 10px; color: var(--_muted); font-size: .93rem; }
.tld-product-cover { aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(150deg, #f7d6df, #fbeee3 60%, #f3e2bf); display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; }
.tld-product-cover span { font: 600 1.05rem/1.25 var(--_serif); color: var(--_rose-dark); border-top: 1px solid rgba(142, 27, 61, .35); border-bottom: 1px solid rgba(142, 27, 61, .35); padding: 10px 0; }
.tld-product-foot { margin-top: auto !important; display: flex; justify-content: space-between; align-items: center; color: var(--_ink) !important; }
.tld-soon { font-size: .78rem; background: #fbf1dd; color: #8a5f12; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.tld-small-note { color: var(--_muted, #6f5a63); font-size: .9rem; }

/* Pricing */
.tld-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.tld-price-card { background: #fff; border: 2px solid var(--_line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.tld-price-card.is-featured { border-color: #c8963e; box-shadow: 0 10px 30px rgba(200, 150, 62, .15); }
.tld-price-card h3 { margin: 0; }
.tld-price { font: 600 2.2rem var(--_serif); margin: 8px 0 0; }
.tld-price span { font: 400 1rem inherit; color: var(--_muted); }
.tld-price-alt { color: var(--_muted); margin: 0; }
.tld-price-card ul { padding: 0; list-style: none; margin: 16px 0 20px; flex: 1; }
.tld-price-card li { padding: 5px 0 5px 26px; position: relative; }
.tld-price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--_rose); font-weight: 700; }

/* Newsletter */
.tld-newsletter { max-width: 560px; }
.tld-newsletter .tld-tool-row input { flex: 1 1 220px; }
.tld-consent { margin-top: 10px; }
.tld-newsletter-msg { min-height: 1.4em; margin: 8px 0 0; font-weight: 600; }
@media (max-width: 639px) { .tld-product-cover { aspect-ratio: 16 / 9; } }
