/* Arce Asesores (demo): editorial and data-driven. Dateline with the next deadline, numbered sections,
   hairline rules, serif display type and product-like pieces (fiscal year strip, invoice scanner,
   notifications, connections orbit, client area, live quote, call-back tracker).
   To personalise: colours here, name/texts/photos in index.html, fees and quotes in app.js. */

:root {
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --soft: #EDE7DA;
  --ink: #1A1D24;
  --ink-2: #545A66;
  --rule: rgba(26, 29, 36, 0.13);
  --primary: #1F3A5F;
  --primary-hover: #152A46;
  --primary-soft: #E3E9F2;
  --accent: #A8803F;
  --accent-ink: #7A5A26;
  --deep: #14233A;
  --deep-text: #C6CFDD;
  --deep-accent: #E3C995;
  --ok-bg: #DDF3E4;
  --ok: #1D6B3A;
  --warn-bg: #FCEFD7;
  --warn: #8A5A12;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 30px;
  height: 1px;
  background: currentColor;
}

.fine {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.center {
  text-align: center;
}

.body-lg {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-line {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: #fff;
}

.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Dateline with the next filing deadline, then a masthead-like header */
.dateline {
  background: var(--deep);
  color: var(--deep-text);
  font-size: 13px;
}

.dateline-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  min-height: 38px;
  padding: 8px 0;
}

.dateline p {
  margin: 0;
}

.dl-next b {
  color: #fff;
  font-weight: 700;
}

.dl-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--deep-accent);
  vertical-align: 1px;
  animation: dl-pulse 2s ease-out infinite;
}

@keyframes dl-pulse {
  from {
    box-shadow: 0 0 0 0 rgba(227, 201, 149, 0.6);
  }

  to {
    box-shadow: 0 0 0 8px rgba(227, 201, 149, 0);
  }
}

.dl-hours {
  color: rgba(198, 207, 221, 0.75);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.logo {
  display: grid;
  gap: 3px;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.logo-word {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-sub {
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav ul a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav ul a:hover::after {
  transform: scaleX(1);
}

.nav-client {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 24px;
  border-left: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-client svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.nav-client:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.menu-lines {
  position: relative;
  width: 16px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: border-color 0.2s;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s;
}

.top.is-open .menu-lines {
  border-color: transparent;
}

.top.is-open .menu-lines::before {
  transform: rotate(45deg);
}

.top.is-open .menu-lines::after {
  transform: rotate(-45deg);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2DED4;
}

/* Hero: the advisor with clients, notices that take turns over the photo, and four facts */
.hero {
  padding: 64px 0 0;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 72px;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-copy h1 em {
  display: block;
  margin-top: 12px;
  color: var(--accent-ink);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 33em;
  margin: 0 0 32px;
  color: var(--ink-2);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.link-arrow {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.2s;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-photo figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
}

.hero-photo figcaption b {
  color: var(--ink);
}

.hero-notes {
  position: absolute;
  bottom: 96px;
  left: -56px;
  display: grid;
  width: min(320px, 90%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 50px -24px rgba(20, 35, 58, 0.45);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s, transform 0.45s;
}

.hn.is-shown {
  opacity: 1;
  transform: none;
}

.hn-app {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--deep-accent);
  font-family: var(--serif);
  font-weight: 600;
}

.hn b {
  display: block;
  font-size: 14px;
}

.hn small {
  display: block;
  color: var(--ink-2);
  font-size: 12.5px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 64px 0 0;
  border-top: 1px solid var(--ink);
}

.hero-facts > div {
  padding: 22px 24px 28px 0;
}

.hero-facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.hero-facts dt {
  color: var(--ink-2);
  font-size: 14px;
}

.hero-facts dd {
  margin: 8px 0 0;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 560;
  line-height: 1;
}

/* Numbered sections with hairline rules */
.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--rule);
}

.sec-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 24px;
  max-width: 940px;
  margin-bottom: 48px;
}

.sec-num {
  grid-row: span 2;
  align-self: start;
  padding-top: 12px;
  border-top: 2px solid var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sec-head p {
  max-width: 40em;
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 18px;
}

.sec-head-tight {
  grid-template-columns: 64px minmax(0, 1fr);
  margin-bottom: 22px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
}

.checks li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23E3C995' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* 01 · Profile tabs */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.case-tabs [role='tab'] {
  position: relative;
  padding: 16px 22px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.case-tabs [role='tab']:hover {
  color: var(--ink);
}

.case-tabs [aria-selected='true'] {
  color: var(--ink);
}

.case-tabs [aria-selected='true']::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: var(--primary);
}

.case-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: var(--surface);
}

.case-panel[hidden] {
  display: none;
}

.case-panel h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 560;
}

.case-side {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding-left: 40px;
  border-left: 1px solid var(--rule);
}

.case-price {
  margin: 0;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
}

.case-price small {
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
}

.case-cal {
  margin: 0;
  color: var(--ink-2);
}

.case-cal b {
  color: var(--ink);
}

/* 02 · Fiscal year strip */
.year {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  list-style: none;
}

.month {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 14px 10px;
  border-left: 1px solid var(--rule);
}

.month:first-child {
  border-left: 0;
}

.month span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.month b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.month.is-now {
  background: rgba(176, 128, 63, 0.09);
}

.month.is-now span {
  color: var(--accent-ink);
}

.month.is-now span::after {
  content: ' · hoy';
  text-transform: none;
}

.month.is-next b {
  background: var(--primary);
  color: #fff;
  animation: ring 2.4s infinite;
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(31, 58, 95, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(31, 58, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 58, 95, 0); }
}

.renta-band {
  grid-row: 2;
  grid-column: 4 / 7;
  margin: 0 8px 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(176, 128, 63, 0.16);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.year.has-today::after {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: calc(var(--today) * 100%);
  width: 2px;
  background: var(--accent);
}

.next-due {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 24px 40px;
  align-items: center;
  margin-top: 40px;
  padding: 30px 34px;
  border-radius: 22px;
  background: var(--deep);
  color: #fff;
}

.next-due .kicker {
  margin-bottom: 8px;
  color: var(--deep-accent);
}

.next-due h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 560;
  line-height: 1.15;
}

.next-due > p {
  margin: 0;
  color: var(--deep-text);
}

.countdown {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--deep-accent);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.countdown:empty {
  display: none;
}

/* 03 · Invoice scanner */
.scan-in,
.work-in,
.connect-in,
.portal-in,
.price-in,
.faq-in,
.contact-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.scanner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.camera {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 26px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 30%, #3A424E, #1B2028);
  box-shadow: 0 40px 70px -40px rgba(20, 35, 58, 0.8);
}

.invoice {
  width: 100%;
  padding: 18px;
  border-radius: 6px;
  background: #FBFAF7;
  color: #2B2B2B;
  font-size: 12px;
  line-height: 1.5;
  transform: rotate(-3deg);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.7);
}

.inv-head {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #CFCABD;
}

.inv-head b {
  font-size: 13px;
}

.inv-head span {
  color: #777;
}

.inv-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.inv-row span:last-child {
  white-space: nowrap;
}

.inv-sub {
  color: #666;
}

.inv-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #CFCABD;
  font-size: 14px;
  font-weight: 800;
}

.scan-line {
  position: absolute;
  top: 10%;
  right: 16px;
  left: 16px;
  height: 3px;
  border-radius: 2px;
  background: #6EE7B7;
  opacity: 0;
  box-shadow: 0 0 18px 4px rgba(110, 231, 183, 0.55);
}

.scanner.is-scanning .scan-line {
  opacity: 1;
  animation: scan 1.6s ease-in-out;
}

@keyframes scan {
  from { top: 10%; }
  to { top: 88%; }
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0 solid rgba(255, 255, 255, 0.85);
}

.corner-tl { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.corner-tr { top: 14px; right: 14px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 10px; }
.corner-bl { bottom: 14px; left: 14px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 10px; }
.corner-br { right: 14px; bottom: 14px; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 10px; }

.fields {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fields li {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  transition: opacity 0.35s, transform 0.35s;
}

.fields small {
  display: block;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fields b {
  font-size: 16px;
}

.fields .field-ok {
  border-color: transparent;
  background: var(--ok-bg);
  color: var(--ok);
}

.scanner.is-armed [data-field]:not(.is-on) {
  border-color: var(--rule);
  background: var(--surface);
}

.scanner.is-armed [data-field]:not(.is-on) small,
.scanner.is-armed [data-field]:not(.is-on) b {
  border-radius: 4px;
  background: linear-gradient(90deg, #EEE9DF, #F8F5EF, #EEE9DF) 0 0 / 200% 100%;
  color: transparent;
  animation: shimmer 1.4s linear infinite;
}

.scanner.is-armed [data-field].is-on {
  animation: fade 0.35s ease;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* 04 · Photo with notifications */
.work-photo {
  position: relative;
  margin: 0;
}

.work-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  border-radius: 22px;
  object-fit: cover;
}

.notes {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(330px, 100%);
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.35;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.55);
  transition: opacity 0.45s, transform 0.45s;
}

.note-app {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--deep-accent);
  font-family: var(--serif);
  font-weight: 700;
}

.notes.is-armed .note:not(.is-on) {
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
}

.ruled {
  margin: 8px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.ruled li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.ruled li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.ruled b {
  font-size: 19px;
}

.ruled span {
  color: var(--ink-2);
}

/* 05 · Connections orbit */
.connect {
  border-bottom: 0;
  background: var(--deep);
  color: #fff;
}

.connect .sec-num {
  border-color: var(--deep-accent);
  color: var(--deep-accent);
}

.connect .body-lg {
  color: var(--deep-text);
}

.connect-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.connect-list li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--deep-text);
  font-size: 14px;
  font-weight: 600;
}

.orbit {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring {
  fill: none;
  stroke: rgba(227, 201, 149, 0.3);
  stroke-dasharray: 4 8;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 50s linear infinite;
}

.flow {
  fill: none;
  stroke: var(--deep-accent);
  stroke-dasharray: 6 10;
  stroke-width: 1.5;
  opacity: 0.75;
  animation: flow 1.4s linear infinite;
}

@keyframes flow {
  to { stroke-dashoffset: -32; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.hub img {
  width: 86px;
  height: 86px;
  border: 4px solid var(--deep-accent);
  border-radius: 50%;
  object-fit: cover;
}

.hub b {
  color: var(--deep-accent);
  font-size: 13px;
}

.node {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.7);
  animation: blip 6s ease-in-out infinite;
}

.node-1 { top: 12.5%; left: 50%; }
.node-2 { top: 31.25%; left: 82.5%; animation-delay: 1s; }
.node-3 { top: 68.75%; left: 82.5%; animation-delay: 2s; }
.node-4 { top: 87.5%; left: 50%; animation-delay: 3s; }
.node-5 { top: 68.75%; left: 17.5%; animation-delay: 4s; }
.node-6 { top: 31.25%; left: 17.5%; animation-delay: 5s; }

@keyframes blip {
  0%, 12%, 100% { background: #fff; color: var(--ink); }
  5% { background: var(--deep-accent); color: var(--ink); }
}

/* 06 · Client area */
.portal {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 50px 90px -56px rgba(20, 35, 58, 0.55);
}

.portal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.portal-head .dots i {
  background: rgba(255, 255, 255, 0.35);
}

.portal-user {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--deep-accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.portal-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 14px 0;
  border-bottom: 1px solid var(--rule);
}

.portal-tabs [role='tab'] {
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.portal-tabs [aria-selected='true'] {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.portal-panel {
  min-height: 300px;
  padding: 18px 20px 22px;
}

.portal-panel[hidden] {
  display: none;
}

.docs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
}

.doc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.doc-icon-due {
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 18px;
}

.doc-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.doc-name small {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.chip {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.chip-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.chip-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.chip-muted {
  background: #ECEAE4;
  color: #575757;
}

.chip.is-flipped {
  animation: pop 0.5s ease;
}

@keyframes pop {
  50% { transform: scale(1.15); }
}

.thread {
  display: grid;
  gap: 10px;
}

.msg {
  max-width: 85%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.msg b {
  display: block;
  color: var(--primary);
  font-size: 12px;
}

.msg-them {
  background: var(--bg);
}

.msg-me {
  justify-self: end;
  background: var(--primary);
  color: #fff;
}

/* 07 · Fee calculator: a quote on paper that redoes itself */
.price-in {
  align-items: start;
}

.price-in > div:first-child {
  position: sticky;
  top: 120px;
}

.calc {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px 32px 32px;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 40px 80px -56px rgba(20, 35, 58, 0.55);
}

.calc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.calc-doc {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.calc-ref {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kind {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.kind legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kind input {
  position: absolute;
  opacity: 0;
}

.kind label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.kind label:hover {
  border-color: rgba(31, 58, 95, 0.4);
}

.kind-icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.kind label b {
  font-size: 16px;
}

.kind label span {
  color: var(--ink-2);
  font-size: 13px;
}

.kind input:checked + label {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.kind input:checked + label .kind-icon {
  stroke: var(--primary);
}

.kind input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.range {
  display: grid;
  gap: 10px;
}

.range > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 700;
}

.range output {
  color: var(--primary);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.range input {
  width: 100%;
  accent-color: var(--primary);
}

.receipt {
  position: relative;
  padding-top: 18px;
  border-top: 2px dashed var(--rule);
  font-variant-numeric: tabular-nums;
}

.receipt-stamp {
  position: absolute;
  top: -15px;
  right: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

/* Room for the longest quote (six lines) on ruled paper: switching plans never changes the height. */
.receipt-lines {
  min-height: 186px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: repeating-linear-gradient(to bottom, transparent 0 30px, var(--rule) 30px 31px);
}

.receipt-lines li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 31px;
  padding-top: 5px;
  color: var(--ink-2);
  font-size: 14px;
}

.receipt-lines li span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-lines i {
  flex: 1;
  min-width: 10px;
  border-bottom: 2px dotted rgba(26, 29, 36, 0.22);
}

.receipt-lines li span:last-child {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.receipt-sub {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.receipt-sub + .receipt-sub {
  margin-top: 4px;
}

.receipt-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 3px double var(--ink);
}

.receipt-total span {
  font-weight: 800;
}

.receipt-total strong {
  color: var(--primary);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.receipt-total strong.is-tick {
  animation: receipt-tick 0.4s ease;
}

@keyframes receipt-tick {
  from {
    color: var(--accent);
    transform: translateY(-4px);
  }
}

/* Big quote */
.quote-sec {
  background: var(--soft);
}

.quote {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.quote figcaption {
  margin-top: 22px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote.is-swapping blockquote,
.quote.is-swapping figcaption {
  animation: fade 0.45s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.q-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.q-nav button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.q-nav button:hover {
  border-color: var(--ink);
}

.q-nav span {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* 08 · FAQ */
.faq-in {
  align-items: start;
}

.faq {
  border-top: 1px solid var(--rule);
  counter-reset: q;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  counter-increment: q;
}

.faq summary {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: counter(q, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
}

.faq summary::after {
  content: '+';
  margin-left: auto;
  color: var(--accent-ink);
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin: 0 0 22px 42px;
  color: var(--ink-2);
}

/* 09 · Contact */
.contact-sec {
  border-bottom: 0;
}

.contact-in {
  align-items: start;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 10px 0 18px;
}

.mode {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}

.mode b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.mode span {
  color: var(--ink-2);
  font-size: 15px;
}

.hours-line {
  color: var(--ink-2);
}

.callback {
  padding: 30px;
  border-radius: 22px;
  background: var(--deep);
  color: #fff;
}

.cb-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 560;
}

.cb-title:focus {
  outline: none;
}

.cb-topics {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.cb-topics legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--deep-text);
  font-size: 13px;
  font-weight: 700;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-list input {
  position: absolute;
  opacity: 0;
}

.topic-list label {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--deep-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.topic-list label:hover {
  border-color: var(--deep-accent);
}

.topic-list input:checked + label {
  border-color: var(--deep-accent);
  background: var(--deep-accent);
  color: var(--ink);
}

.topic-list input:focus-visible + label {
  outline: 3px solid var(--deep-accent);
  outline-offset: 2px;
}

.cb-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cb-fields label {
  display: grid;
  gap: 6px;
  color: var(--deep-text);
  font-size: 13px;
  font-weight: 700;
}

.cb-fields input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-weight: 500;
}

.cb-fields input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.cb-send {
  margin-top: 18px;
  background: var(--deep-accent);
  color: var(--ink);
}

.cb-send:hover {
  background: #EED9AE;
}

/* The request tracker */
.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.ticket-ref {
  color: var(--deep-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cb-track {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 6px 0 22px;
  padding: 0 0 0 38px;
  list-style: none;
}

.cb-track::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.cb-step {
  position: relative;
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.cb-step::before {
  position: absolute;
  top: 0;
  left: -38px;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--deep);
  content: "";
  transition: background 0.3s, border-color 0.3s;
}

.cb-step b {
  font-size: 16px;
}

.cb-step span {
  font-size: 14px;
}

.cb-step.is-done,
.cb-step.is-now {
  color: #fff;
}

.cb-step.is-done span,
.cb-step.is-now span {
  color: var(--deep-text);
}

.cb-step.is-done::before {
  border-color: var(--deep-accent);
  background: var(--deep-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2314233A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.cb-step.is-now::before {
  border-color: var(--deep-accent);
  animation: cb-pulse 1.6s ease-out infinite;
}

@keyframes cb-pulse {
  from {
    box-shadow: 0 0 0 0 rgba(227, 201, 149, 0.55);
  }

  to {
    box-shadow: 0 0 0 12px rgba(227, 201, 149, 0);
  }
}

.ticket-docs {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ticket-docs p {
  margin: 0 0 8px;
  font-weight: 700;
}

.ticket-docs ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket-docs li {
  position: relative;
  padding-left: 22px;
  color: var(--deep-text);
  font-size: 15px;
}

.ticket-docs li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--deep-accent);
  font-weight: 800;
  content: "✓";
}

.ticket-note {
  margin: 16px 0 0;
  color: var(--deep-text);
  font-size: 13px;
}

.ticket-reset {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--deep-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Footer with a big wordmark */
.foot {
  padding: 60px 0 34px;
  background: var(--deep);
  color: var(--deep-text);
}

.foot-mark {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: clamp(54px, 12vw, 170px);
  font-weight: 560;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.foot p {
  margin: 0;
}

.foot a {
  color: #fff;
  font-weight: 700;
}

/* Tablet and phone */
@media (max-width: 1000px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 22px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
    box-shadow: 0 30px 40px -30px rgba(20, 35, 58, 0.4);
  }

  .top.is-open .nav {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav ul a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
  }

  .nav ul a::after {
    display: none;
  }

  .nav-client {
    padding: 14px 0;
    border-left: 0;
    font-size: 16px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero-photo {
    max-width: 480px;
  }

  .hero-notes {
    left: -24px;
  }

  .hero-in,
  .scan-in,
  .work-in,
  .connect-in,
  .portal-in,
  .price-in,
  .faq-in,
  .contact-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .case-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }

  .case-side {
    padding: 24px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .next-due {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .dl-hours {
    display: none;
  }

  .dateline {
    font-size: 12px;
  }

  .top-in {
    min-height: 66px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-notes {
    bottom: 84px;
    left: 12px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }

  .hero-facts > div,
  .hero-facts > div + div {
    padding: 18px 12px 20px 0;
  }

  .hero-facts > div:nth-child(even) {
    padding-left: 16px;
  }

  .hero-facts > div:nth-child(3) {
    border-left: 0;
  }

  .hero-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .hero-facts dd {
    font-size: 32px;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 80px 0;
  }

  .sec-head,
  .sec-head-tight {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec-num {
    grid-row: auto;
    justify-self: start;
    padding-top: 8px;
  }

  .case-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .case-tabs [role='tab'] {
    padding: 13px 10px;
    text-align: left;
  }

  .case-tabs [aria-selected='true']::after {
    right: 10px;
    left: 10px;
  }

  .case-price {
    font-size: 44px;
  }

  .year {
    grid-template-columns: repeat(6, 1fr);
  }

  .month {
    min-height: 96px;
    padding: 10px 6px;
    border-top: 1px solid var(--rule);
  }

  .month:nth-child(7) {
    border-left: 0;
  }

  .month b {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .month.is-now span::after {
    content: '';
  }

  .renta-band,
  .year.has-today::after {
    display: none;
  }

  .scanner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .camera {
    width: min(300px, 100%);
    margin-inline: auto;
  }

  .fields {
    grid-template-columns: 1fr 1fr;
  }

  .fields .field-ok {
    grid-column: 1 / -1;
  }

  .note {
    font-size: 12px;
  }

  .notes .note:nth-child(3) {
    display: none;
  }

  .modes {
    grid-template-columns: 1fr;
  }

  .price-in > div:first-child {
    position: static;
  }

  .calc {
    padding: 22px;
  }

  .receipt-total strong {
    font-size: 38px;
  }

  .kind label {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 2px;
    padding: 12px 14px;
  }

  .kind-icon {
    grid-row: auto;
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  .cb-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .callback {
    padding: 24px;
  }

  .faq details p {
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .logo-word {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .receipt-total strong.is-tick,
  .cb-step.is-now::before,
  .dl-dot,
  .month.is-next b,
  .ring,
  .flow,
  .node,
  .chip.is-flipped {
    animation: none;
  }

  .hn,
  .fields li,
  .note,
  .btn {
    transition: none;
  }
}
