/*
 * A theme's page. It wears the store's own look (Marko, 29.11.2026: one
 * brand for the store); the theme shows itself in its screenshots, its logo
 * and its looks. The --t-* names stay so a page could take other colors.
 */

.fs-theme.has-look {
	--t-base: var(--fs-paper);
	--t-surface: var(--fs-stone);
	--t-ink: var(--fs-ink);
	--t-muted: var(--fs-muted);
	--t-accent: var(--fs-accent);
	--t-on-accent: #fff;
	--t-deep: var(--fs-graphite);
	--t-on-deep: #fff;
	--t-pop: color-mix(in srgb, var(--fs-accent) 45%, #fff);
	--t-display: var(--fs-serif);
	--t-body: var(--fs-sans);
	--t-line: color-mix(in srgb, var(--t-ink) 14%, var(--t-base));
	--t-soft: color-mix(in srgb, var(--t-ink) 66%, var(--t-base));
	background: var(--t-base);
	color: var(--t-ink);
	font-family: var(--t-body);
	transition: background-color .6s var(--fs-ease), color .6s var(--fs-ease);
}
.fs-theme.has-look :where(h1, h2, h3, h4) { font-family: var(--t-display); font-weight: normal; color: inherit; letter-spacing: -.01em; }
.fs-theme.has-look :where(p, li, dd, dt) { color: inherit; }
.fs-theme.has-look a:not([class]) { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.fs-theme.has-look :focus-visible { outline: 3px solid var(--t-accent); outline-offset: 3px; }

/* Hero */
.fs-tt {
	position: relative;
	margin: 0 !important;
	padding: clamp(40px, 6vw, 88px) var(--wp--style--root--padding-right, 24px) 0;
	background: var(--t-base);
	overflow: clip;
}
.fs-tt__in {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin: 0 auto;
}
.fs-tt__crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--t-soft); }
.fs-tt__crumbs a { color: inherit; text-decoration: none; }
.fs-tt__crumbs a:hover { color: var(--t-ink); text-decoration: underline; }
.fs-tt__name {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.6vw, 22px);
	margin: 28px 0 0;
	font-size: clamp(64px, 8.4vw, 136px);
	line-height: .92;
	letter-spacing: -.025em;
}
.fs-tt__logo { flex: none; width: clamp(56px, 6vw, 84px); height: auto; border-radius: 22%; box-shadow: 0 0 0 1px var(--t-line), 0 14px 28px -18px color-mix(in srgb, var(--t-ink) 60%, transparent); }
.fs-tt__for { margin: 18px 0 0; font-family: var(--t-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.fs-tt__lead { max-width: 44ch; margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--t-soft); }
.fs-tt__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fs-tt__buy,
.fs-tt__demo,
.fs-offer__buy {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 28px;
	border: 2px solid var(--t-accent);
	border-radius: 999px;
	background: var(--t-accent);
	color: var(--t-on-accent);
	font: 600 16px/1 var(--t-body);
	text-decoration: none;
	transition: transform .2s var(--fs-ease), box-shadow .3s var(--fs-ease), background-color .6s var(--fs-ease), color .6s var(--fs-ease), border-color .6s var(--fs-ease);
}
.fs-tt__buy:hover,
.fs-offer__buy:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--t-accent); color: var(--t-on-accent); }
.fs-tt__demo { border-color: color-mix(in srgb, var(--t-ink) 30%, transparent); background: transparent; color: var(--t-ink); }
.fs-tt__demo { gap: 10px; }
.fs-tt__demo svg { flex: none; }
.fs-tt__bar a { color: inherit; text-decoration: none; }
.fs-tt__bar a:hover { text-decoration: underline; }
.fs-tt__demo:hover { border-color: var(--t-ink); color: var(--t-ink); }
.fs-tt__terms { margin: 16px 0 0; font-size: 14px; color: var(--t-soft); }
.fs-tt__chips { margin-top: 22px; }
.fs-theme.has-look .fs-tt__chips .fs-chip { background: color-mix(in srgb, var(--t-ink) 7%, var(--t-base)); color: var(--t-ink); }

.fs-tt__stage { position: relative; margin: 0; padding: 0 48px 56px 0; }
.fs-tt__window {
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-ink) 12%, transparent), 0 50px 90px -40px color-mix(in srgb, var(--t-ink) 60%, transparent);
	overflow: hidden;
}
.fs-tt__bar { display: flex; align-items: center; height: 36px; padding: 0 14px; background: color-mix(in srgb, var(--t-ink) 5%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--t-ink) 9%, #fff); }
.fs-tt__bar span, .fs-tt__bar a { padding: 2px 14px; border-radius: 99px; background: #fff; color: #6d6d6d; font: 500 12px/1.5 system-ui, sans-serif; }
.fs-tt__screen { position: relative; aspect-ratio: 16 / 10; background: var(--t-surface); }
.fs-tt__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .35s ease; }
.fs-tt__shot.is-swapping { opacity: 0; }
.fs-tt__phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 22%;
	padding: 7px;
	border-radius: 30px;
	background: #111;
	box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55);
	transition: opacity .4s ease, transform .5s var(--fs-ease);
}
.fs-tt__phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.fs-theme.has-look:not([data-look="default"]) .fs-tt__phone { opacity: 0; transform: translateY(16px); }

.fs-tt__looks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin: 8px auto 0;
	padding: 22px 0 30px;
	border-top: 1px solid var(--t-line);
}
.fs-tt__looks-label { margin: 0; font-size: 15px; color: var(--t-soft); }
.fs-tt__look-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-tt__look {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px 0 10px;
	border: 1px solid var(--t-line);
	border-radius: 999px;
	background: transparent;
	color: var(--t-ink);
	font: 500 15px/1 var(--t-body);
	cursor: pointer;
	transition: border-color .3s, background-color .3s;
}
.fs-tt__look:hover { border-color: var(--t-ink); }
.fs-tt__look[aria-pressed="true"] { border-color: var(--t-ink); background: color-mix(in srgb, var(--t-ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--t-ink); }
.fs-tt__dots { display: inline-flex; }
.fs-tt__dots i { width: 18px; height: 18px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--t-base), inset 0 0 0 1px rgba(0, 0, 0, .18); }
.fs-tt__dots i:first-child { margin-left: 0; background: var(--a); }
.fs-tt__dots i:nth-child(2) { background: var(--b); }
.fs-tt__dots i:nth-child(3) { background: var(--c); }

/* Story: a band in the theme's deep color. */
.fs-theme.has-look .fs-theme__content { margin-top: 0; }
.fs-theme.has-look .fs-story {
	position: relative;
	margin-top: 0 !important;
	padding-block: clamp(64px, 9vw, 128px);
	color: var(--t-on-deep);
	isolation: isolate;
}
.fs-theme.has-look .fs-story::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--t-deep); transition: background-color .6s var(--fs-ease); }
.fs-theme.has-look .fs-story__lead { max-width: 22ch; font-size: clamp(34px, 3.8vw, 58px); line-height: 1.08; color: var(--t-on-deep); }
.fs-theme.has-look .fs-story__body { column-gap: 48px; }
.fs-theme.has-look .fs-story__body p { color: color-mix(in srgb, var(--t-on-deep) 78%, var(--t-deep)); font-size: 17px; line-height: 1.65; }

/* Features */
.fs-theme.has-look .fs-feature-row__text h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.fs-theme.has-look .fs-feature-row__text p,
.fs-theme.has-look .fs-feature-row__text li { color: var(--t-soft); font-size: 16px; line-height: 1.65; }
.fs-theme.has-look .fs-feature-row__text li::marker { color: var(--t-accent); }
.fs-theme.has-look .fs-feature-row__media { background: var(--t-surface); border-radius: 22px; transition: background-color .6s var(--fs-ease); }
.fs-theme.has-look .fs-feature-row__shot { box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-ink) 10%, transparent), 0 30px 60px -36px color-mix(in srgb, var(--t-ink) 55%, transparent); }

/* Looks, phones and the rest of the content */
.fs-theme.has-look .fs-section-intro p,
.fs-theme.has-look .fs-looks figcaption { color: var(--t-soft); }
.fs-theme.has-look .fs-phones-section { background: var(--t-surface); color: var(--t-ink); transition: background-color .6s var(--fs-ease); }
.fs-theme.has-look .fs-phones-section h2 { color: var(--t-ink); }
.fs-theme.has-look .fs-extras-section :where(h3, h4) { font-size: 22px; }
.fs-theme.has-look .fs-extras-section p { color: var(--t-soft); }

/* What you need */
.fs-theme.has-look .fs-specs { border-color: var(--t-line); }
.fs-theme.has-look .fs-specs__title { font-size: clamp(34px, 3.4vw, 52px); }
.fs-theme.has-look .fs-specs__lead,
.fs-theme.has-look .fs-specs__list dt { color: var(--t-soft); }
.fs-theme.has-look .fs-specs__row { border-color: var(--t-line); }

/* "More themes" stays in the store's own look. */
.fs-theme.has-look > .fs-section:last-child { margin-bottom: calc(var(--fs-section) * -1); padding-block: var(--fs-section); background: #fff; color: var(--fs-ink); font-family: var(--fs-sans); position: relative; isolation: isolate; }
.fs-theme.has-look > .fs-section:last-child::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: #fff; }
.fs-theme.has-look > .fs-section:last-child h2 { font-family: var(--fs-serif); color: var(--fs-ink); }

@media (max-width: 1000px) {
	.fs-tt__in { grid-template-columns: 1fr; }
	.fs-tt__stage { padding-right: 32px; }
}
@media (max-width: 600px) {
	.fs-tt__name { font-size: clamp(52px, 15vw, 72px); }
	.fs-tt__stage { padding: 0 20px 36px 0; }
	.fs-tt__phone { width: 28%; border-radius: 20px; padding: 5px; }
	.fs-tt__phone img { border-radius: 16px; }
	.fs-tt__buy, .fs-tt__demo { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.fs-theme.has-look, .fs-theme.has-look * { transition: none !important; }
}

/* Plugin names link to their sites, and "What these are" says what each one does. */
.fs-plugin { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--t-accent, #4b4ef2) 60%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fs-plugin:hover { color: var(--t-accent, #4b4ef2); text-decoration-color: currentColor; }
.fs-specs__plugins { display: grid; gap: 14px; }
.fs-specs__plugins li { display: grid; gap: 2px; }
.fs-specs__plugins li span:not(.screen-reader-text) { font-size: 15px; line-height: 1.5; color: var(--t-muted, #67676e); }
.fs-plugin--plain { text-decoration: none; }
