/* Nostalgio website — same look as the app: warm cream canvas, white cards,
   dark text, peach → coral → violet gradient only for calls to action. */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
/* Static Fraunces instances (opsz 144): headings wght 560 SOFT 60, polaroid
   caption wght 480 SOFT 100 WONK 1. Built from design/fonts, see README. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Caption";
  src: url("fonts/Fraunces-Caption.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas: #fbf6ee;
  --paper: #fffdf9;
  --card: #ffffff;
  --text: #2b2622;
  --text-soft: #6f655c;
  --line: #ebe1d3;
  --tint: #fbeee4;
  --primary: #d9674a;
  --peach: #f4b369;
  --coral: #e0714f;
  --violet: #8a6bd6;
  --accent: linear-gradient(120deg, var(--peach) 0%, var(--coral) 52%, var(--violet) 100%);
  --shadow: 0 18px 40px -22px rgba(74, 48, 30, 0.35);
  --radius: 24px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft corner glows like the app canvas. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
body::before { top: -30vmax; left: -25vmax; background: #fde3c8; }
body::after { bottom: -35vmax; right: -25vmax; background: #eadff8; }

img, video { max-width: 100%; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 225, 211, 0.7);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 34px; height: auto; }
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover { color: var(--text); }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(217, 103, 74, 0.7);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}
.site-nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 64px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.015em;
}
h3 { font-size: 19px; font-weight: 700; }
.lead { font-size: 19px; color: var(--text-soft); max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-soft); }

/* Polaroid with the photo coming alive. */
.polaroid {
  justify-self: center;
  width: min(360px, 88%);
  background: #fcfaf5;
  padding: 16px 16px 0;
  border-radius: 6px;
  box-shadow: 0 30px 60px -28px rgba(60, 38, 22, 0.55);
  transform: rotate(-2.5deg);
}
.polaroid video {
  width: 100%;
  aspect-ratio: 496 / 864;
  object-fit: cover;
  background: #e9e1d6;
}
.polaroid figcaption {
  font-family: "Fraunces Caption", Georgia, serif;
  font-style: italic;
  text-align: center;
  font-size: 22px;
  color: #3b332d;
  padding: 14px 0 18px;
}

/* -------------------------------------------------------------- sections */

section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-soft); margin: 14px 0 0; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(235, 225, 211, 0.6);
}

/* Feature grid with before / after sliders. */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 14px 14px 22px; }
/* Before/after slider (assets/compare.js): the "after" photo is underneath,
   the "before" photo is clipped at --pos, a transparent range input on top
   handles mouse, touch and keyboard. */
.compare, .combo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #e9e1d6;
}
.compare img, .combo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.compare::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--pos);
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2622' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.compare:has(input:focus-visible)::before { outline: 3px solid var(--primary); outline-offset: 2px; }
.compare input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
/* Combine: the result, with the two source photos as small prints. */
.combo-inputs {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 50%;
  display: flex;
  gap: 8px;
}
.combo-inputs img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55);
}
.tag {
  position: absolute;
  z-index: 1;
  top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.tag.left { left: 8px; }
.tag.right { right: 8px; }
.feature h3, .feature p { padding: 0 8px; }
.feature p { color: var(--text-soft); margin: 6px 0 0; font-size: 15.5px; }

.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } }
.extra { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.extra .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.extra p { color: var(--text-soft); margin: 4px 0 0; font-size: 15.5px; }

/* Steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step p { color: var(--text-soft); margin: 6px 0 0; font-size: 15.5px; }

/* Screenshot strip. */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 20px 24px;
  margin: 0 -20px;
}
.shots img {
  flex: none;
  width: 230px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

/* Pricing. */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { outline: 2px solid var(--coral); }
.plan .badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.plan p { color: var(--text-soft); margin: 8px 0 16px; font-size: 15.5px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: 15.5px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.fine { text-align: center; color: var(--text-soft); font-size: 14px; margin-top: 22px; }

/* Privacy highlight. */
.privacy-box {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) { .privacy-box { grid-template-columns: 1fr; padding: 28px 22px; } }
.privacy-box ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.privacy-box li { margin: 6px 0; }

/* FAQ. */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 18px 22px; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-soft); margin: 12px 0 0; }

/* Contact / CTA. */
.cta {
  text-align: center;
  padding: 52px 24px;
  background: var(--paper);
}
.cta p { color: var(--text-soft); max-width: 34em; margin: 12px auto 26px; }
.cta .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 40px 0 48px;
  color: var(--text-soft);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-soft); }
.site-footer .langs { flex-basis: 100%; gap: 14px; }
.site-footer .langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }

/* ------------------------------------------------------------ legal pages */

.legal { padding: 48px 0 72px; }
.legal .doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 48px;
}
@media (max-width: 640px) { .legal .doc { padding: 28px 20px; } }
.legal h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 8px; }
.legal .updated { color: var(--text-soft); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal h3 { margin: 22px 0 6px; }
.legal p, .legal li { color: #463e37; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.placeholder {
  background: #fff3c4;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.note {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--tint);
  margin: 18px 0;
}

/* Official Google Play badge (artwork unchanged, transparent margin trimmed). */
.play-badge { display: inline-flex; }
.play-badge img { display: block; height: 56px; width: auto; }

/* Long compounds (German, Dutch) carry soft hyphens in the strings; never overflow. */
h1, h2 { overflow-wrap: break-word; }

/* Japanese and Korean: Fraunces and Plus Jakarta Sans have no CJK glyphs, so
   headings use the system's CJK serif (body text falls back to system-ui),
   without negative tracking or synthetic italics. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) .polaroid figcaption {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
}
:lang(ko) h1, :lang(ko) h2, :lang(ko) .polaroid figcaption {
  font-family: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif;
}
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2 { font-weight: 600; letter-spacing: 0; line-height: 1.35; }
:lang(ja) .polaroid figcaption, :lang(ko) .polaroid figcaption { font-style: normal; font-size: 18px; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }
