/*
 * vita.renkara.com
 *
 * Tokens mirror the Vita app's design system (@renkara/design-system) so the
 * screenshots sit flush on the page: the light page is its card white with the
 * app's #F8FAFC background as the alternate band; dark is the app's #101318
 * and #191D24. The one accent is Vita's oxblood — 350 65% 42% in light (6.6:1
 * on white; carries white text), 350 80% 72% in dark (7.2:1 on #101318; carries
 * near-black text, as the app's dark Download button does).
 *
 * Mobile first. Nothing may overflow at 375px; the gallery and every figure
 * shrink instead.
 */

:root {
  --paper: 0 0% 100%;
  --band: 210 33% 98%;
  --ink: 217 48% 20%;
  --slate: 216 14% 40%;
  --mist: 214 32% 91%;
  --mist-strong: 214 25% 82%;
  --brand: 350 65% 42%;
  --brand-hover: 350 67% 36%;
  --on-brand: 0 0% 100%;
  --brand-tint: 350 70% 96%;
  --brand-on-tint: 350 70% 32%;
  --shadow: 217 48% 12%;
  --focus: 350 65% 42%;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --radius: 14px;
  --header-h: 64px;
  color-scheme: light;
}

.dark {
  --paper: 220 20% 8%;
  --band: 220 18% 11%;
  --ink: 210 33% 95%;
  --slate: 216 14% 65%;
  --mist: 220 16% 20%;
  --mist-strong: 220 14% 28%;
  --brand: 350 80% 72%;
  --brand-hover: 350 80% 78%;
  --on-brand: 350 60% 12%;
  --brand-tint: 350 35% 18%;
  --brand-on-tint: 350 80% 82%;
  --shadow: 0 0% 0%;
  --focus: 350 80% 72%;
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: hsl(var(--paper));
  color: hsl(var(--ink));
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, picture { display: block; max-width: 100%; height: auto; }

a { color: hsl(var(--brand)); text-underline-offset: 3px; }
a:hover { color: hsl(var(--brand-hover)); }

:focus-visible {
  outline: 2px solid hsl(var(--focus));
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; color: hsl(var(--ink)); text-wrap: balance; }
p { margin: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  font-weight: 500;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: hsl(var(--brand-tint));
  color: hsl(var(--brand-on-tint));
  white-space: nowrap;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: hsl(var(--brand)); color: hsl(var(--on-brand)); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: hsl(var(--on-brand)); }

.shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid transparent;
  font: 700 0.9375rem/1.2 var(--font-sans); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: hsl(var(--brand)); color: hsl(var(--on-brand)); }
.btn-primary:hover { background: hsl(var(--brand-hover)); color: hsl(var(--on-brand)); }
.btn-quiet { color: hsl(var(--ink)); border-color: hsl(var(--mist-strong)); background: transparent; }
.btn-quiet:hover { color: hsl(var(--ink)); border-color: hsl(var(--ink) / 0.5); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid transparent; background: transparent;
  color: hsl(var(--ink)); cursor: pointer;
}
.icon-btn:hover { background: hsl(var(--band)); border-color: hsl(var(--mist)); }
.icon-moon { display: none; }
.dark .icon-sun { display: none; }
.dark .icon-moon { display: block; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--paper) / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid hsl(var(--mist));
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: hsl(var(--ink)); text-decoration: none;
}
.brand img { border-radius: 7px; }
.brand-word { font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand:hover { color: hsl(var(--ink)); }

.site-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; }

.mobile-menu { border-top: 1px solid hsl(var(--mist)); background: hsl(var(--paper)); }
.mobile-menu nav { display: grid; gap: 4px; padding-block: 12px 20px; }
.mobile-menu a:not(.btn) {
  display: block; padding: 12px 4px; min-height: 44px;
  color: hsl(var(--ink)); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid hsl(var(--mist));
}
.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .site-nav { display: flex; gap: 28px; margin-left: 36px; }
  .site-nav a { color: hsl(var(--slate)); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .site-nav a:hover { color: hsl(var(--ink)); }
  .header-cta { display: inline-flex; margin-left: 6px; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- type ---------- */

.hero h1 {
  font-size: clamp(2.5rem, 1.35rem + 5.1vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.section-title, .feature h2, .closing h2 {
  font-size: clamp(1.875rem, 1.25rem + 2.3vw, 2.875rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.feature h2 em { font-style: italic; }

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  color: hsl(var(--slate));
  max-width: 34em;
}
.section-lead { margin-top: 14px; font-size: 1.125rem; color: hsl(var(--slate)); max-width: 36em; }

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

.hero { padding-block: 56px 72px; }
.hero-copy { position: relative; z-index: 2; }
.hero .lead { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 0.9375rem; color: hsl(var(--slate)); }

.hero-stage { position: relative; margin: 48px 0 0; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--mist));
  background: hsl(var(--band));
  box-shadow: 0 1px 2px hsl(var(--shadow) / 0.06), 0 18px 40px -18px hsl(var(--shadow) / 0.28);
}
.frame-hero {
  z-index: 1;
  border-color: hsl(220 16% 22%);
  box-shadow:
    0 2px 4px hsl(var(--shadow) / 0.08),
    0 40px 90px -30px hsl(350 55% 22% / 0.45);
}

/* The one memorable thing: the same profile, printed in two other templates,
   tucked behind the screen. Real renders; decorative, so aria-hidden. */
.sheets { display: none; }

@media (min-width: 960px) {
  .hero { padding-block: 80px 104px; }
  .hero .lead { max-width: 30em; }
}

/* The sheets need the width to the right of the copy to themselves: below
   1200px the back sheet runs into the lead (measured at 1100), so they only
   appear at the full container width. */
@media (min-width: 1200px) {
  .hero-stage { margin-top: 12px; }
  .sheets {
    display: block;
    position: absolute; z-index: 0;
    right: 2%; bottom: 80%;
    width: 30%; aspect-ratio: 720 / 932;
    pointer-events: none;
  }
  .sheet {
    position: absolute; inset: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px hsl(0 0% 0% / 0.1), 0 24px 44px -20px hsl(var(--shadow) / 0.4);
    overflow: hidden;
    transform-origin: 50% 100%;
  }
  .sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .sheet-back { transform: translateX(-22%) rotate(-6deg); }
  .sheet-front { transform: translateX(6%) rotate(4deg); }

  @media (prefers-reduced-motion: no-preference) {
    .sheet { animation: sheet-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
    .sheet-front { animation-delay: 0.4s; }
    @keyframes sheet-rise { from { transform: translateY(46%) rotate(0deg); } }
  }
}

/* ---------- bands ---------- */

.band { padding-block: clamp(72px, 9vw, 120px); }
.band-alt { background: hsl(var(--band)); border-block: 1px solid hsl(var(--mist)); }

/* ---------- how it works: a real sequence, so numbered ---------- */

.steps {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; gap: 28px;
  counter-reset: none;
}
.step { position: relative; padding-top: 22px; border-top: 2px solid hsl(var(--brand)); }
.step-num {
  display: block;
  font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: hsl(var(--brand));
}
.step h3 {
  margin-top: 14px; font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.015em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.step p { margin-top: 8px; color: hsl(var(--slate)); max-width: 30em; }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- the status mark ---------- */

.soon {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: hsl(var(--brand-tint));
  color: hsl(var(--brand-on-tint));
  font: 700 0.75rem/1.4 var(--font-sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: middle;
}
.feature-copy > .soon { margin-bottom: 16px; }

/* ---------- feature rows ---------- */

.feature { padding-block: clamp(64px, 8vw, 112px); }
.feature + .feature { border-top: 1px solid hsl(var(--mist)); }
.feature-grid { display: grid; gap: 36px; align-items: center; }
.feature-copy p { margin-top: 18px; font-size: 1.125rem; line-height: 1.65; color: hsl(var(--slate)); max-width: 32em; }
.feature-figure { min-width: 0; }

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .feature-flip .feature-grid { grid-template-columns: 7fr 5fr; }
  .feature-flip .feature-copy { order: 2; }
  .feature-flip .feature-figure { order: 1; }
}

/* Theme-matched screenshots: the page theme picks one, the other is never shown
   (and, being lazy, never fetched). */
.theme-dark { display: none; }
.dark .theme-light { display: none; }
.dark .theme-dark { display: block; }

/* ---------- placeholder frame for an unshipped screen ---------- */

.pending {
  display: grid; justify-items: center; align-content: center; gap: 6px;
  aspect-ratio: 16 / 10;
  padding: 28px;
  border-radius: var(--radius);
  border: 1.5px dashed hsl(var(--mist-strong));
  background:
    radial-gradient(circle at 1px 1px, hsl(var(--mist-strong) / 0.55) 1px, transparent 0) 0 0 / 18px 18px,
    hsl(var(--band));
  text-align: center;
}
.pending img { opacity: 0.85; border-radius: 8px; margin-bottom: 8px; }
.pending-kicker { font-size: 0.8125rem; font-weight: 700; color: hsl(var(--brand)); }
.pending-title { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.pending-text { max-width: 26em; font-size: 0.9375rem; color: hsl(var(--slate)); line-height: 1.5; }

/* A grid item with aspect-ratio takes its automatic minimum WIDTH from its
   content height through the ratio (a 233px-tall frame at 16:10 demands
   373px), which overflowed the page at 375px. min-width: 0 lets the height
   grow instead. */
.pair { display: grid; gap: 16px; }
.pair > * { min-width: 0; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } .pair .pending { aspect-ratio: 4 / 5; } }

/* ---------- formats ---------- */

.formats { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats li { display: inline-flex; align-items: center; gap: 8px; }
.formats code { font-size: 0.875rem; padding: 6px 10px; border-radius: 8px; }
.format-soon code { background: transparent; border: 1px dashed hsl(var(--mist-strong)); color: hsl(var(--slate)); }

/* ---------- four templates, one profile: pages laid out on a table ----------
   Each sheet shows the top of its page — name, summary, first role — which
   is where the four designs differ most. The gallery below shows whole pages. */

.fan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7% 6%;
  padding: 7% 6%;
  border-radius: var(--radius);
  background: hsl(var(--band));
  border: 1px solid hsl(var(--mist));
}
.fan-sheet {
  min-width: 0;
  aspect-ratio: 720 / 560;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.12), 0 16px 30px -16px hsl(var(--shadow) / 0.45);
}
.fan-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan-1 { transform: rotate(-1.5deg); }
.fan-2 { transform: rotate(1deg) translateY(4%); }
.fan-3 { transform: rotate(1.25deg); }
.fan-4 { transform: rotate(-1deg) translateY(4%); }

/* ---------- everywhere: phone over desktop ---------- */

.duo { position: relative; padding-bottom: 6%; }
.duo-desktop { width: 86%; margin-left: auto; }
.phone {
  position: absolute; left: 0; bottom: 0;
  width: 30%;
  padding: 2.2% 1.6%;
  border-radius: 13% / 6%;
  background: #0B0E13;
  box-shadow: 0 0 0 1px hsl(220 16% 26%), 0 30px 60px -24px hsl(var(--shadow) / 0.55);
}
.phone picture, .phone img { border-radius: 10% / 4.6%; overflow: hidden; }

/* ---------- template gallery ---------- */

.gallery {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px;
}
.gallery-page {
  border-radius: 4px; overflow: hidden; background: #fff;
  border: 1px solid hsl(var(--mist));
  box-shadow: 0 1px 2px hsl(var(--shadow) / 0.06), 0 14px 28px -18px hsl(var(--shadow) / 0.35);
}
.gallery-item h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.gallery-item p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: hsl(var(--slate)); }

@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1120px) { .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; } }

/* ---------- pricing ---------- */

.pricing-grid { display: grid; gap: 36px; align-items: start; }
.price-card {
  border-radius: 20px;
  border: 1px solid hsl(var(--mist));
  background: hsl(var(--paper));
  box-shadow: 0 1px 2px hsl(var(--shadow) / 0.05), 0 30px 60px -36px hsl(var(--shadow) / 0.35);
  padding: 28px;
  display: grid; gap: 28px;
}
.dark .price-card { background: hsl(var(--band)); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: clamp(3.5rem, 2.8rem + 3vw, 4.75rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price-unit { font-size: 1.25rem; font-weight: 700; color: hsl(var(--slate)); }
.price-note { margin-top: 10px; color: hsl(var(--slate)); }
.price-cta { margin-top: 22px; width: 100%; }

.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.included li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.included svg { flex: none; margin-top: 2px; color: hsl(var(--brand)); }
.included-text { display: block; }
.included-soon .included-text { color: hsl(var(--slate)); }
/* One line for the capability, the mark on its own line beneath — the same
   shape for every soon item, however long its text. */
.included .soon { display: flex; width: fit-content; margin-top: 6px; }

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .price-card { grid-template-columns: 5fr 7fr; padding: 40px; gap: 48px; }
  .price-head { border-right: 1px solid hsl(var(--mist)); padding-right: 40px; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid hsl(var(--mist-strong)); }
.faq-item { border-bottom: 1px solid hsl(var(--mist-strong)); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 0;
  font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid hsl(var(--brand)); border-bottom: 2px solid hsl(var(--brand));
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-item p { padding: 0 0 22px; color: hsl(var(--slate)); max-width: 38em; }

@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; } }

/* ---------- closing ---------- */

.closing { padding-block: clamp(72px, 9vw, 120px); }
.closing-inner { display: grid; gap: 28px; justify-items: start; }
@media (min-width: 900px) {
  .closing-inner { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
}

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

.legal { max-width: 46rem; padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.legal h1 + p { margin-top: 14px; color: hsl(var(--slate)); }
.legal h2 { margin-top: 44px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.legal p, .legal ul { margin-top: 14px; color: hsl(var(--ink)); }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.7; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: hsl(var(--brand)); }
.legal strong { font-weight: 700; }
.legal a { font-weight: 600; }

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

.site-footer { border-top: 1px solid hsl(var(--mist)); padding-block: 44px 36px; background: hsl(var(--band)); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand p { margin-top: 10px; color: hsl(var(--slate)); font-size: 0.9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: hsl(var(--ink)); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding-block: 10px; }
.footer-links a:hover { color: hsl(var(--brand)); }
.footer-legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid hsl(var(--mist)); display: grid; gap: 8px; }
.footer-legal p { font-size: 0.8125rem; color: hsl(var(--slate)); line-height: 1.55; }
.footer-legal sup { font-size: 0.6em; }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- wider gutters ---------- */

@media (min-width: 768px) { :root { --gutter: 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
