/* ============================================================
   AssetGuard Cam — design tokens

   Palette sampled from the two brand references in this folder:
   the interior-decoration flyer (near-black ground #101010, copper
   #945524–#9a572c, warm cream band #ede9e4) and the property flyer
   (charcoal panel #3b3c3d, terracotta #a5665a, clay #ae7266).

   Ink + copper carry the brand; clay is a secondary accent used for
   decorative rules, medallion rings and role selection — never for
   status, so it can't be mistaken for the error red.
   ============================================================ */

:root {
  /* ground and surfaces — warm, not neutral */
  --bg: #f5f1eb;
  --surface: #ffffff;
  --surface2: #ebe4da;
  --line: #e4dacd;

  /* warm greys, tinted toward the cream rather than blue */
  --text: #1e1b19;
  --text2: #6b625a;
  --text3: #a69c92;

  /* copper — the primary accent */
  --copper: #95552a;        /* text-safe on cream: 6.4:1 */
  --copper-lt: #c98b4b;     /* highlight end of the CTA gradient */
  --copper-mid: #a9683a;    /* icons and large text */
  --coppersoft: #f7ecdf;

  /* clay — secondary accent, decorative only */
  --clay: #a5665a;
  --claysoft: #f6e9e4;

  /* ink — the near-black from the interior flyer */
  --ink: #22201e;
  --ink-deep: #121110;
  --onink: #ffffff;
  --onink2: #c4b8ab;        /* muted text on an ink panel */

  /* status — warmed to sit inside the palette */
  --ok: #4f7343;
  --oksoft: #eaf1e4;
  --err: #a63a2a;
  --errsoft: #f9e8e4;

  --shadow: 0 14px 34px -20px rgba(34, 32, 30, .38);

  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 18px;
  --r-xl: 22px;
  --pill: 999px;

  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0f0e0d;
  --surface: #1a1817;
  --surface2: #262220;
  --line: #35302b;

  --text: #ffffff;
  --text2: #c4b8ab;
  --text3: #8b8078;

  --copper: #d08b4c;
  --copper-lt: #e0a469;
  --copper-mid: #d08b4c;
  --coppersoft: rgba(208, 139, 76, .15);

  --clay: #c08375;
  --claysoft: rgba(192, 131, 117, .15);

  --ink: #262220;
  --ink-deep: #0b0a09;
  --onink2: #c4b8ab;

  --ok: #86ae72;
  --oksoft: rgba(134, 174, 114, .15);
  --err: #de7c6b;
  --errsoft: rgba(222, 124, 107, .15);

  --shadow: 0 14px 34px -20px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; }

/* Several components below set `display`, which would otherwise beat the
   UA's [hidden] rule. Keep `hidden` authoritative. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #ebe4da;
  color: var(--text);
  overflow: hidden;
}

[data-theme="dark"] body { background: #0b0a09; }

button { font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 0; height: 0; }
.scroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; }

/* ============================================================
   Stage — desktop presentation chrome
   ============================================================ */

.stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 32px;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(169, 104, 58, .20), transparent 60%),
    radial-gradient(800px 700px at 105% 110%, rgba(165, 102, 90, .18), transparent 62%);
}

.stage__aside { width: 330px; flex: none; color: #4a423b; }
[data-theme="dark"] .stage__aside { color: #c4b8ab; }

.stage__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.stage__logo { width: 40px; height: 47px; flex: none; }
.stage__name { font: 800 17px/1 var(--display); letter-spacing: -.01em; color: #1e1b19; }
[data-theme="dark"] .stage__name { color: #fff; }
.stage__name span { color: var(--copper-lt); }
.stage__name em { font-style: normal; font-weight: 600; color: #6b625a; }
.stage__tag {
  font: 500 9.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9c918a;
  margin-top: 6px;
}

.stage__lede { font-size: 13px; line-height: 1.6; margin: 0 0 22px; }
.stage__controls { display: flex; flex-direction: column; gap: 10px; }
.stage__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage__row > span {
  font: 600 10.5px var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a69c92;
}

.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #fff;
  border: 1px solid #e4dacd;
  border-radius: var(--pill);
}
[data-theme="dark"] .seg { background: #1a1817; border-color: #35302b; }
.seg button {
  padding: 6px 13px;
  border: none;
  border-radius: var(--pill);
  background: transparent;
  color: #6b625a;
  font: 700 11.5px var(--display);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: #22201e; color: #fff; }
[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--copper-lt); color: #121110; }

.stage__note {
  font-size: 11.5px;
  line-height: 1.55;
  color: #9c918a;
  margin: 20px 0 0;
  min-height: 34px;
  white-space: pre-line;
}
.stage__reset {
  margin-top: 4px;
  padding: 9px 15px;
  border: 1px solid #e4dacd;
  border-radius: var(--pill);
  background: transparent;
  color: #9c918a;
  font: 600 11.5px var(--sans);
  cursor: pointer;
}
.stage__reset:hover { color: var(--err); border-color: var(--err); }

/* ============================================================
   Phone frame
   ============================================================ */

.phone {
  position: relative;
  width: 414px;
  height: 858px;
  max-height: calc(100vh - 64px);
  flex: none;
  padding: 11px;
  border-radius: 52px;
  background: #0d0c0b;
  box-shadow: 0 40px 90px -30px rgba(34, 32, 30, .55), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.phone__notch {
  position: absolute;
  left: 50%; top: 22px;
  transform: translateX(-50%);
  width: 104px; height: 28px;
  border-radius: 16px;
  background: #0d0c0b;
  z-index: 20;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Status bar / offline banner
   ============================================================ */

.statusbar {
  flex: none;
  height: 54px;
  padding: 0 30px 6px 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font: 600 13.5px var(--display);
}
.statusbar__icons { display: flex; align-items: center; gap: 6px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.bars i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 6px; }
.bars i:nth-child(3) { height: 8px; }
.bars i:nth-child(4) { height: 11px; }
.wifi {
  display: block; width: 13px; height: 10px;
  background: currentColor;
  clip-path: polygon(50% 100%, 0 30%, 12% 18%, 50% 52%, 88% 18%, 100% 30%);
}
.batt {
  display: block; width: 22px; height: 11px;
  border: 1.4px solid currentColor; border-radius: 3px; opacity: .9;
}

.offlinebar {
  flex: none;
  margin: 0 14px 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--errsoft);
  color: var(--err);
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 12px var(--sans);
}
.offlinebar i {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ============================================================
   View + navigation
   ============================================================ */

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  outline: none;
}
.view > * { animation: enter .28s cubic-bezier(.2, .7, .3, 1); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view > *, .toast, .sheet__panel { animation: none !important; }
}

.pad { padding: 4px 20px 24px; }
.pad--flush { padding: 0 0 24px; }

.nav {
  flex: none;
  display: flex;
  padding: 8px 8px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 2px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  font: 600 9.5px var(--sans);
}
.nav button[aria-current="page"] { color: var(--copper); }
.nav svg { width: 22px; height: 22px; }

/* ============================================================
   Typography
   ============================================================ */

.h1 { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin: 0; }
.h1--big { font-size: 24px; }
.h2 { font: 700 17px var(--display); letter-spacing: -.01em; margin: 0; }
.h3 { font: 700 14px var(--display); margin: 0; }
.sub { font-size: 13px; color: var(--text2); margin: 4px 0 0; line-height: 1.5; }
.eyebrow {
  font: 600 11px var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0;
}
.muted { color: var(--text2); }
.mono { font: 500 10px var(--mono); color: var(--text3); letter-spacing: .03em; }

.section { margin-top: 22px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.link {
  font: 600 12.5px var(--sans);
  color: var(--copper);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--pill);
  font: 700 15px var(--display);
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Side-by-side buttons share the row. Without this the 100% width above
   becomes the flex basis and the second button is squeezed until its
   label wraps — which the pill radius then turns into a blob.
   `.btn--sm` opts out: small buttons are meant to hug their label. */
.row > .btn:not(.btn--sm) { flex: 1; width: auto; min-width: 0; }

.btn--copper {
  background: linear-gradient(160deg, #c98b4b 0%, #a9683a 55%, #95552a 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(149, 85, 42, .55);
}
.btn--ink { background: var(--ink); color: var(--onink); }
[data-theme="dark"] .btn--ink { background: var(--surface2); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn--danger { background: transparent; color: var(--err); border: 1px solid var(--line); }
.btn--dashed {
  background: transparent;
  color: var(--text2);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  font-size: 13.5px;
}
.btn--sq { border-radius: var(--r-md); }
.btn--sm { padding: 8px 15px; font-size: 11.5px; width: auto; }

.iconbtn {
  width: 38px; height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.iconbtn svg { width: 16px; height: 16px; }

.chip {
  padding: 7px 13px;
  border-radius: var(--pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text2);
  font: 700 11px var(--display);
  cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--copper); background: var(--copper); color: #fff; }

/* Selectable cards (property, service, agent, method…) */
.pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.pick[aria-pressed="true"] { border-color: var(--copper); box-shadow: 0 0 0 3px var(--coppersoft); }
.pick__t { font: 700 13.5px var(--display); }
.pick__s { font-size: 11.5px; color: var(--text2); line-height: 1.35; }
.pick--row { flex-direction: row; align-items: center; gap: 12px; }

.opts { display: flex; gap: 8px; }
.opts .pick { align-items: center; text-align: center; padding: 13px 8px; font: 700 12.5px var(--display); }

/* ============================================================
   Cards / surfaces
   ============================================================ */

.card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.card--flush { padding: 0; overflow: hidden; }
.card--ink { background: var(--ink); color: var(--onink); border-color: transparent; }
.card--ok { background: var(--oksoft); border-color: transparent; }
.card--warn { background: var(--coppersoft); border-color: transparent; }
.card--err { background: var(--errsoft); border-color: transparent; }

.stack { display: flex; flex-direction: column; gap: 9px; }
.stack--tight { gap: 7px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.grow { flex: 1; min-width: 0; }

/* key/value list */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 15px; font-size: 13px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv__k { color: var(--text2); }
.kv__v { font-weight: 600; text-align: right; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  font: 700 10.5px var(--display);
  background: var(--surface2);
  color: var(--text2);
  white-space: nowrap;
}
.tag--ok { background: var(--oksoft); color: var(--ok); }
.tag--err { background: var(--errsoft); color: var(--err); }
.tag--copper { background: var(--coppersoft); color: var(--copper); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.bar { height: 5px; border-radius: var(--pill); background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--copper); border-radius: var(--pill); transition: width .4s ease; }

.divide > * + * { border-top: 1px solid var(--line); }

/* ============================================================
   Forms
   ============================================================ */

.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  font: 600 12px var(--sans);
  color: var(--text2);
  margin-bottom: 6px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--coppersoft);
}
.textarea { min-height: 96px; resize: none; line-height: 1.55; font-size: 13.5px; }
.select { appearance: none; padding-right: 40px; background-image: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 17px; top: 21px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text2);
  border-bottom: 2px solid var(--text2);
  transform: rotate(45deg);
  pointer-events: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text3); }
.err { font-size: 11.5px; color: var(--err); margin-top: 5px; }

.search { position: relative; }
.search .input { padding-left: 38px; font-size: 13.5px; padding-top: 11px; padding-bottom: 11px; }
.search svg { position: absolute; left: 13px; top: 13px; width: 15px; height: 15px; color: var(--text3); }

.steps { display: flex; gap: 4px; }
.steps i { flex: 1; height: 4px; border-radius: var(--pill); background: var(--line); }
.steps i.on { background: var(--copper); }

/* ============================================================
   Photography / media
   ============================================================ */

.photo {
  position: relative;
  background: var(--surface2) center / cover no-repeat;
  overflow: hidden;
}
.photo--empty {
  background: repeating-linear-gradient(135deg, var(--surface2) 0 7px, transparent 7px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}
.photo--empty span { font: 500 8.5px var(--mono); color: var(--text3); line-height: 1.4; }

.tile { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); }
.tile--add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-style: dashed; cursor: pointer; color: var(--text3);
  background: transparent; font: 600 10px var(--sans);
}
.tile--add svg { width: 18px; height: 18px; }

.hero {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 4px;
  scrollbar-width: none;
}
.hero__card {
  flex: none;
  width: 334px;
  scroll-snap-align: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero__photo { height: 150px; border-bottom: 1px solid var(--line); }
.hero__body { padding: 15px 16px 16px; }

/* Badges laid over a photo. The parent must be position:relative. */
.tl, .bl, .br { position: absolute; z-index: 2; }
.tl { left: 12px; top: 12px; }
.bl { left: 12px; bottom: 12px; }
.br { right: 12px; bottom: 12px; }
/* Badges sit over photography, where the soft status tints — which are
   translucent in the dark theme — would wash out. Give them an opaque
   ground and let the dot and label carry the status colour. */
.tl > .tag, .bl > .tag, .br > .tag {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px -4px rgba(18, 17, 16, .45);
}
.tl > .tag { color: var(--text2); }

.dots { display: flex; gap: 6px; justify-content: center; padding: 14px 0 20px; }
.dots i {
  width: 6px; height: 6px;
  border-radius: var(--pill);
  background: var(--line);
  transition: width .25s ease, background .25s ease;
}
.dots i.on { width: 20px; background: var(--copper); }

.thumb {
  width: 84px; height: 84px;
  flex: none;
  border-radius: 13px;
  border: 1px solid var(--line);
}

.stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.stat__v { font: 800 21px var(--display); letter-spacing: -.02em; }
.stat__k { font-size: 11px; color: var(--text2); margin-top: 2px; }

.avatar {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 13px var(--display);
  background: var(--coppersoft);
  color: var(--copper);
}
.avatar--lg { width: 54px; height: 54px; font-size: 18px; }
.avatar--plain { background: var(--surface2); color: var(--text2); font-size: 12px; }

.walletchip {
  width: 38px; height: 26px;
  flex: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 9px var(--display);
}

.radio {
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.pick[aria-pressed="true"] .radio { border-color: var(--copper); background: var(--copper); }

.empty {
  padding: 34px 22px;
  text-align: center;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.55;
}
.empty svg { width: 34px; height: 34px; color: var(--text3); margin-bottom: 10px; }

.done {
  padding: 30px 22px;
  border-radius: 20px;
  text-align: center;
}
.done svg { width: 48px; height: 48px; margin: 0 auto 14px; display: block; }
.done__t { font: 700 18px var(--display); }
.done__s { font-size: 13px; color: var(--text2); margin-top: 8px; line-height: 1.5; }

.signpad {
  height: 130px;
  width: 100%;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line);
  background: var(--surface);
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.signpad.signed { border-style: solid; border-color: var(--ok); background: var(--oksoft); }

/* ============================================================
   Country picker
   ============================================================ */

.dd { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.dd__list { max-height: 292px; overflow-y: auto; padding: 6px; scrollbar-width: none; }
.dd__group {
  font: 600 10px var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 9px 9px 6px;
}
.dd__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.dd__item[aria-selected="true"] { background: var(--coppersoft); }
.flagchip {
  width: 32px; height: 24px;
  flex: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 9.5px var(--display);
  background: var(--surface2);
  color: var(--text2);
}
.dd__item[aria-selected="true"] .flagchip { background: var(--copper); color: #fff; }

/* ============================================================
   Toast + sheet
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: 340px;
  padding: 12px 18px;
  border-radius: var(--pill);
  background: #22201e;
  color: #fff;
  font: 600 12.5px var(--sans);
  box-shadow: 0 18px 40px -14px rgba(18, 17, 16, .7);
  animation: toastin .3s cubic-bezier(.2, .7, .3, 1);
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }

.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(18, 17, 16, .5); }
.sheet__panel {
  position: relative;
  width: min(414px, 100%);
  max-height: 78%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: var(--bg);
  color: var(--text);
  animation: sheetin .3s cubic-bezier(.2, .7, .3, 1);
}
@keyframes sheetin { from { transform: translateY(30px); opacity: .6; } }
.sheet__grab { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }
.sheet__title { font: 700 17px var(--display); margin: 0 0 14px; }

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

/* ============================================================
   Real handsets and installed PWA: drop the presentation chrome.
   Kept last so these declarations win over the desktop rules above.
   ============================================================ */

@media (max-width: 900px), (display-mode: standalone) {
  .stage { padding: 0; gap: 0; background: var(--bg); }
  .stage__aside { display: none; }
  .phone {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .phone__notch { display: none; }
  .phone__screen { border-radius: 0; }
  .statusbar { display: none; }
  .view { --view-pad-top: max(10px, env(safe-area-inset-top)); padding-top: var(--view-pad-top); }
  .nav { padding-bottom: calc(10px + env(safe-area-inset-bottom, 8px)); }
  .hero__card { width: min(334px, calc(100vw - 68px)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   Brand motifs — borrowed from the two reference flyers.

   Placed after the mobile media query on purpose: these are new
   components, not overrides of anything above, and keeping them
   together makes the brand layer easy to find.
   ============================================================ */

/* --- The sweeping curve -------------------------------------
   The interior flyer's signature move: a dark panel whose lower
   edge sweeps away in an organic curve, traced by a copper
   hairline. Used as the header on the hub screen of each role.
   ------------------------------------------------------------ */

.curve {
  position: relative;
  /* Cancels the view's own top padding so the panel reaches the very top
     of the screen and sits under the status bar, as a hero should. */
  margin: calc(-1 * var(--view-pad-top, 0px)) 0 4px;
  padding: calc(14px + var(--view-pad-top, 0px)) 20px 34px;
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--onink);
  isolation: isolate;
}
.curve::after {
  /* warm interior glow, top-right, as in the reference photograph */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 88% 6%, rgba(201, 139, 75, .30), transparent 62%);
  pointer-events: none;
}
.curve__sweep {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 46px;
  display: block;
}
.curve__sweep path.fill { fill: var(--bg); }
.curve__sweep path.line { fill: none; stroke: var(--copper-lt); stroke-width: 1.6; opacity: .85; }
.curve .h1, .curve .h2 { color: var(--onink); }
.curve .sub { color: var(--onink2); }
.curve .eyebrow { color: var(--copper-lt); }

/* On-ink controls need their own surface treatment. */
.curve .iconbtn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: var(--onink);
}

/* --- Two-weight display heading -----------------------------
   Both flyers stack a light letterspaced line over a heavy one
   ("DREAM / HOME", "DESIGNING / SPACES"). The eyebrow carries
   the context, the heavy line carries the name.
   ------------------------------------------------------------ */

.display__over {
  display: block;
  font: 500 10.5px var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-mid);
  margin-bottom: 5px;
}
.curve .display__over { color: var(--copper-lt); }
.display__main {
  display: block;
  font: 800 25px/1.08 var(--display);
  letter-spacing: -.025em;
}

/* --- Script accent ------------------------------------------
   The flyers set one line in a script/serif italic as a foil to
   all the uppercase. Reserved for taglines — never UI labels.
   ------------------------------------------------------------ */

.script {
  font: italic 600 21px/1.25 var(--script);
  letter-spacing: .005em;
  color: var(--copper-mid);
}
.curve .script { color: var(--copper-lt); }

/* --- Copper hairline ----------------------------------------
   The thin bronze rule that frames the interior flyer. Used to
   lift one card per screen above the others.
   ------------------------------------------------------------ */

.hairline { position: relative; border-color: transparent; box-shadow: 0 0 0 1px var(--copper-mid) inset; }

.rule {
  width: 46px;
  height: 2px;
  border: none;
  margin: 14px 0;
  background: var(--copper-mid);
}
.rule--center { margin-inline: auto; }

/* --- Medallions ---------------------------------------------
   The property flyer's circular photos with a thick white ring.
   Used for the visit-report photo strip and agent portraits.
   ------------------------------------------------------------ */

.medallions { display: flex; gap: 10px; justify-content: center; padding: 4px 0; }
.medallion {
  width: 78px; height: 78px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(18, 17, 16, .5);
}
.medallion--copper { box-shadow: 0 0 0 1.5px var(--copper-mid), 0 8px 18px -10px rgba(18, 17, 16, .5); }
.medallion.photo--empty { border-radius: 50%; }

/* --- Feature row --------------------------------------------
   The four icon+label columns on the interior flyer's dark bar,
   separated by hairline dividers.
   ------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--onink);
  overflow: hidden;
}
.features > div {
  padding: 15px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.features > div + div { border-left: 1px solid rgba(255, 255, 255, .14); }
.features svg { width: 20px; height: 20px; color: var(--copper-lt); }
.features span {
  font: 600 9.5px var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--onink2);
  line-height: 1.35;
}
