/* ============================================================
   RHLS App Store — shared design system (2026-09-05 overhaul)
   ------------------------------------------------------------
   One system for every page of the store: index, about, cv,
   contact, privacy, terms, refund. Identity: navy & brass
   "studio" — deep navy #0b1f33, brass #c9a45c, warm paper
   #faf8f3, Georgia serif for display type, system-ui for UI
   text. Solid colors + soft glows only — no gradients used for
   meaning. Accessible: ≥4.5:1 body text, visible focus, keyboard
   flow, reduced-motion respected, mobile-first, RTL-safe (dir
   switches via i18n-site.js). Localization is markup-side only:
   every user-visible string keeps its data-i18n attribute.

   Class surface: topbar/nav, heroes (store/profile/cv), app
   cards, platform chips, bundles/pricing, contact panels, forms,
   CV layout, work grid, legal pages, footer, anchors.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
	color-scheme: light;
	--navy: #0b1f33;          /* brand ink / primary */
	--navy-2: #12293f;        /* hero gradient base */
	--navy-3: #16334e;        /* interactive hover */
	--gold: #c9a45c;          /* brand brass accent */
	--gold-dim: #8a6f3c;      /* focus ring / decorative brass */
	--paper: #faf8f3;         /* warm page ground */
	--card: #ffffff;          /* raised surfaces */
	--line: #c8c3b6;          /* hairlines on warm ground */
	--line-soft: #e4dfd2;     /* inner hairlines */
	--ink: #101418;           /* body text */
	--muted: #5b6472;         /* secondary text (≥4.5:1 on paper/card) */
	--link: #005f9e;          /* inline links (≥4.5:1 on paper/card) */
	--free: #0a6b35;          /* honest "Free"/save accents (≥4.5:1) */
	--free-bg: #e6f4ea;       /* pale green chip ground */
	--radius: 14px;
	--radius-sm: 9px;
	--shadow-card: 0 1px 0 rgba(11, 31, 51, .04), 0 12px 28px -18px rgba(11, 31, 51, .25);
	--shadow-hover: 0 2px 0 rgba(11, 31, 51, .05), 0 22px 44px -20px rgba(11, 31, 51, .35);
	--serif: Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	background: var(--paper);
	color: var(--ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--navy); }
section[id], main[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; border-radius: 2px; }

/* ---------- Top bar (sticky, shared by every page) ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px 24px;
	background: rgba(250, 248, 243, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.brand-lockup {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}
.brand-lockup:hover { color: inherit; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.brand {
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: .02em;
	color: var(--navy);
}
.brand-sub {
	display: block;
	color: var(--muted);
	font-size: .8rem;
}
.topbar nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-left: auto;
}
.topbar nav a {
	position: relative;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
	padding: 6px 2px;
}
.topbar nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--gold);
	transition: right .15s ease;
}
.topbar nav a:hover { color: var(--navy); }
.topbar nav a:hover::after { right: 0; }
.lang-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 4px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 10px;
}
.lang-bar select {
	border: none;
	background: transparent;
	font-size: .9rem;
	outline: none;
	cursor: pointer;
	color: var(--ink);
	padding: 4px 0;
	max-width: 170px;
}
.lang-bar label { font-size: .95rem; line-height: 1; }
.lang-bar .nav-link { color: var(--link); font-size: .85rem; text-decoration: none; }
.lang-bar .nav-link:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Hero bands ---------- */
.store-hero {
	position: relative;
	text-align: center;
	padding: 56px 20px 48px;
	color: #f4efe2;
	background:
		radial-gradient(900px 380px at 50% -10%, rgba(201, 164, 92, .28), transparent 60%),
		linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
	border-bottom: 1px solid rgba(201, 164, 92, .25);
	overflow: hidden;
}
.store-hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -30% -10%;
	height: 60%;
	background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(201, 164, 92, .16), transparent 70%);
	pointer-events: none;
}
.store-hero h1 {
	font-family: var(--serif);
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 500;
	letter-spacing: .01em;
	margin: 0 0 10px;
	color: #fff;
}
.store-hero h1::after {
	content: "";
	display: block;
	width: 64px;
	height: 2px;
	margin: 18px auto 0;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.store-hero p {
	color: #c9d4e0;
	max-width: 680px;
	margin: 14px auto 0;
	font-size: 1.05rem;
	line-height: 1.6;
}
.store-hero p strong { color: var(--gold); font-weight: 600; }
.store-hero > * { position: relative; z-index: 1; }

/* Subpage heroes (about / cv / contact) — same type voice on paper */
.profile-hero { text-align: center; padding: 44px 20px 12px; }
.profile-hero h1, .cv-head h1 {
	margin: 0 0 6px;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.7rem, 4vw, 2.35rem);
	letter-spacing: .01em;
	color: var(--navy);
}
.profile-hero .sub, .cv-head .sub { color: var(--muted); margin: 2px 0; }

/* ---------- Buttons & chips ---------- */
.btn {
	display: inline-block;
	padding: 11px 20px;
	min-height: 44px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--navy);
	background: var(--card);
	color: var(--navy);
	text-decoration: none;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .14s ease, color .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.btn:hover {
	background: var(--line-soft);
	color: var(--navy);
	border-color: var(--navy);
}
.btn-primary {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--gold);
}
.btn-primary:hover { background: var(--navy-3); border-color: var(--navy-3); color: var(--gold); }
.pbtn, .cta { font-weight: 700; }

/* Platform chips (real release links, or dashed "soon") */
.platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.pbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 40px;
	border: 1px solid #c9c0a9;
	border-radius: var(--radius-sm);
	padding: 8px 14px;
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--navy);
	background: #faf8f2;
	text-decoration: none;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.pbtn:hover {
	background: var(--navy);
	color: var(--gold);
	border-color: var(--navy);
}
.pbtn.soon {
	cursor: default;
	border-style: dashed;
	border-color: var(--line);
	background: transparent;
	color: var(--muted);
}
.pbtn.soon:hover {
	background: transparent;
	color: var(--muted);
	border-color: var(--line);
}

/* ---------- Content sections ---------- */
.strip {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px 8px;
}
.strip h2 {
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 600;
	color: var(--navy);
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
}
.strip h2::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--gold), transparent);
}
.links { padding-left: 20px; }
.links li { margin-bottom: 8px; }
.links a { color: var(--link); }
.tag { color: var(--muted); font-size: .9rem; }

/* ---------- App cards ---------- */
.store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
	margin-top: 22px;
}
.app-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px;
	box-shadow: var(--shadow-card);
	transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
	position: relative;
}
.app-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: 0;
	transition: opacity .14s ease;
}
.app-card:hover {
	transform: translateY(-3px);
	border-color: #d8cfba;
	box-shadow: var(--shadow-hover);
}
.app-card:hover::before { opacity: 1; }
.app-card .app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-card .app-icon {
	width: 52px;
	height: 52px;
	border-radius: 13px;
	flex: none;
	background: #f3efe4;
	padding: 4px;
	box-shadow: inset 0 0 0 1px rgba(138, 111, 60, .18);
}
.app-card h3 {
	margin: 0;
	font-size: 1.12rem;
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--navy);
}
.app-card .app-tag { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.app-card .app-desc {
	flex-grow: 1;
	margin: 8px 0 14px;
	font-size: .92rem;
	line-height: 1.55;
}
.app-price { font-weight: 700; color: var(--navy); font-size: .92rem; margin: 0 0 12px; }
.app-price .free { color: var(--free); }
.app-card .card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.featured {
	grid-column: 1 / -1;
	display: flex;
	gap: 26px;
	align-items: center;
	padding: 26px;
	background: linear-gradient(120deg, #fdfbf5, #f6f1e3);
	border-color: #d8cfba;
}
.featured .app-icon { width: 84px; height: 84px; border-radius: 20px; }
.featured h3 { font-size: 1.55rem; }
.badge {
	display: inline-block;
	background: var(--navy);
	color: var(--gold);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 12px;
	margin-bottom: 8px;
}

/* ---------- Bundles / pricing (honest UI) ---------- */
.bundles { padding-top: 48px; }
.bundles-intro { color: var(--muted); max-width: 620px; margin: -6px 0 24px; font-size: .95rem; }
.bundle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	margin-top: 4px;
}
.bundle-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-card);
	position: relative;
}
.bundle-card h3 {
	margin: 0 0 2px;
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--navy);
}
.bundle-card .tag { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.bundle-price {
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--navy);
	margin: 0;
}
.bundle-price .period { font-size: .85rem; font-weight: 500; color: var(--muted); font-family: system-ui, sans-serif; }
.bundle-worth { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.bundle-worth s { color: var(--muted); }
.bundle-save {
	display: inline-block;
	margin: 10px 0 14px;
	background: var(--free-bg);
	color: var(--free);
	font-size: .8rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 3px 11px;
	align-self: flex-start;
}
.bundle-list { margin: 0 0 20px; padding-left: 18px; }
.bundle-list li { margin-bottom: 8px; font-size: .9rem; }
.bundle-featured {
	border-color: var(--gold);
	border-width: 2px;
	background: linear-gradient(160deg, #fdfbf5, #f7f0df);
	box-shadow: var(--shadow-hover);
}
.bundle-featured .bundle-badge {
	position: absolute;
	top: -13px;
	left: 22px;
	display: inline-block;
	background: var(--navy);
	color: var(--gold);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 12px;
}
.bundle-card .card-actions { margin-top: auto; display: grid; gap: 8px; }
.bundle-card .card-actions .btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 13px 18px;
	font-size: 1rem;
}
.bundle-cta { box-shadow: 0 10px 22px -14px rgba(11, 31, 51, .55); }
.bundle-note {
	max-width: 1000px;
	margin: 22px auto 0;
	padding: 0 20px 30px;
	color: var(--muted);
	font-size: .88rem;
	text-align: center;
}

/* ---------- Shared subpage typography (about / cv / legal) ---------- */
.bio, .cv { max-width: 760px; margin: 0 auto; padding: 20px 20px 8px; }
.legal { max-width: 760px; margin: 0 auto; padding: 36px 20px 24px; }
.bio h2, .cv h2, .legal h2 {
	font-family: var(--serif);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--navy);
	position: relative;
	margin: 34px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line-soft);
}
.bio h2::after, .cv h2::after, .legal h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 56px;
	height: 2px;
	background: var(--gold);
}
.legal h1 {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 600;
	color: var(--navy);
	margin: 0 0 4px;
}
.legal em { color: var(--muted); font-size: .9rem; }
.legal li { margin-bottom: 6px; }

/* ---------- About page ---------- */
.bio .fun {
	background: var(--line-soft);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	color: var(--navy);
}
.work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.work-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px;
	background: var(--card);
}
.work-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.work-card p { margin: 0 0 8px; font-size: .9rem; }
.work-card a { font-size: .88rem; }

/* ---------- CV page ---------- */
.cv-head { text-align: center; margin-bottom: 10px; }
.cv .role { margin-bottom: 18px; }
.cv .role h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.cv .role .meta { color: var(--muted); font-size: .85rem; }
.cv ul { margin: 6px 0 0; padding-left: 20px; }
.cv li { margin-bottom: 4px; font-size: .93rem; }
.cv .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.cv-head .btn { margin: 8px 6px 0 0; }

/* ---------- Contact page ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 20px 8px;
	align-items: start;
}
.panel {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	background: var(--card);
}
.panel h2 { margin: 0 0 10px; font-size: 1.1rem; font-family: var(--serif); color: var(--navy); }
.panel h2 + h2 { margin-top: 18px; }
.panel ul { margin: 0; padding-left: 18px; }
.panel li { margin-bottom: 6px; font-size: .93rem; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--ink); }
.form-row input,
.form-row select,
.form-row textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font: inherit;
	background: var(--card);
	color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--gold-dim);
	box-shadow: 0 0 0 3px rgba(138, 111, 60, .18);
}
.hours td { padding: 3px 14px 3px 0; font-size: .92rem; }
.note {
	background: var(--line-soft);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	font-size: .9rem;
	color: var(--navy);
}

/* ---------- Contact CTA strip (index) ---------- */
.contact { text-align: center; padding: 8px 20px 48px; }
.contact h2 {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--navy);
	font-size: 1.65rem;
	margin: 0 0 8px;
}
.contact a { color: var(--link); font-size: 1.05rem; }

/* ---------- Footer ---------- */
footer {
	text-align: center;
	padding: 26px 20px 34px;
	color: var(--muted);
	font-size: .9rem;
	border-top: 1px solid var(--line);
	background: var(--card);
	margin-top: 40px;
}
.footer-logo { width: 28px; height: 28px; opacity: .85; }
footer p { margin: 8px 0 0; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--link); }
.legal-links { color: var(--muted); font-size: .85rem; }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--link); }

/* ---------- Misc ---------- */
.download { text-align: center; padding: 48px 24px; max-width: 720px; margin: 0 auto; }
.download p { color: var(--muted); }
.muted-note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.tag-note { color: var(--muted); font-size: .8rem; }
.edna-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.topbar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
	.topbar nav { order: 3; width: 100%; margin-left: 0; justify-content: center; gap: 14px; }
	.topbar nav a { font-size: .92rem; }
	.lang-bar { margin-left: auto; }
	.store-hero { padding: 44px 16px 38px; }
	.featured { flex-direction: column; text-align: center; gap: 18px; }
	.strip { padding: 32px 16px 8px; }
	.profile-hero { padding: 34px 16px 10px; }
}
@media (max-width: 560px) {
	.brand-sub { display: none; }
	.topbar { align-items: center; }
	.lang-bar { padding: 2px 8px; }
	.pbtn { padding: 8px 10px; font-size: .8rem; }
	.bundle-price { font-size: 1.75rem; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
@media print {
	.topbar { position: static; }
	.app-card, .bundle-card, .panel { break-inside: avoid; }
}
