/* RenewPics home page. Loaded after styles.css (shared tokens, header, footer).
   Dark "modern darkroom" with one parchment contrast section (BRAND.md §2).
   #D97706 is a fill, never small text: amber ink is --color-accent-text on dark
   and #B45309 on parchment. */

:root {
  --color-canvas-light: #FBF7F0;
  --color-surface-light: #FFFFFF;
  --color-text-main-light: #1A1D24;
  --color-text-sub-light: #57534E;
  --color-accent-light: #B45309;
  --color-border-light: rgba(26, 29, 36, 0.12);
  --shadow-print: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(244, 239, 230, 0.06);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.cjk {
  --font-display: "Noto Serif JP", "Noto Serif KR", "Noto Serif TC", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
html.cjk body {
  --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "PingFang TC", "Apple SD Gothic Neo", "Yu Gothic", "Malgun Gothic", "Microsoft JhengHei", sans-serif;
  font-family: var(--font-ui);
}
html[lang="ru"] body { --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body.home { font-size: 16px; overflow-x: hidden; }
.home p { color: var(--color-text-sub); }
.home .eyebrow { color: var(--color-accent-text); font-weight: 600; letter-spacing: 0.1em; }
.home h1, .home h2 { letter-spacing: -0.01em; }
.home h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.home h3 { font-size: 18px; }
.home em { font-style: italic; color: var(--color-accent-text); }
html.cjk .home em { font-style: normal; }
html.cjk .home h1, html.cjk .home h2 { line-height: 1.3; letter-spacing: 0; }
/* Break CJK headlines at punctuation/spaces, not mid-word; still wrap if a run would overflow. */
html.cjk .home h1, html.cjk .home h2, html.cjk .home h3 { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--color-accent); color: var(--color-canvas); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
.home :focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 3px; border-radius: 6px; }

.small { font-size: 13px; line-height: 1.55; }
.center { text-align: center; }
.narrow { max-width: 820px; }

.home .section { padding: clamp(64px, 10vw, 120px) 0; }
.home .section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__head .lede { margin: 12px auto 0; }
.section__head--sub { margin-top: clamp(64px, 9vw, 104px); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.home .nav-links { gap: 22px; }
.nav-cta { padding: 10px 16px; white-space: nowrap; }@media (max-width: 960px) { .nav-links .nav-hide-md { display: none; } }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-text-sub); font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--color-border);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--color-text-main); border-color: rgba(244, 239, 230, 0.22); }
.lang .ico { width: 16px; height: 16px; }
.lang .ico--sm { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.lang[open] .ico--sm { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); min-width: 210px; max-height: 70vh; overflow: auto;
  display: grid; grid-template-columns: 1fr;
}
.lang__list a {
  display: block; padding: 9px 12px; border-radius: 9px; color: var(--color-text-main) !important; font-size: 14px;
}
.lang__list a:hover { background: var(--color-surface-2); }
.lang__list a[aria-current="page"] { color: var(--color-accent-text) !important; font-weight: 600; }
@media (max-width: 520px) {
  .lang__current { display: none; }
  .home .nav-links { gap: 10px; }
  .nav-cta { padding: 10px 12px; font-size: 13px; }
  .brand__name { font-size: 21px; }
}

/* ── App Store badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px; padding: 9px 18px 9px 14px; min-height: 52px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.badge:hover { transform: translateY(-1px); border-color: #fff; box-shadow: 0 0 0 4px var(--color-accent-glow); }
.badge__logo { width: 24px; height: 28px; flex: none; }
.badge__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge__text small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.badge__text strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", var(--font-ui); }
.badge--lg { min-height: 60px; padding: 10px 22px 10px 16px; }
.badge--lg .badge__logo { width: 28px; height: 32px; }
.badge--lg .badge__text strong { font-size: 25px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.home .hero { text-align: left; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.home .hero::before {
  background:
    radial-gradient(50% 60% at 78% 30%, rgba(217, 119, 6, 0.18), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(244, 239, 230, 0.05), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home .hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; max-width: 12ch; margin: 0 0 20px; }
html.cjk .home .hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.25; max-width: 14ch; }
.home .hero .lede { margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 19px); color: #B8BDC6; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__points li, .ticks li, .included li { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-main); font-size: 14px; font-weight: 500; }
.hero__points .ico, .ticks .ico, .included .ico { width: 17px; height: 17px; color: var(--color-accent-text); flex: none; }
.hero__media { margin: 0; }
.hint { text-align: center; margin-top: 14px; font-size: 13px; color: var(--color-text-sub); }
.hint::before { content: "↔  "; color: var(--color-accent-text); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .home .hero h1, .home .hero .lede { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__points { justify-content: center; }
  .hero__media { order: 2; }
}

/* ── Comparison slider (BRAND.md §5.1) ──────────────────────────────────── */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: 18px;
  aspect-ratio: var(--ar); width: 100%;
  box-shadow: var(--shadow-print); background: var(--color-surface);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare__img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__rule {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #F4EFE6; box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 999px; background: #F4EFE6; color: var(--color-accent);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.compare__handle svg { width: 22px; height: 22px; }
.compare:hover .compare__handle, .compare.is-dragging .compare__handle,
.compare__range:focus-visible ~ .compare__rule .compare__handle { transform: scale(1.1); box-shadow: 0 0 0 6px var(--color-accent-glow), 0 6px 18px rgba(0, 0, 0, 0.45); }
.compare__label {
  position: absolute; top: 14px; z-index: 1; pointer-events: none;
  background: rgba(26, 29, 36, 0.8); color: #F4EFE6; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  pointer-events: none; /* pointer handled by the container; the range is for keyboard + AT */
}

/* ── Showcase tabs ──────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 32px; padding: 6px; width: fit-content; max-width: 100%;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px;
}
.tab {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--color-text-sub); background: transparent; padding: 10px 18px; border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s;
}
.tab:hover { color: var(--color-text-main); }
.tab[aria-selected="true"] { background: var(--color-accent); color: var(--color-canvas); }
.panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.panel[hidden] { display: none; }
.panel__media { display: flex; justify-content: center; }
.panel__media .compare { width: min(100%, calc(560px * var(--ar))); }
.panel__text h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 14px; }
html.cjk .panel__text h3 { line-height: 1.35; }
.panel__text p { font-size: 17px; line-height: 1.6; }
@media (max-width: 820px) {
  .panel { grid-template-columns: 1fr; text-align: center; }
  .panel__media .compare { width: min(100%, calc(460px * var(--ar))); }
}
@media (max-width: 480px) {
  .tabs { border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tab { padding: 10px 8px; font-size: 13px; border-radius: 11px; }
}

/* ── Bring to life ──────────────────────────────────────────────────────── */
.alive { position: relative; overflow: hidden; }
.alive::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 25% 50%, rgba(217, 119, 6, 0.16), transparent 70%);
}
.alive__grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.alive__media { display: flex; justify-content: center; }
.print {
  position: relative; width: min(100%, 400px); padding: 14px 14px 52px; background: #F4EFE6; border-radius: 6px;
  box-shadow: var(--shadow-print); transform: rotate(-2deg);
}
.alive__video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 964; background: #ccc; border-radius: 2px; object-fit: cover; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 12px;
}
.pill--pro { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); background: var(--color-accent); color: var(--color-canvas); white-space: nowrap; }
.display { font-size: clamp(38px, 5.4vw, 64px) !important; }
.ticks { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 12px; }
.ticks li { font-size: 16px; }
@media (max-width: 820px) {
  .alive__grid { grid-template-columns: 1fr; text-align: center; }
  .ticks { justify-items: center; }
  .print { width: min(80%, 340px); }
}

/* ── Features ───────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  background: linear-gradient(180deg, var(--color-surface), rgba(26, 29, 36, 0.6));
  border: 1px solid var(--color-border); border-radius: 18px; padding: 24px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.feature:hover { border-color: rgba(217, 119, 6, 0.4); transform: translateY(-2px); }
.feature__icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 12px; margin-bottom: 16px;
  color: var(--color-accent-text); background: rgba(217, 119, 6, 0.12);
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } .feature { padding: 20px; } }

/* ── Parchment section: how it works + trust ────────────────────────────── */
.light { background: var(--color-canvas-light); color: var(--color-text-main-light); }
.light h2, .light h3 { color: var(--color-text-main-light); }
.light p { color: var(--color-text-sub-light); }
.light .eyebrow { color: var(--color-accent-light); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step {
  position: relative; background: var(--color-surface-light); border: 1px solid var(--color-border-light);
  border-radius: 18px; padding: 28px 24px; box-shadow: 0 10px 30px -18px rgba(26, 29, 36, 0.35);
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; margin-bottom: 16px;
  background: var(--color-accent); color: var(--color-canvas); font-weight: 700; font-size: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; }
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trust__item { text-align: center; padding: 0 8px; }
.trust__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(180, 83, 9, 0.1); color: var(--color-accent-light);
}
.trust__icon .ico { width: 24px; height: 24px; }
.trust__item p { font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 820px) {
  .steps, .trust__grid { grid-template-columns: 1fr; }
  .step { text-align: center; }
  .step__num { margin-left: auto; margin-right: auto; }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; padding: 30px 26px 26px; display: flex; flex-direction: column; text-align: center;
}
.plan--best {
  border: 2px solid var(--color-accent);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.12), var(--color-surface) 55%);
  box-shadow: 0 24px 60px -24px rgba(217, 119, 6, 0.45);
}
.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--color-accent); color: var(--color-canvas); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan__name { font-size: 15px !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-sub) !important; margin-bottom: 10px; }
.plan__price { margin: 0 0 4px; color: var(--color-text-main) !important; }
.plan__price strong { font-family: var(--font-ui); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.plan__price span { display: block; font-size: 14px; color: var(--color-text-sub); }
.plan__note { font-size: 14px; margin: 6px 0 18px; }
.plan--best .plan__note { color: var(--color-accent-text); font-weight: 600; }
.plan__trial {
  margin-top: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--color-text-main);
  background: var(--color-surface-2); border-radius: 999px; padding: 7px 12px;
}
.plan__trial .ico { width: 15px; height: 15px; color: var(--color-success); }
.included { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; max-width: 900px; }
.pricing__cta { display: flex; justify-content: center; margin: 32px 0 14px; }
.fine { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 12px; line-height: 1.6; color: #80868F !important; }
.fine a, .faq-more a { color: var(--color-accent-text); }
@media (max-width: 820px) {
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan--best { order: -1; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 10px; }
.qa { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 0 22px; }
.qa[open] { border-color: rgba(244, 239, 230, 0.16); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 16px; color: var(--color-text-main);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__chev { width: 18px; height: 18px; flex: none; color: var(--color-accent-text); transition: transform 0.2s var(--ease); }
.qa[open] .qa__chev { transform: rotate(180deg); }
.qa p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; }
.faq-more { margin-top: 24px; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--color-border);
  background: radial-gradient(70% 90% at 80% 100%, rgba(217, 119, 6, 0.22), transparent 70%), var(--color-surface);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  padding: clamp(32px, 5vw, 64px);
}
.final__photos { position: relative; height: 340px; }
.final__photos img {
  position: absolute; border: 8px solid #F4EFE6; border-bottom-width: 26px; border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55); object-fit: cover; background: #F4EFE6; height: auto;
}
.final__photos img:nth-child(1) { width: 44%; aspect-ratio: 3 / 4; left: 4%; top: 6%; transform: rotate(-7deg); }
.final__photos img:nth-child(2) { width: 42%; aspect-ratio: 4 / 5; left: 32%; top: 0; transform: rotate(3deg); z-index: 1; }
.final__photos img:nth-child(3) { width: 46%; aspect-ratio: 4 / 3; left: 50%; top: 42%; transform: rotate(-2deg); z-index: 2; }
.final__copy .lede { margin: 0 0 24px; }
@media (max-width: 820px) {
  .final { grid-template-columns: 1fr; text-align: center; }
  .final__photos { height: 260px; max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer-langs { list-style: none; padding: 0; margin: 32px 0 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-langs a { color: var(--color-text-sub); font-size: 13px; }
.footer-langs a:hover { color: var(--color-text-main); }
.footer-langs a[aria-current="page"] { color: var(--color-accent-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .print { transform: none; }
  * { transition: none !important; }
}
