/* ==========================================================================
   Ticket Box — design layer
   Loaded after theme.css. Only additive: theme.css is untouched, so removing
   the <link> to this file restores the original look.
   ========================================================================== */

:root {
	--tb-pink: #ea3271;
	--tb-pink-hover: #ee4c84;
	--tb-ink: #1c1e2e;
	--tb-body: #4c527d;
	--tb-light: #f6f8fc;
	--tb-mint: #7fcdb8;
	--tb-peach: #f5a782;

	--tb-border: #e6eaf5;
	--tb-shadow-sm: 0 2px 8px rgba(28, 30, 46, 0.06);
	--tb-shadow-md: 0 12px 32px -12px rgba(28, 30, 46, 0.16);
	--tb-shadow-lg: 0 28px 60px -20px rgba(28, 30, 46, 0.28);
	--tb-radius: 1rem;
	--tb-ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	overflow-x: hidden;
}

/* Focus visibility — theme.css kills .btn focus shadows outright. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
	outline: 3px solid var(--tb-pink);
	outline-offset: 3px;
	border-radius: 0.25rem;
}

/* ===== Section rhythm ===================================================== */

.tb-section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section-heading {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.2;
}

.section-kicker {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tb-pink);
}

.section-heading + .section-intro,
.section-intro {
	color: var(--tb-body);
}

/* ===== Header ============================================================= */

.header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--tb-ease), box-shadow var(--tb-ease), background var(--tb-ease);
}

.header.is-scrolled {
	border-bottom-color: var(--tb-border);
	box-shadow: var(--tb-shadow-sm);
}

.header .navbar {
	padding-top: 0;
	padding-bottom: 0;
}

.header .navbar-brand {
	display: inline-flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
}

.site-logo .logo-text {
	font-family: 'Quicksand', sans-serif;
	letter-spacing: -0.01em;
}

.header .nav-link {
	font-weight: 600;
	color: var(--tb-body);
	padding: 0.5rem 0.9rem;
	position: relative;
	transition: color var(--tb-ease);
}

.header .nav-link:hover,
.header .nav-link:focus,
.header .nav-link.active {
	color: var(--tb-ink);
}

.header .nav-link::after {
	content: '';
	position: absolute;
	left: 0.9rem;
	right: 0.9rem;
	bottom: 0.15rem;
	height: 2px;
	border-radius: 2px;
	background: var(--tb-pink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--tb-ease);
}

.header .nav-link:hover::after,
.header .nav-link:focus::after {
	transform: scaleX(1);
}

.header .btn-nav {
	padding: 0.5rem 1.5rem;
	font-size: 0.9375rem;
}

.navbar-toggler {
	border: 1px solid var(--tb-border);
	padding: 0.4rem 0.6rem;
	color: var(--tb-ink);
}

.navbar-toggler:focus {
	box-shadow: none;
}

@media (max-width: 991.98px) {
	.header .navbar-collapse {
		padding: 0.5rem 0 1rem;
	}

	.header .nav-link::after {
		display: none;
	}

	.header .btn-nav {
		margin-top: 0.5rem;
	}
}

/* ===== Hero =============================================================== */

.hero-section {
	position: relative;
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
	background-image: linear-gradient(to bottom, var(--tb-light) 0%, #fff 85%);
	overflow: hidden;
}

.hero-section::before,
.hero-section::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.hero-section::before {
	width: 40rem;
	height: 40rem;
	top: -18rem;
	right: -12rem;
	background: radial-gradient(circle, rgba(234, 50, 113, 0.16) 0%, rgba(234, 50, 113, 0) 70%);
}

.hero-section::after {
	width: 30rem;
	height: 30rem;
	bottom: -14rem;
	left: -10rem;
	background: radial-gradient(circle, rgba(127, 205, 184, 0.22) 0%, rgba(127, 205, 184, 0) 70%);
}

.hero-section > .container {
	position: relative;
	z-index: 1;
}

.hero-section .headline {
	font-size: clamp(2.125rem, 5vw, 3.25rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.hero-section .headline .text-accent {
	color: var(--tb-pink);
}

.hero-section .subheadline {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	max-width: 34rem;
}

.hero-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.hero-badges .store-badge img {
	height: 60px;
	width: auto;
	transition: transform var(--tb-ease);
}

.hero-badges .store-badge:hover img {
	transform: translateY(-2px);
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	padding: 0;
	margin: 0;
	list-style: none;
	font-size: 0.9375rem;
	color: var(--tb-body);
}

.hero-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.hero-meta i {
	color: var(--tb-mint);
}

.book-cover-holder {
	text-align: center;
}

.book-cover-holder .book-cover {
	filter: drop-shadow(0 24px 40px rgba(28, 30, 46, 0.22));
}

/* ===== Social icon list =================================================== */

.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	padding: 0;
	margin: 0;
}

.social-list li {
	list-style: none;
}

.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--tb-border);
	color: var(--tb-ink);
	font-size: 1.0625rem;
	box-shadow: var(--tb-shadow-sm);
	transition: color var(--tb-ease), background var(--tb-ease), transform var(--tb-ease), border-color var(--tb-ease);
}

.social-list a:hover,
.social-list a:focus {
	background: var(--tb-pink);
	border-color: var(--tb-pink);
	color: #fff;
	transform: translateY(-3px);
}

/* On the pink About section and the dark footer. */
.theme-bg-primary .social-list a,
.footer .social-list a {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
	box-shadow: none;
}

.theme-bg-primary .social-list a:hover,
.theme-bg-primary .social-list a:focus,
.footer .social-list a:hover,
.footer .social-list a:focus {
	background: #fff;
	border-color: #fff;
	color: var(--tb-pink);
}

/* ===== Feature cards ====================================================== */

.feature-card {
	height: 100%;
	padding: 1.75rem 1.5rem;
	background: #fff;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-sm);
	transition: transform var(--tb-ease), box-shadow var(--tb-ease), border-color var(--tb-ease);
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tb-shadow-md);
	border-color: transparent;
}

.feature-card .icon-holder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 0.875rem;
	background: rgba(234, 50, 113, 0.1);
	color: var(--tb-pink);
	font-size: 1.25rem;
}

.feature-card .item-title {
	font-size: 1.0625rem;
	margin-bottom: 0.375rem;
}

.feature-card .item-desc {
	font-size: 0.9375rem;
	margin-bottom: 0;
	color: var(--tb-body);
}

/* Alternate accent colours so the grid does not read as one flat block. */
.feature-card:nth-child(4n + 2) .icon-holder {
	background: rgba(127, 205, 184, 0.18);
	color: #4aab90;
}

.feature-card:nth-child(4n + 3) .icon-holder {
	background: rgba(245, 167, 130, 0.2);
	color: #e07c4f;
}

.feature-card:nth-child(4n + 4) .icon-holder {
	background: rgba(76, 82, 125, 0.12);
	color: var(--tb-body);
}

/* ===== Audience =========================================================== */

.audience-section {
	background-image: linear-gradient(to bottom, #fff 0%, var(--tb-light) 100%);
}

.audience-section .audience-card {
	height: 100%;
	padding: 2rem;
	background: #fff;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-sm);
	transition: transform var(--tb-ease), box-shadow var(--tb-ease);
}

.audience-section .audience-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tb-shadow-md);
}

.audience-section .item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: rgba(234, 50, 113, 0.1);
	color: var(--tb-pink);
	font-size: 1.375rem;
}

.audience-section .item-title {
	font-size: 1.1875rem;
	margin-bottom: 0.625rem;
}

.audience-section .item-desc {
	color: var(--tb-body);
	margin-bottom: 0;
}

/* ===== App screenshot =====================================================
   screenshots/1.png ships with its own phone bezel on a solid #f6f8fc
   background, so it must sit on a matching light surface and must NOT get a
   second CSS frame or a box-shadow (that would outline the baked-in canvas).
   ========================================================================== */

.app-shot {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
}

/* ===== Download CTA ======================================================= */

.cta-panel {
	position: relative;
	overflow: hidden;
	padding: 3.5rem 2rem;
	border-radius: 1.5rem;
	background-image: linear-gradient(135deg, var(--tb-pink) 0%, #c62a8f 100%);
	color: #fff;
	box-shadow: var(--tb-shadow-md);
}

.cta-panel::after {
	content: '';
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 18rem;
	height: 18rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
}

.cta-panel > * {
	position: relative;
	z-index: 1;
}

.cta-panel .cta-heading {
	color: #fff;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.cta-panel .cta-intro {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.0625rem;
	max-width: 40rem;
	margin-inline: auto;
}

.cta-panel .btn-light {
	background: #fff;
	color: var(--tb-pink);
}

.cta-panel .btn-light:hover,
.cta-panel .btn-light:focus {
	background: #fff;
	color: var(--tb-pink);
	transform: translateY(-2px);
}

/* ===== Showcase =========================================================== */

.showcase-section .showcase-row + .showcase-row {
	margin-top: 4.5rem;
}

.showcase-section .showcase-panel {
	padding: 2.25rem;
	background: #fff;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-sm);
}

.showcase-section .showcase-title {
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	margin-bottom: 0.75rem;
}

.showcase-section .showcase-copy {
	color: var(--tb-body);
}

.showcase-section .showcase-list {
	padding-left: 0;
	list-style: none;
	margin-bottom: 0;
}

.showcase-section .showcase-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.625rem;
}

.showcase-section .showcase-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--tb-mint);
	font-weight: 700;
}

/* ===== About ============================================================== */

.developer-section .developer-pic {
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.35);
}

.developer-section .developer-bio p {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.94);
}

.developer-section .fa-heart {
	color: #ffe1ea;
}

/* ===== Footer ============================================================= */

.footer {
	background: var(--tb-ink);
	color: rgba(255, 255, 255, 0.72);
}

.footer .footer-heading {
	color: #fff;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.footer .footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: #fff;
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
}

.footer .footer-links {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer .footer-links li {
	margin-bottom: 0.5rem;
}

.footer .footer-links a,
.footer a.footer-link {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color var(--tb-ease);
}

.footer .footer-links a:hover,
.footer .footer-links a:focus,
.footer a.footer-link:hover,
.footer a.footer-link:focus {
	color: #fff;
	text-decoration: underline;
}

.footer .footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
}

/* ===== Back to top ======================================================== */

/* theme.css already styles #topcontrol; this only handles show/hide. */
#topcontrol {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	border: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition: opacity var(--tb-ease), transform var(--tb-ease), visibility var(--tb-ease), background var(--tb-ease);
}

#topcontrol.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ===== Privacy page ======================================================= */

.privacy-section {
	padding-top: 3.5rem;
	padding-bottom: 4.5rem;
}

.privacy-section h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 1.5rem;
}

.privacy-section h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 0.875rem;
}

.privacy-section h3 {
	font-size: 1.1875rem;
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
}

.privacy-section p,
.privacy-section li {
	line-height: 1.7;
}

.privacy-section a {
	color: var(--tb-pink);
}

.privacy-section .updated {
	font-size: 0.9375rem;
	color: #6f75a7;
}

.privacy-section .sg-padded-list dt {
	margin-top: 1rem;
	color: var(--tb-ink);
	font-weight: 700;
}

.privacy-section .sg-padded-list dd {
	margin-left: 0;
	padding-left: 1rem;
	border-left: 3px solid var(--tb-border);
}

/* ===== Responsive tweaks ================================================== */

@media (max-width: 767.98px) {
	.tb-section {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}

	.hero-section {
		padding-top: 2.5rem;
		text-align: center;
	}

	.hero-section .subheadline,
	.hero-section .hero-meta,
	.hero-badges {
		margin-inline: auto;
		justify-content: center;
	}

	.social-list {
		justify-content: center;
	}

	.cta-panel {
		padding: 2.5rem 1.25rem;
	}

	.showcase-section .showcase-row + .showcase-row {
		margin-top: 3rem;
	}
}

/* ===== Reduced motion ===================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.header,
	.social-list a,
	.feature-card,
	.audience-section .audience-card,
	.hero-badges .store-badge img,
	.header .nav-link,
	.header .nav-link::after,
	.footer .footer-links a,
	#topcontrol {
		transition: none;
	}

	.social-list a:hover,
	.feature-card:hover,
	.audience-section .audience-card:hover,
	.hero-badges .store-badge:hover img,
	.cta-panel .btn-light:hover {
		transform: none;
	}
}
