/* OptiPixel website. Colours mirror the app's tokens (shared/.../design/DesignTokens.kt). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #4a4a55;
  --text-3: #6e6e78;
  --line: rgba(0, 0, 0, .1);
  --brand: #4648d4;
  --grad-a: #6063ee;
  --grad-b: #dc2c4f;
  --grad: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  --shadow: 0 30px 60px -20px rgba(20, 20, 60, .35), 0 12px 24px -12px rgba(0, 0, 0, .25);
  --radius: 22px;
  --wrap: 1120px;
  --nav-h: 52px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0e0f13;
    --surface: #1c1e22;
    --text: #f5f5f7;
    --text-2: #c2c3cc;
    --text-3: #8b8d98;
    --line: rgba(255, 255, 255, .14);
    --brand: #9b9dfb;
    --grad-a: #7779ff;
    --grad-b: #ff6680;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue",
    "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -.022em; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2 { word-break: auto-phrase; letter-spacing: -.01em; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) p { word-break: keep-all; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.fine { font-size: 14px; color: var(--text-3); }
.kicker { font-size: 15px; font-weight: 600; letter-spacing: .01em; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text, h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); }
.nav-inner { height: 100%; width: min(var(--wrap), 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 650; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 14px; }
.nav-links a { color: var(--text-2); }
.nav-lang { position: relative; font-size: 14px; }
.nav-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 0 10px; border-radius: 999px; color: var(--text-2); }
.nav-lang summary::-webkit-details-marker { display: none; }
.nav-lang summary:hover, .nav-lang[open] summary { color: var(--text); background: var(--bg-alt); }
.nav-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 8px; max-height: min(70vh, 520px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 60; }
.nav-lang li a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--text); white-space: nowrap; }
.nav-lang li a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-lang a[aria-current] { font-weight: 700; color: var(--brand); }
.nav-links a[aria-current] { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-lang { position: static; margin-inline-start: auto; }
  .nav-lang summary span { display: none; }
  /* Full width under the bar: anchored to the globe, the list would run off a phone's edge. */
  .nav-lang ul { inset-inline: 16px; top: calc(var(--nav-h) + 8px); grid-template-columns: 1fr 1fr; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: 17px; border: 0; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-small { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.store-badge:hover { text-decoration: none; background: #111; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.store-badge small { font-size: 11px; font-weight: 500; letter-spacing: .02em; margin-bottom: 3px; }
.store-badge.light { background: #fff; color: #000; border-color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 14px; }

/* Phone frame */
.phone { position: relative; width: 280px; max-width: 100%; aspect-ratio: 1206 / 2622; border-radius: 48px; padding: 9px;
  background: linear-gradient(145deg, #3a3b42, #121316 40%, #2c2d33); box-shadow: var(--shadow); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 3.3%; transform: translateX(-50%);
  background: #000; border-radius: 20px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; background: #0e0f13; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: #07080c; padding: 72px 0 0; isolation: isolate; }
.hero-backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; opacity: .75; z-index: -2; transform: scale(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 12, .35) 0%, rgba(7, 8, 12, .55) 55%, rgba(7, 8, 12, .96) 100%),
    radial-gradient(60% 50% at 80% 30%, rgba(96, 99, 238, .35), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.app-name { font-size: 22px; font-weight: 700; margin: 0; }
.app-by { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #a5a7ff; background: rgba(165, 167, 255, .14); border: 1px solid rgba(165, 167, 255, .28); padding: 2px 9px; border-radius: 999px; margin: 3px 0 5px; }
.app-sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.035em; }
.hero h1 em { background: linear-gradient(120deg, #a5a7ff, #ff8fa3); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .85); max-width: 34em; }
.hero .fine { color: rgba(255, 255, 255, .62); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-media { position: relative; height: 620px; }
.hero-media .phone { position: absolute; bottom: -120px; width: 290px; }
.hero-media .phone-back { right: 0; bottom: -60px; transform: rotate(6deg); opacity: .96; }
.hero-media .phone-front { right: 190px; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .hero { padding-top: 48px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 32px; }
  .app-id, .cta-row { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  .hero-media { height: 420px; }
  .hero-media .phone { width: 210px; bottom: -150px; }
  .hero-media .phone-front { right: 50%; transform: translateX(-8%) rotate(-4deg); }
  .hero-media .phone-back { right: 50%; transform: translateX(78%) rotate(6deg); bottom: -110px; }
}

/* Sections */
section { padding: 96px 0; }
.section-title { font-size: clamp(34px, 4.6vw, 56px); text-align: center; max-width: 16em; margin-inline: auto; }
.section-title.small { font-size: 32px; text-align: start; }
.section-lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--text-2); text-align: center; max-width: 36em; margin: 0 auto 48px; }
.reasons { background: var(--bg); }
.reason-grid { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason-grid li { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 28px; }
.reason-grid h3 { font-size: 22px; }
.reason-grid p { color: var(--text-2); margin: 0; }
@media (max-width: 820px) { .reason-grid { grid-template-columns: 1fr; } }

.feature { background: var(--bg-alt); overflow: hidden; }
.feature:nth-of-type(even) { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(32px, 4vw, 50px); }
.why { font-size: 19px; color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad);
  -webkit-mask: radial-gradient(circle, #000 0 3.5px, transparent 4px), linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.more { font-weight: 600; }
.more::after { content: " ›"; }
.feature-media { display: flex; justify-content: center; gap: 22px; }
.feature-media.phones-2 .phone:last-child { margin-top: 70px; }
@media (max-width: 860px) {
  section { padding: 76px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature-media .phone { width: 46%; max-width: 260px; }
  .feature-media.phones-1 .phone { width: 62%; }
}

/* Before / after */
.compare-section { background: var(--bg); }
.compare { direction: ltr; position: relative; max-width: 560px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.compare img { width: 100%; }
.compare-after { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--pos)); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible + .tag, .compare:focus-within { outline: 3px solid var(--brand); outline-offset: 4px; }
.tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.tag-left { left: 16px; }
.tag-right { right: 16px; }

/* AI styles strip */
.styles { background: var(--bg-alt); padding-bottom: 90px; }
.style-strip { display: flex; gap: 16px; overflow-x: auto; padding: 8px max(20px, calc((100vw - var(--wrap)) / 2)) 24px;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.style-strip::-webkit-scrollbar, .shot-strip::-webkit-scrollbar { display: none; }
.style-strip figure { margin: 0; flex: 0 0 168px; scroll-snap-align: start; }
.style-strip img { width: 168px; height: 168px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.style-strip figcaption { font-size: 14px; font-weight: 600; margin-top: 10px; text-align: center; color: var(--text-2); }

/* App Store gallery */
.gallery { background: var(--bg); padding-bottom: 80px; }
.shot-strip { list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(20px, calc((100vw - var(--wrap)) / 2)) 28px; scrollbar-width: none; }
.shot-strip li { flex: 0 0 230px; scroll-snap-align: start; }
.shot-strip img { width: 230px; border-radius: 26px; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .5); }

/* Tools */
.tools { background: var(--bg-alt); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.tool-group { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.tool-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; }
.tool-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-weight: 550; }
.beta { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--bg-alt); color: var(--text-3); vertical-align: 2px; }

/* Privacy band */
.privacy-band { background: #07080c; color: #fff; }
.privacy-band .section-lead { color: rgba(255, 255, 255, .75); }
.privacy-points { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.privacy-points li { padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 700px) { .privacy-points { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--bg); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 48px auto 20px; }
.plan { border-radius: var(--radius); padding: 32px; background: var(--bg-alt); }
.plan h3 { font-size: 26px; }
.plan p { color: var(--text-2); margin: 0; }
.plan-premium { background: var(--grad); color: #fff; }
.plan-premium p { color: rgba(255, 255, 255, .9); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq .section-title { margin-bottom: 40px; }
.faq-item { background: var(--surface); border-radius: 16px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding-block: 20px; padding-inline: 24px 52px; font-weight: 600; font-size: 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--text-3); }
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 24px 18px; color: var(--text-2); }
.faq-item div p:last-child { margin-bottom: 0; }

/* Final CTA */
.final-cta { text-align: center; color: #fff; background: radial-gradient(80% 120% at 50% 0%, #6063ee 0%, #3a1c6e 45%, #07080c 100%); }
.final-cta img { margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.final-cta h2 { font-size: clamp(36px, 5vw, 60px); }
.final-cta p { font-size: 20px; color: rgba(255, 255, 255, .82); max-width: 32em; margin: 0 auto 32px; }

/* Inner pages */
.page-head { padding: 90px 0 40px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); }
.page-head .lead, .guide-head .lead { font-size: 21px; color: var(--text-2); }
.page-head .btn { margin: 12px 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; margin-top: 32px; }
.card h2 { font-size: 22px; }
.link-list { margin: 0; padding-inline-start: 20px; }
.prose { font-size: 18px; line-height: 1.65; padding-bottom: 80px; }
.prose h2 { font-size: 30px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose code { font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.note { background: var(--bg-alt); border-radius: 14px; padding: 16px 20px; color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 24px 0 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-alt); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: start; }
.prose th, .prose td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; color: var(--text); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.prose tr:last-child td { border-bottom: none; }
.prose td { color: var(--text-2); }
ol.steps { list-style: none; counter-reset: s; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding-block: 18px; padding-inline: 66px 20px; background: var(--bg-alt); border-radius: 16px; margin-bottom: 12px; }
ol.steps li::before { content: counter(s); position: absolute; inset-inline-start: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* Guides */
.guide-head { background: var(--bg-alt); padding: 56px 0 0; overflow: hidden; }
.guide-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.guide-grid > div:first-child { padding-bottom: 64px; }
.guide-head h1 { font-size: clamp(34px, 4.4vw, 54px); }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }
.crumbs span { margin: 0 6px; }
.guide-media { display: flex; justify-content: center; gap: 16px; height: 460px; align-items: flex-start; }
.guide-media .phone { width: 250px; }
.guide-media.phones-2 .phone { width: 210px; }
.guide-media.phones-2 .phone:last-child { margin-top: 50px; }
.guide-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 56px; }
.guide-body .prose { max-width: 720px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--text-2); }
.inline-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: 20px; background: var(--bg-alt); margin: 40px 0; }
.inline-cta img { border-radius: 13px; }
.inline-cta div { flex: 1; min-width: 200px; }
.inline-cta p { margin: 0; }
.related { list-style: none; padding: 0; display: grid; gap: 12px; }
.related a { display: block; padding: 18px 20px; border-radius: 16px; background: var(--bg-alt); color: var(--text); }
.related a:hover { text-decoration: none; background: color-mix(in srgb, var(--brand) 10%, var(--bg-alt)); }
.related span { display: block; color: var(--text-2); font-size: 15px; margin-top: 4px; }
.guide-cards { list-style: none; padding: 0 0 100px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.guide-cards a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radius); background: var(--bg-alt); color: var(--text); overflow: hidden; }
.guide-cards a:hover { text-decoration: none; transform: translateY(-2px); }
.guide-cards img { width: 130px; border-radius: 18px; margin-bottom: 18px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.guide-cards strong { font-size: 21px; line-height: 1.2; margin-bottom: 6px; }
.guide-cards span:last-child { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid > div:first-child { padding-bottom: 8px; }
  .guide-media { height: 360px; }
  .guide-media .phone { width: 200px; }
  .guide-body { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 24px; }
}

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }
.footer-brand p { margin: 12px 0 18px; max-width: 26em; }
.footer-identity { font-size: 13px; line-height: 1.6; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 65%, transparent); border: 1px solid var(--line); }
.footer-identity p { margin: 0; }
.footer-identity strong { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 12px; color: var(--text-3); }
.footer-base p { margin: 0; }
.lang summary { cursor: pointer; display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.lang ul { margin-top: 10px; grid-template-columns: repeat(2, max-content); gap: 6px 22px; }
.lang a[aria-current] { color: var(--text); font-weight: 700; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Motion */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Promo: a free month of Premium (promo_page). */
.promo-card { background: var(--bg-alt); }
.promo-card [hidden] { display: none; }
[data-state="idle"] .btn { margin-top: 12px; }
.promo-code { font: 600 clamp(24px, 6vw, 34px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  color: var(--brand); margin: 4px 0 8px; word-break: break-all; user-select: all; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.promo-steps { padding-inline-start: 1.2em; }
.promo-steps li { margin: 10px 0; color: var(--text-2); }
.promo-steps strong { color: var(--text); }
.promo .section-title { text-align: start; max-width: none; margin: 56px 0 12px; }
