/* Ringol website (docs/SITE.md). One stylesheet for every page; light and dark follow the system. */
@font-face {
	font-family: "Ringol Sans";
	src: url("../fonts/ringol.woff2") format("woff2");
	font-weight: 500 900;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--bg: #fdf0e6;
	--bg-2: #fbd9c6;
	--surface: #fffaf6;
	--surface-2: #fff3ea;
	--line: rgba(58, 33, 72, .10);
	--text: #3a2148;
	--muted: #6e5a79;
	--link: #5b3fc4;
	--shadow: 0 1px 2px rgba(58, 33, 72, .06), 0 10px 30px rgba(120, 60, 60, .12);
	--shadow-lg: 0 2px 4px rgba(58, 33, 72, .08), 0 24px 60px rgba(150, 70, 50, .20);
	--play-1: #ffd84a;
	--play-2: #f8b81c;
	--play-text: #3a2148;
	--teal: #2fbfa6;
	--coral: #f27565;
	--violet: #8c6ce0;
	--orange: #ee6a3a;
	--blue: #3d8ef0;
	--yellow: #f9c22e;
	--radius: 22px;
	--max: 1120px;
	--font: "Ringol Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1d1228;
		--bg-2: #2c1838;
		--surface: #2a1c37;
		--surface-2: #33223f;
		--line: rgba(255, 230, 245, .10);
		--text: #f7ebf3;
		--muted: #c4b0cc;
		--link: #b9a4ff;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }  /* anchors land below the sticky header (64 px) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	background-image: radial-gradient(1200px 700px at 15% -10%, rgba(255, 255, 255, .55), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
	min-height: 100vh;
	overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
	body { background-image: radial-gradient(1000px 600px at 15% -10%, rgba(140, 108, 224, .22), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--line); }
.nav .hide-sm { display: none; }
@media (min-width: 760px) { .nav .hide-sm { display: inline-block; } }

/* ------------------------------------------------------------------ buttons */
.btn-play {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 64px; padding: 0 34px; border-radius: 999px;
	font: 900 22px/1 var(--font); color: var(--play-text); text-decoration: none;
	background: linear-gradient(180deg, var(--play-1), var(--play-2));
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 rgba(160, 90, 0, .25), 0 10px 24px rgba(220, 140, 20, .35);
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 rgba(160, 90, 0, .25), 0 14px 30px rgba(220, 140, 20, .45); text-decoration: none; }
.btn-play:active { transform: translateY(1px); }
.btn-play svg { width: 22px; height: 22px; }
.btn-play.small { min-height: 42px; padding: 0 18px; font-size: 16px; gap: 8px; }
.btn-play.small svg { width: 14px; height: 14px; }
.nav .btn-play.small { color: var(--play-text); }
.nav .btn-play.small:hover { background: linear-gradient(180deg, var(--play-1), var(--play-2)); }

/* store badges: drawn here (no image of a badge), black as the official ones, an accessible link each */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
	display: inline-flex; align-items: center; gap: 10px; min-width: 186px; height: 58px; padding: 0 18px 0 14px;
	border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid #a6a6a6;
	transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); text-decoration: none; }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .9; }
.badge b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.badge { position: relative; }
.badge.soon { cursor: default; pointer-events: none; background: #2b2b2b; border-color: #6b6b6b; }
.badge.soon > svg, .badge.soon > span { opacity: .6; }
.badge.soon::after { content: "Coming soon"; position: absolute; top: -10px; right: -8px; padding: 3px 9px; border-radius: 999px;
	background: linear-gradient(180deg, var(--play-1), var(--play-2)); color: var(--play-text); font: 800 11px/1.2 var(--font);
	box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 36px 0 24px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(64vw, 340px); aspect-ratio: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 34px rgba(150, 60, 40, .30)); animation: float 7s ease-in-out infinite; }
.hero-art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent); z-index: -1; }
@media (prefers-color-scheme: dark) { .hero-art::before { background: radial-gradient(closest-side, rgba(140, 108, 224, .35), transparent); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
.hero-text { text-align: center; }
.hero h1 { font-size: clamp(56px, 13vw, 104px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.hero .tagline { margin-top: 12px; font-size: clamp(20px, 3.2vw, 26px); font-weight: 700; }
.hero .lead { margin: 14px auto 0; max-width: 34em; color: var(--muted); }
.hero .cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero .badges { justify-content: center; }
.hero .note { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
	.hero { padding: 64px 0 40px; }
	.hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; }
	.hero-art { order: 2; width: 100%; max-width: 460px; }
	.hero-text { text-align: left; }
	.hero .lead { margin-left: 0; }
	.hero .cta { align-items: flex-start; }
	.hero .badges { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 32px; }
.section-head p { margin-top: 10px; color: var(--muted); }

.modes { display: grid; gap: 22px; }
@media (min-width: 860px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.mode-shot { position: relative; padding: 22px 22px 0; background: linear-gradient(160deg, var(--c1), var(--c2)); }
.mode-shot picture, .mode-shot img { width: 100%; max-width: 270px; margin: 0 auto; }
.mode-shot img { border-radius: 26px 26px 0 0; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; height: auto; max-height: 360px;
	box-shadow: 0 -2px 0 rgba(255, 255, 255, .45), 0 16px 36px rgba(40, 20, 50, .28); }
.mode-body { padding: 20px 22px 24px; }
.mode-body h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mode-body .pill { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.mode-body p { margin-top: 8px; color: var(--muted); }
.mode.sort { --c1: #4fd6bd; --c2: #22a790; }
.mode.box { --c1: #ff9a7f; --c2: #e85d57; }
.mode.chains { --c1: #a98cf0; --c2: #6f4fd0; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.dot { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 7px solid var(--ring, var(--orange)); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .18), 0 2px 4px rgba(0, 0, 0, .12); margin-top: 2px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 2px; }

.download { text-align: center; }
.download .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 20px; box-shadow: var(--shadow-lg); }
.download .badges { justify-content: center; margin-top: 22px; }
.download .btn-play { margin-top: 22px; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 32px 0 48px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--text); font-weight: 700; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot button.linklike { font: inherit; font-weight: 700; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; }

/* ------------------------------------------------------------------ text pages (privacy, support) */
.doc { padding: 36px 0 64px; }
.doc article { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px 36px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .doc article { padding: 44px 52px 52px; } }
.doc h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 900; margin: 0 0 4px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 30px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.muted { color: var(--muted); }
