/**
 * "Dagslys" - a per-app skin for tk_app pages.
 *
 * Loaded only for apps whose _tk_app_skin field is "daylight" (Tal, Bobby,
 * Tal!), and for their guides, so the rest of the site keeps its cream and
 * yellow. One product's own identity on top of the theme: daylight glass in
 * the hero and behind the prices, green as the only accent, and a single
 * moving element - the notch in the Mac scene (TK Blocks' tk/mac-dictation).
 *
 * The page itself is ordinary block content; this sheet only recolours the
 * theme's sections and buttons. Everything is scoped under
 * body.tk-skin-daylight, so nothing here can reach another app.
 *
 * @package Thomas_Kramer_Blok
 */

body.tk-skin-daylight {
	--tk-day-grad: linear-gradient(135deg, #e9eef7 0%, #f6f7f4 46%, #fbf1e8 100%);
	--tk-day-blue: rgba(96, 150, 235, 0.32);
	--tk-day-amber: rgba(240, 164, 96, 0.28);
	--tk-day-ink: #14161c;
	--tk-day-green: #1f9d55;
	--tk-day-green-dark: #177a41;
	--tk-day-green-lit: #35d07a;
	--tk-day-green-soft: rgba(31, 157, 85, 0.1);
}

/* ---------------------------------------------------------------------------
   Daylight: the hero and the prices stand in lit glass, not on cream
   --------------------------------------------------------------------------- */

body.tk-skin-daylight .tkb-hero--stage,
body.tk-skin-daylight .tkb-pricing-section {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--tk-day-grad);
}

/* The two colour fields that make the gradient feel lit rather than printed. */
body.tk-skin-daylight .tkb-hero--stage::before,
body.tk-skin-daylight .tkb-hero--stage::after,
body.tk-skin-daylight .tkb-pricing-section::before {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

body.tk-skin-daylight .tkb-hero--stage::before {
	left: -8%;
	top: -16%;
	width: 56%;
	height: 78%;
	background: radial-gradient(circle, var(--tk-day-blue), transparent 66%);
	filter: blur(34px);
}

body.tk-skin-daylight .tkb-hero--stage::after {
	right: -7%;
	bottom: 8%;
	width: 54%;
	height: 76%;
	background: radial-gradient(circle, var(--tk-day-amber), transparent 66%);
	filter: blur(36px);
}

body.tk-skin-daylight .tkb-pricing-section::before {
	right: -8%;
	top: -24%;
	width: 48%;
	height: 140%;
	background: radial-gradient(circle, var(--tk-day-amber), transparent 66%);
	filter: blur(36px);
}

/* A three-beat headline over the scene does not need the full display size:
   at the site's largest it alone pushed the button off the first screen. */
body.tk-skin-daylight .tkb-hero--stage h1 {
	font-size: clamp(2.25rem, 5.2vw, 4.125rem);
	line-height: 1.04;
}

/* ---------------------------------------------------------------------------
   Green as the only accent
   --------------------------------------------------------------------------- */

body.tk-skin-daylight ::selection {
	background: rgba(53, 208, 122, 0.28);
}

body.tk-skin-daylight .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
body.tk-skin-daylight .tk-lic-form button {
	--tkb-btn-edge: rgba(0, 60, 25, 0.35);
	--tkb-btn-drop: rgba(31, 157, 85, 0.45);
	--tkb-btn-hi: rgba(255, 255, 255, 0.35);
	--tkb-btn-gloss: 0.18;
	background-color: var(--tk-day-green);
	color: #fff;
	text-shadow: 0 1px 0 rgba(0, 40, 15, 0.25);
}

body.tk-skin-daylight .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
body.tk-skin-daylight .tk-lic-form button:hover {
	background-color: #22ad5e;
	color: #fff;
}

body.tk-skin-daylight .tkb-nav .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background-color: var(--wp--preset--color--accent, #ffd200);
	color: var(--wp--preset--color--contrast, #1d1d1f);
}

body.tk-skin-daylight .is-style-eyebrow {
	color: var(--tk-day-green-dark);
}

body.tk-skin-daylight .is-style-dark .is-style-eyebrow {
	color: var(--tk-day-green-lit) !important;
}

body.tk-skin-daylight .is-style-checks > li::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat,
		var(--tk-day-green);
}

body.tk-skin-daylight .is-style-dark .is-style-checks > li::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2308120c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.95rem no-repeat,
		var(--tk-day-green-lit);
}

body.tk-skin-daylight .is-style-steps > li::before {
	background: var(--tk-day-green);
	color: #fff;
}

body.tk-skin-daylight .wp-block-details[open] > summary::after {
	background-color: var(--tk-day-green);
	border-color: var(--tk-day-green);
	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(#fff, #fff);
}

body.tk-skin-daylight .tk-answer-first {
	background: var(--tk-day-green-soft);
	border-color: rgba(31, 157, 85, 0.2);
	border-left-color: var(--tk-day-green);
}

body.tk-skin-daylight .tkbl-lockup__badge::before {
	background: var(--tk-day-green);
	box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.16);
}

body.tk-skin-daylight .tkbl-actions__price {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(31, 157, 85, 0.25);
	color: var(--tk-day-green-dark);
}

/* ---------------------------------------------------------------------------
   The proof band and the closing box: ink, with a green glow
   --------------------------------------------------------------------------- */

body.tk-skin-daylight .tkb-proof {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--tk-day-ink);
}

body.tk-skin-daylight .tkb-proof::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -6%;
	top: -30%;
	width: 44%;
	height: 150%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 157, 85, 0.22), transparent 66%);
	filter: blur(40px);
	pointer-events: none;
}

body.tk-skin-daylight .tkb-proof .tkb-proof-card {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.09);
}

body.tk-skin-daylight .tkb-cta.is-style-accent {
	background: var(--tk-day-ink);
	color: #fff;
}

body.tk-skin-daylight .tkb-cta.is-style-accent :is(h2, p) {
	color: #fff;
}

body.tk-skin-daylight .tkb-cta.is-style-accent .has-contrast-2-color,
body.tk-skin-daylight .tkb-cta.is-style-accent p:not([class]) {
	color: rgba(255, 255, 255, 0.72) !important;
}

/* ---------------------------------------------------------------------------
   Prices (TK Licensing draws the cards; this dresses them)
   --------------------------------------------------------------------------- */

/* TK Licensing reads its accent from --tk-* tokens (set by TK Blocks on the
   prices block); in this skin the accent is green. */
body.tk-skin-daylight .tkbl-pricing,
body.tk-skin-daylight .tkbl-buybar {
	--tk-accent: var(--tk-day-green);
}

body.tk-skin-daylight .tk-lic-plan {
	background: #fff;
}

body.tk-skin-daylight .tk-lic-plan--featured {
	box-shadow: 0 10px 26px rgba(31, 157, 85, 0.14), inset 0 0 0 1.5px var(--tk-day-green);
}

body.tk-skin-daylight .tk-lic-plan__badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(31, 157, 85, 0.12);
	color: var(--tk-day-green-dark);
}

body.tk-skin-daylight .tk-lic-plan__features li::before,
body.tk-skin-daylight .tk-lic-trust li::before {
	color: var(--tk-day-green);
}

/* The cheaper plan gets a quiet button. Two solid buttons side by side make
   the reader choose a colour rather than a plan. */
body.tk-skin-daylight .tk-lic-plan:not(.tk-lic-plan--featured) .tk-lic-plan__cta {
	background: rgba(20, 22, 28, 0.05);
	color: var(--tk-day-ink);
	box-shadow: inset 0 0 0 1px rgba(20, 22, 28, 0.12);
}

body.tk-skin-daylight .tk-lic-plan:not(.tk-lic-plan--featured) .tk-lic-plan__cta:hover {
	background: rgba(20, 22, 28, 0.09);
	color: var(--tk-day-ink);
}

body.tk-skin-daylight .tk-lic-plan--featured .tk-lic-plan__cta {
	background: var(--tk-day-green);
	color: #fff;
}

body.tk-skin-daylight .tkbl-buybar .wp-block-button__link {
	color: #fff;
}

/* The trial form's consent line. The sales block lays every label out as a
   grid (label over field), which put the checkbox on its own line, centred
   above its text. A checkbox sits beside its label. */
.tk-lic-sales__action .tk-lic-form label.tk-lic-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	/* Under the field and its button, across the form's whole width. */
	grid-column: 1 / -1;
	order: 3;
}

.tk-lic-sales__action .tk-lic-form label.tk-lic-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	padding: 0;
}
