/* Latbase Leads website. Page layout on top of the Latbase design system (ds/, copied from the homepage repo),
   then the phone mockups, which reproduce the PWA's own stylesheet (pwa/src/styles.css, DESIGN.md §7) inside `.ph`. */

/* ---- page ------------------------------------------------------------------------------------------ */
.page { display: flex; flex-direction: column; padding-bottom: var(--space-22); }
.nav .logo img { height: 28px; }              /* the homepage's 28 px mark (its README §4) */
.nav-right .nav-text { color: var(--ink); }
.feature { padding-top: 96px; }

.head { display: flex; flex-direction: column; gap: 16px; }
.head .eyebrow { color: var(--ink); }
.hero .display { font-weight: var(--weight-medium); max-width: 900px; }
.head .h1 { max-width: 760px; }
.head .lead { max-width: 640px; }
.hero .lead { max-width: 760px; }
.head.center { align-items: center; text-align: center; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 12px; }
.actions.center { justify-content: center; }
.fine { font-size: var(--text-small); color: var(--ink-2); }

/* hero: the words only */
.hero { padding-top: 56px; }

/* the features: a two by two grid of cards, each the title and one line on top and the phone below.
   The old one-feature-per-screen layout left most of the page empty (founder, 2026-09-28). */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); padding-top: 64px; }
.fcard { display: flex; flex-direction: column; gap: 28px; padding: 40px 36px 0; border-radius: var(--radius-card); background: var(--paper-2); overflow: hidden; }
.fcard-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.fcard-head .h2 { max-width: 460px; }
.fcard-head .lead { max-width: 440px; font-size: var(--text-body); line-height: var(--lh-body); }
.fcard .stage { height: 560px; flex: none; }

/* the stage scales a fixed design canvas to its box (site.js) */
.stage { position: relative; overflow: hidden; }
.canvas { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }

/* plans */
.plans { display: flex; flex-direction: column; align-items: center; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); margin-top: 48px; width: 100%; max-width: 880px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 32px; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--paper); }
.plan-price { font-size: var(--text-h2); font-weight: var(--weight-semibold); letter-spacing: var(--ls-h2); line-height: 1.2; }
.plan-price .cur { font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--ink-2); letter-spacing: 0; vertical-align: 6px; }
/* two prices in the page, one shown: dollars unless the head script found India's time zone */
.plan-price .amount.inr { display: none; }
[data-currency="inr"] .plan-price .amount.inr { display: inline; }
[data-currency="inr"] .plan-price .amount.usd { display: none; }
.plan-price .per { font-size: var(--text-small); font-weight: var(--weight-regular); color: var(--ink-2); letter-spacing: 0; }
.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-small); color: var(--ink); flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-top: 8px; }
.plan-limits { margin: 0; padding: 0 0 20px; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-body); font-weight: var(--weight-semibold); border-bottom: 1px solid var(--line); }
.plan-limits li { display: flex; gap: 10px; align-items: flex-start; }
.plan-limits li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-top: 9px; }
.plan-foot { padding-top: 8px; }
.plan-foot .btn { width: 100%; }
.plan-note { margin-top: 28px; max-width: 880px; text-align: center; }
.plan-note .linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
.plan-note .linklike:hover { text-decoration-color: var(--ink); }

.closer .head { padding: 24px 0 0; }

@media (max-width: 1199px) {
  .fcard { padding: 32px 24px 0; }
  .fcard .stage { height: 460px; }
}
@media (max-width: 899px) {
  .features { grid-template-columns: 1fr; gap: 16px; padding-top: 48px; }
  .fcard .stage { height: 480px; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .page { padding-bottom: var(--space-22); }
  .feature { padding-top: 64px; }
  .hero { padding-top: 32px; }
  .fcard { padding: 28px 16px 0; gap: 20px; }
  .fcard .stage { height: 440px; }
  .plan { padding: 24px; }
  .closer .head { padding-top: 32px; }
}

/* ---- the phone ------------------------------------------------------------------------------------- */
.ph {
  --label: #1d1d1f; --white: #ffffff; --secondary: #6e6e73; --tertiary: #aeaeb2; --hairline: #e5e5ea;
  --surface: #f5f5f7; --surface-2: #e8e8ed; --blue: #007aff; --green: #34c759; --orange: #ff9500; --red: #ff3b30;
  --indigo: #5856d6; --teal: #30b0c7; --whatsapp: #25d366;
  --blue-tint: rgba(0, 122, 255, 0.12); --green-tint: rgba(52, 199, 89, 0.14); --orange-tint: rgba(255, 149, 0, 0.14);
  --indigo-tint: rgba(88, 86, 214, 0.12); --teal-tint: rgba(48, 176, 199, 0.14); --whatsapp-tint: rgba(37, 211, 102, 0.16);
  --radius: 12px; --radius-card: 14px; --radius-sm: 10px;
  --shadow-float: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-thumb: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  --t: 150ms ease-out;
  position: absolute; width: 360px; height: 740px; padding: 7px; border-radius: 46px; background: #111;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-family: var(--font-sans); font-size: 15px; line-height: 1.4; color: var(--label); text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ph .scr > * { zoom: 1.3; }
.ph .scr { position: relative; width: 100%; height: 100%; border-radius: 40px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.ph .sb { flex: none; height: 34px; padding: 10px 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.ph .sbr { display: inline-flex; align-items: center; gap: 5px; }
.ph .bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.ph .bars b { width: 2.5px; border-radius: 1px; background: var(--label); display: block; }
.ph .bat { width: 20px; height: 10px; border: 1.5px solid var(--label); border-radius: 3px; display: inline-block; position: relative; }
.ph .bat::after { content: ""; position: absolute; inset: 1.5px; right: 3px; background: var(--label); border-radius: 1px; }
.ph .ic { display: block; flex: none; }
.ph .wordmark { flex: none; display: flex; align-items: center; gap: 7px; padding: 22px 16px 6px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.ph .wordmark img { height: 24px; width: auto; display: block; }
.ph .row { display: flex; align-items: center; }
.ph .row.top { align-items: flex-start; }
.ph .grow { flex: 1; min-width: 0; }
.ph .spacer { flex: 1; }
.ph .w600 { font-weight: 600; }
.ph .w700 { font-weight: 700; }
.ph .gap8 { gap: 8px; }
.ph .mt8 { margin-top: 8px; }
.ph .mt12 { margin-top: 12px; }
.ph .mt16 { margin-top: 16px; }
.ph .ml6 { margin-left: 6px; }
.ph .h12 { height: 12px; }
.ph .p0 { padding: 0; }
.ph .muted13 { font-size: 13px; color: var(--secondary); }

/* app bar, tabs, body, bottom bar */
.ph .appbar { flex: none; display: grid; grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr); align-items: center; height: 56px; border-bottom: 1px solid var(--hairline); }
.ph .appbar .lead { display: flex; align-items: center; justify-self: start; padding-left: 4px; }
.ph .appbar .title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.ph .appbar .title.team { display: inline-flex; align-items: center; gap: 2px; }
.ph .appbar .acts { display: flex; align-items: center; justify-self: end; padding-right: 6px; gap: 2px; }
.ph .iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--label); }
.ph .iconbtn.red { color: var(--red); }
.ph .tabs { position: relative; display: flex; height: 36px; margin: 8px 16px; padding: 3px; background: var(--surface); border-radius: var(--radius-sm); flex: none; }
.ph .tab { flex: 1; position: relative; z-index: 1; font-size: 13px; font-weight: 600; color: var(--secondary); display: flex; align-items: center; justify-content: center; }
.ph .tab.on { color: var(--label); }
.ph .tabs .ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--white); border-radius: 8px; box-shadow: var(--shadow-thumb); }
.ph .body { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.ph .body.pad16 { padding: 16px 16px 8px; }
.ph .body.pad12 { padding: 12px 16px 8px; }
.ph .bottombar { flex: none; padding: 10px 16px 18px; display: flex; gap: 10px; background: var(--white); border-top: 1px solid var(--hairline); position: relative; z-index: 2; }

/* buttons, inputs, pills, badges */
.ph .btn { min-height: 44px; padding: 8px 20px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 20px; width: 100%; transition: background var(--t), filter var(--t); }
.ph .btn.outlined { background: var(--surface); color: var(--label); position: relative; }
.ph .btn.text { width: auto; min-width: 44px; padding: 0 12px; background: transparent; color: var(--blue); font-weight: 500; }
.ph .bottombar .btn.outlined { flex: 1; height: 52px; min-height: 52px; width: auto; padding: 0 12px; white-space: nowrap; }
.ph .holdrec .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph .holdrec { flex: 1; height: 52px; border-radius: var(--radius); background: var(--label); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; position: relative; transition: background var(--t); }
.ph .holdrec.on { background: var(--red); }
.ph .input { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid transparent; border-radius: var(--radius); background: var(--surface); font-size: 15px; line-height: 20px; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .input.ph-placeholder, .ph .input:empty::before { color: var(--tertiary); }
.ph .input:empty::before, .ph .input.j-f:not(.in)::before { content: attr(data-hint); color: var(--tertiary); }
.ph .input.j-f:not(.in) .v { position: absolute; }
.ph .input.j-f { position: relative; }
.ph .input.typing { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35); }
.ph .field { position: relative; }
.ph .field.with-btn .input { padding-right: 104px; }
.ph .field .suffix { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; transition: opacity var(--t); }
.ph .field .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--secondary); }
.ph .field.with-prefix .input { padding-left: 42px; }
.ph .fieldbtn { height: 30px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ph .fieldbtn.email, .ph .act.email { background: var(--blue-tint); color: var(--blue); }
.ph .fieldbtn.whatsapp, .ph .act.whatsapp { background: var(--whatsapp-tint); color: #1da851; }
.ph .intent-l { width: 64px; flex: none; color: var(--secondary); font-size: 13px; font-weight: 600; }
.ph .pills { display: flex; gap: 10px; }
.ph .pill { flex: 1; height: 38px; border-radius: 999px; background: var(--surface); color: var(--secondary); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; }
.ph .badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 16px; background: var(--blue-tint); color: var(--blue); white-space: nowrap; flex: none; }
.ph .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ph .badge.hot { background: var(--orange-tint); color: #c25e00; }
.ph .chip { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--secondary); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }

/* cards, tiles, list rows */
.ph .card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 16px; }
.ph .card.filled { background: var(--surface); border-color: transparent; }
.ph .divider { height: 1px; background: var(--hairline); flex: none; }
.ph .divider.i56 { margin-left: 56px; }
.ph .divider.i68 { margin-left: 68px; }
.ph .tile { display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 56px; width: 100%; }
.ph .tile .text { flex: 1; min-width: 0; }
.ph .tile .t { font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .tile .s { font-size: 13px; line-height: 18px; color: var(--secondary); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .tile .trail { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.ph .leadrow { min-height: 60px; }
.ph .leadrow .when { font-size: 12px; color: var(--secondary); }
.ph .leadrow .marks { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.ph .initials { width: 36px; height: 36px; border-radius: 50%; background: var(--indigo-tint); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.ph .initials.sm { width: 30px; height: 30px; font-size: 12px; }
.ph .leads-tools { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; flex: none; }
.ph .list { flex: 1; min-height: 0; overflow: hidden; }
.ph .fab { position: absolute; left: 50%; transform: translateX(-50%); bottom: 28px; z-index: 5; height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--label); color: var(--white); display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-float); }
.ph .fab span { padding: 0 2px; }

/* the lead view */
.ph .lead-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 30px; }
.ph .lead-sub { font-size: 15px; color: var(--secondary); margin-top: 2px; }
.ph .ico-circle { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--surface); color: var(--secondary); }
.ph .ico-circle.blue { background: var(--blue-tint); color: var(--blue); }
.ph .ico-circle.green { background: var(--green-tint); color: #248a3d; }
.ph .contactrow { display: flex; align-items: center; padding: 10px 10px 10px 12px; gap: 12px; min-height: 52px; }
.ph .contactrow .val { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .contactrow .act { height: 34px; padding: 0 12px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; position: relative; transition: filter var(--t); }
.ph .contactrow.stack { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
.ph .contactrow.stack .row { min-width: 0; }
.ph .contactrow.stack .val { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .contactrow.stack .act { width: 100%; justify-content: center; height: 40px; font-size: 14px; }
.ph .gap12 { gap: 12px; }
.ph .contactline { display: flex; align-items: center; gap: 6px; padding: 8px 4px 0; font-size: 12px; color: var(--secondary); }
.ph .strip-title { padding: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--secondary); }
.ph .strip { display: flex; gap: 10px; overflow: hidden; padding: 2px 0 4px; }
.ph .strip > * { flex: none; }
.ph .notecard { width: 80%; height: 104px; padding: 10px 12px 8px; display: flex; flex-direction: column; border-radius: var(--radius); }
.ph .notecard .txt { flex: 1; min-height: 0; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ph .notecard.auto { height: auto; min-height: 104px; }
.ph .notecard.auto .txt { display: block; -webkit-line-clamp: none; overflow: visible; min-height: 58px; padding-bottom: 8px; }
.ph .mt18 { margin-top: 18px; }
.ph .notecard .txt.status { color: var(--secondary); }
.ph .notecard .foot { display: flex; align-items: center; font-size: 12px; color: var(--secondary); }
.ph .notecard .foot .play { display: flex; color: var(--label); }
.ph .taskcard { width: 62%; height: 72px; padding: 8px 10px; display: flex; flex-direction: row; align-items: center; gap: 8px; border-radius: var(--radius); }
.ph .taskcard .title { font-size: 13px; font-weight: 500; line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ph .taskcard .due { font-size: 11px; color: var(--secondary); margin-top: 1px; }
.ph .tick { display: flex; color: var(--tertiary); }
.ph .photothumb { width: 72px; display: flex; flex-direction: column; align-items: center; }
.ph .photothumb .img { width: 72px; height: 66px; border-radius: var(--radius); overflow: hidden; background: #d9d4cc; display: flex; align-items: center; justify-content: center; }
.ph .photothumb .st { font-size: 10px; color: var(--secondary); line-height: 14px; margin-top: 3px; }
.ph .mini-card { width: 54px; height: 32px; border-radius: 3px; background: var(--white); transform: rotate(-6deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); position: relative; }
.ph .mini-card::before { content: ""; position: absolute; left: 6px; top: 7px; width: 26px; height: 3px; border-radius: 2px; background: var(--label); box-shadow: 0 6px 0 -0.5px #b8b8bd, 0 11px 0 -0.5px #b8b8bd, 0 16px 0 -0.5px #b8b8bd; }

/* the dashboard */
.ph .dash-heading { font-size: 13px; font-weight: 600; color: var(--secondary); padding: 2px 2px 10px; }
.ph .boxrow { display: flex; gap: 12px; align-items: stretch; }
.ph .boxrow > * { flex: 1; min-width: 0; }
.ph .dashbox { padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.ph .dashbox .head { display: flex; align-items: center; gap: 8px; width: 100%; flex-direction: row; }
.ph .dashbox .chev { color: var(--tertiary); }
.ph .badge-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ph .badge-ico.blue { background: var(--blue-tint); color: var(--blue); }
.ph .badge-ico.indigo { background: var(--indigo-tint); color: var(--indigo); }
.ph .badge-ico.green { background: var(--green-tint); color: #248a3d; }
.ph .badge-ico.teal { background: var(--teal-tint); color: #1b8a9c; }
.ph .dashbox .boxtitle { font-size: 13px; font-weight: 600; color: var(--secondary); margin-top: 12px; }
.ph .dashbox .big.phrase { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; padding: 4px 0 3px; }
.ph .dashbox .iconslot { height: 35px; margin-top: 2px; display: flex; align-items: center; color: var(--label); }
.ph .dashbox .detail { font-size: 13px; line-height: 17px; color: var(--secondary); margin-top: 3px; }
.ph .dashbox .foot { width: 100%; margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ph .splitbar { display: flex; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; width: 100%; gap: 2px; }
.ph .splitbar > span { height: 100%; border-radius: 2px; }
.ph .seg-orange { background: var(--orange); } .ph .seg-green { background: var(--green); }
.ph .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.ph .small { display: flex; align-items: baseline; gap: 4px; }
.ph .small .n { font-size: 15px; font-weight: 600; }
.ph .small.warn .n { color: #c25e00; }
.ph .small .l { font-size: 12px; color: var(--secondary); white-space: nowrap; }
.ph .spin { width: 22px; height: 22px; border: 2.5px solid var(--surface-2); border-top-color: var(--label); border-radius: 50%; animation: ph-spin 0.8s linear infinite; flex: none; display: none; }
@keyframes ph-spin { to { transform: rotate(360deg); } }

/* a fingertip: the tap the scene plays */
.ph .finger { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(0, 0, 0, 0.18); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.18); opacity: 0; transform: scale(0.6); pointer-events: none; z-index: 3; }
.ph .pressed { filter: brightness(0.94); }
.ph .holdrec.pressed { filter: none; }
.ph .pressed > .finger { opacity: 1; transform: scale(1); transition: opacity 120ms ease-out, transform 120ms ease-out; }

/* the device's camera app and the messaging app, over the screen */
.ph .cam, .ph .chat { position: absolute; inset: 0; z-index: 6; transform: translateY(100%); transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph .cam { background: #000; color: #fff; display: flex; flex-direction: column; }
.ph .cam-top { height: 74px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 13px; font-weight: 600; color: #f5c518; }
.ph .cam-view { flex: 1; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #4c4a45 0%, #2a2926 60%, #161513 100%); display: flex; align-items: center; justify-content: center; }
.ph .vcard { width: 214px; height: 124px; border-radius: 6px; background: #fbfaf7; color: #1d1d1f; padding: 16px 18px; transform: rotate(-4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.ph .vc-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.ph .vc-role { font-size: 10px; color: #6e6e73; margin-top: 1px; }
.ph .vc-co { font-size: 11px; font-weight: 600; margin-top: 10px; }
.ph .vc-line { font-size: 9px; color: #6e6e73; margin-top: 3px; }
.ph .focus { position: absolute; width: 236px; height: 150px; left: 50%; top: 50%; margin: -75px 0 0 -118px; transform: scale(1.18); opacity: 0; transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease; }
.ph .focus i { position: absolute; width: 22px; height: 22px; border: 2px solid #f5c518; }
.ph .focus i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.ph .focus i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.ph .focus i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.ph .focus i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.ph .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ph .cam-ctl { height: 120px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.ph .cam-thumb { width: 38px; height: 38px; border-radius: 8px; background: #2a2926; }
.ph .shutter { width: 66px; height: 66px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #000, 0 0 0 5px #fff; transition: transform 120ms ease-out; }
.ph .shutter.pressed { transform: scale(0.88); }
.ph .cam-x { font-size: 13px; color: #fff; width: 38px; text-align: right; }
.ph .chat { background: #efe9e2; display: flex; flex-direction: column; color: var(--label); }
.ph .chat-top { flex: none; height: 92px; padding: 40px 12px 0; background: #f6f6f6; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 8px; }
.ph .chat-top .ic { color: var(--blue); }
.ph .chat-av { background: var(--indigo-tint); color: var(--indigo); }
.ph .chat-who .n { font-size: 15px; font-weight: 600; line-height: 18px; }
.ph .chat-who .s { font-size: 12px; color: var(--secondary); }
.ph .chat-body { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; }
.ph .bubble { max-width: 86%; padding: 8px 10px 18px; border-radius: 12px 12px 2px 12px; background: #dcf8c6; font-size: 13.5px; line-height: 1.35; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 260ms ease-out, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph .bubble .ticks { position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: #6e6e73; }
.ph .chat-input { flex: none; padding: 8px 12px 26px; display: flex; align-items: center; gap: 8px; background: #f6f6f6; }
.ph .chat-field { flex: 1; height: 36px; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); padding: 0 14px; display: flex; align-items: center; font-size: 14px; color: var(--tertiary); }
.ph .chat-send { width: 36px; height: 36px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---- focused mockups: the phone with only the elements of the feature the section is about ------------- */
.ph .fx-body { display: flex; flex-direction: column; justify-content: center; padding-bottom: 12px; }
.ph .fx-body .strip-title { padding-top: 0; }
.ph .fx-body .j-notes + .strip-title, .ph .fx-body .muted13 + .strip-title { padding-top: 22px; }
.ph .w100 { width: 100%; }
.ph .bottombar { padding-bottom: 16px; }
.ph .holdrec.big, .ph .btn.outlined.big { height: 64px; min-height: 64px; font-size: 17px; border-radius: 16px; width: 100%; position: relative; }
.ph .bottombar .btn.outlined.big { flex: 1; height: 64px; min-height: 64px; }
.ph .holdrec .wave { display: none; align-items: center; gap: 3px; height: 18px; margin-left: 4px; }
.ph .holdrec.on .wave { display: inline-flex; }
.ph .holdrec .wave b { width: 3px; height: 6px; border-radius: 2px; background: #fff; animation: ph-wave 700ms ease-in-out infinite; }
.ph .holdrec .wave b:nth-child(2) { animation-delay: 120ms; } .ph .holdrec .wave b:nth-child(3) { animation-delay: 240ms; } .ph .holdrec .wave b:nth-child(4) { animation-delay: 360ms; } .ph .holdrec .wave b:nth-child(5) { animation-delay: 480ms; }
@keyframes ph-wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.ph .shot { position: relative; height: 150px; border-radius: 14px; background: radial-gradient(120% 100% at 50% 40%, #4c4a45 0%, #2a2926 60%, #161513 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ph .shot .vcard { transform: rotate(-4deg) scale(0.92); flex: none; }
.ph .shot-st { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.45); padding: 3px 8px; border-radius: 999px; }
/* the reading pass: a light sweeps down the photo */
.ph .scan { position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: rgba(0, 122, 255, 0.85); box-shadow: 0 0 18px 6px rgba(0, 122, 255, 0.45); opacity: 0; }
.ph .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 8; }
/* the values arrive from the photo: each one drops into its field */
.ph .input .v { display: inline-block; opacity: 0; transform: translateY(-26px); }
.ph .input.in .v { opacity: 1; transform: none; transition: opacity 220ms ease-out, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ph .input.in { background: var(--blue-tint); transition: background 400ms ease-out 300ms; }
.ph .input.in.settled { background: var(--surface); }
.ph .dashbox.big { width: 100%; padding: 22px 22px 20px; border-radius: 20px; }
.ph .dashbox.big .boxtitle { font-size: 17px; margin-top: 18px; }
.ph .dashbox.big .iconslot { height: 46px; }
.ph .dashbox.big .detail { font-size: 15px; line-height: 20px; }

/* ---- the workbook beside the phone (export) ---------------------------------------------------------- */
.xl { position: absolute; left: 330px; top: 170px; width: 500px; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); font-family: var(--font-sans); overflow: hidden; opacity: 0; transform: translateX(40px) scale(0.97); transition: opacity 260ms ease-out, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.xl-top { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f5f5f7; border-bottom: 1px solid #e5e5ea; }
.xl-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9d9de; }
.xl-name { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: #6e6e73; }
.xl-grid { display: flex; flex-direction: column; }
.xl-r { display: grid; grid-template-columns: 96px 108px 46px 100px 1fr; gap: 0; font-size: 12px; line-height: 1.3; border-bottom: 1px solid #ececf0; opacity: 0; transform: translateY(6px); transition: opacity 220ms ease-out, transform 220ms ease-out; }
.xl-r > span { padding: 8px 9px; border-right: 1px solid #ececf0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1d1d1f; }
.xl-r > span:last-child { border-right: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xl-r > span.hot { color: #c25e00; font-weight: 600; }
.xl-h { background: #f5f5f7; opacity: 1; transform: none; }
.xl-h > span { font-weight: 600; color: #6e6e73; }
.xl-tabs { display: flex; gap: 2px; padding: 6px 8px; background: #f5f5f7; border-top: 1px solid #e5e5ea; }
.xl-tabs span { font-size: 12px; padding: 3px 10px; border-radius: 4px; color: #6e6e73; }
.xl-tabs span.on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* ---- what each phase of each scene shows (site.js sets data-phase on the stage) --------------------- */
/* record: press, the note appears, then the task */
[data-scene="record"] .j-notes, [data-scene="record"] .j-tasks { display: none; }
[data-scene="record"]:not([data-phase="idle"]) .j-notes, [data-scene="record"][data-phase="task"] .j-tasks, [data-scene="record"][data-phase="done"] .j-tasks { display: block; }
[data-scene="record"]:not([data-phase="idle"]) .j-empty-notes { display: none; }
[data-scene="record"] .j-notes .txt .cur { display: inline-block; width: 2px; height: 14px; background: var(--red); vertical-align: -2px; margin-left: 2px; animation: ph-blink 800ms steps(1) infinite; }
@keyframes ph-blink { 50% { opacity: 0; } }
[data-scene="record"] .notecard, [data-scene="record"] .taskcard { animation: ph-pop 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ph-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* picture: the camera slides up, the shutter fires, the fields fill in */
[data-scene="picture"] .j-fields { display: none; }
[data-scene="picture"][data-phase="idle"] .j-shot, [data-scene="picture"][data-phase="press"] .j-shot, [data-scene="picture"][data-phase="shutter"] .j-shot { height: 230px; }
[data-scene="picture"][data-phase="idle"] .shot-st, [data-scene="picture"][data-phase="press"] .shot-st, [data-scene="picture"][data-phase="shutter"] .shot-st, [data-scene="picture"][data-phase="idle"] .scan { display: none; }
[data-scene="picture"][data-phase="fields"] .j-fields, [data-scene="picture"][data-phase="reading"] .j-fields, [data-scene="picture"][data-phase="fill"] .j-fields, [data-scene="picture"][data-phase="done"] .j-fields { display: block; animation: ph-pop 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
[data-scene="picture"] .j-shot { transition: height 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-scene="picture"][data-phase="reading"] .scan { animation: ph-scan 800ms ease-in-out both; }
@keyframes ph-scan { 0% { top: -6px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
[data-scene="picture"][data-phase="shutter"] .flash { animation: ph-flash 360ms ease-out both; }
@keyframes ph-flash { 0% { opacity: 0; } 20% { opacity: 0.95; } 100% { opacity: 0; } }

/* follow-up: the tap, the message, the line that says it was sent */
[data-scene="followup"][data-phase="chat"] .chat, [data-scene="followup"][data-phase="sent"] .chat { transform: none; }
[data-scene="followup"][data-phase="sent"] .bubble { opacity: 1; transform: none; }
[data-scene="followup"][data-phase="back"] .j-contactline, [data-scene="followup"][data-phase="hold"] .j-contactline { color: #248a3d; }

/* export: the tap, the workbook builds, the sheet opens beside the phone */
[data-scene="export"][data-phase="building"] .j-share { display: none; }
[data-scene="export"][data-phase="building"] .j-spin { display: block; }
[data-scene="export"][data-phase="sheet"] .xl, [data-scene="export"][data-phase="rows"] .xl, [data-scene="export"][data-phase="hold"] .xl { opacity: 1; transform: none; }
[data-scene="export"][data-phase="rows"] .xl-r, [data-scene="export"][data-phase="hold"] .xl-r { opacity: 1; transform: none; }
[data-scene="export"][data-phase="rows"] .xl-r:nth-child(2), [data-scene="export"][data-phase="hold"] .xl-r:nth-child(2) { transition-delay: 0ms; }
[data-scene="export"][data-phase="rows"] .xl-r:nth-child(3), [data-scene="export"][data-phase="hold"] .xl-r:nth-child(3) { transition-delay: 90ms; }
[data-scene="export"][data-phase="rows"] .xl-r:nth-child(4), [data-scene="export"][data-phase="hold"] .xl-r:nth-child(4) { transition-delay: 180ms; }
[data-scene="export"][data-phase="rows"] .xl-r:nth-child(5), [data-scene="export"][data-phase="hold"] .xl-r:nth-child(5) { transition-delay: 270ms; }
[data-scene="export"][data-phase="rows"] .xl-r:nth-child(6), [data-scene="export"][data-phase="hold"] .xl-r:nth-child(6) { transition-delay: 360ms; }
[data-scene="export"][data-phase="rows"] .xl-r:nth-child(7), [data-scene="export"][data-phase="hold"] .xl-r:nth-child(7) { transition-delay: 450ms; }

/* under reduced motion every scene sits still on its last frame (site.js sets the rest phase and skips the loop) */
@media (prefers-reduced-motion: reduce) {
  .ph *, .xl, .xl-r { transition: none !important; animation: none !important; }
}

/* the menu button shows a hamburger, or a cross while the menu is open */
.nav-menu-btn .i-close { display: none; }
.nav-menu-btn[aria-expanded="true"] .i-menu { display: none; }
.nav-menu-btn[aria-expanded="true"] .i-close { display: block; }

/* `hidden` wins over the design system's display rules (the dialog backdrop is display: flex) */
[hidden] { display: none !important; }
