/*
Theme Name: Formatic
Author: Formatic Studio
Description: A modular Bento / product-flavoured crypto-exchange theme — fixed top mini bar, native-style bottom tab bar, Bento hero feature wall, live seeded market ticker, 4-column compact equal-height card grids with full-width coral CTA bands, trading-instrument cards, a Bento advantages wall and a coral stats band.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: formatic
Tags: bento, crypto, exchange, grid-layout, custom-logo, translation-ready
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
	--fmt-white:      #FFFFFF;
	--fmt-coral:      #FF7043;
	--fmt-coral-deep: #F4511E;
	--fmt-coral-soft: #FF8A65;
	--fmt-peach:      #FFF3E0;
	--fmt-ink:        #263238;
	--fmt-ink-2:      #37474F;
	--fmt-grey:       #78909C;
	--fmt-grey-soft:  #ECEFF1;
	--fmt-line:       rgba(38, 50, 56, .1);
	--fmt-line-soft:  rgba(38, 50, 56, .06);
	--fmt-up:         #2E7D32;
	--fmt-down:       #E53935;
	--fmt-shadow:     0 10px 30px rgba(38, 50, 56, .08);
	--fmt-shadow-lg:  0 20px 50px rgba(244, 81, 30, .18);
	--fmt-radius:     16px;
	--fmt-radius-sm:  12px;
	--fmt-bar-h:      40px;
	--fmt-tab-h:      62px;
	--fmt-font-display: "Archivo Black", "Archivo", "Chakra Petch", "Bahnschrift", "DIN Alternate", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
	--fmt-font-body: "Manrope", "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--fmt-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   1. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
	margin: 0;
	background: var(--fmt-white);
	color: var(--fmt-ink);
	font-family: var(--fmt-font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.fmt-body {
	padding-top: var(--fmt-bar-h);
	padding-bottom: calc(var(--fmt-tab-h) + env(safe-area-inset-bottom, 0px));
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--fmt-font-display);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	color: var(--fmt-ink);
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--fmt-coral); color: var(--fmt-white); }

.fmt-num { font-family: var(--fmt-font-mono); font-variant-numeric: tabular-nums; }
.fmt-up { color: var(--fmt-up); }
.fmt-down { color: var(--fmt-down); }

.fmt-screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.fmt-dot {
	width: 4px; height: 4px; border-radius: 50%;
	background: var(--fmt-grey); opacity: .5;
	display: inline-block; vertical-align: middle;
}

.fmt-app { display: flex; flex-direction: column; min-height: 100vh; }
.fmt-main { flex: 1 0 auto; }

.fmt-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.fmt-narrow { width: 100%; max-width: 700px; margin: 0 auto; padding: 0 24px; }

.fmt-kicker {
	display: inline-block;
	font-family: var(--fmt-font-mono);
	font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--fmt-coral-deep);
	background: var(--fmt-peach);
	border: 1px solid rgba(255, 112, 67, .28);
	padding: 4px 10px; border-radius: 999px;
	margin-bottom: 14px;
}
.fmt-kicker--light { background: rgba(255, 255, 255, .18); color: var(--fmt-white); border-color: rgba(255, 255, 255, .3); }

/* ==========================================================================
   2. Buttons & chips
   ========================================================================== */
.fmt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	font-family: var(--fmt-font-display); font-weight: 700;
	font-size: 14px; letter-spacing: .01em; line-height: 1;
	padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	white-space: nowrap;
}
.fmt-btn svg { width: 16px; height: 16px; }
.fmt-btn:hover { transform: translateY(-2px); }
.fmt-btn:active { transform: translateY(0); }

.fmt-btn--coral {
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep));
	color: var(--fmt-white); box-shadow: 0 8px 20px rgba(244, 81, 30, .3);
}
.fmt-btn--coral:hover { box-shadow: 0 12px 28px rgba(244, 81, 30, .42); }

.fmt-btn--white { background: var(--fmt-white); color: var(--fmt-coral-deep); box-shadow: 0 8px 20px rgba(38, 50, 56, .18); }
.fmt-btn--outline { background: transparent; color: var(--fmt-ink); border-color: var(--fmt-line); }
.fmt-btn--outline:hover { border-color: var(--fmt-coral); color: var(--fmt-coral-deep); }

.fmt-btn--lg { padding: 16px 30px; font-size: 16px; }
.fmt-btn--sm { padding: 9px 16px; font-size: 13px; }
.fmt-btn--xs { padding: 7px 13px; font-size: 12px; }

.fmt-chip {
	display: inline-block;
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--fmt-coral-deep); background: var(--fmt-peach);
	padding: 4px 10px; border-radius: 999px; margin: 0 6px 6px 0;
}
a.fmt-chip:hover { background: var(--fmt-coral); color: var(--fmt-white); }

/* ==========================================================================
   3. Top mini bar (spec A — 40px: logo + language + search)
   ========================================================================== */
.fmt-minibar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--fmt-bar-h);
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--fmt-line-soft);
}
.fmt-minibar__inner {
	max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px;
	display: flex; align-items: center; gap: 14px;
}
.fmt-minibar__brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fmt-minibar__mark {
	width: 26px; height: 26px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep));
	color: var(--fmt-white); box-shadow: 0 4px 10px rgba(244, 81, 30, .35);
}
.fmt-minibar__mark svg { width: 15px; height: 15px; }
.fmt-minibar__logo { display: block; height: 22px; width: auto; max-width: 150px; object-fit: contain; }
.fmt-minibar__name { font-family: var(--fmt-font-display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.fmt-minibar__tag {
	font-size: 11px; color: var(--fmt-grey); letter-spacing: .04em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	flex: 1 1 auto; text-align: center;
}
.fmt-minibar__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.fmt-minibar__icon {
	width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--fmt-ink); background: var(--fmt-grey-soft); transition: background .18s, color .18s;
}
.fmt-minibar__icon svg { width: 15px; height: 15px; }
.fmt-minibar__icon:hover { background: var(--fmt-peach); color: var(--fmt-coral-deep); }
.fmt-minibar__login {
	font-family: var(--fmt-font-display); font-weight: 700; font-size: 12px;
	padding: 5px 12px; border-radius: 999px;
	color: var(--fmt-coral-deep); border: 1.5px solid rgba(255, 112, 67, .4);
	transition: background .18s, color .18s;
}
.fmt-minibar__login:hover { background: var(--fmt-coral); color: var(--fmt-white); }

/* Language switcher */
.fmt-langswitch { display: inline-flex; align-items: center; gap: 2px; background: var(--fmt-grey-soft); border-radius: 999px; padding: 2px; }
.fmt-langswitch a {
	font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px;
	color: var(--fmt-grey); transition: background .18s, color .18s;
}
.fmt-langswitch a.fmt-active { background: var(--fmt-white); color: var(--fmt-coral-deep); box-shadow: 0 1px 4px rgba(38, 50, 56, .12); }
.fmt-langswitch--foot { background: rgba(38, 50, 56, .08); }

/* ==========================================================================
   4. Bottom tab bar (spec A — fixed, 5 native-app tabs)
   ========================================================================== */
.fmt-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(14px);
	border-top: 1px solid var(--fmt-line-soft);
	box-shadow: 0 -6px 24px rgba(38, 50, 56, .07);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.fmt-tabbar__inner {
	max-width: 560px; height: var(--fmt-tab-h); margin: 0 auto;
	display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.fmt-tab {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	height: 100%; color: var(--fmt-grey); position: relative;
	transition: color .18s ease;
}
.fmt-tab__icon svg { width: 22px; height: 22px; }
.fmt-tab__label { font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.fmt-tab:hover { color: var(--fmt-ink); }
.fmt-tab--active { color: var(--fmt-coral-deep); }
.fmt-tab--active::after {
	content: ""; position: absolute; top: 6px; width: 20px; height: 3px; border-radius: 2px;
	background: var(--fmt-coral);
}
.fmt-tab--cta { color: var(--fmt-ink); }
.fmt-tab__fab {
	width: 46px; height: 46px; margin-top: -22px; border-radius: 16px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep));
	color: var(--fmt-white); box-shadow: 0 8px 20px rgba(244, 81, 30, .4);
	border: 3px solid var(--fmt-white);
	transition: transform .18s ease;
}
.fmt-tab__fab svg { width: 22px; height: 22px; }
.fmt-tab--cta:hover .fmt-tab__fab { transform: translateY(-3px) scale(1.04); }

/* ==========================================================================
   5. Bento hero wall (spec B — unequal product-feature tiles)
   ========================================================================== */
.fmt-hero { padding: 26px 0 8px; }
.fmt-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(112px, auto);
	gap: 14px;
}
.fmt-tile {
	position: relative; overflow: hidden;
	background: var(--fmt-white);
	border: 1px solid var(--fmt-line);
	border-radius: var(--fmt-radius);
	padding: 24px;
	box-shadow: var(--fmt-shadow);
	opacity: 0; transform: translateY(18px) scale(.98);
	transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.fmt-tile.fmt-bento--in { opacity: 1; transform: none; }
.fmt-tile:hover { box-shadow: var(--fmt-shadow-lg); }

.fmt-tile--hero {
	grid-column: 1 / 3; grid-row: 1 / 3;
	display: flex; flex-direction: column; justify-content: center;
	background:
		radial-gradient(600px 320px at 100% 0%, rgba(255, 112, 67, .16), transparent 60%),
		radial-gradient(420px 300px at 0% 100%, rgba(255, 243, 224, .9), transparent 55%),
		var(--fmt-white);
	padding: 34px;
}
.fmt-tile--hero h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: .35em; }
.fmt-tile--hero p { color: var(--fmt-grey); font-size: 15px; max-width: 44ch; }
.fmt-tile__badge {
	position: absolute; top: 20px; right: 20px;
	font-family: var(--fmt-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--fmt-white); background: var(--fmt-ink);
	padding: 5px 11px; border-radius: 999px;
}
.fmt-tile__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.fmt-tile__note { font-size: 12px; color: var(--fmt-grey); }
.fmt-tile__shot { margin-top: 20px; border-radius: var(--fmt-radius-sm); overflow: hidden; box-shadow: var(--fmt-shadow); }
.fmt-tile__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.fmt-tile--price {
	grid-column: 3 / 5; grid-row: 1 / 2;
	background: linear-gradient(150deg, var(--fmt-ink), var(--fmt-ink-2));
	color: var(--fmt-white); border-color: transparent;
	display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px;
}
.fmt-price__head { display: flex; align-items: center; justify-content: space-between; }
.fmt-price__sym { font-family: var(--fmt-font-display); font-size: 15px; letter-spacing: .02em; }
.fmt-price__sym b { color: var(--fmt-coral-soft); }
.fmt-price__live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--fmt-font-mono); font-size: 10px; letter-spacing: .12em; color: var(--fmt-coral-soft); }
.fmt-price__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--fmt-coral-soft); animation: fmtPulse 1.6s infinite; }
.fmt-price__value { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; }
.fmt-price__value .fmt-tick { font-family: var(--fmt-font-mono); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.fmt-price__chg { font-family: var(--fmt-font-mono); font-size: 13px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.fmt-price__chg.fmt-up { color: #81C784; }
.fmt-price__chg.fmt-down { color: #EF9A9A; }
.fmt-price__spark { display: block; margin: 2px 0; }
.fmt-price__spark svg { width: 100%; height: 46px; }
.fmt-price__foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--fmt-grey); }
.fmt-price__foot b { display: block; font-family: var(--fmt-font-mono); font-size: 13px; color: var(--fmt-white); }

.fmt-tile--feat { display: flex; flex-direction: column; gap: 6px; }
.fmt-tile--f1 { grid-column: 3 / 4; grid-row: 2 / 3; }
.fmt-tile--f2 { grid-column: 4 / 5; grid-row: 2 / 3; }
.fmt-tile--f3 { grid-column: 1 / 3; grid-row: 3 / 4; }
.fmt-tile--f4 { grid-column: 3 / 5; grid-row: 3 / 4; }
.fmt-tile--feat h3 { font-size: 16px; margin: 0; }
.fmt-tile--feat p { font-size: 13px; color: var(--fmt-grey); margin: 0; }
.fmt-tile__icon {
	width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--fmt-peach); color: var(--fmt-coral-deep); margin-bottom: 4px;
}
.fmt-tile__icon svg { width: 22px; height: 22px; }
.fmt-tile--f3, .fmt-tile--f4 { flex-direction: row; align-items: center; gap: 16px; }
.fmt-tile--f3 .fmt-tile__icon, .fmt-tile--f4 .fmt-tile__icon { margin-bottom: 0; flex: 0 0 auto; }

@keyframes fmtPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .35; transform: scale(.8); }
}

/* ==========================================================================
   6. Sections + alternating backgrounds (spec H)
   ========================================================================== */
.fmt-section { padding: 54px 0; position: relative; }
.fmt-section--white { background: var(--fmt-white); }
.fmt-section--peach { background: var(--fmt-peach); }
.fmt-section--grey { background: var(--fmt-grey-soft); }

.fmt-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.fmt-section__head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.fmt-section__head--center { justify-content: center; text-align: center; }
.fmt-section__sub { color: var(--fmt-grey); font-size: 15px; margin: 8px 0 0; max-width: 60ch; }

/* ==========================================================================
   7. Live market ticker + board (section 3)
   ========================================================================== */
.fmt-ticker {
	overflow: hidden; position: relative;
	background: var(--fmt-ink); color: var(--fmt-white);
	padding: 12px 0; margin: 6px 0 30px;
	border-top: 1px solid rgba(255, 255, 255, .06);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.fmt-ticker::before, .fmt-ticker::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.fmt-ticker::before { left: 0; background: linear-gradient(90deg, var(--fmt-ink), transparent); }
.fmt-ticker::after { right: 0; background: linear-gradient(270deg, var(--fmt-ink), transparent); }
.fmt-ticker__track { display: flex; gap: 34px; width: max-content; animation: fmtMarquee 32s linear infinite; }
.fmt-ticker:hover .fmt-ticker__track { animation-play-state: paused; }
.fmt-ticker__item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.fmt-ticker__item b { font-family: var(--fmt-font-display); color: var(--fmt-coral-soft); letter-spacing: .04em; }
.fmt-ticker__price { font-family: var(--fmt-font-mono); }
.fmt-ticker__chg { font-family: var(--fmt-font-mono); font-size: 12px; }
.fmt-ticker__chg.fmt-up { color: #81C784; }
.fmt-ticker__chg.fmt-down { color: #EF9A9A; }
@keyframes fmtMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fmt-board {
	background: var(--fmt-white); border-radius: var(--fmt-radius); overflow: hidden;
	box-shadow: var(--fmt-shadow); border: 1px solid var(--fmt-line);
}
.fmt-board__head, .fmt-board__row {
	display: grid; align-items: center; gap: 12px;
	grid-template-columns: 2fr 1.4fr 1fr 1.6fr .8fr;
	padding: 14px 20px;
}
.fmt-board__head {
	background: var(--fmt-grey-soft); font-family: var(--fmt-font-mono);
	font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fmt-grey);
}
.fmt-board__row { border-top: 1px solid var(--fmt-line-soft); transition: background .18s; }
.fmt-board__row:hover { background: var(--fmt-peach); }
.fmt-board__sym { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fmt-font-display); font-weight: 700; }
.fmt-board__sym em { font-style: normal; color: var(--fmt-grey); font-family: var(--fmt-font-body); font-size: 12px; font-weight: 400; }
.fmt-board__coin {
	width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); color: var(--fmt-white);
	font-size: 13px; font-style: normal; flex: 0 0 auto;
}
.fmt-board__price { font-size: 15px; font-weight: 600; }
.fmt-board__chg { font-family: var(--fmt-font-mono); font-size: 13px; }
.fmt-board__trend svg { width: 120px; height: 30px; }
.fmt-board__action { text-align: right; }

.fmt-flash-up { animation: fmtFlashUp .62s ease; }
.fmt-flash-down { animation: fmtFlashDown .62s ease; }
@keyframes fmtFlashUp { 0% { color: var(--fmt-up); } 100% { color: inherit; } }
@keyframes fmtFlashDown { 0% { color: var(--fmt-down); } 100% { color: inherit; } }


/* ==========================================================================
   8. 4-column compact grid + vertical cards (spec C + D)
   ========================================================================== */
.fmt-grid4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	align-items: stretch;
}
.fmt-grid4 + .fmt-grid4 { margin-top: 12px; }

.fmt-card {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column;
	background: var(--fmt-white);
	border: 1px solid var(--fmt-line);
	border-radius: var(--fmt-radius);
	transition: transform .22s ease, box-shadow .22s ease;
}
.fmt-card:hover { transform: translateY(-4px); box-shadow: var(--fmt-shadow-lg); }
.fmt-card__band { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); z-index: 2; }
.fmt-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--fmt-peach); }
.fmt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.fmt-card:hover .fmt-card__media img { transform: scale(1.06); }
.fmt-card__delta {
	position: absolute; left: 12px; bottom: 12px;
	font-family: var(--fmt-font-mono); font-size: 11px; font-weight: 600;
	padding: 4px 9px; border-radius: 999px; color: var(--fmt-white);
	background: rgba(38, 50, 56, .78); backdrop-filter: blur(4px);
}
.fmt-card__delta.fmt-up { background: rgba(46, 125, 50, .9); }
.fmt-card__delta.fmt-down { background: rgba(229, 57, 53, .9); }
.fmt-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1 1 auto; }
.fmt-card__title { font-size: 16px; line-height: 1.3; margin: 0; }
.fmt-card__title a:hover { color: var(--fmt-coral-deep); }
.fmt-card__excerpt { font-size: 13px; color: var(--fmt-grey); margin: 0; line-height: 1.6; }
.fmt-card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 11px; color: var(--fmt-grey); font-family: var(--fmt-font-mono); }

.fmt-thumb-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Raster icons (assets/images/icon-1..4.png) layered over the inline SVG.
   The wrapper is the positioning context; the SVG stays centred behind and is
   revealed only when the raster is missing (img hidden via onerror). */
.fmt-tile__icon, .fmt-instr__icon, .fmt-adv__icon { position: relative; overflow: hidden; }
.fmt-icon-img {
	position: absolute; inset: 0; z-index: 1;
	width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}

/* Instruments (section 5) — rounded cards with coral top band */
.fmt-instr {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 10px;
	background: var(--fmt-white); border: 1px solid var(--fmt-line);
	border-radius: var(--fmt-radius); padding: 24px 20px 20px;
	box-shadow: var(--fmt-shadow); transition: transform .22s ease, box-shadow .22s ease;
}
.fmt-instr:hover { transform: translateY(-4px); box-shadow: var(--fmt-shadow-lg); }
.fmt-instr__band { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); }
.fmt-instr__icon {
	width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--fmt-peach); color: var(--fmt-coral-deep);
}
.fmt-instr__icon svg { width: 26px; height: 26px; }
.fmt-instr h3 { font-size: 18px; margin: 4px 0 0; }
.fmt-instr h3 a:hover { color: var(--fmt-coral-deep); }
.fmt-instr__desc { font-size: 13px; color: var(--fmt-grey); margin: 0; }
.fmt-instr__deco { display: block; margin: 2px 0; }
.fmt-instr__deco svg { width: 92px; height: 40px; }
.fmt-instr__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fmt-line-soft); }
.fmt-instr__count { font-size: 12px; color: var(--fmt-grey); }
.fmt-instr__count b { font-family: var(--fmt-font-mono); font-size: 16px; color: var(--fmt-ink); }

/* ==========================================================================
   9. Bento advantages wall (section 6)
   ========================================================================== */
.fmt-bento--adv { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(120px, auto); }
.fmt-adv {
	position: relative; overflow: hidden;
	background: var(--fmt-white); border: 1px solid var(--fmt-line);
	border-radius: var(--fmt-radius); padding: 24px; box-shadow: var(--fmt-shadow);
	opacity: 0; transform: translateY(18px) scale(.98);
	transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.fmt-adv.fmt-bento--in { opacity: 1; transform: none; }
.fmt-adv:hover { box-shadow: var(--fmt-shadow-lg); }
.fmt-adv--lead { grid-column: 1 / 3; grid-row: 1 / 3; background: linear-gradient(150deg, var(--fmt-ink), var(--fmt-ink-2)); color: var(--fmt-white); border-color: transparent; padding: 30px; }
.fmt-adv--lead h3 { color: var(--fmt-white); font-size: 24px; }
.fmt-adv--lead p { color: rgba(255, 255, 255, .78); }
.fmt-adv--lead .fmt-adv__icon { background: rgba(255, 112, 67, .2); color: var(--fmt-coral-soft); }
.fmt-adv:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.fmt-adv:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.fmt-adv--wide { grid-column: 3 / 5; grid-row: 2 / 3; background: var(--fmt-peach); border-color: rgba(255, 112, 67, .2); }
.fmt-adv__icon {
	width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--fmt-peach); color: var(--fmt-coral-deep); margin-bottom: 12px;
}
.fmt-adv__icon svg { width: 24px; height: 24px; }
.fmt-adv h3 { font-size: 17px; margin: 0 0 6px; }
.fmt-adv p { font-size: 13px; color: var(--fmt-grey); margin: 0; }
.fmt-adv__list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.fmt-adv__list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fmt-adv__list svg { width: 16px; height: 16px; color: var(--fmt-coral); flex: 0 0 auto; }
.fmt-adv--lead .fmt-adv__list li { color: rgba(255, 255, 255, .85); }
.fmt-adv--lead .fmt-adv__list svg { color: var(--fmt-coral-soft); }
.fmt-adv__spark { position: absolute; right: 0; bottom: 0; left: 0; opacity: .5; pointer-events: none; }
.fmt-adv__spark svg { width: 100%; height: 60px; }

/* ==========================================================================
   10. Stats band (section 7) — coral bg + white numbers
   ========================================================================== */
.fmt-stats {
	background:
		radial-gradient(680px 320px at 12% 0%, rgba(255, 255, 255, .18), transparent 60%),
		radial-gradient(520px 320px at 100% 100%, rgba(38, 50, 56, .22), transparent 55%),
		linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep));
	color: var(--fmt-white); padding: 56px 0;
}
.fmt-stats__head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.fmt-stats__head h2 { color: var(--fmt-white); font-size: clamp(24px, 3vw, 34px); margin: 10px 0 6px; }
.fmt-stats__head p { color: rgba(255, 255, 255, .85); margin: 0; }
.fmt-stats__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.fmt-stat {
	text-align: center; padding: 22px 10px; border-radius: var(--fmt-radius);
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
}
.fmt-stat__value { display: block; font-family: var(--fmt-font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; }
.fmt-stat__label { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .85); letter-spacing: .03em; }

/* ==========================================================================
   11. Coral CTA band inserted between cards (spec G, slot 4)
   ========================================================================== */
.fmt-band {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	background: linear-gradient(120deg, var(--fmt-coral-soft), var(--fmt-coral-deep));
	color: var(--fmt-white); border-radius: var(--fmt-radius);
	padding: 28px 32px; margin: 14px 0;
	box-shadow: var(--fmt-shadow-lg);
	opacity: 0; transform: translateX(-30px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}
.fmt-band.fmt-band--in, .fmt-band.fmt-inview { opacity: 1; transform: none; }
.fmt-band__glow {
	position: absolute; top: -60%; right: -10%; width: 340px; height: 340px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); pointer-events: none;
}
.fmt-band__text { position: relative; z-index: 1; }
.fmt-band__kicker { font-family: var(--fmt-font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.fmt-band__text h3 { color: var(--fmt-white); font-size: clamp(20px, 2.4vw, 28px); margin: 6px 0 4px; }
.fmt-band__text p { color: rgba(255, 255, 255, .9); margin: 0; max-width: 60ch; font-size: 14px; }
.fmt-band__action { position: relative; z-index: 1; flex: 0 0 auto; }

/* Closing CTA band (section 8) */
.fmt-ctaband {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 30px;
	background: var(--fmt-white); border: 1px solid var(--fmt-line);
	border-radius: 24px; padding: 40px 44px; box-shadow: var(--fmt-shadow);
}
.fmt-ctaband__deco { position: absolute; right: 24px; top: 20px; opacity: .16; pointer-events: none; }
.fmt-ctaband__deco svg { width: 160px; height: 70px; }
.fmt-ctaband__text { position: relative; z-index: 1; max-width: 620px; }
.fmt-ctaband__text h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0; }
.fmt-ctaband__text p { color: var(--fmt-grey); margin: 0; }
.fmt-ctaband__action { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 0 0 auto; }

/* ==========================================================================
   12. Footer (spec F — 3-col light + white bottom bar)
   ========================================================================== */
.fmt-footer { background: var(--fmt-peach); border-top: 1px solid rgba(255, 112, 67, .16); }
.fmt-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 40px; }
.fmt-footer__logo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.fmt-footer__about { font-size: 13px; color: var(--fmt-ink-2); max-width: 40ch; margin: 0 0 18px; }
.fmt-footer__col h4 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; color: var(--fmt-ink); }
.fmt-footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.fmt-footer__col a { font-size: 14px; color: var(--fmt-ink-2); transition: color .18s, padding-left .18s; }
.fmt-footer__col a:hover { color: var(--fmt-coral-deep); padding-left: 4px; }
.fmt-footer__bar { background: var(--fmt-white); border-top: 1px solid var(--fmt-line-soft); }
.fmt-footer__barinner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; flex-wrap: wrap; }
.fmt-footer__copy { font-size: 12px; color: var(--fmt-ink); font-weight: 600; }
.fmt-footer__disclaimer { font-size: 11px; color: var(--fmt-grey); flex: 1 1 260px; }
.fmt-footer__barright { display: flex; align-items: center; gap: 16px; }
.fmt-social { display: inline-flex; gap: 8px; }
.fmt-social a {
	width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--fmt-grey-soft); color: var(--fmt-ink); transition: background .18s, color .18s, transform .18s;
}
.fmt-social a:hover { background: var(--fmt-coral); color: var(--fmt-white); transform: translateY(-2px); }
.fmt-social svg { width: 16px; height: 16px; }

/* ==========================================================================
   13. Page head + single/page detail (spec E)
   ========================================================================== */
.fmt-pagehead { background: linear-gradient(180deg, var(--fmt-peach), var(--fmt-white)); padding: 40px 0 26px; border-bottom: 1px solid var(--fmt-line-soft); }
.fmt-pagehead h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 6px 0 8px; }
.fmt-pagehead p { color: var(--fmt-grey); margin: 0; max-width: 66ch; }
.fmt-pagehead--single { text-align: center; }
.fmt-pagehead--single .fmt-narrow > p { margin: 0 auto; }
.fmt-searchhead { margin-top: 16px; max-width: 520px; }

.fmt-single__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--fmt-grey); margin-top: 12px; }
.fmt-avatar {
	width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); color: var(--fmt-white);
	font-family: var(--fmt-font-display); font-size: 12px; flex: 0 0 auto;
}
.fmt-avatar--lg { width: 52px; height: 52px; font-size: 18px; }

.fmt-single__thumb { border-radius: var(--fmt-radius); overflow: hidden; margin-bottom: 26px; box-shadow: var(--fmt-shadow); aspect-ratio: 16 / 8; background: var(--fmt-peach); }
.fmt-single__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fmt-entry { font-size: 17px; line-height: 1.85; color: var(--fmt-ink-2); }
.fmt-entry h2, .fmt-entry h3, .fmt-entry h4 { color: var(--fmt-ink); margin: 1.4em 0 .6em; }
.fmt-entry a { color: var(--fmt-coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.fmt-entry img { border-radius: var(--fmt-radius-sm); }
.fmt-entry blockquote {
	margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--fmt-coral);
	background: var(--fmt-peach); border-radius: 0 var(--fmt-radius-sm) var(--fmt-radius-sm) 0; color: var(--fmt-ink);
}
.fmt-entry ul, .fmt-entry ol { padding-left: 1.3em; margin: 0 0 1em; }
.fmt-entry ul { list-style: disc; }
.fmt-entry code { font-family: var(--fmt-font-mono); background: var(--fmt-grey-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.fmt-entry pre { background: var(--fmt-ink); color: #ECEFF1; padding: 18px; border-radius: var(--fmt-radius-sm); overflow-x: auto; }
.fmt-entry pre code { background: none; color: inherit; padding: 0; }

.fmt-tagcloud { margin: 26px 0; padding-top: 20px; border-top: 1px solid var(--fmt-line-soft); }

.fmt-postnav { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; }
.fmt-postnav a {
	flex: 1 1 0; padding: 16px 18px; border: 1px solid var(--fmt-line); border-radius: var(--fmt-radius-sm);
	background: var(--fmt-white); transition: border-color .18s, transform .18s;
}
.fmt-postnav a:hover { border-color: var(--fmt-coral); transform: translateY(-2px); }
.fmt-postnav--next { text-align: right; }
.fmt-postnav span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fmt-coral-deep); margin-bottom: 4px; }
.fmt-postnav strong { font-size: 14px; color: var(--fmt-ink); line-height: 1.4; }

.fmt-endcta {
	text-align: center; margin: 30px 0; padding: 38px 30px;
	border-radius: 22px; background: linear-gradient(150deg, var(--fmt-peach), var(--fmt-white));
	border: 1px solid rgba(255, 112, 67, .22); box-shadow: var(--fmt-shadow);
}
.fmt-endcta__icon {
	width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); color: var(--fmt-white); box-shadow: 0 10px 24px rgba(244, 81, 30, .34);
}
.fmt-endcta__icon svg { width: 28px; height: 28px; }
.fmt-endcta h3 { font-size: 24px; margin: 0 0 8px; }
.fmt-endcta p { color: var(--fmt-grey); max-width: 46ch; margin: 0 auto 20px; }

.fmt-authorbox { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--fmt-radius); background: var(--fmt-grey-soft); margin-bottom: 26px; }
.fmt-authorbox__k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fmt-coral-deep); }
.fmt-authorbox__name { font-family: var(--fmt-font-display); font-weight: 700; font-size: 16px; margin: 4px 0; }
.fmt-authorbox__bio { font-size: 13px; color: var(--fmt-grey); margin: 0; }
.fmt-pageupdated { font-size: 12px; color: var(--fmt-grey); font-family: var(--fmt-font-mono); margin-top: 20px; }

/* Comments */
.fmt-comments { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--fmt-line-soft); }
.fmt-comments h3 { font-size: 20px; }
.fmt-nocomments { color: var(--fmt-grey); font-size: 14px; }
.comment-list { padding-left: 0; }
.comment-list li { list-style: none; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--fmt-line-soft); font-size: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	font-family: var(--fmt-font-body); font-size: 14px; padding: 11px 14px;
	border: 1px solid var(--fmt-line); border-radius: var(--fmt-radius-sm); background: var(--fmt-white); color: var(--fmt-ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--fmt-coral); }
.comment-form .submit {
	align-self: flex-start; background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep));
	color: var(--fmt-white); border: none; padding: 11px 22px; border-radius: 999px; font-family: var(--fmt-font-display); font-weight: 700; cursor: pointer;
}

/* Search form */
.fmt-searchform { display: flex; gap: 8px; }
.fmt-searchform label { flex: 1 1 auto; }
.fmt-searchform input[type="search"] {
	width: 100%; font-family: var(--fmt-font-body); font-size: 14px; padding: 12px 16px;
	border: 1px solid var(--fmt-line); border-radius: 999px; background: var(--fmt-white); color: var(--fmt-ink);
}
.fmt-searchform input[type="search"]:focus { outline: none; border-color: var(--fmt-coral); }
.fmt-searchform button {
	display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
	background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); color: var(--fmt-white);
	border: none; padding: 12px 20px; border-radius: 999px; font-family: var(--fmt-font-display); font-weight: 700; font-size: 14px; cursor: pointer;
}
.fmt-searchform button svg { width: 16px; height: 16px; }

/* 404 */
.fmt-404 { text-align: center; padding: 60px 0; max-width: 560px; margin: 0 auto; }
.fmt-404__code { display: block; font-family: var(--fmt-font-display); font-size: clamp(70px, 16vw, 140px); line-height: 1; color: var(--fmt-coral); letter-spacing: -.04em; }
.fmt-404__spark { display: block; margin: -10px auto 6px; }
.fmt-404__spark svg { width: 260px; height: 44px; }
.fmt-404__tag { font-family: var(--fmt-font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fmt-grey); }
.fmt-404 h1 { font-size: clamp(26px, 4vw, 38px); margin: 12px 0 8px; }
.fmt-404 p { color: var(--fmt-grey); }
.fmt-404__search { max-width: 440px; margin: 22px auto; }

/* Pagination */
.fmt-pagination { margin-top: 34px; }
.fmt-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fmt-pagination ul li { list-style: none; }
.fmt-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 12px; border: 1px solid var(--fmt-line); background: var(--fmt-white);
	font-family: var(--fmt-font-mono); font-size: 14px; color: var(--fmt-ink); transition: all .18s;
}
.fmt-pagination .page-numbers:hover { border-color: var(--fmt-coral); color: var(--fmt-coral-deep); }
.fmt-pagination .page-numbers.current { background: linear-gradient(135deg, var(--fmt-coral-soft), var(--fmt-coral-deep)); color: var(--fmt-white); border-color: transparent; }

.fmt-empty { text-align: center; padding: 50px 20px; color: var(--fmt-grey); background: var(--fmt-white); border: 1px dashed var(--fmt-line); border-radius: var(--fmt-radius); }

/* ==========================================================================
   14. Reveal + shared SVG
   ========================================================================== */
.fmt-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.fmt-reveal.fmt-inview { opacity: 1; transform: none; }
.fmt-spark, .fmt-candles { display: block; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.fmt-stats__grid { grid-template-columns: repeat(3, 1fr); }
	.fmt-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.fmt-board__head, .fmt-board__row { grid-template-columns: 2fr 1.3fr 1fr 1fr; }
	.fmt-board__h-trend, .fmt-board__trend { display: none; }
}

@media (max-width: 900px) {
	.fmt-grid4 { grid-template-columns: repeat(2, 1fr); }
	.fmt-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(120px, auto); }
	.fmt-tile--hero { grid-column: 1 / 3; grid-row: auto; }
	.fmt-tile--price { grid-column: 1 / 3; grid-row: auto; }
	.fmt-tile--f1, .fmt-tile--f2, .fmt-tile--f3, .fmt-tile--f4 { grid-column: auto; grid-row: auto; }
	.fmt-bento--adv { grid-template-columns: repeat(2, 1fr); }
	.fmt-adv--lead { grid-column: 1 / 3; grid-row: auto; }
	.fmt-adv:nth-child(2), .fmt-adv:nth-child(3) { grid-column: auto; grid-row: auto; }
	.fmt-adv--wide { grid-column: 1 / 3; grid-row: auto; }
	.fmt-ctaband { flex-direction: column; text-align: center; padding: 32px 24px; }
	.fmt-band { flex-direction: column; text-align: center; align-items: stretch; }
	.fmt-minibar__tag { display: none; }
}

@media (max-width: 640px) {
	.fmt-wrap, .fmt-narrow { padding: 0 16px; }
	.fmt-section { padding: 40px 0; }
	.fmt-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.fmt-footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 28px; }
	.fmt-footer__barinner { flex-direction: column; align-items: flex-start; gap: 12px; }
	.fmt-section__head { flex-direction: column; align-items: flex-start; }
	.fmt-tile--f3, .fmt-tile--f4 { flex-direction: column; align-items: flex-start; gap: 8px; }
	.fmt-tile--f3 .fmt-tile__icon, .fmt-tile--f4 .fmt-tile__icon { margin-bottom: 4px; }
	.fmt-board__head, .fmt-board__row { grid-template-columns: 1.6fr 1fr .8fr; padding: 12px 14px; }
	.fmt-board__head span:nth-child(4), .fmt-board__chg { display: none; }
	.fmt-postnav { flex-direction: column; }
	.fmt-entry { font-size: 16px; }
}

@media (max-width: 520px) {
	.fmt-grid4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.fmt-bento { grid-template-columns: 1fr; }
	.fmt-tile--hero, .fmt-tile--price, .fmt-adv--lead, .fmt-adv--wide { grid-column: 1 / 2; }
	.fmt-card__title { font-size: 14px; }
	.fmt-card__excerpt { display: none; }
	.fmt-minibar__login { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fmt-ticker__track { animation: none; }
	.fmt-price__live i { animation: none; }
	* { scroll-behavior: auto !important; }
}

/* ==== breadcrumb (added by automation) ==== */
.fmt-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:.5em;font-size:.85rem;line-height:1.4;margin:0 0 1.1rem;opacity:.9}
.fmt-crumb a{color:inherit;text-decoration:none}
.fmt-crumb a:hover{text-decoration:underline}
.fmt-crumb .fmt-sep{opacity:.45}
.fmt-crumb .fmt-current{font-weight:600}
.fmt-crumb-bar{padding-top:16px}
