/*
 * Core pages (cloud phone, multi-account browser, pricing, partner,
 * affiliate, tools hub, blog page) and the shared sections they own
 * (cp-stories, cp-resources, cp-steps, cp-video). Loads after landing.css.
 * Every rule is scoped to a core-* class so other pages are unaffected.
 */

/* ---------- shared bits ---------- */

.core-fineprint {
	margin-top: 1.5rem !important;
	color: #8893a4;
	font-size: var(--wp--preset--font-size--small);
}

.core-fineprint a {
	color: inherit;
}

.geelark-main [class*="core-"] a:focus-visible,
.geelark-main [class*="core-"] [tabindex]:focus-visible,
.geelark-main [class*="core-"] button:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* ---------- example setups (cp-stories, shared) ---------- */

.core-stories {
	background: #f4fbff;
}

.core-stories .geelark-lead-muted {
	max-width: 640px;
	margin-inline: auto !important;
	font-size: 1rem;
}

.core-stories .core-story-carousel {
	margin-top: 2.5rem !important;
}

.core-stories .geelark-carousel-track {
	gap: 20px;
}

.core-stories .geelark-carousel.is-thirds .core-story-card {
	flex: 0 0 calc((100% - 40px) / 3);
}

.core-story-card {
	display: flex;
	flex-direction: column;
	padding: 24px !important;
	border: 1px solid #e4eefc !important;
	border-radius: 16px !important;
	background: var(--wp--preset--color--base);
}

.core-story-card > * {
	margin: 0 !important;
}

.core-story-card > * + * {
	margin-top: 1rem !important;
}

.core-story-tag {
	color: var(--wp--preset--color--primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.5;
	text-transform: uppercase;
}

.core-story-list {
	flex: 1;
	padding-left: 0 !important;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
}

.core-story-list li {
	position: relative;
	padding-left: 16px;
	color: #2d3748;
	line-height: 1.5;
}

.core-story-list li + li {
	margin-top: 0.75rem;
}

.core-story-list li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

.core-story-meta {
	padding-top: 1rem;
	border-top: 1px solid #edf2f7;
}

.core-story-meta > * {
	margin: 0 !important;
}

.core-story-who {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.core-story-uses {
	margin-top: 0.25rem !important;
	font-size: 13px;
}

.core-story-btn,
.core-story-btn .wp-block-button {
	width: 100%;
}

.core-story-btn .wp-block-button__link {
	width: 100%;
	border: 1px solid #e4eefc !important;
	border-radius: 12px;
	color: var(--wp--preset--color--contrast) !important;
	background: transparent;
}

.core-story-btn .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--primary) !important;
	background: transparent;
}

.core-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 1.25rem;
}

.core-dots button {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cbd5e0;
	cursor: pointer;
}

.core-dots button[aria-current="true"] {
	background: var(--wp--preset--color--primary);
}

@media (max-width: 1024px) {
	.core-stories .geelark-carousel.is-thirds .core-story-card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 600px) {
	.core-stories .geelark-carousel.is-thirds .core-story-card {
		flex-basis: 100%;
	}
}

/* ---------- product tour (cp-video) ---------- */

.core-tour .geelark-lead-muted {
	margin-top: 0.75rem !important;
	font-size: 1rem;
}

.core-tour-tabs {
	margin-top: 2rem !important;
}

.core-tour-frame {
	position: relative;
	margin-top: 1.5rem !important;
	padding: 40px 24px 32px;
	border-radius: 24px;
	background: linear-gradient(180deg, #eef5ff 0%, #f7faff 100%);
	text-align: center;
}

.core-tour-frame::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 24px;
	width: 44px;
	height: 10px;
	background: radial-gradient(circle at 5px 5px, #ff6a00 4px, transparent 4.5px) 0 0 / 17px 10px repeat-x;
	opacity: 0.6;
}

.core-tour-shot {
	max-width: 860px;
	margin: 0 auto !important;
}

.core-tour-shot img {
	max-width: 100%;
	height: auto !important;
	border: 1px solid #e4eefc;
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

.core-tour-caption {
	margin-top: 1rem !important;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 781px) {
	.core-tour-frame {
		padding: 32px 12px 16px;
		border-radius: 16px;
	}

	.core-tour-frame::before {
		top: 12px;
		left: 14px;
	}
}

/* ---------- resources (cp-resources) ---------- */

.core-resource {
	display: flex;
	flex-direction: column;
}

.core-resource > * {
	margin: 0 !important;
}

.core-resource .geelark-media {
	overflow: hidden;
}

.core-resource .geelark-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.core-resource-title {
	margin-top: 1.25rem !important;
	font-family: var(--wp--preset--font-family--golos);
	font-size: 1.125rem !important;
	font-weight: 600;
	line-height: 1.35;
}

.core-resource-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.core-resource-title a:hover {
	color: var(--wp--preset--color--primary);
}

.core-resource > .geelark-muted {
	flex: 1;
	margin-top: 0.75rem !important;
	font-size: var(--wp--preset--font-size--small);
}

.core-resource > .geelark-read-more {
	margin-top: 1rem !important;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- hero extras ---------- */

.core-hero .geelark-kicker {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
}

.core-hero-note {
	margin-top: 1.25rem !important;
	color: #8893a4;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- multi-account browser: feature cards ---------- */

.core-mab-features .geelark-lead-muted {
	margin-top: 0.75rem !important;
	font-size: 1rem;
}

.core-mab-features .geelark-feature-tiles {
	gap: 24px !important;
}

.core-mab-features .geelark-feature-tile {
	flex-direction: column;
	gap: 1.25rem;
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: var(--wp--preset--color--base);
}

.core-mab-features .geelark-feature-icon {
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	border-radius: 8px;
	background: #f0f6ff;
	-webkit-mask: none;
	mask: none;
	position: relative;
}

.core-mab-features .geelark-feature-icon::after {
	content: "";
	position: absolute;
	inset: 9px;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--geelark-icon) center / contain no-repeat;
	mask: var(--geelark-icon) center / contain no-repeat;
}

.core-mab-features .geelark-feature-tile .wp-block-heading {
	font-size: 1rem !important;
	font-weight: 600;
}

.core-mab-features .geelark-feature-tile p {
	margin-top: 0.5rem;
	color: #718096;
	line-height: 1.5;
}

/* ---------- plain comparison table ---------- */

.core-plain-table {
	margin-top: 2.5rem !important;
	overflow-x: auto;
}

.core-plain-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 15px;
}

.core-plain-table th,
.core-plain-table td {
	padding: 10px 12px;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.core-plain-table thead {
	border-bottom: 0;
}

.core-plain-table thead th {
	border-bottom: 1px solid #e2e8f0;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.core-plain-table tbody tr:nth-child(odd) {
	background: #f4f6f9;
}

.core-plain-table tbody tr:last-child {
	border-bottom: 1px solid #e2e8f0;
}

.core-plain-table td:first-child {
	width: 22%;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
}

.core-mab-compare .geelark-lead-muted {
	margin-top: 0.75rem !important;
	font-size: 1rem;
}

.core-mab-compare .geelark-arrow-link {
	margin-top: 1.5rem !important;
}

.core-mab-resources .geelark-resources {
	margin-top: 2rem !important;
}

/* ---------- pricing: plan box + billing switch ---------- */

.core-price-box {
	margin-top: 2.5rem !important;
	padding: 24px;
	border: 1px solid #edf2f7;
	border-radius: 16px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 2px 16px rgba(26, 32, 44, 0.06);
}

.core-price-head {
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #edf2f7;
}

.core-price-head > *,
.core-price-head .geelark-row-text > * {
	margin: 0 !important;
}

.core-price-head .geelark-icon-box {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
}

.core-price-title {
	font-size: 1.5rem !important;
	font-weight: 500;
}

.core-price-head .geelark-muted {
	margin-top: 0.25rem !important;
	font-size: var(--wp--preset--font-size--small);
}

.core-price .core-price-box .geelark-tab-list {
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-block: 1.5rem 1.75rem !important;
	border: 0;
}

.core-price .core-price-box .geelark-tab {
	padding: 4px 2px;
	border-radius: 4px;
	background: none;
	color: #718096;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

.core-price .core-price-box .geelark-tab.is-active {
	background: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.core-switch {
	position: relative;
	order: 1;
	width: 46px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #cbd5e0;
	cursor: pointer;
	transition: background 0.2s;
}

.core-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

.core-switch[aria-checked="true"] {
	background: var(--wp--preset--color--primary);
}

.core-switch[aria-checked="true"]::after {
	transform: translateX(20px);
}

.core-price .core-price-box .geelark-tab:last-child {
	order: 2;
}

.core-price .geelark-plans {
	gap: 16px !important;
}

.core-price .geelark-plan {
	padding: 20px;
	border-width: 1px;
	border-radius: 12px;
}

.core-price .geelark-plan.is-featured {
	background: #f7fbff;
}

.core-price .geelark-plan-price {
	font-size: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
	.core-switch,
	.core-switch::after {
		transition: none;
	}
}

/* ---------- pricing: compare ---------- */

.core-plan-head {
	position: sticky;
	top: var(--core-sticky-top, 80px);
	z-index: 5;
	display: grid;
	grid-template-columns: 30% repeat(4, 1fr);
	align-items: start;
	margin-top: 2rem !important;
	padding: 12px 42px;
	border-bottom: 1px solid #edf2f7;
	background: var(--wp--preset--color--base);
}

.core-plan-head > * {
	margin: 0 !important;
}

.core-plan-head-label {
	align-self: end;
	color: #718096;
	font-size: var(--wp--preset--font-size--small);
}

.core-plan-head-col {
	padding-inline: 6px;
	text-align: center;
}

.core-plan-head-col > * {
	margin: 0 !important;
}

.core-plan-head-name {
	margin-bottom: 0.5rem !important;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--golos);
	font-size: 1.125rem;
	font-weight: 600;
}

.core-plan-head .wp-block-button,
.core-plan-head .wp-block-button__link {
	width: 100%;
	font-size: var(--wp--preset--font-size--small);
	padding-block: 6px;
}

.core-price-compare .geelark-plan-cats {
	margin-top: 1rem !important;
}

/* Plan names are in the sticky header on wide screens; keep the per-table
   headers for screen readers. */
@media (min-width: 782px) {
	.core-price-compare .geelark-compare-table.is-plans thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (max-width: 781px) {
	.core-plan-head {
		display: none;
	}
}

.core-cat-toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.core-cat-toggle::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid #718096;
	border-bottom: 2px solid #718096;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.core-cat-toggle[aria-expanded="false"]::after {
	transform: rotate(-45deg);
}

.core-price-compare .geelark-cat-head h3 {
	flex: 1;
}

.geelark-plan-cat.is-collapsed .geelark-compare-table {
	display: none;
}

.core-compare-actions {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.core-compare-actions button {
	padding: 8px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

.core-compare-actions button:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* ---------- pricing: add-ons ---------- */

.core-price-addons .geelark-addons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 2rem !important;
}

.core-price-addons .geelark-addons > * + * {
	margin-top: 0 !important;
}

.core-price-addons .geelark-addon-head h3 {
	font-size: 1.375rem !important;
}

.core-price-addons .geelark-addon-head p {
	margin-top: 0.25rem;
	color: #718096;
	font-size: var(--wp--preset--font-size--small);
}

.core-price-addons .geelark-plan-price {
	font-size: 1.75rem;
}

.core-price-addons .geelark-compare-table.is-minutes {
	font-size: 15px;
}

@media (max-width: 781px) {
	.core-price-addons .geelark-addons {
		grid-template-columns: 1fr;
	}
}

/* ---------- affiliate ---------- */

.core-aff-why-title {
	font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
	font-weight: 600;
	line-height: 1.2;
}

.geelark-aff-why .wp-block-buttons {
	margin-top: 1.5rem !important;
}

.core-aff.geelark-hero-section {
	padding-block: 96px !important;
}

.core-aff h1 {
	font-weight: 600;
}

#steps.core-aff > h2,
.core-aff.geelark-gradient-band h2 {
	font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
	font-weight: 600;
}

#steps.core-aff .geelark-step-card {
	padding: 28px 24px;
}

#steps.core-aff .geelark-step-card h3 {
	font-weight: 700;
}

.core-aff.geelark-gradient-band {
	padding-block: 112px;
}

#faq.core-aff > h2 {
	font-size: 1.75rem;
	font-weight: 600;
}

@media (max-width: 781px) {
	.core-aff.geelark-hero-section {
		padding-block: 48px !important;
	}

	.core-aff.geelark-gradient-band {
		padding-block: 64px;
	}
}

/* ---------- tools hub: dark band ---------- */

.core-tools-band {
	padding-top: 0 !important;
}

.core-dark-band {
	padding: 56px 64px;
	border-radius: 20px;
	background: linear-gradient(135deg, #1f2937 0%, #2d3748 100%);
	color: #e2e8f0;
}

.core-dark-band h2 {
	color: #fff;
	font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
}

.core-dark-band p {
	margin-top: 0.75rem;
	color: #cbd5e0;
}

.core-dark-band .wp-block-buttons {
	margin-top: 1.75rem !important;
}

.core-dark-band .wp-block-button__link {
	border-color: #fff !important;
	color: var(--wp--preset--color--contrast) !important;
	background: #fff !important;
}

.core-dark-band .wp-block-button__link:hover {
	background: #e2e8f0 !important;
}

.core-band-checks {
	padding-left: 0 !important;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
}

.core-band-checks li {
	position: relative;
	padding-left: 28px;
	color: #fff;
}

.core-band-checks li + li {
	margin-top: 0.75rem;
}

.core-band-checks li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 16px;
	height: 16px;
	background: #34d399;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 781px) {
	.core-dark-band {
		padding: 32px 24px;
	}
}

/* ---------- tools hub ---------- */

.core-tools .geelark-center-hero h1 {
	max-width: 760px;
	margin-inline: auto !important;
	font-weight: 500;
}

.core-tools .geelark-minutes-title {
	margin-top: 5rem !important;
}

.core-tools .geelark-tool-cards {
	margin-top: 2.5rem !important;
}

.core-tools .geelark-tool-card {
	min-height: 300px;
	padding: 28px 24px;
}

.core-tools .geelark-tool-card h3 {
	font-weight: 500;
	line-height: 1.35;
}

.core-tools .geelark-tool-card h3 + p {
	margin-top: 1.25rem;
	line-height: 1.6;
}

@media (max-width: 781px) {
	.core-tools .geelark-tool-card {
		min-height: 0;
	}

	.core-tools .geelark-minutes-title {
		margin-top: 3rem !important;
	}
}

/* Resource grids: two columns on tablets, one on phones. */
@media (min-width: 601px) and (max-width: 1024px) {
	.core-resources .geelark-resources {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.core-resources .geelark-resources {
		grid-template-columns: 1fr !important;
		padding-inline: 0;
	}
}

/* Pricing header buttons are the compact size of the reference comparison table. */
.core-plan-head .wp-block-button > .wp-block-button__link,
.core-plan-head .wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 6px 16px;
	line-height: 21px;
}

/* The badge is absolutely positioned, so the element after it is visually first and must
   not get the 12px sibling gap; otherwise the featured plan's content sits lower. */
.geelark-plan > .geelark-plan-badge + * {
	margin-top: 0 !important;
}
