:root {
  --cream: #fcebdc;
  --cream-2: #f6dcc7;
  --paper: #fff8f2;
  --ink: #1c1024;
  --muted: #5d4e66;
  --purple: #130627;
  --purple-2: #24104a;
  --purple-3: #3b1d72;
  --gold: #fed89c;
  --mint: #a4ffb5;
  --coral: #e4655b;
  --line: rgba(28, 16, 36, 0.12);
  --radius: 22px;
  --display: "Archivo", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", sans-serif;
  --shell: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; }
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(hi), :lang(ar), :lang(vi)) :is(h1, h2) { font-stretch: 100%; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple-3); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 20; }
.skip-link:focus { top: 12px; }

.eyebrow, .card-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-3); margin: 0 0 12px; }
.arrow { flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--purple-3); }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { width: var(--shell); margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 18px 0; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); font-stretch: 112%; }
.brand img { border-radius: 9px; }
.brand b { color: var(--purple-3); }
.site-header nav { display: flex; gap: 22px; margin-inline-start: auto; }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.nav-cta { text-decoration: none; background: var(--purple); color: #fff; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--purple-3); }
.language-switcher { position: relative; }
.language-switcher summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(19, 6, 39, 0.18); display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); max-height: 70vh; overflow: auto; }
.language-switcher a { display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.language-switcher a:hover, .language-switcher a[aria-current] { background: var(--cream-2); }
.language-switcher a[aria-current] { font-weight: 700; }

/* Store button */
.store-button { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 15px 24px; border-radius: 16px; box-shadow: 0 10px 30px rgba(19, 6, 39, 0.25); transition: transform 0.15s ease, background 0.15s ease; }
.store-button:hover { background: var(--purple-3); transform: translateY(-1px); }

/* Hero */
.hero { width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); }
.hero-lede { font-size: 20px; color: var(--muted); max-width: 36ch; }
.hero-actions { margin: 28px 0 12px; }
.hero-note { font-size: 15px; color: var(--muted); }
.hero-visual { position: relative; justify-self: center; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -6% -4%; background: radial-gradient(60% 50% at 50% 55%, rgba(164, 255, 181, 0.55), rgba(254, 216, 156, 0.4) 55%, transparent 75%); filter: blur(10px); z-index: -1; }
.hero-visual img { width: min(400px, 80vw); border-radius: 28px; box-shadow: 0 40px 80px rgba(19, 6, 39, 0.25); }

/* Sections */
.section { width: var(--shell); margin: 0 auto; padding-block: 72px; }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.row-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.features { width: 100%; max-width: none; background: var(--purple); color: #f3eafc; padding-inline: max(16px, calc((100% - 1180px) / 2)); }
.features .section-heading p { color: #c9b9dd; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { background: var(--purple-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 26px; }
.feature-grid svg { color: var(--mint); margin-bottom: 18px; }
.feature-grid article:nth-child(1) svg { color: var(--coral); }
.feature-grid article:nth-child(3) svg { color: var(--gold); }
.feature-grid h3 { font-size: 19px; color: #fff; }
.feature-grid p { color: #c9b9dd; font-size: 16px; margin: 0; }

.screens-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.screens-grid figure { margin: 0; scroll-snap-align: start; }
.screens-grid img { border-radius: 22px; box-shadow: 0 18px 40px rgba(19, 6, 39, 0.15); }
.screens-grid figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); font-weight: 800; margin-bottom: 18px; }
.steps li:nth-child(2) span { background: var(--gold); }
.steps li:nth-child(3) span { background: var(--coral); color: #fff; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card > div { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card :is(h2, h3) { font-family: var(--text); font-stretch: 100%; font-size: 20px; font-weight: 700; letter-spacing: 0; }
.post-card :is(h2, h3) a { text-decoration: none; }
.post-card :is(h2, h3) a:hover { text-decoration: underline; }
.post-card p:not(.card-label) { color: var(--muted); font-size: 15px; }
.post-card .text-link { margin-top: auto; }

.faq-list { display: grid; gap: 12px; max-width: 860px; }
details summary { cursor: pointer; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq-list summary { font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--purple-3); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > div { padding-bottom: 18px; color: var(--muted); }

.cta { width: var(--shell); margin: 40px auto 80px; text-align: center; background: linear-gradient(160deg, var(--purple-2), var(--purple)); color: #fff; border-radius: 32px; padding: 64px 24px; }
.cta img { margin: 0 auto 20px; border-radius: 20px; }
.cta .eyebrow { color: var(--mint); }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); }
.cta p:not(.eyebrow) { color: #d6c9e8; max-width: 46ch; margin-inline: auto; margin-bottom: 28px; }
.cta .store-button { background: var(--mint); color: var(--purple); }

/* Index pages */
.page-shell { width: var(--shell); margin: 0 auto; padding: 32px 0 96px; }
.index-header { max-width: 760px; margin-bottom: 40px; }
.index-header h1 { font-size: clamp(32px, 4.6vw, 54px); }
.index-header p:not(.eyebrow) { font-size: 19px; color: var(--muted); }

/* Articles */
.article-shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 16px 0 80px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-header { max-width: 820px; }
.article-header h1 { font-size: clamp(32px, 4.8vw, 56px); }
.article-meta { font-size: 14px; color: var(--muted); }
.article-intro { font-size: 20px; line-height: 1.6; }
.feature-image { width: 100%; max-width: none; border-radius: 26px; margin: 32px 0 8px; aspect-ratio: 3 / 2; object-fit: cover; }
.article-header + .article-body { margin-top: 40px; }
.article-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 8px; font-size: 14px; border-inline-start: 2px solid var(--line); padding-inline-start: 16px; }
.toc p { font-weight: 800; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--purple-3); }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 1.6em; }
.prose section:first-child h2 { margin-top: 0; }
.prose p { font-size: 18px; }
.prose ol, .prose ul { list-style: revert; }
.article-steps { list-style: none !important; padding: 0; margin: 0; display: grid; gap: 14px; }
.article-steps li { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; scroll-margin-top: 24px; }
.article-steps span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); font-weight: 800; }
.article-steps h3 { font-size: 18px; margin-bottom: 4px; }
.article-steps p { margin: 0; font-size: 16px; color: var(--muted); }
.inline-cta { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; background: var(--purple); color: #fff; border-radius: 24px; padding: 26px; margin: 32px 0; }
.inline-cta img { border-radius: 16px; }
.inline-cta .eyebrow { color: var(--mint); }
.inline-cta h3 { font-size: 22px; }
.inline-cta .caption { color: #c9b9dd; font-size: 15px; }
.inline-cta .store-button { background: var(--mint); color: var(--purple); box-shadow: none; }
.prose details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.prose summary { font-weight: 700; }
.prose details p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 28px; }
.related > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.related > div a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; font-weight: 700; }
.related > div a:hover { border-color: var(--purple-3); }
.related .card-label { margin: 0; }
.related .arrow { margin-top: auto; color: var(--purple-3); }

/* Footer */
.site-footer { width: var(--shell); margin: 0 auto; padding: 40px 0 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; font-size: 15px; color: var(--muted); }
.site-footer p { margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { width: 100%; font-size: 13px; }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { grid-template-columns: 1fr; gap: 24px; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; }
  .language-switcher { margin-inline-start: auto; }
  .language-switcher ul { grid-template-columns: 1fr 1fr; width: min(320px, calc(100vw - 32px)); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; text-align: start; }
  .hero-lede { font-size: 18px; }
  .section { padding-block: 56px; }
  .feature-grid, .steps, .post-grid, .related > div { grid-template-columns: 1fr; }
  .row-heading { flex-direction: column; align-items: start; }
  .screens-grid { grid-auto-columns: 70%; }
  .inline-cta { grid-template-columns: 1fr; }
  .inline-cta img { width: 140px; }
  .article-intro { font-size: 18px; }
  .prose p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .store-button { transition: none; } }
