/* ClassYar website — static, RTL, no third-party resources. */
@font-face { font-family: 'Vazir'; src: url('/site/fonts/vazir-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazir'; src: url('/site/fonts/vazir-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazir'; src: url('/site/fonts/vazir-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazir'; src: url('/site/fonts/vazir-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --bg: #fbfaff; --bg-2: #f3f1ff; --surface: #ffffff; --surface-2: #f7f6fe;
  --ink: #17153b; --ink-2: #2f2c5c; --muted: #5d5b7e; --line: #e6e3f5;
  --purple: #5d5cd8; --indigo: #241f63; --deep: #16133f; --mint: #17998a; --amber: #e9962b; --coral: #dc6f53; --blue: #2a7be4;
  --t-purple: #eeeefc; --t-mint: #e3f5f2; --t-amber: #fdf1e1; --t-coral: #fbebe6; --t-blue: #e6f0fc;
  --grad: linear-gradient(115deg, #5d5cd8 0%, #3e6fe0 45%, #17998a 100%);
  --grad-warm: linear-gradient(115deg, #f0a23b, #dc6f53);
  --shadow-1: 0 1px 2px rgba(23, 21, 59, .06), 0 6px 20px rgba(36, 31, 99, .07);
  --shadow-2: 0 24px 60px -18px rgba(36, 31, 99, .35);
  --radius: 24px;
  --wrap: 1200px;
  --head-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c24; --bg-2: #141235; --surface: #1a1840; --surface-2: #211f4b;
    --ink: #f2f0ff; --ink-2: #d9d6f7; --muted: #aeaad3; --line: #2e2b5e;
    --purple: #8f8ef2; --mint: #3cc6b5; --amber: #f3b25a; --coral: #f08b70; --blue: #6aa6f5;
    --t-purple: #25235a; --t-mint: #133a3c; --t-amber: #3a2c1c; --t-coral: #3c2223; --t-blue: #182c4f;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-2: 0 24px 60px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.9 'Vazir', Tahoma, 'Segoe UI', sans-serif;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -.25em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }

/* tones */
.tone-purple { --tone: var(--purple); --tint: var(--t-purple); }
.tone-mint { --tone: var(--mint); --tint: var(--t-mint); }
.tone-amber { --tone: var(--amber); --tint: var(--t-amber); }
.tone-coral { --tone: var(--coral); --tint: var(--t-coral); }
.tone-blue { --tone: var(--blue); --tint: var(--t-blue); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .55em 1.25em; border-radius: 16px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(62, 111, 224, .65); }
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(62, 111, 224, .8); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-small { min-height: 40px; padding: .35em 1em; font-size: .92rem; border-radius: 13px; }
.btn-lg { min-height: 60px; padding: .5em 1.4em; font-size: 1.12rem; border-radius: 18px; }
.btn-lg .ic { width: 1.6em; height: 1.6em; }
.btn-lg span { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.btn-lg small { font-weight: 500; font-size: .74rem; opacity: .85; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23, 21, 59, .5); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.logo img { border-radius: 12px; box-shadow: var(--shadow-1); background: #fff; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 6px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.is-here { color: var(--ink); background: var(--bg-2); }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ic { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 28px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--purple) 22%, transparent) 1.2px, transparent 1.3px);
  background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #8a7cff; top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #3cc6b5; bottom: -140px; left: 28%; animation-delay: -6s; opacity: .4; }
.b3 { width: 360px; height: 360px; background: #ffb35c; top: 10%; right: -140px; animation-delay: -11s; opacity: .35; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.doodle { position: absolute; fill: var(--amber); stroke: var(--amber); opacity: .8; }
.d1 { width: 34px; top: 16%; right: 46%; animation: twinkle 3.5s ease-in-out infinite; }
.d2 { width: 20px; top: 70%; right: 6%; fill: var(--purple); animation: twinkle 4.2s ease-in-out infinite -1.2s; }
.d3 { width: 110px; bottom: 12%; left: 4%; fill: none; stroke: var(--mint); opacity: .55; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(25deg); opacity: .35; } }

.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.badge-new {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s;
}
.badge-new:hover { border-color: var(--purple); }
.badge-new .ic { color: var(--purple); }
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(23, 153, 138, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(23, 153, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 153, 138, 0); } }
.hero h1 { margin-top: 22px; }
.brand-word {
  display: block; font-weight: 900; font-size: clamp(3.4rem, 9vw, 6.6rem); line-height: 1.15; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.hero-sub { display: block; font-weight: 900; font-size: clamp(1.5rem, 3.6vw, 2.35rem); color: var(--ink); margin-top: 4px; }
.scribble { font-style: normal; position: relative; white-space: nowrap; }
.scribble::after {
  content: ''; position: absolute; inset-inline: -4px; bottom: -6px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C40 3 80 3 110 7s60 3 87-4' fill='none' stroke='%23e9962b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .93rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--mint); }
.hero-note { margin-top: 26px; font-size: .78rem; color: var(--muted); opacity: .8; }

.hero-art { position: relative; height: 620px; }
.art-stage { position: absolute; inset: 0; transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ring { position: absolute; width: 470px; height: 470px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(93, 92, 216, .28), rgba(23, 153, 138, .22), rgba(233, 150, 43, .22), rgba(93, 92, 216, .28));
  filter: blur(2px); mask: radial-gradient(circle, transparent 57%, #000 58%, #000 70%, transparent 71%); -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%, #000 70%, transparent 71%);
  animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.ph { position: absolute; width: 300px; }
.ph-front { right: 4%; top: 6px; width: min(300px, 62%); z-index: 2; animation: bob 7s ease-in-out infinite; }
.ph-back { left: 2%; top: 70px; width: min(250px, 52%); opacity: .96; rotate: -7deg; animation: bob 7s ease-in-out infinite -3.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: .9rem; font-weight: 700; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  animation: float 6s ease-in-out infinite;
}
.chip .ic { color: var(--mint); }
.lv { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lv4 { background: var(--purple); } .lv3 { background: var(--mint); }
.c1 { top: 18%; right: 2%; }
.c2 { top: 52%; right: -2%; animation-delay: -1.5s; }
.c3 { bottom: 12%; left: 30%; animation-delay: -3s; }
.c4 { top: 6%; left: 2%; animation-delay: -4.5s; }
.c5 { bottom: 30%; left: -3%; animation-delay: -2.2s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* ---------------------------------------------------------------- stats + ticker */
.stats { padding: 26px 0 10px; }
.stats-in { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow-1); }
.stat .num { display: block; font-weight: 900; font-size: 2.3rem; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.5; }
.ticker { margin: 34px 0 0; padding: 14px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface-2); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; font-weight: 700; color: var(--ink-2); font-size: 1rem; padding-inline: 22px; }
.ticker span::before { content: '✦'; color: var(--amber); margin-inline-end: 22px; font-size: .8em; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 { font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.7rem); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--purple); font-size: .95rem; margin-bottom: 10px; }
.sec-lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 38%, transparent) 62%); padding-inline: 2px; }
.day, .features, .whatsnew, .gallery, .roles, .plans, .faq { padding: 96px 0 0; }

/* ---------------------------------------------------------------- a day */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.day-steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0 30px 0 0; position: relative; }
.day-steps::before { content: ''; position: absolute; right: 9px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--line); }
.day-steps::after { content: ''; position: absolute; right: 9px; top: 12px; width: 3px; border-radius: 3px; height: var(--progress, 0%); background: var(--grad); transition: height .4s ease; }
.day-step { position: relative; padding: 18px 0 18px; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .45s ease; }
.day-step:first-child { min-height: 52vh; }
.day-step.is-on { opacity: 1; }
.day-step::before { content: ''; position: absolute; right: -28px; top: 50%; width: 17px; height: 17px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); transition: border-color .3s, background-color .3s, transform .3s; z-index: 1; }
.day-step.is-on::before { border-color: var(--purple); background: var(--purple); transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--purple) 18%, transparent); }
.time { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 14px; border-radius: 999px; background: var(--t-purple); color: var(--purple); font-weight: 700; font-size: .92rem; }
.day-step[data-tone='mint'] .time { background: var(--t-mint); color: var(--mint); }
.day-step[data-tone='amber'] .time { background: var(--t-amber); color: var(--amber); }
.day-step[data-tone='coral'] .time { background: var(--t-coral); color: var(--coral); }
.day-step[data-tone='blue'] .time { background: var(--t-blue); color: var(--blue); }
.day-step h3 { margin-top: 14px; font-weight: 900; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.day-step p { margin-top: 10px; color: var(--muted); font-size: 1.06rem; max-width: 34em; }
.step-shot { display: none; margin: 18px 0 0; }
.day-stage { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--head-h) + 24px); height: calc(100vh - var(--head-h) - 48px); max-height: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage-phone { position: relative; width: 100%; max-width: 360px; aspect-ratio: 560 / 1086; }
.stage-phone::before { content: ''; position: absolute; inset: 10% -8% 6%; border-radius: 40%; background: var(--grad); opacity: .18; filter: blur(50px); z-index: -1; }
.stage-img { position: absolute; inset: 0; width: 100%; opacity: 0; transform: scale(.97); transition: opacity .55s ease, transform .55s ease; }
.stage-img.is-on { opacity: 1; transform: none; }
.stage-clock { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-weight: 900; font-size: 1.1rem; }
.stage-clock .ic { color: var(--purple); }
html:not(.js) .day-stage { display: none; }
html:not(.js) .day-grid { grid-template-columns: 1fr; }
html:not(.js) .day-step { opacity: 1; min-height: 0; }
html:not(.js) .step-shot { display: block; max-width: 300px; }

/* ---------------------------------------------------------------- features */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: #fff; border-color: transparent; box-shadow: var(--shadow-2); }
.tab[data-tone='purple'][aria-selected='true'] { background: var(--purple); }
.tab[data-tone='amber'][aria-selected='true'] { background: var(--amber); }
.tab[data-tone='mint'][aria-selected='true'] { background: var(--mint); }
@media (prefers-color-scheme: dark) { .tab[aria-selected='true'] { color: #120f2e; } }
.panel + .panel { margin-top: 56px; }
html.js .panel + .panel { margin-top: 0; }
html.js .panel[hidden] { display: none; }
.panel-title { font-weight: 900; font-size: 1.4rem; margin-bottom: 18px; color: var(--tone); }
html.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; }
.panel-shot { grid-column: 2; grid-row: 1; margin: 0; position: relative; }
.panel-shot::before { content: ''; position: absolute; inset: 12% 4% 8%; border-radius: 36px; background: var(--tint); z-index: -1; transform: rotate(-4deg); }
.cards { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 20px; box-shadow: var(--shadow-1); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); }
.card-ic { width: 46px; height: 46px; padding: 10px; border-radius: 15px; background: var(--tint); color: var(--tone); }
.card h4 { margin-top: 14px; font-weight: 900; font-size: 1.1rem; }
.card p { margin-top: 6px; color: var(--muted); font-size: .96rem; line-height: 1.85; }
.tag-new { position: absolute; top: 18px; left: 18px; padding: 2px 11px; border-radius: 999px; background: var(--grad-warm); color: #fff; font-size: .78rem; font-weight: 700; }

/* ---------------------------------------------------------------- what's new */
.new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.new-card { position: relative; overflow: hidden; border-radius: 28px; padding: 28px 26px 0; display: flex; flex-direction: column; background: linear-gradient(170deg, var(--tint), var(--surface) 75%); border: 1px solid var(--line); min-height: 560px; }
.new-card h3 { font-weight: 900; font-size: 1.32rem; color: var(--ink); }
.new-card h3::before { content: ''; display: block; width: 38px; height: 5px; border-radius: 5px; background: var(--tone); margin-bottom: 14px; }
.new-card p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.new-card img { width: 78%; margin: 22px auto -34%; transition: transform .5s ease; }
.new-card:hover img { transform: translateY(-14px); }

/* ---------------------------------------------------------------- gallery */
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: start; max-width: none; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.gal-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.filter { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--muted); }
.filter.is-on { background: var(--indigo); color: #fff; }
@media (prefers-color-scheme: dark) { .filter.is-on { background: var(--purple); color: #120f2e; } }
.arrows { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); transition: transform .2s; }
.arrow:hover { transform: scale(1.07); }
.arrow .ic { width: 26px; height: 26px; }
.rail {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 10px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 26px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail:focus-visible { outline-offset: -3px; }
.shot { flex: 0 0 236px; margin: 0; scroll-snap-align: center; text-align: center; transition: transform .3s ease; }
.shot:hover { transform: translateY(-6px); }
.shot figcaption { margin-top: -6px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- roles */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.role::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--tint); top: -90px; left: -70px; z-index: 0; }
.role > * { position: relative; z-index: 1; }
.role-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 20px; background: var(--tone); color: #fff; align-items: center; justify-content: center; box-shadow: 0 12px 24px -10px var(--tone); }
.role-ic .ic { width: 34px; height: 34px; }
.role h3 { margin-top: 16px; font-weight: 900; font-size: 1.35rem; }
.role ul { list-style: none; margin: 14px 0 0; padding: 0; }
.role li { position: relative; padding-inline-start: 22px; color: var(--muted); margin-top: 6px; }
.role li::before { content: ''; position: absolute; right: 2px; top: .75em; width: 8px; height: 8px; border-radius: 3px; background: var(--tone); rotate: 45deg; }
.role-note { margin: 22px auto 0; max-width: 820px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: var(--bg-2); color: var(--ink-2); font-size: .95rem; }
.role-note .ic { color: var(--purple); margin-top: .3em; }

/* ---------------------------------------------------------------- privacy (dark band) */
.privacy { margin-top: 110px; padding: 96px 0; background: radial-gradient(1200px 500px at 85% -10%, rgba(143, 142, 242, .35), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(60, 198, 181, .25), transparent 60%), var(--deep); color: #f2f0ff; overflow: hidden; }
.privacy::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events: none; }
.on-dark.kicker, .on-dark .kicker { color: #b9b7ff; }
.privacy .hl { background: linear-gradient(transparent 62%, rgba(243, 178, 90, .45) 62%); }
.priv-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.priv { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px; backdrop-filter: blur(6px); transition: background-color .25s, transform .25s; }
.priv:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.priv .ic { width: 42px; height: 42px; padding: 9px; border-radius: 14px; background: rgba(143, 142, 242, .22); color: #cfcdff; }
.priv h3 { margin-top: 14px; font-weight: 900; font-size: 1.08rem; }
.priv p { margin-top: 6px; color: #c8c5ec; font-size: .93rem; line-height: 1.85; }

/* ---------------------------------------------------------------- start steps */
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.start-steps::before { content: ''; position: absolute; top: 30px; right: 12%; left: 12%; border-top: 2px dashed var(--line); }
.start-steps li { position: relative; text-align: center; padding: 0 8px; }
.start-steps .n { position: relative; display: inline-flex; width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem; color: #fff; background: var(--grad); box-shadow: 0 0 0 8px var(--bg), var(--shadow-2); }
.start-steps h3 { margin-top: 16px; font-weight: 900; font-size: 1.12rem; }
.start-steps p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- download */
.download { padding: 110px 0 0; }
.dl-box { position: relative; overflow: hidden; border-radius: 36px; padding: 44px; color: #fff;
  background: radial-gradient(700px 360px at 10% 0%, rgba(60, 198, 181, .45), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(240, 162, 59, .35), transparent 60%), linear-gradient(130deg, #241f63, #4a43c4); box-shadow: var(--shadow-2); }
.dl-box::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); top: -200px; left: -140px; pointer-events: none; }
.dl-head { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; }
.dl-logo { border-radius: 24px; background: #fff; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.dl-head h2 { font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.dl-head .kicker { margin-bottom: 2px; }
.dl-meta { color: #d9d6ff; font-size: .95rem; margin-top: 4px; }
.dl-grid { position: relative; z-index: 1; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr 230px; gap: 18px; align-items: stretch; }
.dl-card { position: relative; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.dl-card h3 { font-weight: 900; font-size: 1.3rem; }
.dl-card p { font-size: .96rem; flex: 1; }
.dl-ic { width: 46px; height: 46px; padding: 10px; border-radius: 15px; }
.dl-bazaar { background: #fff; color: var(--ink); }
@media (prefers-color-scheme: dark) { .dl-bazaar { background: #f6f5ff; color: #17153b; } }
.dl-bazaar p { color: #5d5b7e; }
.dl-bazaar .dl-ic { background: #e3f5f2; color: #17998a; }
.dl-tag { position: absolute; top: 20px; left: 20px; padding: 2px 12px; border-radius: 999px; background: #e3f5f2; color: #17876f; font-size: .8rem; font-weight: 700; }
.dl-direct { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.dl-direct p { color: #e2e0ff; }
.dl-direct .dl-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.howto { margin-top: 6px; font-size: .92rem; color: #e2e0ff; }
.howto summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: '+'; display: inline-flex; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .16); align-items: center; justify-content: center; font-weight: 900; }
.howto[open] summary::before { content: '−'; }
.howto ol { margin: 10px 0 0; padding-inline-start: 1.2em; }
.howto li + li { margin-top: 4px; }
.sha { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .2); display: grid; gap: 6px; }
.sha code { font: 500 .78rem/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; word-break: break-all; color: #fff; text-align: left; }
.copy { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 4px 12px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; font-size: .85rem; font-weight: 700; }
.copy:hover { background: rgba(255, 255, 255, .26); }
.dl-qr { border-radius: 24px; padding: 20px; background: #fff; color: #241f63; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.dl-qr img { width: 164px; height: 164px; }
.dl-qr p { font-size: .85rem; font-weight: 700; line-height: 1.7; }
.dl-qr .ic { color: #5d5cd8; }

/* ---------------------------------------------------------------- faq */
.faq-in { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow-1); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--purple) 45%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-inline-start: 2.5px solid var(--purple); border-bottom: 2.5px solid var(--purple); rotate: -45deg; transition: rotate .25s; margin-top: -6px; }
.faq details[open] summary::after { rotate: 135deg; margin-top: 6px; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 110px; padding: 54px 0 28px; border-top: 1px solid var(--line); background: var(--surface-2); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start; }
.foot-brand p { margin-top: 12px; color: var(--muted); max-width: 26em; font-size: .95rem; }
.foot-links { display: grid; gap: 6px; }
.foot-links a, .foot-contact a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot-links a:hover, .foot-contact a:hover { color: var(--purple); }
.foot-contact p { color: var(--muted); font-size: .95rem; }
.foot-contact p + p { margin-top: 4px; }
.foot-small { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- reveal */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav a { padding: 6px 8px; font-size: .9rem; }
  .stats-in { grid-template-columns: repeat(3, 1fr); }
  .priv-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-qr { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: start; }
  .dl-qr img { width: 120px; height: 120px; }
}
@media (max-width: 960px) {
  :root { --head-h: 62px; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 2px; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .menu-btn { display: inline-flex; margin-inline-start: 0; }
  .topbar-cta { margin-inline-start: auto; }
  html:not(.js) .nav { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0; }
  html:not(.js) .topbar { height: auto; position: static; }
  html:not(.js) .topbar-in { flex-wrap: wrap; padding-block: 10px; }
  .hero { padding-top: 34px; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-art { height: 520px; max-width: 520px; width: 100%; margin-inline: auto; }
  .ph-front { width: min(250px, 58%); right: 12%; } .ph-back { width: min(210px, 48%); left: 8%; top: 60px; }
  .ring { width: 400px; height: 400px; }
  .day-grid { grid-template-columns: 1fr; }
  .day-stage { display: none; }
  .day-steps { padding-right: 26px; }
  .day-steps::after { display: none; }
  .day-step { min-height: 0; opacity: 1; padding: 22px 0; }
  .day-step::before { top: 34px; margin-top: 0; border-color: var(--purple); }
  .step-shot { display: block; max-width: 290px; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-shot { display: none; }
  .cards { grid-column: auto; }
  .new-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .new-card { min-height: 0; }
  .new-card img { width: 64%; margin-bottom: -40%; }
  .role-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .start-steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .start-steps::before { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn-lg { min-height: 56px; flex: 1 1 100%; }
  .topbar-cta { display: none; }
  .menu-btn { margin-inline-start: auto; }
  .hero-art { height: 440px; }
  .ph-front { width: min(210px, 58%); right: 6%; } .ph-back { width: min(175px, 48%); top: 52px; left: 4%; }
  .ring { width: 320px; height: 320px; }
  .chip { font-size: .78rem; padding: 6px 11px; }
  .c1 { right: 0; } .c2 { right: 0; } .c5 { left: 0; } .c4 { left: 0; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .num { font-size: 1.9rem; }
  .cards { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -20px; padding: 4px 20px 12px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 8px 15px; font-size: .92rem; }
  .priv-grid { grid-template-columns: 1fr; }
  .day, .features, .whatsnew, .gallery, .roles, .plans, .faq { padding-top: 72px; }
  .privacy { margin-top: 80px; padding: 72px 0; }
  .shot { flex-basis: 196px; }
  .dl-box { padding: 26px 18px; border-radius: 28px; }
  .dl-head { flex-direction: column; text-align: center; gap: 12px; }
  .dl-logo { width: 72px; height: 72px; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-qr { display: none; }
  .start-steps { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .sec-head-row { flex-direction: column; align-items: stretch; }
  .gal-tools { justify-content: space-between; }
}
@media (hover: none) and (pointer: coarse) { .dl-qr { display: none; } .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (hover: none) and (pointer: coarse) and (max-width: 640px) { .dl-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .ticker, .hero-art, .day-stage, .gal-tools, .dl-qr { display: none !important; }
  .privacy, .dl-box { background: #fff !important; color: #000 !important; }
}
