/*
Theme Name: Sleep Calculator
Theme URI: https://sleepcalcultorhq.com/
Author: Sleep Calculator
Author URI: https://sleepcalcultorhq.com/
Description: A focused theme that renders the Sleep Calculator as the site front page, matching the reference design exactly (hero, tabbed calculator, FAQ and footer).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sleep-calculator
Tags: landing-page, custom-colors, custom-menu, one-column
*/

/* Base document reset — mirrors the reference page's inline style. */
body {
	margin: 0;
	background: #F6F5FF;
}

/*
 * Stacking fix (hit-testing).
 *
 * .scp-hero-copy carries z-index:2 plus a tall transparent bottom
 * padding, while .scp-main only had z-index:auto — so the hero copy
 * painted ABOVE the top of .scp-card. Nothing was visible there (the
 * padding is transparent and the headline never reaches the card), but
 * it still won elementFromPoint: the upper ~48px of every tab button —
 * the icon plus most of the box — swallowed hover and clicks, leaving
 * only the label at the bottom interactive.
 *
 * Raising .scp-main above it makes the whole tab box (icon, label and
 * padding) hoverable and clickable. Stacking only — no layout, geometry
 * or colour changes, so the design still matches the reference.
 */
.scp-main {
	position: relative;
	z-index: 3;
}

/* FAQ block (part of the original page design). */
.scp-faq {
	max-width: 576px;
	margin: 0 auto;
	padding: 0 20px 56px;
	font-family: Inter, system-ui, sans-serif;
}

.scp-faq-card {
	background: #fff;
	border: 1px solid #eef0f6;
	border-radius: 24px;
	padding: 26px 24px;
	box-shadow: 0 10px 40px -12px rgba(23, 29, 69, .18);
}

.scp-faq-card h2 {
	margin: 0 0 6px;
	font-size: 21px;
	color: #0B1026;
	letter-spacing: -.4px;
}

.scp-faq-card > p.scp-faq-sub {
	margin: 0 0 10px;
	color: #656B80;
	font-size: 14px;
}

.scp-faq details {
	border-top: 1px solid #eef0f6;
	padding: 15px 0;
}

.scp-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	color: #171A2E;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.scp-faq summary::-webkit-details-marker {
	display: none;
}

.scp-faq summary::after {
	content: '+';
	font-size: 22px;
	font-weight: 400;
	color: #7667F8;
	line-height: 1;
	flex: 0 0 auto;
}

.scp-faq details[open] summary::after {
	content: '\2013';
}

.scp-faq details p {
	margin: 11px 0 2px;
	color: #4d5368;
	font-size: 14.5px;
	line-height: 1.75;
}

/* Fallback styling for any non-front-page content this theme renders. */
.scp-content {
	max-width: 760px;
	margin: 40px auto;
	padding: 0 20px 60px;
	font-family: Inter, system-ui, sans-serif;
	color: #171A2E;
	line-height: 1.75;
}

.scp-content h1 {
	color: #0B1026;
	letter-spacing: -.4px;
}
