/*
 * StoriesIG design system, ported from the live app at storiesig.xyz.
 * Values below are not approximations -- they were read directly off the
 * live site's computed styles and CSS custom properties (:root --background,
 * --primary, etc. and the exact Tailwind utility classes on the hero h1,
 * feature cards, step circles, FAQ items, and CTA band). This file is the
 * single source of truth for how a WordPress page here should look; page
 * content should be built from the .sig-* classes defined here, not bare
 * headings/paragraphs relying on Kadence's own defaults.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--sig-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Read from storiesig.xyz's :root custom properties. */
	--sig-background: #FCFCFC;
	--sig-foreground: #17191C;
	--sig-card: #FFFFFF;
	--sig-primary: #0080FF;
	--sig-primary-foreground: #FFFFFF;
	--sig-secondary: #F1F2F4;
	--sig-muted-foreground: #5C6370;
	--sig-border: #E5E7EB;
	--sig-destructive: #EF4343;
	--sig-radius: 0.75rem;

	/* Instagram brand gradient -- logo, CTAs, accents. */
	--sig-ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

	--sig-radius-sm: 0.5rem;
	--sig-radius-md: 0.625rem;
	--sig-radius-lg: 0.75rem;
	--sig-radius-xl: 1rem;
	--sig-radius-2xl: 1rem;
	--sig-radius-full: 999px;

	--sig-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--sig-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--sig-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--sig-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body,
.entry-content,
.site-content {
	font-family: var(--sig-font-sans);
	color: var(--sig-foreground);
}
.entry-content {
	background: var(--sig-background);
}

/* ================= Typography scale (matches h1/h2/h3 on storiesig.xyz) ================= */

.entry-content h1,
.sig-h1 {
	font-family: var(--sig-font-sans);
	font-size: clamp(2.25rem, 1.6rem + 3vw, 4.5rem); /* 36px -> 72px, matches text-4xl md:text-6xl lg:text-7xl */
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--sig-foreground);
	margin: 0 0 1.5rem;
}
.entry-content h2,
.sig-h2 {
	font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); /* 28px -> 36px, matches text-3xl md:text-4xl */
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--sig-foreground);
	margin: 2.75rem 0 1rem;
}
.entry-content h3,
.sig-h3 {
	font-size: 1.25rem; /* text-xl */
	font-weight: 700;
	line-height: 1.4;
	color: var(--sig-foreground);
	margin: 0 0 0.5rem;
}
.entry-content p {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--sig-muted-foreground);
	margin: 0 0 1.25rem;
}
.entry-content strong {
	color: var(--sig-foreground);
	font-weight: 600;
}

/* Hero H1/subtext get extra room + centering (used on the homepage hero only). */
.sig-hero h1 {
	margin-bottom: 1.5rem;
}
.sig-hero > p:first-of-type,
.sig-hero-subtext {
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
	line-height: 1.75;
	color: var(--sig-muted-foreground);
	max-width: 42rem;
	margin: 0 auto 2.5rem;
}

/* ================= Layout: container + full-bleed tinted sections ================= */

.sig-container {
	max-width: 64rem; /* max-w-5xl, matches most section inner containers */
	margin: 0 auto;
	padding: 0 1rem;
}
.sig-container-wide {
	max-width: 72rem; /* max-w-6xl, used by the feature grid */
	margin: 0 auto;
	padding: 0 1rem;
}
.sig-container-narrow {
	max-width: 48rem; /* max-w-3xl, used by FAQ */
	margin: 0 auto;
	padding: 0 1rem;
}

/* Breaks a section out of Kadence's own centered content column so tinted
   backgrounds run edge to edge, same as the source app's full-bleed <section>s. */
.sig-section {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	padding: 5rem 0; /* py-20 */
}
.sig-section-hero {
	padding: 6rem 0 8rem; /* 96px / 128px, matches the hero section exactly */
}
.sig-section-tint {
	background: rgba(241, 242, 244, 0.5);
	border-top: 1px solid var(--sig-border);
	border-bottom: 1px solid var(--sig-border);
}
.sig-section-dark {
	padding: 6rem 0;
	background: var(--sig-foreground);
	color: var(--sig-background);
	text-align: center;
}
.sig-section-dark h2 { color: var(--sig-background); }
.sig-section-dark p { color: #949BA8; }

.sig-section-header {
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 4rem;
}
.sig-section-header h2 { margin-top: 0; }
.sig-section-header p {
	font-size: 1.125rem;
	color: var(--sig-muted-foreground);
	margin: 0;
}

/* ================= Badge pill ("100% Anonymous & Secure") ================= */
.sig-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.25rem 0.75rem;
	border-radius: var(--sig-radius-full);
	background: var(--sig-secondary);
	border: 1px solid var(--sig-border);
	font-size: 0.875rem;
	color: var(--sig-foreground);
}
.sig-badge-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

/* ================= Gradient utilities ================= */
.sig-text-gradient {
	background-image: var(--sig-ig-gradient);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.sig-bg-gradient {
	background-image: var(--sig-ig-gradient);
	color: #fff;
}

/* ================= Search / lookup tool wrapper ================= */
.sig-tool-wrap {
	max-width: 42rem;
	margin: 0 auto 1.5rem;
}
.sig-tool-wrap .asd-widget {
	max-width: none;
}
.sig-tool-wrap .asd-input-row {
	border-radius: var(--sig-radius-full) !important;
}
.sig-tool-wrap .asd-input {
	font-size: 1.125rem !important;
	padding: 1.1rem 0.5rem !important;
}
.sig-tool-wrap .asd-submit {
	background-image: var(--sig-ig-gradient) !important;
	background-color: transparent !important;
	border-radius: var(--sig-radius-full) !important;
	padding: 0.9rem 1.75rem !important;
	font-weight: 600 !important;
	color: #fff !important;
	box-shadow: var(--sig-shadow-md) !important;
	border: none !important;
}

/* Site title / lookup form gradient chip row (platform tags under the tool). */
.sig-tool-wrap .asd-hint,
.asd-hint {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.asd-chip {
	border-radius: var(--sig-radius-full) !important;
}

/* ================= Feature card grid (icon + heading + text, hover states) ================= */
.sig-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}
.sig-feature-card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	border-radius: var(--sig-radius-2xl);
	border: 1px solid var(--sig-border);
	background: var(--sig-card);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.sig-feature-card:hover {
	box-shadow: var(--sig-shadow-md);
	border-color: rgba(0, 128, 255, 0.3);
}
.sig-feature-icon {
	width: 3rem;
	height: 3rem;
	border-radius: var(--sig-radius-xl);
	background: rgba(0, 128, 255, 0.1);
	color: var(--sig-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	transition: transform 0.2s ease;
}
.sig-feature-card:hover .sig-feature-icon {
	transform: scale(1.1);
}
.sig-feature-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}
.sig-feature-card h3 {
	margin-bottom: 0.5rem;
}
.sig-feature-card h3 a {
	color: inherit;
	text-decoration: none;
}
.sig-feature-card h3 a:hover {
	color: var(--sig-primary);
}
.sig-feature-card p {
	margin: 0;
	flex: 1;
}

/* ================= Numbered step list (solid primary circle, not gradient) ================= */
.sig-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2rem;
	counter-reset: sig-step;
}
.sig-steps li {
	position: relative;
	padding-left: 4rem;
	counter-increment: sig-step;
}
.sig-steps li::before {
	content: counter(sig-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 3rem;
	height: 3rem;
	border-radius: var(--sig-radius-full);
	background: var(--sig-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1.125rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sig-steps h3 { margin: 0.25rem 0 0.35rem; }
.sig-steps p { margin: 0; }

/* ================= Use-case bullets (small primary dot + heading) ================= */
.sig-dot-heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.5rem;
}
.sig-dot-heading::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--sig-primary);
	flex-shrink: 0;
}

/* ================= Trust card with decorative blurred gradient blob ================= */
.sig-trust-card {
	position: relative;
	overflow: hidden;
	background: var(--sig-card);
	border: 1px solid var(--sig-border);
	border-radius: var(--sig-radius-2xl);
	padding: 2rem;
	box-shadow: var(--sig-shadow-sm);
}
.sig-trust-card::before {
	content: "";
	position: absolute;
	right: -2.5rem;
	top: -2.5rem;
	width: 10rem;
	height: 10rem;
	border-radius: 50%;
	background-image: var(--sig-ig-gradient);
	opacity: 0.1;
	filter: blur(28px);
}
.sig-trust-card h3 { margin-top: 0; }
.sig-trust-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.sig-trust-list li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}
.sig-trust-list .sig-trust-icon {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--sig-primary);
	flex-shrink: 0;
	margin-top: 0.15rem;
}
.sig-trust-list strong {
	display: block;
	font-weight: 600;
}
.sig-trust-list span {
	font-size: 0.9rem;
	color: var(--sig-muted-foreground);
}

/* ================= Generic info card grid (feature pages) ================= */
.sig-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}
.sig-info-grid .sig-feature-card p { font-size: 0.95rem; }

/* ================= Comparison table ================= */
.sig-table-wrap {
	overflow-x: auto;
	margin: 2rem 0;
	border-radius: var(--sig-radius-lg);
	border: 1px solid var(--sig-border);
}
.sig-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.sig-table th,
.sig-table td {
	padding: 0.9rem 1.1rem;
	text-align: left;
	border-bottom: 1px solid var(--sig-border);
}
.sig-table thead th {
	background: var(--sig-secondary);
	font-weight: 600;
	color: var(--sig-foreground);
}
.sig-table tr:last-child td { border-bottom: none; }

/* ================= Callouts / privacy notes ================= */
.sig-callout {
	display: flex;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--sig-radius-lg);
	background: #FFF7ED;
	border: 1px solid #FDE4C4;
	margin: 2rem 0;
	font-size: 0.95rem;
}
.sig-callout strong { display: block; margin-bottom: 0.15rem; }
.sig-privacy-note {
	padding: 1.25rem 1.5rem;
	border-radius: var(--sig-radius-lg);
	background: var(--sig-secondary);
	margin: 2rem 0;
	font-size: 0.95rem;
}

/* ================= FAQ: individual rounded cards, not a plain list ================= */
.sig-faq {
	display: grid;
	gap: 1rem;
}
.sig-faq details {
	border: 1px solid var(--sig-border);
	border-radius: var(--sig-radius-2xl);
	background: var(--sig-card);
	padding: 1.25rem 1.5rem;
	transition: box-shadow 0.2s ease;
}
.sig-faq details[open] { box-shadow: var(--sig-shadow-sm); }
.sig-faq summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.sig-faq summary::-webkit-details-marker { display: none; }
.sig-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -0.2rem;
	font-weight: 400;
	font-size: 1.5rem;
	color: var(--sig-primary);
	transition: transform 0.2s ease;
}
.sig-faq details[open] summary::after { transform: rotate(45deg); }
.sig-faq details p {
	margin: 0.85rem 0 0;
	color: var(--sig-muted-foreground);
}

/* ================= Related links row ================= */
.sig-related-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 2rem 0;
}
.sig-related-links a {
	padding: 0.55rem 1.1rem;
	border-radius: var(--sig-radius-full);
	background: var(--sig-secondary);
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--sig-foreground);
	transition: background 0.2s ease;
}
.sig-related-links a:hover { background: var(--sig-border); }

/* ================= Bottom CTA button (inside dark band) ================= */
.sig-cta-btn {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.9rem 2rem;
	border-radius: var(--sig-radius-full);
	background-image: var(--sig-ig-gradient);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: var(--sig-shadow-md);
	transition: transform 0.2s ease;
}
.sig-cta-btn:hover { transform: translateY(-2px); }

/* ================= Breadcrumb ================= */
.sig-breadcrumb {
	font-size: 0.875rem;
	color: var(--sig-muted-foreground);
	margin-bottom: 1.5rem;
}
.sig-breadcrumb a { color: var(--sig-muted-foreground); text-decoration: none; }
.sig-breadcrumb a:hover { color: var(--sig-primary); }

/* ================= Site title wordmark (header logo) ================= */
.site-title-wrap .site-title,
.site-header .site-title {
	font-family: var(--sig-font-sans);
	font-weight: 800;
	letter-spacing: -0.02em;
	background-image: var(--sig-ig-gradient);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	display: inline-block;
}

/* ================= Mobile menu toggle + popup drawer ================= */
.popup-drawer .drawer-inner { background-image: var(--sig-ig-gradient); }
.wp-site-blocks .menu-toggle-open {
	box-shadow: none;
	background-image: var(--sig-ig-gradient);
	padding: 15px !important;
	color: #fff !important;
	border-radius: var(--sig-radius-full);
}

/* ================= Footer ================= */
.site-footer { background: var(--sig-secondary) !important; }

/* Real storiesig.xyz footer: 3 columns (Product / Resources / Legal). */
.sig-footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1rem 1rem 2rem;
	text-align: left;
}
.sig-footer-columns h3 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--sig-foreground);
	margin: 0 0 1rem;
}
.sig-footer-columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}
.sig-footer-columns a {
	font-size: 0.9rem;
	color: var(--sig-muted-foreground);
	text-decoration: none;
	transition: color 0.2s ease;
}
.sig-footer-columns a:hover { color: var(--sig-primary); }
@media (max-width: 640px) {
	.sig-footer-columns { text-align: center; }
}

/* ================= Body-content link styling ================= */
.entry-content a {
	color: var(--sig-primary);
	text-decoration: none;
}
.entry-content a:hover { text-decoration: underline; }
.sig-feature-card a,
.sig-related-links a,
.sig-cta-btn,
.sig-faq a { text-decoration: none; }

/* ================= Fluent Forms (contact page) ================= */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform select,
.fluentform textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--sig-border);
	border-radius: 0;
	padding: 10px 0;
	font-size: 15px;
	font-family: var(--sig-font-sans);
	color: var(--sig-foreground);
	transition: all 0.3s ease;
	outline: none;
}
.fluentform input:focus,
.fluentform select:focus,
.fluentform textarea:focus {
	border-bottom: 2px solid transparent;
	background-image: var(--sig-ig-gradient);
	background-repeat: no-repeat;
	background-size: 100% 2px;
	background-position: 0 100%;
	transition: background-size 0.3s ease;
}
.fluentform input:not(:focus),
.fluentform select:not(:focus),
.fluentform textarea:not(:focus) { background-size: 0 2px; }
.fluentform button[type="submit"],
.fluentform .ff-btn-submit {
	background-image: var(--sig-ig-gradient);
	color: #fff;
	border: none;
	border-radius: var(--sig-radius-full);
	padding: 12px 28px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fluentform button[type="submit"]:hover,
.fluentform .ff-btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
}

/* ================= Scroll-reveal animation hooks ================= */
[data-sig-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-sig-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-sig-reveal="scale"] { transform: scale(0.95); transition: opacity 0.4s ease, transform 0.4s ease; }
[data-sig-reveal="scale"].is-visible { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
	[data-sig-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 640px) {
	.sig-section { padding: 3.5rem 0; }
	.sig-section-hero { padding: 3rem 0 4rem; }
	.sig-section-dark { padding: 3.5rem 0; }
}
