/* PocketStager
   Colours come from a twilight listing shot: dusk-blue sky, lit-window amber, white trim.
   One typeface, Archivo, used narrow and heavy for headings (think yard signs and
   feature sheets) and at normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --dusk: #172033;      /* text, dark sections */
  --dusk-2: #24304a;    /* raised surfaces on dark */
  --window: #f5b544;    /* the one accent: slider handle, focus, small marks */
  --slate: #5b6573;     /* secondary text */
  --rule: #d8d2e4;
  --wall: #e6e1ef;      /* deeper lavender for quiet panels */
  --page: #f3f0f8;      /* pale lavender: the sky just after sunset */
  --white: #ffffff;
  --narrow: "wdth" 76;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--dusk);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--window); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }

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

h1, h2, h3 {
  font-variation-settings: var(--narrow);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 8.4vw, 116px); }
h2 { font-size: clamp(38px, 5.2vw, 68px); }
h3 { font-size: 30px; line-height: 1.05; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--page); }
.top.scrolled { box-shadow: 0 1px 0 var(--rule); }
.top .wrap { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--slate); }
.top nav a:hover { color: var(--dusk); }
.top nav a.get { color: var(--dusk); font-weight: 600; border-bottom: 2px solid var(--window); padding-bottom: 1px; }

/* App Store button: Apple's badge once the app is live (see site.js), a plain link before. */
.appstore { display: inline-flex; align-items: center; text-decoration: none; min-height: 54px; }
.appstore img { height: 54px; width: auto; }
.appstore .soon { display: inline-flex; align-items: center; height: 54px; padding: 0 22px; border-radius: 10px; background: var(--dusk); color: var(--white); font-weight: 600; font-size: 17px; }
.on-dark .appstore .soon { background: var(--page); color: var(--dusk); }

/* Before/after comparison */
.compare { position: relative; overflow: hidden; background: var(--wall); aspect-ratio: 3 / 2; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: var(--window); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--window); box-shadow: 0 6px 18px rgba(23,32,51,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M18 16l-6 7 6 7M28 16l6 7-6 7' fill='none' stroke='%23172033' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.compare .word { position: absolute; bottom: 16px; font-size: 15px; font-weight: 600; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.55); pointer-events: none; }
.compare .word.b { left: 18px; } .compare .word.a { right: 18px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare.single .after, .compare.single .handle, .compare.single .word, .compare.single input { display: none; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; font-size: 15px; color: var(--slate); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
footer .wrap span { margin-right: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--dusk); text-decoration: underline; }

/* Text pages (privacy, terms, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 28px 96px; }
.doc h1 { font-size: clamp(48px, 7vw, 76px); margin-bottom: 14px; }
.doc .updated { color: var(--slate); margin-bottom: 40px; }
.doc h2 { font-size: 34px; margin: 48px 0 14px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .4em 0; }
.doc .short { background: var(--wall); border-left: 4px solid var(--window); padding: 18px 22px; margin: 0 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 18px; }
.doc th { text-align: left; font-weight: 600; padding: 0 16px 8px 0; border-bottom: 2px solid var(--dusk); }
.doc td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .doc { padding-left: 20px; padding-right: 20px; }
  .top nav .hide-sm { display: none; }
  .top nav { gap: 20px; }
  footer .wrap span { flex-basis: 100%; }
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc tr:first-child { display: none; }
  .doc td:first-child { font-weight: 600; border-bottom: 0; padding-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

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