/* Bloomrang, direction D: Paper / Bloomrang. Split stage.
   Two grounds that never drift: warm desk paper on one side, white on the other.
   One accent (logo blue), and it lives only on the Bloomrang side. */

:root {
  --blue: #004BFE;
  --blue-wash: #EEF3FF;
  --navy: #0F1A2E;
  --navy-soft: #4A5672;
  --line: #E2E7F1;

  --desk: #E6DECD;
  --desk-ink: #3A372F;
  --desk-soft: #5E574A;
  --sheet: #FBF8F1;
  --rule: #D6CCB8;
  --pencil: #46454A;

  --sc-canvas: #FFFFFF;
  --sc-surface: #FFFFFF;
  --sc-ink: var(--navy);
  --sc-ink-soft: var(--navy-soft);
  --sc-accent: var(--blue);
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Outfit", system-ui, sans-serif;
  --sc-font-text: "Outfit", system-ui, sans-serif;
  --sc-shadow-color: 222 60% 22%;

  --top: 88px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.16 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

body { background: #FFFFFF; }
main { display: block; }
figure { margin: 0; }
p { margin: 0; }

/* ------------------------------------------------------------- the stage */
.stage { background: #FFFFFF; touch-action: pan-y; }
.app, .paper { position: absolute; inset: 0; }
.app { z-index: 1; background: #FFFFFF; color: var(--navy); }
.paper {
  z-index: 2;
  background: var(--desk);
  color: var(--desk-ink);
  --sc-ink: var(--desk-ink);
  --sc-ink-soft: var(--desk-soft);
}
/* desk grain: fibre, not noise */
.paper::before, .sheet::before, .slip::before, .card-scrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain);
  opacity: 0.16; mix-blend-mode: multiply; border-radius: inherit;
}
.paper::before { opacity: 0.22; }

.pencil {
  position: absolute; left: 4%; bottom: 3.5%;
  width: 300px; height: auto; max-width: none;
  transform: rotate(-8deg);
  filter: drop-shadow(0 6px 6px rgb(70 52 24 / 0.22));
}

/* ------------------------------------------------------------------ copy */
.copy { position: absolute; top: var(--top); display: grid; z-index: 30; }
.copy > * { grid-area: 1 / 1; align-self: start; }
.copy--paper { left: clamp(24px, 3.4vw, 56px); width: min(33vw, 31rem); }
.copy--app   { left: 0; width: min(36vw, 33rem); will-change: transform; }

.display {
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 0.9rem + 1.45vw, 2.45rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
  color: var(--navy);
}
.display--paper { color: var(--desk-ink); font-weight: 500; }
.display--hero { font-size: clamp(2.1rem, 0.8rem + 3vw, 4rem); line-height: 1.0; letter-spacing: -0.04em; }
.beat p, .lede {
  margin-top: var(--sc-3);
  font-size: var(--sc-t-base);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--navy-soft);
  text-wrap: pretty;
}
.paper .beat p { color: var(--desk-soft); }
.hero-r .lede { max-width: 30ch; }

.lockup { display: flex; align-items: flex-end; gap: 0.32em; height: 30px; margin-bottom: var(--sc-6); }
.lockup img:first-child { height: 100%; width: auto; }
.lockup img:last-child { height: 74%; width: auto; margin-bottom: -1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: var(--sc-5);
  padding: 0.82em 1.35em;
  border-radius: 10px;
  background: var(--blue); color: #FFFFFF;
  font-weight: 600; font-size: var(--sc-t-base); line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 6px 16px -6px rgb(0 0 0 / 0.28);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { a.btn:hover { background: #003DD6; } }
a.btn:active { transform: translateY(1px) scale(0.98); }
a.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn--sm { margin-top: 0; padding: 0.6em 0.95em; font-size: 13px; border-radius: 8px; box-shadow: none; }
.btn--lg { font-size: var(--sc-t-lg); padding: 0.85em 1.5em; border-radius: 12px; }
.btn--block { display: flex; width: 100%; margin-top: 0; }

.sample-note {
  position: absolute; right: clamp(24px, 3.4vw, 56px); bottom: 18px;
  font-size: 12px; color: var(--navy-soft); letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ the seam */
.seam { position: absolute; left: 0; top: 0; width: 0; height: 100%; z-index: 40; will-change: transform; }
.seam__label {
  position: absolute; top: 26px; margin: 0; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; line-height: 20px;
}
.seam__label--paper { right: 16px; color: var(--desk-soft); }
.seam__label--app { left: 16px; color: var(--blue); display: flex; align-items: center; gap: 7px; }
.seam__label--app img { height: 15px; width: auto; }
.seam__track { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; }
.seam__line { position: absolute; inset: 0; background: color-mix(in oklab, var(--desk-ink) 30%, #FFFFFF); }
.seam__fill {
  position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: var(--blue); transform-origin: 0 0; transform: scaleY(0);
}
.seam__dot {
  position: absolute; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #FFFFFF; border: 2px solid color-mix(in oklab, var(--desk-ink) 40%, #FFFFFF);
  transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out);
}
.seam__dot.is-on { background: var(--blue); border-color: var(--blue); transform: scale(1.15); }
.seam__dot:nth-of-type(1) { top: calc(100% * 1 / 6); }
.seam__dot:nth-of-type(2) { top: calc(100% * 2 / 6); }
.seam__dot:nth-of-type(3) { top: calc(100% * 3 / 6); }
.seam__dot:nth-of-type(4) { top: calc(100% * 4 / 6); }
.seam__dot:nth-of-type(5) { top: calc(100% * 5 / 6); }
.seam__band { display: none; }
.seam__edge { position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--blue); opacity: 0; }

.seam__grip {
  position: absolute; left: 0; bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px;
  border: 1px solid color-mix(in oklab, var(--desk-ink) 22%, #FFFFFF);
  border-radius: 999px;
  background: #FFFFFF; color: var(--navy);
  font: 600 13px/1 var(--sc-font-text);
  white-space: nowrap;
  cursor: grab; touch-action: none; user-select: none;
  box-shadow: 0 1px 2px rgb(40 30 10 / 0.12), 0 8px 20px -8px rgb(40 30 10 / 0.35);
  transition: box-shadow 160ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out);
}
.seam__grip svg { width: 15px; height: 15px; color: var(--blue); }
.seam__grip svg:first-child { color: var(--desk-soft); }
.seam__name { min-width: 5.6em; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .seam__grip:hover { box-shadow: 0 1px 2px rgb(40 30 10 / 0.14), 0 12px 26px -8px rgb(40 30 10 / 0.42); }
}
.seam__grip:active, .is-dragging .seam__grip { cursor: grabbing; }
.seam__grip:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.is-dragging, .is-dragging * { user-select: none; }

/* ------------------------------------------------- shared artifact bits */
.sheet, .clean { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.shade { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: var(--shade, 0); }
.sheet .shade, .slip .shade, .sticky .shade { background: #4B3B1E; }
.clean .shade { background: #DCE4F5; }

/* Caveat is content, not typography: it only ever renders what a person
   wrote by hand on paper. Never a heading, label or interface string. */
.hand {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  color: var(--pencil);
  display: inline-block;
  transform: rotate(-1.4deg) translateY(2px);
  letter-spacing: 0;
}

/* ----------------------------------------------- paper: the registration form */
.sheet--form {
  width: 440px; padding: 28px 30px 26px;
  background: var(--sheet); color: var(--desk-ink);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgb(70 52 24 / 0.10), 0 10px 26px -10px rgb(70 52 24 / 0.38);
  font-size: 12px;
}
.pf-head { border-bottom: 2px solid var(--desk-ink); padding-bottom: 12px; margin-bottom: 8px; }
.pf-centre { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--desk-soft); }
.pf-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 3px; }
.pf-note { font-size: 11px; color: var(--desk-soft); margin-top: 2px; }
.pf-row { display: flex; flex-direction: column; margin-top: 10px; }
.pf-l { font-size: 10.5px; color: var(--desk-soft); letter-spacing: 0.02em; }
.pf-v { display: flex; align-items: flex-end; min-height: 30px; padding: 0 4px 2px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.pf-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
.pf-days { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11.5px; }
.box { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid var(--desk-soft); margin-left: 6px; overflow: visible; }
.box:first-child { margin-left: 0; }
.box .hand { font-size: 22px; transform: translate(1px, -2px) rotate(-6deg); }
.hand--sig { font-size: 30px; font-weight: 600; transform: rotate(-4deg) translateY(4px); }
.pf-office { margin-top: 18px; padding: 10px 12px; border: 1px dashed var(--desk-soft); display: flex; gap: 18px; align-items: baseline; font-size: 11.5px; }
.pf-office .pf-l { text-transform: uppercase; letter-spacing: 0.1em; font-size: 9.5px; }
.hand--margin { margin-left: auto; font-size: 22px; transform: rotate(-4deg); }

/* -------------------------------------------- paper: the spreadsheet waitlist */
.sheet--xls {
  width: 600px; background: #FCFCFA; color: #2E302B;
  border-radius: 8px; overflow: visible;
  box-shadow: 0 1px 1px rgb(70 52 24 / 0.12), 0 14px 30px -12px rgb(70 52 24 / 0.42);
  font-size: 11.5px;
}
.sheet--xls::before { display: none; }
.xls-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; background: #3F6B4F; color: #F4F2EA; font-size: 12px; font-weight: 500; border-radius: 8px 8px 0 0; }
.xls-lights { display: inline-flex; gap: 5px; }
.xls-lights i { width: 9px; height: 9px; border-radius: 50%; background: #F4F2EA; opacity: 0.55; }
.xls-fx { display: flex; gap: 10px; align-items: center; height: 26px; padding: 0 10px; border-bottom: 1px solid #DAD8CF; color: #3E403A; }
.xls-ref { width: 34px; color: #5D6057; }
.xls-fn { font-style: italic; color: #5D6057; }
.xls { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.xls th, .xls td { height: 24px; padding: 0 6px; border: 1px solid #E1DFD6; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: clip; font-weight: 400; }
.xls thead th { background: #EFEEE8; color: #5D6057; text-align: center; font-size: 10.5px; height: 20px; }
.xls tbody th { width: 26px; background: #EFEEE8; color: #5D6057; text-align: center; font-size: 10.5px; }
.xls thead th:first-child { width: 26px; }
.xls thead th:nth-child(2) { width: 98px; } .xls thead th:nth-child(3) { width: 74px; }
.xls thead th:nth-child(4) { width: 72px; } .xls thead th:nth-child(5) { width: 92px; }
.xls thead th:nth-child(6) { width: 52px; }
.xls-frozen td { font-weight: 600; background: #F4F3EE; border-bottom: 2px solid #8E9A8B; }
.xls-frozen th { border-bottom: 2px solid #8E9A8B; }
.xls-hi td { background: #FFF1B5; }
.xls-sel { position: relative; outline: 2px solid #3F6B4F; outline-offset: -2px; }
.xls-tri { position: absolute; right: 0; top: 0; width: 0; height: 0; border-left: 7px solid transparent; border-top: 7px solid #C2512E; }
.xls-comment {
  position: absolute; right: -34px; top: 112px; width: 190px;
  padding: 8px 10px; background: #FFFBE6; border: 1px solid #D9CF9F;
  font-size: 11px; line-height: 1.4; color: #3C3A2E;
  box-shadow: 0 6px 14px -6px rgb(70 52 24 / 0.4);
}
.xls-tabs { display: flex; gap: 2px; padding: 5px 8px 6px; background: #EFEEE8; border-top: 1px solid #DAD8CF; border-radius: 0 0 8px 8px; font-size: 11px; color: #5D6057; }
.xls-tabs span { padding: 3px 10px; border-radius: 4px; }
.xls-tabs .is-on { background: #FCFCFA; color: #2E302B; font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }

/* ------------------------------------ paper: phone slip and the sticky note */
.sheet--notes { width: 430px; height: 380px; background: none; }
.sheet--notes::before { display: none; }
.slip {
  position: absolute; left: 0; top: 46px; width: 340px; padding: 18px 20px 20px;
  background: #F3DED4; color: #4A3A34;
  box-shadow: 0 1px 1px rgb(70 52 24 / 0.10), 0 10px 24px -10px rgb(70 52 24 / 0.38);
  transform: rotate(-2.5deg); font-size: 12px;
}
.slip .pf-l { color: #7A5A50; }
.slip .pf-v { border-color: #D7B7AA; min-height: 28px; }
.slip-title { font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: #8C4B3F; border-bottom: 2px solid #8C4B3F; padding-bottom: 6px; margin-bottom: 4px; }
.slip-row { display: grid; grid-template-columns: 52px 1fr; align-items: end; margin-top: 8px; }
.slip-row:first-of-type { grid-template-columns: 52px 1fr 40px 70px; }
.slip-row--msg { grid-template-columns: 1fr; }
.slip-row--msg .pf-v { min-height: 36px; }
.slip-checks { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 11px; color: #5C4740; }
.slip .box { border-color: #8C6A60; }
.sticky {
  position: absolute; right: 0; top: 0; width: 196px; height: 186px; padding: 22px 18px;
  background: #F1DC86; color: var(--pencil);
  box-shadow: 0 2px 3px rgb(70 52 24 / 0.16), 0 16px 22px -12px rgb(70 52 24 / 0.45);
  transform: rotate(5deg);
}
.sticky::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: rgb(110 90 20 / 0.07); }
.sticky .hand { font-size: 31px; line-height: 1.04; font-weight: 600; transform: rotate(-3deg); }

/* ------------------------------------------- paper: the Word invoice */
.sheet--doc {
  width: 440px; background: #DCD9D2; border-radius: 6px;
  box-shadow: 0 1px 1px rgb(70 52 24 / 0.12), 0 14px 30px -12px rgb(70 52 24 / 0.42);
  font-size: 11.5px; color: #2F2E2A; overflow: hidden;
}
.sheet--doc::before { display: none; }
.doc-bar { height: 28px; padding: 0 12px; display: flex; align-items: center; background: #3A5A8A; color: #F2F4F8; font-size: 12px; font-weight: 500; }
.doc-ruler {
  height: 16px; margin: 0 28px; background:
    repeating-linear-gradient(90deg, #8D8A82 0 1px, transparent 1px 9px) 0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, #8D8A82 0 1px, transparent 1px 45px) 0 100% / 100% 9px no-repeat,
    #F4F2EC;
}
.doc-page { position: relative; margin: 10px 18px 18px; padding: 30px 34px 34px; background: #FFFEFB; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.doc-title { font-size: 26px; font-weight: 700; letter-spacing: 0.14em; }
.doc-from { margin-top: 6px; color: #55534C; line-height: 1.45; }
.doc-meta { display: flex; justify-content: space-between; margin-top: 18px; line-height: 1.5; }
.doc-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc-table th, .doc-table td { border: 1px solid #2F2E2A; padding: 5px 8px; text-align: left; height: 26px; }
.doc-table th { font-weight: 700; }
.doc-table td:last-child, .doc-table th:last-child { text-align: right; width: 92px; }
.doc-table tfoot td { font-weight: 700; }
.squig { text-decoration: underline wavy #C8402F; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc-thanks { margin-top: 16px; color: #55534C; }
.hand--paid { position: absolute; right: 30px; bottom: 30px; font-size: 27px; font-weight: 600; transform: rotate(-8deg); }
.hand--paid::after { content: ""; position: absolute; inset: -8px -12px -6px -12px; border: 1.6px solid var(--pencil); border-radius: 50%; transform: rotate(3deg); opacity: 0.75; }

/* ------------------------------------------- paper: re-keying into Xero */
.sheet--xero {
  width: 560px; background: #FFFFFF; border-radius: 8px;
  box-shadow: 0 1px 1px rgb(70 52 24 / 0.12), 0 14px 30px -12px rgb(70 52 24 / 0.42);
  font-size: 12px; color: #2C3138; padding-bottom: 70px;
}
.sheet--xero::before { display: none; }
.xe-bar { height: 34px; display: flex; align-items: center; padding: 0 16px; background: #29323C; color: #EEF1F4; font-weight: 600; font-size: 12.5px; border-radius: 8px 8px 0 0; }
.xe-body { padding: 18px 20px 0; }
.xe-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.xe-fields p { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: #5B6470; }
.xe-in { display: block; height: 28px; padding: 6px 8px; border: 1px solid #CBD1D8; border-radius: 4px; color: #2C3138; font-size: 12px; white-space: nowrap; }
.xe-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.xe-table th { text-align: left; font-weight: 600; font-size: 10.5px; color: #5B6470; padding: 6px 8px; border-bottom: 1px solid #CBD1D8; }
.xe-table td { padding: 0 8px; height: 30px; border-bottom: 1px solid #E3E7EB; }
.xe-table th:nth-child(n+2), .xe-table td:nth-child(n+2) { text-align: right; width: 70px; }
.xe-focus { outline: 2px solid #5B6470; outline-offset: -3px; position: relative; }
.caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #2C3138; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.card-scrap {
  position: absolute; left: -28px; bottom: -34px; width: 270px; padding: 14px 18px 16px;
  background: #FBF7EC;
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, #D9D2C1 25px 26px);
  background-position: 0 14px;
  box-shadow: 0 2px 3px rgb(70 52 24 / 0.14), 0 14px 22px -12px rgb(70 52 24 / 0.45);
  transform: rotate(-5deg);
}
.card-scrap .hand { font-size: 25px; line-height: 26px; transform: none; font-weight: 600; }

/* ============================================== Bloomrang: the clean side */
.clean {
  background: #FFFFFF; color: var(--navy);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(20 40 90 / 0.06), 0 18px 40px -18px rgb(20 50 120 / 0.28);
  font-size: 13px; line-height: 1.4;
}
.c-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.c-head > div { flex: 1; min-width: 0; }
.c-title { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.c-sub { color: var(--navy-soft); font-size: 12.5px; }
.soft { color: var(--navy-soft); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); font-weight: 600; font-size: 13px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; background: #F1F3F8; color: var(--navy); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip--blue { background: var(--blue-wash); color: #0038C2; }
.chip--ok { background: #E8F5EE; color: #146A3C; }
.c-dl { display: grid; grid-template-columns: 112px 1fr; gap: 9px 12px; padding: 16px 20px; margin: 0; }
.c-dl dt { color: var(--navy-soft); }
.c-dl dd { margin: 0; }
.c-feed { list-style: none; margin: 0; padding: 4px 20px 18px; border-top: 1px solid var(--line); }
.c-feed li { display: flex; gap: 12px; padding-top: 14px; }
.pip { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--blue); }
.pip--on { background: var(--blue); }

.clean--lead { width: 440px; }

.clean--wait { width: 540px; }
.c-table { width: 100%; border-collapse: collapse; }
.c-table th { text-align: left; font-weight: 500; color: var(--navy-soft); font-size: 12px; padding: 10px 20px 8px; border-bottom: 1px solid var(--line); }
.c-table td { padding: 11px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.c-table td .soft { display: block; font-size: 12px; margin-top: 4px; }
.c-table strong { font-weight: 600; }
.c-table td:nth-child(2) { color: var(--navy-soft); white-space: nowrap; padding-left: 0; padding-right: 0; }
.c-table th:nth-child(2) { padding-left: 0; }
.c-table .is-match td { background: #F6F9FF; }
.c-table .is-match td:first-child { box-shadow: inset 2px 0 0 var(--blue); }
.c-action { padding: 14px 20px 18px; display: flex; justify-content: flex-end; }

.clean--phone { width: 290px; border-radius: 46px; padding: 10px; background: #18233A; border: 0; box-shadow: 0 2px 4px rgb(20 40 90 / 0.18), 0 30px 50px -22px rgb(20 50 120 / 0.5); }
.phone { position: relative; height: 560px; border-radius: 37px; background: #FFFFFF; padding: 14px 22px 22px; overflow: hidden; display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--navy); padding: 2px 6px 0; }
.ph-status span:last-child { color: var(--navy-soft); font-weight: 500; }
.ph-centre { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--navy-soft); font-size: 12.5px; }
.ph-centre img { height: 18px; width: auto; }
.ph-title { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.c-dl--phone { grid-template-columns: 1fr; gap: 2px; padding: 16px 0 0; }
.c-dl--phone dt { font-size: 11.5px; margin-top: 10px; }
.c-dl--phone dd { font-size: 14px; font-weight: 500; }
.ph-actions { position: relative; margin-top: auto; display: grid; gap: 12px; text-align: center; }
.ph-accept { font-size: 15px; padding: 15px; border-radius: 14px; }
.ph-decline { color: var(--navy-soft); font-size: 13px; }
.ph-done {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-radius: 14px; background: #E8F5EE; color: #146A3C;
  font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: left;
  opacity: 0; transform: scale(0.96);
  transition: opacity 220ms var(--sc-ease-out), transform 220ms var(--sc-ease-out);
}
.ph-done svg { flex: none; width: 20px; height: 20px; }
.clean--phone.is-accepted .ph-done { opacity: 1; transform: none; }
.clean--phone.is-accepted .ph-accept, .clean--phone.is-accepted .ph-decline { opacity: 0; transition: opacity 160ms var(--sc-ease-out); }

.clean--inv { width: 440px; }
.c-billto { padding: 14px 20px 4px; color: var(--navy-soft); }
.c-billto strong { color: var(--navy); font-weight: 600; }
.c-lines { width: calc(100% - 40px); margin: 6px 20px 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.c-lines td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.c-lines td .soft { display: block; font-size: 12px; margin-top: 2px; }
.c-lines td:last-child { text-align: right; }
.c-lines tfoot td { font-weight: 600; font-size: 15px; border-bottom: 0; padding-top: 14px; }
.c-paid { display: flex; align-items: center; gap: 10px; padding: 8px 20px 20px; color: var(--navy-soft); }

.clean--receipt { width: 420px; padding: 22px 24px 20px; }
.r-centre { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.r-centre img { height: 20px; width: auto; }
.r-title { font-size: 18px; }
.clean--receipt .c-dl { padding: 14px 0; grid-template-columns: 70px 1fr; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 10px; background: var(--blue-wash); }
.r-total strong { font-size: 22px; font-weight: 600; color: #0038C2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.r-foot { margin-top: 12px; }

/* ------------------------------------------------------------ the close */
.close {
  position: absolute; left: clamp(28px, 6vw, 96px); top: 50%;
  width: min(38vw, 34rem);
  transform: translateY(-52%);
  z-index: 25;
}
.lockup--close { height: 36px; margin-bottom: var(--sc-6); }
.display--close { font-size: clamp(2.4rem, 1rem + 3.4vw, 4.4rem); line-height: 0.98; letter-spacing: -0.042em; }
.close__rest .lede { margin-top: var(--sc-5); font-size: var(--sc-t-lg); max-width: 30ch; }
.close__rest .btn { margin-top: var(--sc-6); }
.fine { margin-top: var(--sc-6); font-size: 12.5px; color: var(--navy-soft); max-width: 44ch; }

/* ------------------------------------------------------------- phones */
@media (max-width: 759px) {
  :root { --top: 16px; }
  .copy--paper { left: 16px; right: 16px; width: auto; }
  .copy--app { left: 16px; right: 16px; width: auto; top: calc(50% + 34px); bottom: 34px; }
  .copy--app > * { align-self: end; }
  .copy--app > .hero-r { align-self: center; }
  .display { font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.02em; }
  .display--hero { font-size: 1.9rem; line-height: 1.02; letter-spacing: -0.035em; }
  .beat p { display: none; }
  .hero-r .lede { margin-top: var(--sc-2); font-size: 0.95rem; }
  .lockup { height: 22px; margin-bottom: var(--sc-3); }
  .btn { margin-top: var(--sc-4); font-size: 15px; }
  .pencil { display: none; }
  .sample-note { right: 16px; bottom: 8px; font-size: 11px; }

  .seam { width: 100%; height: 0; }
  .seam__label { top: auto; font-size: 12px; }
  .seam__band {
    display: block; position: absolute; left: 0; right: 0; top: -26px; height: 52px;
    background: linear-gradient(var(--desk) 0 50%, #FFFFFF 50% 100%);
  }
  .seam__band::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
    background-image: var(--grain); opacity: 0.22; mix-blend-mode: multiply;
  }
  .seam__label--paper { left: 16px; right: auto; bottom: 4px; }
  .seam__label--app { left: 16px; top: 4px; }
  .seam__track { left: 0; right: 140px; top: -1px; bottom: auto; width: auto; height: 2px; }
  .seam__fill { width: 100%; height: 2px; transform: scaleX(0); }
  .seam__dot { top: 50% !important; }
  .seam__dot:nth-of-type(1) { left: calc(100% * 1 / 6); }
  .seam__dot:nth-of-type(2) { left: calc(100% * 2 / 6); }
  .seam__dot:nth-of-type(3) { left: calc(100% * 3 / 6); }
  .seam__dot:nth-of-type(4) { left: calc(100% * 4 / 6); }
  .seam__dot:nth-of-type(5) { left: calc(100% * 5 / 6); }
  .seam__edge { width: 100%; height: 5px; }
  .seam__grip { left: auto; right: 12px; bottom: auto; top: -20px; transform: none; height: 40px; }

  .close { left: 20px; right: 20px; width: auto; top: 9%; transform: none; }
  .lockup--close { height: 26px; margin-bottom: var(--sc-4); }
  .display--close { font-size: 2.2rem; }
  .close__rest .lede { font-size: 1rem; margin-top: var(--sc-3); }
  .close__rest .btn { margin-top: var(--sc-4); }
  .fine { display: none; }
}

@media (max-width: 759px) and (max-height: 720px) {
  .display { font-size: 1.15rem; }
  .display--hero { font-size: 1.55rem; }
  .hero-r .lede { display: none; }
  .lockup { height: 20px; margin-bottom: var(--sc-2); }
  .btn { margin-top: var(--sc-3); padding: 0.7em 1.2em; }
  .display--close { font-size: 1.8rem; }
  .close__rest .lede { font-size: 0.9rem; }
}

/* ------------------------------------------------------------- footer */
.foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sc-3) var(--sc-6);
  padding: var(--sc-6) clamp(28px, 6vw, 96px) var(--sc-7);
  border-top: 1px solid var(--line);
  background: #FFFFFF; color: var(--navy-soft);
  font-size: 13px;
}
.foot__copy { display: flex; align-items: center; gap: 10px; }
.foot__copy img { height: 16px; width: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 var(--sc-5); }
.foot__nav a {
  display: inline-block; padding: 12px 0;
  color: var(--navy-soft); text-decoration: none;
  transition: color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .foot__nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 0.25em; }
}
.foot__nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; color: var(--navy); }
@media (max-width: 759px) {
  .foot { padding: var(--sc-5) 20px var(--sc-6); flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
