/* Hue Tales website: the landing page, support and legal pages. Same palette as the game. */
:root {
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --bg: #f3efe9; --bg2: #fbf8f3; --card: #ffffff; --ink: #232634; --ink2: #5f6372; --line: #e6e1d9;
  --accent: #ff6f61; --accent2: #7c5cff; --gold: #ffb627; --frame: #23263a;
  --shadow: 0 10px 30px rgba(60, 40, 20, .10), 0 1px 3px rgba(60, 40, 20, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1f2b; --bg2: #222636; --card: #2a2e3d; --ink: #f1f3fa; --ink2: #aab2c8; --line: #3a3f52; --frame: #0f1119;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1f2b; --bg2: #222636; --card: #2a2e3d; --ink: #f1f3fa; --ink2: #aab2c8; --line: #3a3f52; --frame: #0f1119;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink2); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.logo b { background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 20px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.lang { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink2); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; border-radius: 999px; padding: 14px 26px; font-size: 17px; transition: transform .15s ease, box-shadow .15s ease; }
.btn.primary { color: #fff; background: linear-gradient(90deg, var(--accent), #ff9a4d); box-shadow: 0 8px 22px rgba(255, 111, 97, .35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 111, 97, .42); }
.btn.small { padding: 9px 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; }

/* hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--gold) 45%, #3bb273 70%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.soon { font-size: 15px; color: var(--ink2); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 20px; } }

/* phones: three screenshots, the side ones tucked behind the middle one */
.phones { --pw: clamp(150px, 18vw, 214px); position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.phone { margin: 0; width: var(--pw, 200px); aspect-ratio: 390 / 844; padding: 7px; border-radius: 34px; background: var(--frame); box-shadow: 0 24px 50px rgba(30, 20, 10, .22); flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.phones .phone:nth-child(1) { margin-right: calc(var(--pw) * -.3); transform: rotate(-6deg) scale(.86); z-index: 1; }
.phones .phone:nth-child(2) { z-index: 2; position: relative; }
.phones .phone:nth-child(3) { margin-left: calc(var(--pw) * -.3); transform: rotate(6deg) scale(.86); z-index: 1; }
@media (max-width: 860px) { .phones { --pw: min(34vw, 210px); min-height: 0; padding: 8px 0; } .phone { border-radius: 26px; padding: 5px; } .phone img { border-radius: 21px; } }

/* sections */
section.block { padding: 64px 0; }
section.block h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 28px; max-width: 22em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border-radius: 24px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink2); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; background: var(--card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gallery figure { border-radius: 16px; } }

.pipblock { background: var(--bg2); }
.pipblock .wrap { display: grid; grid-template-columns: 220px 1fr auto; gap: 36px; align-items: center; }
.pipblock .pipimg { width: 220px; filter: drop-shadow(0 10px 10px rgba(60, 40, 20, .12)); }
.pipblock h2 { margin-bottom: 14px !important; }
.pipblock p { font-size: 19px; color: var(--ink2); margin: 0; max-width: 32em; }
.pipblock .phone { width: clamp(150px, 17vw, 210px); }
@media (max-width: 860px) { .pipblock .wrap { grid-template-columns: 1fr; text-align: left; } .pipblock .pipimg { width: 150px; } .pipblock .phone { display: none; } }

.faq { max-width: 760px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin: 0 0 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 600; color: var(--ink2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink2); }

.final { text-align: center; }
.final h2 { margin: 0 auto 22px !important; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--ink2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .copy { margin-right: auto; }

/* text pages: support, terms, privacy, 404 */
.page { max-width: 760px; padding: 28px 16px 56px; margin: 0 auto; }
.page h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -.02em; margin: 8px 0 6px; line-height: 1.1; }
.page h2 { font-size: 21px; margin: 30px 0 6px; }
.page p, .page li { color: var(--ink); }
.page .card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 4px 24px 18px; margin: 20px 0; }
.page .switch { font-weight: 700; font-size: 15px; }
.page .switch a { color: var(--accent); }
.center { text-align: center; }

section[id] { scroll-margin-top: 72px; }
