/*
  PocketFirm landing page. A standalone page, so it restates the firmary.app tokens it uses
  instead of importing them: colors and motion from app/globals.css and app/marketing.css,
  type from fonts/. Change a value there, change it here.
*/

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Latin-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora-Latin-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora-Latin-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* The product's display serif, used only inside the depicted app. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Latin-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand palette (app/globals.css) */
  --void: #faf8f3;
  --surface: #f3efe7;
  --surface-2: #e6e0d6;
  --stone-light: #eee9e1;
  --border-shadow: #d8d2c8;
  --text: #171715;
  --dim: #5f5a52;
  --faint: #6f695e;
  --signal: #9a603a;
  --signal-deep: #754328;
  --lite: #ffffff;

  /* Marketing field (app/marketing.css): light and dark bands */
  --ink-heading: #23251e;
  --ink-em: #50331f;
  --ink-body: #282b22;
  --paper-dark: #191a17;
  --paper-dark-2: #22231f;
  --on-dark: #f4eee3;
  --on-dark-muted: #bbb5a7;
  --on-dark-line: #3e3e36;
  --bronze-light: #dfb68f;

  --hairline: color-mix(in oklab, var(--text) 12%, transparent);
  --hairline-strong: color-mix(in oklab, var(--text) 20%, transparent);
  --panel-shadow: 0 14px 34px -24px rgb(91 73 55 / 0.32);
  /* The one light band below the hero (Keeping it safe). Everything else sits on --void. */
  --band: #efeae0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --font-app-serif: "Source Serif 4", Georgia, serif;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;

  --radius-node: 4px;
  --radius-control: 6px;
  --radius-panel: 8px;

  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-carry: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 600ms;
  --dur-4: 1200ms;

  --gutter: clamp(1rem, 4vw, 5rem);
  --header-height: 4.5rem;
}

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

html {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--signal);
  color: var(--void);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), 1280px);
  margin-inline: auto;
}

/* ── Wordmark ─────────────────────────────────────────────── */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4375rem;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text);
}
.wordmark-by {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: var(--faint);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  animation: fade var(--dur-3) var(--ease-settle) both;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.site-header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.link-quiet {
  font-size: 0.8125rem;
  color: var(--dim);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-settle);
}
.link-quiet:hover {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--paper-dark);
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color var(--dur-1) var(--ease-settle),
    transform var(--dur-1) var(--ease-settle);
}
.pill:hover {
  background: #3a3c32;
}
.pill:active {
  transform: scale(0.97);
}

/* ── Buttons ──────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease-settle),
    box-shadow var(--dur-1) var(--ease-settle),
    color var(--dur-1) var(--ease-settle),
    transform var(--dur-1) var(--ease-settle);
}
.button:active {
  transform: scale(0.97);
}
.button-primary {
  background: var(--paper-dark);
  color: var(--on-dark);
}
.button-primary:hover {
  background: #3a3c32;
}
.button-secondary {
  background: color-mix(in oklab, var(--void) 70%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.button-secondary:hover {
  background: var(--void);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 34%, transparent);
}
.button-light {
  background: var(--on-dark);
  color: var(--paper-dark);
}
.button-light:hover {
  background: #fffaf1;
}
.button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

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

.hero {
  position: relative;
  padding: calc(var(--header-height) + clamp(1.5rem, 4vh, 3.5rem)) 0 clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(70% 60% at 82% 38%, rgb(255 252 245 / 0.75), transparent 70%),
    linear-gradient(180deg, #efe9de 0%, #f5f1e9 52%, var(--void) 100%);
  overflow: clip;
}
/* Paper grain, at a whisper. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .29 0 0 0 0 .21 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  color: var(--ink-body);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #714925;
}

.hero h1 {
  font: 400 clamp(3.25rem, 1.4rem + 4.6vw, 6.25rem) / 1.01 var(--font-serif);
  letter-spacing: -0.055em;
  color: var(--ink-heading);
}
.hero h1 > span,
.hero h1 > em {
  display: block;
  white-space: nowrap;
}
.hero h1 em {
  color: var(--ink-em);
  padding-right: 0.06em;
}

/* Wider than its column (the line runs into the gutter) so "asks for what it needs" stays whole. */
.hero-lede {
  width: 33rem;
  max-width: calc(100vw - 2 * var(--gutter));
  margin-top: 2.5rem;
  color: var(--ink-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-note {
  max-width: 44ch;
  margin-top: 1.125rem;
  color: var(--faint);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/*
  The scene: an arched opening onto the hills of firmary.app's atelier (images/niche-view.webp,
  cut from public/images/atelier-poster-wide.webp), with the phone standing on a shelf of the
  atelier counter's limestone (images/limestone.webp). Light comes from the upper left.
*/
.hero-scene {
  --shelf: 2.25rem;
  --shelf-lip: 0.5rem;
  --caption: 2.25rem;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  min-height: 46rem;
  padding-bottom: calc(var(--shelf) + var(--caption));
}
.niche {
  position: absolute;
  bottom: calc(var(--shelf) + var(--caption));
  left: 50%;
  width: min(30rem, 100%);
  height: 42rem;
  translate: -50% 0;
  border-radius: 15rem 15rem 0 0;
  /* Lowered so only sky and hills stand behind the phone; the sky's own colour fills the crown. */
  --view-drop: 11rem;
  background: #c9d4d9 url("/images/niche-view.webp") center bottom calc(-1 * var(--view-drop)) / auto 100% no-repeat;
  box-shadow:
    /* the reveals: the left one in shade, the right one catching the light */
    inset 10px 0 0 0 #cbc1ae,
    inset 11px 0 0 0 rgb(60 44 30 / 0.22),
    inset 24px 0 18px -14px rgb(60 44 30 / 0.28),
    inset -14px 0 0 0 #e6dfd2,
    inset -15px 0 0 0 rgb(70 52 36 / 0.16),
    inset -28px 0 20px -16px rgb(70 52 36 / 0.18),
    /* the arch's shadow on the view, and a hairline where it meets the wall */
    inset 0 46px 50px -40px rgb(60 44 30 / 0.3),
    0 0 0 1px rgb(255 252 245 / 0.55);
  animation: fade var(--dur-4) var(--ease-settle) both;
}
/* The sill: a front-facing slab of the atelier's limestone, a hand's width wider than the arch,
   with light along its top edge. */
.niche::after {
  content: "";
  position: absolute;
  left: -0.875rem;
  right: -0.875rem;
  top: 100%;
  height: var(--shelf);
  background:
    linear-gradient(180deg, rgb(255 252 244 / 0.85) 0, rgb(255 252 244 / 0.85) 3px, rgb(60 44 30 / 0.16) 3px, transparent 12px),
    linear-gradient(90deg, rgb(255 251 243 / 0.2), transparent 45%, rgb(70 52 36 / 0.12)),
    #cdc1a8 url("/images/limestone.webp") center top / 190% auto;
  box-shadow: 0 18px 26px -18px rgb(60 44 30 / 0.45);
}

.phone {
  --phone-w: 17.25rem;
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  height: calc(var(--phone-w) * 2.06);
  margin-bottom: -1px;
  padding: 9px;
  border-radius: 46px;
  background: #1c1c1a;
  box-shadow:
    inset 0 0 0 1px #3a3833,
    /* light from the upper left: the shadow falls to the right */
    12px 6px 24px -2px rgb(52 38 24 / 0.18),
    26px 18px 44px -14px rgb(52 38 24 / 0.2);
  animation: phone-in var(--dur-4) var(--ease-settle) 250ms both;
}
/* Contact shadow on the sill, running off to the right. */
.phone::after {
  content: "";
  position: absolute;
  left: 10%;
  right: -16%;
  bottom: -3px;
  z-index: -1;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(40 28 16 / 0.45), transparent);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--void);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  user-select: none;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  flex: none;
  padding: 0 22px 0 26px;
  font-size: 11.5px;
  font-weight: 600;
}
.phone-island {
  width: 78px;
  height: 22px;
  border-radius: 20px;
  background: #0d0d0c;
}
.phone-battery {
  width: 22px;
  height: 10px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px currentColor;
  background: linear-gradient(90deg, currentColor 0 70%, transparent 70%) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  flex: none;
  padding: 0 14px;
  border-bottom: 1px solid var(--surface-2);
}
.app-firm-tile {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-control);
  background: #2c3a33;
  color: #f1ece2;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-firm-name {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.app-top .icon-search {
  margin-left: auto;
}
.app-top .icon {
  width: 16px;
  height: 16px;
  color: var(--dim);
}

.app-main {
  flex: 1;
  padding: 16px 14px 0;
  overflow: hidden;
}
.app-greeting {
  font: 400 21px/1.15 var(--font-app-serif);
  letter-spacing: -0.015em;
}
.app-count {
  display: grid;
  margin: 4px 0 14px;
  color: var(--dim);
}

.app-card {
  margin-bottom: 9px;
  padding: 11px 12px;
  border-radius: var(--radius-panel);
  background: var(--lite);
  box-shadow:
    inset 0 0 0 1px var(--surface-2),
    0 6px 14px -12px rgb(91 73 55 / 0.4);
}
.card-w2 {
  animation: card-glow 1400ms var(--ease-carry) 2700ms both;
}
.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-card-head strong {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.app-card-meta {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}
.app-chip-slot {
  display: grid;
  justify-items: end;
}
.app-chip {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.chip-needs {
  background: #f6ebe1;
  color: var(--signal-deep);
}
.chip-done {
  background: #e7efe7;
  color: #2f5a3c;
}
.chip-open {
  background: var(--surface);
  color: var(--dim);
}

.app-card-action {
  display: grid;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--surface);
  font-size: 11.5px;
  font-weight: 500;
}
.app-card-action > *,
.app-count > *,
.app-chip-slot > * {
  grid-area: 1 / 1;
}
.action-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--signal);
}
.chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  rotate: 45deg;
}
.action-progress {
  display: grid;
  gap: 6px;
  align-content: center;
  color: var(--dim);
  font-weight: 400;
}
.progress-track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
  transform-origin: left;
}
.progress-static {
  margin-top: 10px;
}
/* The upload: a file chip with its own thin rust bar, unlike the organizer's progress. */
.progress-file {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
}
.file-icon {
  width: 10px;
  height: 12px;
  border-radius: 1.5px;
  box-shadow: inset 0 0 0 1.25px var(--signal);
}
.progress-state {
  margin-left: auto;
  color: var(--signal-deep);
  font-weight: 500;
}
.progress-upload {
  height: 2px;
  background: color-mix(in oklab, var(--signal) 16%, var(--surface));
}
.progress-upload .progress-fill {
  background: var(--signal-deep);
}
.progress-static .progress-fill {
  transform: scaleX(0.6);
  background: color-mix(in oklab, var(--signal) 70%, var(--surface));
}
.action-done {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2f5a3c;
}
.check {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
}

.app-message {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: #ece6db;
  animation: message-in var(--dur-3) var(--ease-settle) 3300ms both;
}
.app-message-from {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
}
.app-message-from span {
  font-weight: 400;
}
.app-message-body {
  margin-top: 2px;
  font-size: 11.5px;
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  flex: none;
  height: 58px;
  padding: 8px 2px 12px;
  border-top: 1px solid var(--surface-2);
  background: var(--void);
  color: var(--faint);
  font-size: 8.5px;
}
.app-nav > span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
}
.app-nav .is-active {
  color: var(--text);
  font-weight: 600;
}
.app-nav .is-active::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--signal);
}
.icon {
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-home {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20h-5.5v-5.5h-5V20H4z'/%3E%3C/svg%3E");
}
.icon-requests {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4 13l2.5-7h11L20 13v6H4z'/%3E%3Cpath d='M4 13h4.5l1 2h5l1-2H20'/%3E%3C/svg%3E");
}
.icon-docs {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.5h6l2 2h9v10.5h-17z'/%3E%3C/svg%3E");
}
.icon-search {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
}
.icon-bell {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5h4'/%3E%3C/svg%3E");
}
.icon-invoices {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='3.5' y='6' width='17' height='12' rx='1.5'/%3E%3Cpath d='M3.5 10h17'/%3E%3C/svg%3E");
}
.icon-messages {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4.5 5h15v10.5H10L6 19v-3.5H4.5z'/%3E%3C/svg%3E");
}
.nav-badge {
  position: absolute;
  top: -1px;
  left: calc(50% + 6px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px var(--void);
  animation: badge-in var(--dur-2) var(--ease-settle) 3400ms both;
}

/*
  The one scripted moment: the home screen is there from the first frame; a tap lands on the W-2
  request's "Upload", the file uploads, the request turns "Received", the count drops, and the
  firm writes back. The resting state of every element is the final frame, so reduced motion
  shows a finished story; a paused, off-screen phone waits on the first frame.
*/
.action-upload {
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: var(--radius-node);
  opacity: 0;
  animation:
    hold-out 1400ms linear both,
    press 260ms var(--ease-carry) 1150ms both;
}
.tap {
  justify-self: start;
  align-self: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgb(154 96 58 / 0.24);
  opacity: 0;
  pointer-events: none;
  animation: tap 560ms var(--ease-settle) 1080ms both;
}
.action-progress {
  opacity: 0;
  animation: window 1450ms linear 1350ms both;
}
.action-progress .progress-fill {
  animation: fill 1100ms var(--ease-carry) 1450ms both;
}
.action-done {
  animation: rise-in var(--dur-2) var(--ease-settle) 2700ms both;
}
.action-done .check path {
  animation: draw 450ms var(--ease-carry) 2750ms both;
}
.swap-before {
  opacity: 0;
  animation: hold-out 2750ms linear both;
}
.swap-after {
  animation: fade var(--dur-2) var(--ease-settle) 2730ms both;
}

.scene-note {
  position: absolute;
  top: 72px;
  right: calc(100% - 23px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  translate: 0 -50%;
  color: var(--dim);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: right;
  animation: fade var(--dur-3) var(--ease-settle) 1500ms both;
}
.scene-note > span:first-child {
  max-width: 10.5rem;
}
.scene-note-rule {
  position: relative;
  flex: none;
  width: calc(6.75rem + 23px);
  height: 1px;
  background: var(--signal-deep);
}
.scene-note-rule i {
  position: absolute;
  top: -2px;
  right: -2.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1.5px var(--void);
}
.scene-caption {
  position: absolute;
  bottom: 0;
  color: var(--faint);
  font-size: var(--text-xs);
  text-align: center;
}

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

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.section h2 {
  font: 400 clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem) / 1.06 var(--font-serif);
  letter-spacing: -0.045em;
  color: var(--ink-heading);
  text-wrap: balance;
}
.section h2 em {
  color: var(--ink-em);
}
.h2-line {
  display: block;
}
/* The page's two-column grid: every right-hand column starts on the same line. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(2.5rem, 7vw, 7rem);
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--signal-deep);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

/* How it works: PocketFirm on a computer, next to the phone in the hero. */
.how-head {
  align-self: start;
}
/* Three steps, numbered to match the marks on the browser view. */
.how-steps {
  display: grid;
  gap: 1.625rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.how-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 0.875rem;
}
.how-steps .step-mark {
  grid-row: 1 / 3;
  margin-top: 0.375rem;
}
.how-steps p {
  max-width: 34ch;
  margin-top: 0.375rem;
  color: var(--dim);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}
/* Outlined, so a mark never reads as the product's own filled unread dot. */
.step-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--void);
  box-shadow: inset 0 0 0 1px var(--signal);
  color: var(--signal-deep);
  font: 600 10px/1 var(--font-sans);
}
/* On the browser view each mark sits in clear space beside what it points at, never on its edge. */
.has-mark {
  position: relative;
}
.has-mark > .step-mark {
  position: absolute;
}
.desk-tabs .step-mark {
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
}
.desk-action.has-mark > .step-mark,
.desk-status.has-mark > .step-mark {
  top: 50%;
  left: -26px;
  translate: 0 -50%;
}
.desk-status.has-mark {
  margin-left: 26px;
}
.how-aside {
  max-width: 40ch;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.6;
}
.how-aside strong {
  color: var(--text);
  font-weight: 600;
}

.desk {
  position: relative;
  display: grid;
  align-self: start;
  gap: 1rem;
  justify-items: center;
}
.desk .scene-caption {
  position: static;
}
.desk-window {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--void);
  box-shadow:
    0 0 0 1px rgb(23 23 21 / 0.08),
    0 34px 60px -38px rgb(60 44 30 / 0.5),
    0 12px 24px -18px rgb(60 44 30 / 0.22);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  user-select: none;
}
.desk-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--surface-2);
  background: #ece6db;
}
.desk-dots {
  display: flex;
  gap: 6px;
}
.desk-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5ccbd;
}
.desk-url {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px 4px 12px;
  border-radius: var(--radius-control);
  background: rgb(255 253 249 / 0.7);
  color: var(--dim);
  font-size: 11px;
}
.desk-url .icon {
  width: 11px;
  height: 11px;
}
.desk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--surface-2);
}
.desk-places {
  display: flex;
  gap: 20px;
  height: 100%;
  margin-left: 24px;
  color: var(--dim);
}
.desk-places > span {
  display: grid;
  align-items: center;
}
.desk-places .is-active {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--signal);
}
.desk-bar .icon-search {
  margin-left: auto;
}
.desk-bar .icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: var(--dim);
}
.desk-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-body);
  font-size: 9.5px;
  font-weight: 600;
}
.desk-page {
  padding: 24px 24px 18px;
}
.desk-title {
  font: 400 26px/1.15 var(--font-app-serif);
  letter-spacing: -0.015em;
}
/* Top padding leaves room for the step mark above a tab. */
.desk-tabs {
  display: flex;
  gap: 6px;
  margin: 6px 0 12px;
  padding: 28px 12px 0 0;
  overflow: hidden;
  white-space: nowrap;
}
.desk-tabs > span {
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--surface-2);
  color: var(--dim);
  font-size: 11px;
}
.desk-tabs b {
  margin-left: 2px;
  color: var(--faint);
  font-weight: 500;
}
.desk-tabs > .is-on {
  background: var(--paper-dark);
  box-shadow: none;
  color: var(--on-dark);
}
.desk-tabs .is-on b {
  color: var(--on-dark-muted);
}
.desk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4.5rem;
  align-items: center;
  gap: 16px;
  padding: 13px 2px;
  border-top: 1px solid var(--surface-2);
}
.desk-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.desk-row-main strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.desk-row-main small {
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}
.desk-status.is-you {
  background: #f6ebe1;
  color: var(--signal-deep);
}
.desk-status.is-done {
  background: #e7efe7;
  color: #2f5a3c;
}
.desk-action {
  justify-self: end;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 500;
}
.desk-action.is-go {
  color: var(--signal);
}
.icon-lock {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='1.5'/%3E%3Cpath d='M8.5 11V8a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E");
}

/* The URL moves into the caption when the window chrome goes (phones). */
.desk-caption-url {
  display: none;
}

/* The same title style for every short item on the page. */
.how-steps h3,
.trust-list h3 {
  font: 400 1.375rem/1.25 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--ink-heading);
}
/* Keeping it safe: the page's one light band. Claims match firmary.app/privacy. */
.trust {
  background: var(--band);
}
.trust-head {
  max-width: 44rem;
}
.trust-head > p:last-child {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--dim);
  font-size: 1rem;
  text-wrap: pretty;
}
.trust-list {
  margin: clamp(2.75rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--hairline);
}
.trust-list li {
  align-items: baseline;
  row-gap: 0.5rem;
  padding-block: 1.625rem;
  border-top: 1px solid var(--hairline);
}
.trust-list p {
  max-width: 56ch;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* The accountant-seeker band: the site's dark field. */
.seek {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(70% 80% at 80% 40%, #2a2620 0%, transparent 70%),
    var(--paper-dark);
  color: var(--on-dark);
}
.seek .section-eyebrow {
  color: var(--bronze-light);
}
.seek h2 {
  color: var(--on-dark);
}
.seek h2 em {
  color: var(--bronze-light);
}
.seek-grid {
  row-gap: 2.5rem;
  align-items: start;
}
.seek-copy > p:not(.section-eyebrow) {
  max-width: 42ch;
  margin-top: 1.75rem;
  color: var(--on-dark-muted);
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.seek-copy > .seek-candid {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--on-dark-muted) 85%, var(--paper-dark));
}

.seek-panel {
  padding-top: 0.5rem;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}
.seek-form {
  display: grid;
  gap: 1.125rem;
}
.field {
  display: grid;
  gap: 0.4375rem;
}
.field label {
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.6875rem 0.875rem;
  border: 0;
  border-radius: var(--radius-control);
  background: rgb(244 238 227 / 0.05);
  box-shadow: inset 0 0 0 1px #847e74;
  color: var(--on-dark);
  font: 400 1rem/1.45 var(--font-sans);
  transition:
    box-shadow var(--dur-1) var(--ease-settle),
    background-color var(--dur-1) var(--ease-settle);
}
.field textarea {
  min-height: 7rem;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a19b8e;
}
.field input:hover,
.field textarea:hover {
  box-shadow: inset 0 0 0 1px #a19b8e;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgb(244 238 227 / 0.08);
  box-shadow:
    inset 0 0 0 1px var(--bronze-light),
    0 0 0 3px rgb(223 182 143 / 0.18);
}
.field [aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px #e59a84;
}
.field-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.seek-consent {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.seek-consent a {
  color: var(--on-dark);
  text-decoration-color: rgb(244 238 227 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-1) var(--ease-settle);
}
.seek-consent a:hover {
  text-decoration-color: currentColor;
}
.seek-error {
  color: #f0b5a3;
  font-size: 0.875rem;
}
.seek-error:empty {
  display: none;
}
.seek-form .button {
  justify-self: start;
  margin-top: 0.25rem;
}
.seek-form .button:focus-visible,
.seek-sent :focus-visible {
  outline-color: var(--bronze-light);
}

.seek-sent {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  min-height: 20rem;
  align-content: center;
}
.seek-sent h3 {
  margin-top: 1rem;
  font: 400 1.75rem/1.15 var(--font-serif);
  letter-spacing: -0.03em;
}
.seek-sent h3:focus {
  outline: none;
}
.seek-sent p {
  color: var(--on-dark-muted);
}
.sent-mark {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--bronze-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sent-mark circle {
  stroke-dasharray: 140;
  animation: draw-ring 700ms var(--ease-carry) both;
}
.sent-mark path {
  stroke-dasharray: 32;
  animation: draw 450ms var(--ease-carry) 450ms both;
}
.seek-sent h3,
.seek-sent p {
  animation: rise-in var(--dur-3) var(--ease-settle) 300ms both;
}

/* ── Firm band and footer ─────────────────────────────────── */

.firm-band {
  padding-block: clamp(2.75rem, 5vw, 3.75rem);
  background: var(--void);
}
.firm-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}
.firm-band h2 {
  font: 400 1.5rem/1.2 var(--font-serif);
  letter-spacing: -0.025em;
  color: var(--ink-heading);
}
.firm-band p {
  flex: 1 1 26rem;
  color: var(--dim);
  font-size: 0.9375rem;
}
.link-arrow {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 4px;
  transition: color var(--dur-1) var(--ease-settle);
}
.link-arrow span {
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-settle);
}
.link-arrow:hover {
  color: var(--signal-deep);
}
.link-arrow:hover span {
  transform: translateX(3px);
}

.site-footer {
  background: var(--void);
}
.site-footer-inner {
  border-top: 1px solid var(--hairline);
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  color: var(--faint);
  font-size: var(--text-sm);
}
.wordmark-small .wordmark-name {
  font-size: 0.9375rem;
}
.wordmark-small .wordmark-by {
  font-size: 0.75rem;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.site-footer-legal nav {
  display: flex;
  gap: 1rem;
}
.site-footer-legal a {
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 4px;
  transition: color var(--dur-1) var(--ease-settle);
}
.site-footer-legal a:hover {
  color: var(--dim);
}

/* ── Load choreography ────────────────────────────────────── */

.rise {
  animation: rise-in var(--dur-3) var(--ease-settle) both;
}
.r1 { animation-delay: 60ms; }
.r2 { animation-delay: 120ms; }
.r3 { animation-delay: 200ms; }
.r4 { animation-delay: 300ms; }
.r5 { animation-delay: 380ms; }
.r6 { animation-delay: 440ms; }

@keyframes fade {
  from { opacity: 0; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(28px); }
}
@keyframes message-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}
@keyframes press {
  50% { background: rgb(154 96 58 / 0.12); }
}
@keyframes tap {
  0% { opacity: 0; transform: scale(0.45); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes badge-in {
  from { transform: scale(0); }
}
@keyframes fill {
  from { transform: scaleX(0); }
}
@keyframes draw {
  from { stroke-dashoffset: 16; }
  to { stroke-dashoffset: 0; }
}
@keyframes draw-ring {
  from { stroke-dashoffset: 140; }
  to { stroke-dashoffset: 0; }
}
/* Visible, then gone: for the frames that come before the final one. */
@keyframes hold-out {
  0%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes window {
  0% { opacity: 0; }
  12%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes card-glow {
  0% { box-shadow: inset 0 0 0 1px var(--surface-2), 0 6px 14px -12px rgb(91 73 55 / 0.4); }
  25% { box-shadow: inset 0 0 0 1px color-mix(in oklab, #2f5a3c 40%, transparent), 0 0 0 4px rgb(47 90 60 / 0.08); }
  100% { box-shadow: inset 0 0 0 1px var(--surface-2), 0 6px 14px -12px rgb(91 73 55 / 0.4); }
}

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

/* ── Smaller screens ──────────────────────────────────────── */

/* The browser view narrows: two places and search go, so its bar stays on one line. */
@media (max-width: 1240px) {
  .desk-places > span:nth-child(3),
  .desk-places > span:nth-child(5),
  .desk-bar .icon-search {
    display: none;
  }
  .desk-bar .icon-bell {
    margin-left: auto;
  }
}

@media (max-width: 1100px) {
  /* No room beside the phone: the note sits above it, its rule dropping onto the firm's tile. */
  .scene-note {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 29px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    translate: none;
    color: var(--ink-body);
    text-align: left;
  }
  .scene-note > span:first-child {
    max-width: none;
    white-space: nowrap;
    translate: -0.75rem 0;
  }
  /* Down through the frame, left of the clock, to the top edge of the firm's tile. */
  .scene-note-rule {
    width: 1px;
    height: calc(0.875rem + 59.5px);
    margin-bottom: -59.5px;
  }
  .scene-note-rule i {
    top: auto;
    right: -2px;
    bottom: -2.5px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-scene {
    margin-top: 1rem;
  }
  .desk {
    margin-top: 2.75rem;
  }
  .trust-list li {
    padding-block: 1.375rem;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 4rem;
  }
  .header-firm-link {
    display: none;
  }
  /* One Sign in button on the first screen: the header's becomes a link. */
  .site-header .pill {
    min-height: 2.75rem;
    padding: 0;
    background: none;
    color: var(--text);
    font-size: 0.875rem;
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 4px;
  }
  .wordmark-name {
    font-size: 1rem;
  }
  .wordmark-by {
    font-size: 0.75rem;
  }
  .eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 4rem);
  }
  .hero-lede {
    margin-top: 1.25rem;
    font-size: 0.9875rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-top: 1.5rem;
  }
  .hero-actions .button {
    padding: 0 0.75rem;
  }
  .hero-note {
    margin-top: 0.875rem;
  }
  .hero-scene {
    min-height: 42.5rem;
    margin-top: 0.75rem;
  }
  .phone {
    --phone-w: 16rem;
  }
  .niche {
    width: min(21.5rem, 100%);
    height: 38.5rem;
  }
  /* The shelf stays inside the arch's width. */
  .niche::after {
    left: 0;
    right: 0;
  }
  .how-steps {
    margin-top: 2rem;
  }
  .how-steps h3,
  .trust-list h3 {
    font-size: 1.25rem;
  }
  /* At phone width the browser view becomes a plain card; its address moves into the caption. */
  .desk-chrome {
    display: none;
  }
  .desk-caption-url {
    display: inline;
  }
  .desk-bar {
    height: 46px;
    padding: 0 14px;
  }
  .desk-places,
  .desk-avatar {
    display: none;
  }
  .desk-page {
    padding: 18px 14px 10px;
  }
  .desk-title {
    font-size: 22px;
  }
  .desk-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 12px 0;
  }
  .desk-row-main {
    grid-column: 1 / -1;
  }
  .desk-row-main small {
    white-space: normal;
  }
  .desk-status {
    justify-self: start;
  }
  .desk-status.has-mark {
    margin-left: 0;
  }
  .desk-status.has-mark > .step-mark {
    left: calc(100% + 8px);
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .seek-form .button {
    justify-self: stretch;
  }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 404 and /thanks/: the hero field, text only. */
.hero-short {
  display: flex;
  align-items: center;
  min-height: 78svh;
}
