/*
 * One stylesheet for every page. Same tokens as the iOS app's Theme.swift, so
 * the site and the product read as one thing: warm canvas, near-black ink,
 * one red.
 */
:root {
  --ink: #222222;
  --ink-2: #6a6a6a;
  --ink-3: #9c9c9c;
  --canvas: #f7f6f4;
  --surface: #ffffff;
  --sunken: #f0eeeb;
  --hairline: #e6e3df;
  --red: #c8102e;
  --red-soft: rgba(200, 16, 46, 0.08);
  --green: #0f7b4f;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.07);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f3f1;
    --ink-2: #a8a6a2;
    --ink-3: #7c7a77;
    --canvas: #121212;
    --surface: #1d1d1c;
    --sunken: #262625;
    --hairline: #2f2e2c;
    --red: #e8425c;
    --red-soft: rgba(232, 66, 92, 0.12);
    --green: #4ecb8d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto matters: every image carries width/height attributes for layout
   stability, and without it a max-width-constrained image keeps its attribute
   height and stretches. That is what distorted the screenshots when a stale
   stylesheet had no rules for them. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.wordmark {
  font: 700 26px/1 var(--serif);
  color: var(--red);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.button:active { transform: scale(0.98); }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { box-shadow: 0 8px 22px rgba(200, 16, 46, 0.28); }
.button.secondary { color: var(--ink); border: 1.5px solid var(--hairline); background: var(--surface); }
.button.secondary:hover { border-color: var(--ink-3); }
.nav .button { min-height: 40px; padding: 0 16px; font-size: 15px; color: #fff; }

@media (max-width: 720px) {
  .nav a:not(.button) { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero { padding: 72px 0 40px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font: 600 13px/1 var(--sans);
  color: var(--ink-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero h1 {
  margin: 26px auto 0;
  max-width: 1000px;
  text-wrap: balance;
  font: 700 clamp(36px, 7.4vw, 84px)/1.04 var(--serif);
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero p.lede {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-2);
}

.hero .actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── App screens ────────────────────────────────────────── */

/*
 * The app's own screens, with no device drawn around them.
 *
 * This replaced a CSS-drawn iPhone with tilted side phones, and not only
 * because it looked cheap. Apple's App Store marketing guidelines forbid
 * "illustrations that depict an Apple product" and "creating any simulation of
 * an Apple product", and forbid tilting or cropping product images — and this
 * site exists to pass an Apple review. Official bezels are licensed only to
 * members of the Apple Developer Program, and can only be used as-is.
 *
 * The screenshots have the status bar cropped off, since it carries the
 * Dynamic Island, so what is shown is the app and nothing of the hardware.
 * If official bezels are adopted after enrolment they go in unrotated, uncropped
 * and without added shadows, per the same guidelines.
 */

.screens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 2.4vw, 28px);
  margin: 64px auto 0;
  max-width: 980px;
  padding: 0 8px;
}

.screen {
  flex: 0 0 auto;
  width: clamp(150px, 24vw, 260px);
  aspect-ratio: 900 / 1738;
  border-radius: 22px;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 2px rgba(34, 34, 34, 0.04),
    0 18px 50px rgba(34, 34, 34, 0.10);
}
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/*
 * In the hero, show only the top of each screen and let it fade out.
 *
 * Full-height, the three screens made the hero over 1200px tall, and two of
 * them are mostly empty background below their content — the home screen is
 * one card, the scan step one instruction. That read as dead space rather than
 * as product. The top of each screen is where all of its content is; the fade
 * says "there is more" without drawing a hard edge through the UI.
 */
.screens .screen {
  aspect-ratio: 900 / 1180;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  border-bottom-color: transparent;
  box-shadow: 0 1px 2px rgba(34, 34, 34, 0.04), 0 -2px 30px rgba(34, 34, 34, 0.06);
}
/* The scan step's content — the prompt and its icon — sits mid-screen, so a
   top crop would show only its header over empty background. */
.screens .screen.frame-middle img { object-position: center 58%; }

/* The middle screen leads: larger, and set slightly higher so the row reads
   as a composition rather than three equal tiles. Straight, never rotated. */
.screens .screen.lead {
  width: clamp(190px, 30vw, 320px);
  margin-bottom: clamp(18px, 3vw, 36px);
}

@media (max-width: 640px) {
  .screens .screen:not(.lead) { display: none; }
  .screens .screen.lead { width: min(300px, 76vw); margin-bottom: 0; }
}

/* ── Sections ───────────────────────────────────────────── */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
h2 { margin: 14px 0 0; font: 700 clamp(32px, 4.6vw, 50px)/1.08 var(--serif); letter-spacing: -0.02em; }
.section-head p { margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }

/* The problem, set as a quote with real weight. */
.statement {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 72px);
}
.statement blockquote {
  margin: 0;
  font: 500 clamp(24px, 3.4vw, 36px)/1.3 var(--serif);
  letter-spacing: -0.01em;
}
.statement blockquote .spec {
  font: 600 0.8em/1 var(--mono);
  background: var(--sunken);
  padding: 0.12em 0.4em;
  border-radius: 8px;
  white-space: nowrap;
}
.statement p { margin: 24px 0 0; color: var(--ink-2); max-width: 640px; }

/* ── Steps ──────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.step .num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font: 700 16px/1 var(--sans);
}
.step h3 { margin: 20px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ── Showcase: text beside a screenshot ─────────────────── */

.showcase { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.showcase.flip .copy { order: 2; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase.flip .copy { order: 0; }
}
.showcase .copy ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.showcase .copy li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.showcase .copy li strong { color: var(--ink); font-weight: 600; }
.tick {
  width: 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font: 700 12px/1 var(--sans);
}

.shot { display: flex; justify-content: center; }
.shot .screen { width: min(320px, 78vw); }

/* ── Feature grid ───────────────────────────────────────── */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 18px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ── Roles ──────────────────────────────────────────────── */

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.role { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.role .band { height: 96px; position: relative; }
.role .band svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 44px; }
.role .band.owner    { background: linear-gradient(135deg, #c7213a, #8c1a3d); }
.role .band.renter   { background: linear-gradient(135deg, #22508a, #182f5f); }
.role .band.landlord { background: linear-gradient(135deg, #1c6a55, #11443c); }
.role .body { padding: 26px 28px 30px; }
.role h3 { margin: 0 0 6px; font-size: 20px; }
.role .promise { font: 600 15px/1.4 var(--sans); color: var(--ink); margin: 0 0 10px; }
.role p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ── Principles ─────────────────────────────────────────── */

.principles {
  background: var(--ink);
  color: var(--canvas);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px);
}
@media (prefers-color-scheme: dark) {
  .principles { background: var(--surface); color: var(--ink); }
}
.principles h2 { color: inherit; }
.principles .kicker { color: #ff6b81; }
.principles .list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; margin-top: 48px; }
@media (max-width: 760px) { .principles .list { grid-template-columns: 1fr; } }
.principles h3 { margin: 0 0 8px; font-size: 19px; }
.principles p { margin: 0; opacity: 0.72; font-size: 16px; }

/* ── CTA + footer ───────────────────────────────────────── */

.cta { text-align: center; }
.cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.cta p { color: var(--ink-2); font-size: 19px; max-width: 560px; margin: 18px auto 0; }
.cta .actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 56px; margin-top: 40px; }
.site-footer .wrap { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.site-footer .legal { color: var(--ink-3); font-size: 14px; max-width: 420px; }
.site-footer .legal .wordmark { font-size: 22px; display: inline-block; margin-bottom: 10px; }
.site-footer nav { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer nav div { display: grid; gap: 10px; font-size: 15px; align-content: start; }
.site-footer nav strong { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

/* ── Document pages (privacy, support) ──────────────────── */

.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; }
.doc h1 { font: 700 clamp(38px, 5.5vw, 56px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 14px 0 40px; }
.doc h2 { font: 700 26px/1.2 var(--serif); margin: 48px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--ink); }
.doc .panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px; margin: 28px 0; }
.doc .panel p { margin: 0; }
.doc .panel p + p { margin-top: 10px; }

/* Reveal on scroll — progressive: content is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.site-footer .legal .contact { margin-top: 6px; }
