/* ==========================================================================
   Abira Academy — Landing page styles
   Tokens mirror the theme's own theme.json (colours, radii, shadows, type)
   so the sales page and the product look like the same family.
   ========================================================================== */

:root {
	/* Surfaces */
	--c-surface: #fbf9f8;
	--c-white: #ffffff;
	--c-surface-low: #f5f3f3;
	--c-surface-mid: #efeded;
	--c-surface-high: #eae8e7;
	--c-variant: #e4e2e2;

	/* Ink */
	--c-on: #1b1c1c;
	--c-on-var: #44474d;
	--c-outline: #c5c6ce;

	/* Brand */
	--c-navy: #031632;
	--c-navy-soft: #1a2b48;
	--c-tint: #4e5f7e;
	--c-blue-fixed: #d7e2ff;
	--c-blue-dim: #b6c7eb;

	/* Accent */
	--c-amber: #d17e31;
	--c-amber-ink: #6e3900;
	--c-amber-soft: #ffdcc3;
	--c-amber-dim: #ffb77d;
	--c-success: #2e7d32;

	/* Radii */
	--r-sm: 0.25rem;
	--r: 0.5rem;
	--r-md: 0.75rem;
	--r-lg: 1rem;
	--r-xl: 1.5rem;
	--r-full: 9999px;

	/* Shadows */
	--sh-card: 0 8px 20px 0 rgb(3 22 50 / 4%);
	--sh-soft: 0 10px 30px -5px rgb(3 22 50 / 6%);
	--sh-ambient: 0 20px 40px -15px rgb(3 22 50 / 6%);
	--sh-deep: 0 8px 30px 0 rgb(3 22 50 / 6%);

	/* Type */
	--f-display: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
	--f-body: "Be Vietnam Pro", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
	--f-label: "Work Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;

	/* Layout */
	--wrap: 1120px;
	--gutter: 24px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

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

body {
	background-color: var(--c-surface);
	color: var(--c-on);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.7;
	min-height: 100svh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

button {
	cursor: pointer;
	font: inherit;
	-webkit-user-select: none;
	user-select: none;
}

a {
	color: var(--c-navy);
	text-decoration: none;
}

a:hover {
	color: var(--c-tint);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--c-navy);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	color: var(--c-navy);
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.3;
	line-break: strict;
	text-wrap: balance;
	/* Japanese headings break at phrase boundaries where the browser
	   supports it, so a line never splits mid-word. Ignored elsewhere. */
	word-break: auto-phrase;
}

p {
	text-wrap: pretty;
}

.sr-only {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link {
	background: var(--c-white);
	border-radius: var(--r-sm);
	box-shadow: var(--sh-soft);
	left: 8px;
	padding: 12px 20px;
	position: absolute;
	top: -100px;
	z-index: 100;
}

.skip-link:focus {
	top: 8px;
}

/* --------------------------------------------------------------------------
   Shared building blocks
   -------------------------------------------------------------------------- */

.wrap {
	margin-inline: auto;
	max-width: var(--wrap);
	padding-inline: 16px;
	width: 100%;
}

.sec {
	padding-block: 56px;
}

@media (min-width: 768px) {
	.sec {
		padding-block: 88px;
	}
}

.band--white {
	background-color: var(--c-white);
}

.band--low {
	background-color: var(--c-surface-low);
}

.band--navy {
	background-color: var(--c-navy);
	color: color-mix(in srgb, var(--c-white) 82%, transparent);
}

/* Only the band's own headings go white — cards sitting on the navy band
   keep their light background, so their headings stay navy. */
.band--navy > .wrap > h2,
.band--navy .sec-head h2,
.band--navy .sec-head h3 {
	color: var(--c-white);
}

.sec-head {
	margin-bottom: 40px;
	max-width: 720px;
}

.sec-head--center {
	margin-inline: auto;
	text-align: center;
}

.eyebrow {
	color: var(--c-tint);
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.band--navy .eyebrow {
	color: var(--c-amber-dim);
}

h2 {
	font-size: clamp(24px, 1.4rem + 1.2vw, 34px);
	letter-spacing: -0.01em;
}

.lead {
	color: var(--c-on-var);
	font-size: 17px;
	margin-top: 16px;
}

.band--navy .lead {
	color: color-mix(in srgb, var(--c-white) 78%, transparent);
}

/* Buttons */

.btn {
	align-items: center;
	white-space: nowrap;
	border: 2px solid transparent;
	border-radius: var(--r-lg);
	display: inline-flex;
	font-family: var(--f-label);
	font-size: 15px;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	letter-spacing: 0.03em;
	min-height: 56px;
	padding: 8px 28px;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background-color: var(--c-amber);
	border-color: var(--c-amber);
	color: var(--c-white);
}

.btn--primary:hover {
	background-color: var(--c-amber-ink);
	border-color: var(--c-amber-ink);
	color: var(--c-white);
}

.btn--ghost {
	background-color: transparent;
	border-color: var(--c-navy);
	color: var(--c-navy);
}

.btn--ghost:hover {
	background-color: var(--c-navy);
	color: var(--c-white);
}

.btn--light {
	background-color: var(--c-white);
	border-color: var(--c-white);
	color: var(--c-navy);
}

.btn--light:hover {
	background-color: var(--c-blue-fixed);
	color: var(--c-navy);
}

.btn--sm {
	border-radius: var(--r-full);
	font-size: 14px;
	min-height: 44px;
	padding: 6px 20px;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.soon {
	background-color: var(--c-surface-high);
	border-radius: var(--r-full);
	color: var(--c-on-var);
	display: inline-block;
	font-family: var(--f-label);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 2px 10px;
	vertical-align: middle;
}

.band--navy .soon {
	background-color: color-mix(in srgb, var(--c-white) 16%, transparent);
	color: var(--c-white);
}

/* Cards */

.card {
	background-color: var(--c-white);
	border: 1px solid var(--c-variant);
	border-radius: var(--r-xl);
	box-shadow: var(--sh-card);
	padding: 28px;
}

.card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.card p {
	color: var(--c-on-var);
	font-size: 15px;
}

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* Four cards read better as a 2 × 2 block than as a row of three with
   one orphan underneath. */
.grid--quad {
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.grid--quad {
		grid-template-columns: repeat(2, 1fr);
	}
}

.chip {
	background-color: var(--c-surface-mid);
	border-radius: var(--r-full);
	color: var(--c-on-var);
	display: inline-block;
	font-family: var(--f-label);
	font-size: 12px;
	font-weight: 600;
	padding: 3px 12px;
}

.icon-badge {
	align-items: center;
	background-color: var(--c-blue-fixed);
	border-radius: var(--r-md);
	color: var(--c-navy);
	display: inline-flex;
	font-family: var(--f-label);
	font-size: 18px;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	margin-bottom: 16px;
	width: 44px;
}

.icon-badge--amber {
	background-color: var(--c-amber-soft);
	color: var(--c-amber-ink);
}

/* For badges carrying a short word instead of a glyph. */
.icon-badge--text {
	font-size: 13px;
	letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.lp-header {
	backdrop-filter: blur(8px);
	background-color: color-mix(in srgb, var(--c-surface) 88%, transparent);
	border-bottom: 1px solid var(--c-variant);
	position: sticky;
	top: 0;
	z-index: 40;
}

.lp-header__inner {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	min-height: 72px;
}

.brand {
	align-items: center;
	display: flex;
	font-family: var(--f-display);
	font-size: 19px;
	font-weight: 700;
	gap: 10px;
	white-space: nowrap;
}

.brand__mark {
	color: var(--c-amber);
	flex: none;
}

.lp-nav {
	display: none;
	gap: 24px;
}

.lp-nav a {
	color: var(--c-on-var);
	font-family: var(--f-label);
	font-size: 14px;
	font-weight: 500;
}

.lp-nav a:hover {
	color: var(--c-navy);
}

.lp-header__actions {
	align-items: center;
	display: flex;
	gap: 12px;
}

.lang-switch {
	border: 1px solid var(--c-outline);
	border-radius: var(--r-full);
	color: var(--c-on-var);
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
}

.lang-switch:hover {
	background-color: var(--c-white);
	color: var(--c-navy);
}

@media (min-width: 900px) {
	.lp-nav {
		display: flex;
	}
}

/* On a narrow phone the brand, the language switch, and the CTA have to
   share one row — tighten all three rather than wrap the button's label. */
@media (max-width: 600px) {

	.lp-header__inner {
		gap: 10px;
		min-height: 64px;
	}

	.brand {
		font-size: 16px;
	}

	.lp-header__actions {
		gap: 8px;
	}

	.lang-switch {
		padding: 6px 10px;
	}

	.btn--sm {
		padding: 6px 16px;
	}
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	padding-block: 48px 56px;
}

@media (min-width: 768px) {
	.hero {
		padding-block: 72px 88px;
	}
}

.hero__grid {
	align-items: center;
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.hero__grid {
		gap: 56px;
		grid-template-columns: 1fr 1fr;
	}
}

.hero__pill {
	align-items: center;
	background-color: var(--c-surface-mid);
	border: 1px solid var(--c-variant);
	border-radius: var(--r-full);
	color: var(--c-tint);
	display: inline-flex;
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	letter-spacing: 0.04em;
	margin-bottom: 24px;
	padding: 6px 16px;
}

.hero h1 {
	font-size: clamp(30px, 1.6rem + 2.6vw, 46px);
	letter-spacing: -0.02em;
	line-height: 1.22;
}

.hero h1 .accent {
	color: var(--c-amber);
}

.hero__lead {
	color: var(--c-on-var);
	font-size: 18px;
	margin-top: 20px;
	max-width: 34em;
}

.hero__price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hero__price-value {
	color: var(--c-navy);
	font-family: var(--f-display);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

.hero__price-note {
	color: var(--c-on-var);
	font-size: 14px;
}

.hero__figure {
	position: relative;
}

.hero__figure img {
	aspect-ratio: 4 / 3;
	border-radius: var(--r-xl);
	box-shadow: var(--sh-ambient);
	object-fit: cover;
	width: 100%;
}

.hero__float {
	background-color: var(--c-white);
	border: 1px solid var(--c-variant);
	border-radius: var(--r-lg);
	bottom: -20px;
	box-shadow: var(--sh-soft);
	display: none;
	left: -20px;
	max-width: 260px;
	padding: 14px 18px;
	position: absolute;
}

.hero__float strong {
	color: var(--c-navy);
	display: block;
	font-family: var(--f-display);
	font-size: 15px;
}

.hero__float span {
	color: var(--c-on-var);
	font-size: 13px;
}

@media (min-width: 900px) {
	.hero__float {
		display: block;
	}
}

/* Fact strip under the hero */

.facts {
	border-block: 1px solid var(--c-variant);
	background-color: var(--c-white);
}

.facts__grid {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
	.facts__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.fact {
	padding: 24px 8px;
	text-align: center;
}

.fact__value {
	color: var(--c-navy);
	font-family: var(--f-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.fact__label {
	color: var(--c-on-var);
	font-family: var(--f-label);
	font-size: 13px;
	margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Section list (front-page composition)
   -------------------------------------------------------------------------- */

.steps {
	counter-reset: step;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	list-style: none;
}

.steps li {
	background-color: var(--c-white);
	border: 1px solid var(--c-variant);
	border-radius: var(--r-lg);
	counter-increment: step;
	display: grid;
	gap: 4px 16px;
	grid-template-columns: 40px 1fr;
	padding: 18px 20px;
}

.steps li::before {
	align-items: center;
	background-color: var(--c-navy);
	border-radius: var(--r-full);
	color: var(--c-white);
	content: counter(step, decimal-leading-zero);
	display: flex;
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 700;
	grid-row: span 2;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.steps b {
	color: var(--c-navy);
	font-family: var(--f-display);
	font-size: 16px;
}

.steps span {
	color: var(--c-on-var);
	font-size: 14px;
}

.note {
	background-color: var(--c-surface-mid);
	border-left: 3px solid var(--c-amber-dim);
	border-radius: var(--r);
	color: var(--c-on-var);
	font-size: 14px;
	margin-top: 24px;
	padding: 14px 18px;
}

/* --------------------------------------------------------------------------
   Live demo widgets
   -------------------------------------------------------------------------- */

.demo {
	background-color: var(--c-white);
	border: 1px solid var(--c-variant);
	border-radius: var(--r-xl);
	box-shadow: var(--sh-card);
	overflow: hidden;
}

.demo__head {
	align-items: center;
	background-color: var(--c-surface-low);
	border-bottom: 1px solid var(--c-variant);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	justify-content: space-between;
	padding: 12px 20px;
}

.demo__title {
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.demo__hint {
	color: var(--c-on-var);
	font-size: 13px;
}

.demo__body {
	padding: 20px;
}

/* Schedule table */

.table-scroll {
	overflow-x: auto;
}

.tt {
	border-collapse: collapse;
	font-size: 14px;
	min-width: 560px;
	width: 100%;
}

.tt th,
.tt td {
	padding: 12px 14px;
	text-align: left;
}

.tt thead th {
	border-bottom: 2px solid var(--c-navy);
	color: var(--c-navy);
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 700;
}

.tt tbody tr {
	border-bottom: 1px solid var(--c-variant);
}

.tt tbody th {
	color: var(--c-navy);
	font-weight: 700;
	white-space: nowrap;
}

.grade {
	color: var(--c-on-var);
	display: block;
	font-size: 12px;
	margin-bottom: 3px;
}

.badge {
	border-radius: var(--r-full);
	display: inline-block;
	font-family: var(--f-label);
	font-size: 12px;
	font-weight: 700;
	padding: 1px 10px;
	white-space: nowrap;
}

.badge--open {
	background-color: color-mix(in srgb, var(--c-success) 12%, transparent);
	color: var(--c-success);
}

.badge--limited {
	background-color: var(--c-amber-soft);
	color: var(--c-amber-ink);
}

.badge--full {
	background-color: var(--c-surface-high);
	color: var(--c-on-var);
}

/* Accessibility toolbar demo */

.a11y-bar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.a11y-bar__label {
	color: var(--c-on-var);
	font-family: var(--f-label);
	font-size: 13px;
	margin-right: 4px;
}

.a11y-btn {
	background-color: var(--c-white);
	border: 1px solid var(--c-outline);
	border-radius: var(--r-sm);
	color: var(--c-on);
	font-family: var(--f-label);
	font-size: 13px;
	font-weight: 600;
	min-height: 34px;
	padding: 4px 14px;
}

.a11y-btn[aria-pressed="true"] {
	background-color: var(--c-navy);
	border-color: var(--c-navy);
	color: var(--c-white);
}

.a11y-preview {
	border: 1px solid var(--c-variant);
	border-radius: var(--r-lg);
	margin-top: 16px;
	padding: 22px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.a11y-preview h4 {
	font-size: 20px;
	margin-bottom: 6px;
}

.a11y-preview p {
	color: var(--c-on-var);
	font-size: 15px;
}

.a11y-preview .badge {
	margin-top: 12px;
}

.a11y-preview[data-size="large"] {
	font-size: 1.15em;
}

.a11y-preview[data-size="larger"] {
	font-size: 1.32em;
}

.a11y-preview[data-size="large"] h4 {
	font-size: 23px;
}

.a11y-preview[data-size="larger"] h4 {
	font-size: 26px;
}

.a11y-preview[data-contrast="on"] {
	background-color: #000;
	border-color: #fff;
}

.a11y-preview[data-contrast="on"] h4,
.a11y-preview[data-contrast="on"] p {
	color: #fff;
}

.a11y-preview[data-contrast="on"] .badge {
	background-color: #ff0;
	color: #000;
}

/* FAQ / details */

.faq {
	display: grid;
	gap: 12px;
}

.faq details {
	background-color: var(--c-white);
	border: 1px solid var(--c-variant);
	border-radius: var(--r-lg);
	padding: 4px 20px;
}

.faq summary {
	align-items: center;
	color: var(--c-navy);
	cursor: pointer;
	display: flex;
	font-family: var(--f-display);
	font-size: 16px;
	font-weight: 600;
	gap: 12px;
	justify-content: space-between;
	list-style: none;
	padding-block: 16px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	color: var(--c-amber);
	content: "+";
	font-size: 22px;
	line-height: 1;
}

.faq details[open] summary::after {
	content: "–";
}

.faq details p {
	border-top: 1px solid var(--c-surface-high);
	color: var(--c-on-var);
	font-size: 15px;
	padding-block: 14px 18px;
}

/* --------------------------------------------------------------------------
   Spec table
   -------------------------------------------------------------------------- */

.spec {
	border-collapse: collapse;
	width: 100%;
}

.spec th,
.spec td {
	border-bottom: 1px solid var(--c-variant);
	font-size: 15px;
	padding: 14px 8px;
	text-align: left;
	vertical-align: top;
}

.spec th {
	color: var(--c-navy);
	font-family: var(--f-label);
	font-weight: 700;
	white-space: nowrap;
	width: 34%;
}

.spec td {
	color: var(--c-on-var);
}

/* --------------------------------------------------------------------------
   Comparison (free Abira vs Academy)
   -------------------------------------------------------------------------- */

.compare {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.compare__col {
	border: 1px solid var(--c-variant);
	border-radius: var(--r-xl);
	padding: 28px;
}

.compare__col--free {
	background-color: var(--c-surface-low);
}

.compare__col--paid {
	background-color: var(--c-white);
	border-color: var(--c-amber-dim);
	box-shadow: var(--sh-soft);
}

.compare h3 {
	font-size: 19px;
}

.compare ul {
	list-style: none;
	margin-top: 16px;
}

.compare li {
	color: var(--c-on-var);
	display: flex;
	font-size: 15px;
	gap: 10px;
	padding-block: 7px;
}

.compare li::before {
	color: var(--c-amber);
	content: "▸";
	flex: none;
}

.compare__col--free li::before {
	color: var(--c-outline);
}

/* --------------------------------------------------------------------------
   Final CTA + footer
   -------------------------------------------------------------------------- */

.cta-final {
	text-align: center;
}

.cta-final h2 {
	font-size: clamp(26px, 1.4rem + 1.8vw, 38px);
}

.cta-final .btn-row {
	justify-content: center;
}

.cta-final__note {
	color: color-mix(in srgb, var(--c-white) 65%, transparent);
	font-size: 14px;
	margin-top: 20px;
}

.lp-footer {
	background-color: var(--c-navy);
	border-top: 1px solid color-mix(in srgb, var(--c-white) 12%, transparent);
	color: color-mix(in srgb, var(--c-white) 70%, transparent);
	font-size: 14px;
	padding-block: 32px;
}

.lp-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
}

.lp-footer a {
	color: var(--c-white);
}

.lp-footer a:hover {
	color: var(--c-amber-dim);
}

.lp-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.btn:hover {
		transform: none;
	}
}
