/* ==========================================================================
   Aruna Law Firm - site styles
   Palette: ivory, near-black ink, oxblood accent, brass detail
   Type: EB Garamond (display) / Libre Franklin (text)
   ========================================================================== */

:root {
  --paper: #f5f3ee;
  --paper-tint: #edeae2;
  --ink: #191919;
  --ink-soft: #4c4a44;
  --hairline: #d6d2c6;
  --oxblood: #6b2737;
  --brass: #9c7c46;
  --green-ok: #33604a;
  --amber: #8a6420;
  --white: #fdfcf9;

  --font-display: "EB Garamond", Garamond, "Times New Roman", serif;
  --font-text: "Libre Franklin", "Franklin Gothic Medium", -apple-system, "Segoe UI", sans-serif;

  --shell-max: 1140px;
  --radius: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

a { color: inherit; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1.25rem;
}

.eyebrow-light { color: #c69f6c; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover { background: var(--oxblood); border-color: var(--oxblood); }

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover { border-color: var(--oxblood); color: var(--oxblood); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-paper:hover { background: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 243, 238, 0.4);
}

.btn-ghost-light:hover { border-color: var(--paper); }

.btn-wide { width: 100%; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--ink);
  color: #b9b5aa;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topbar a {
  color: #d8d4c9;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: none;
}

.topbar a:hover { color: var(--white); }

/* ---------- Brand / logo ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-text small {
  display: block;
  font-family: var(--font-text);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.footer-brand .brand-text { color: var(--paper); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 238, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 14px rgba(25, 25, 25, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  padding: 0.25rem 0;
}

.site-nav a:hover { color: var(--oxblood); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--oxblood);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero (homepage) ---------- */

.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-lead {
  max-width: 52rem;
}

.hero-lead h1 {
  font-weight: 500;
}

.hero-copy .lede,
.page-hero .lede {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-top: 1.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  align-items: center;
}

.hero-footnote {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* practice index: ruled list of offerings, big-law style */

.practice-index {
  list-style: none;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--ink);
}

.practice-index li { border-bottom: 1px solid var(--hairline); }

.practice-index li:last-child { border-bottom: none; }

.practice-index a {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0.25rem;
  text-decoration: none;
  transition: background 0.18s ease;
}

.practice-index a:hover { background: rgba(107, 39, 55, 0.04); }

.pi-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brass);
  letter-spacing: 0.1em;
}

.pi-body b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.pi-body span {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.pi-arrow {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--oxblood);
  transition: transform 0.18s ease;
}

.practice-index a:hover .pi-arrow { transform: translateX(6px); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.product-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.product-tag .product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.product-tag .product-by {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Status card / ledger ---------- */

.status-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 16px 38px -28px rgba(25, 25, 25, 0.4);
}

.status-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green { background: var(--green-ok); }

.dot-pulse { animation: pulse 2.4s ease-in-out infinite; }

.status-card-title {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-card-date {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.status-rows { list-style: none; }

.status-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e7e3d8;
  font-size: 0.85rem;
}

.row-name { color: var(--ink-soft); }

.pill {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

.pill-ok {
  background: rgba(51, 96, 74, 0.1);
  color: var(--green-ok);
}

.pill-warn {
  background: rgba(138, 100, 32, 0.12);
  color: var(--amber);
}

.status-card-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.status-card-foot strong { color: var(--ink); }

.hero-card-note {
  margin-top: 1.2rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--brass);
}

.hero-card-note p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Trust strip ---------- */

.trust {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-tint);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 28px;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.trust-item span {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tinted {
  background: var(--paper-tint);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-lede {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-side {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Feature rows (homepage) ---------- */

.feature-rows { border-top: 1px solid var(--ink); }

.feature-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brass);
  line-height: 1;
  padding-top: 0.2rem;
}

.feature-body h3 { margin-bottom: 0.5rem; }

.feature-body p {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 42rem;
  font-size: 0.96rem;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.96rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 9px;
  height: 1px;
  background: var(--oxblood);
}

.check-list strong {
  color: var(--ink);
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ---------- Feature blocks (product pages) ---------- */

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.feature-block + .feature-block {
  border-top: 1px solid var(--hairline);
}

.feature-block:nth-child(even) .feature-copy { order: 2; }
.feature-block:nth-child(even) .feature-visual { order: 1; }

.feature-copy .feature-kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.85rem;
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 0.85rem;
}

.feature-copy p {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.97rem;
  max-width: 32rem;
  line-height: 1.75;
}

.feature-copy ul {
  list-style: none;
  margin-top: 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.feature-copy ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.feature-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 9px;
  height: 1px;
  background: var(--oxblood);
}

/* visual frame */

.feature-visual {
  display: flex;
  justify-content: center;
}

.visual-frame {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 44px -30px rgba(25, 25, 25, 0.4);
  position: relative;
  overflow: hidden;
}

.visual-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.visual-title .spacer { margin-left: auto; }

/* ---------- Animated mocks ---------- */

.mock-rows { list-style: none; display: grid; gap: 0.55rem; }

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid #e5e1d5;
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
}

.play .mock-row { animation: rise 0.5s ease forwards; }
.play .mock-row:nth-child(1) { animation-delay: 0.1s; }
.play .mock-row:nth-child(2) { animation-delay: 0.25s; }
.play .mock-row:nth-child(3) { animation-delay: 0.4s; }
.play .mock-row:nth-child(4) { animation-delay: 0.55s; }
.play .mock-row:nth-child(5) { animation-delay: 0.7s; }

.mock-row .who { display: grid; line-height: 1.35; }

.mock-row .who b { font-weight: 600; }

.mock-row .who span {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.audit-list { list-style: none; display: grid; gap: 0.55rem; }

.audit-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid #e5e1d5;
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
}

.audit-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}

.audit-check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--green-ok);
  border-bottom: 2px solid var(--green-ok);
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
}

.play .audit-check::after { animation: tickPop 0.3s ease forwards; }
.play .audit-item:nth-child(1) .audit-check::after { animation-delay: 0.6s; }
.play .audit-item:nth-child(2) .audit-check::after { animation-delay: 1.1s; }
.play .audit-item:nth-child(3) .audit-check::after { animation-delay: 1.6s; }
.play .audit-item:nth-child(4) .audit-check::after { animation-delay: 2.1s; }

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--oxblood), transparent);
  opacity: 0;
}

.play .scan-line { animation: scan 2.6s ease-in-out 0.3s 1 forwards; }

.vault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.vault-doc {
  background: var(--paper);
  border: 1px solid #e5e1d5;
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
  font-size: 0.78rem;
  opacity: 0;
  transform: scale(0.94);
}

.play .vault-doc { animation: settle 0.45s ease forwards; }
.play .vault-doc:nth-child(1) { animation-delay: 0.15s; }
.play .vault-doc:nth-child(2) { animation-delay: 0.3s; }
.play .vault-doc:nth-child(3) { animation-delay: 0.45s; }
.play .vault-doc:nth-child(4) { animation-delay: 0.6s; }

.vault-doc b {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.vault-doc .pill { font-size: 0.6rem; }

.q-form { display: grid; gap: 0.6rem; }

.q-field {
  background: var(--paper);
  border: 1px solid #e5e1d5;
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.q-field b {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--ink-soft);
}

.q-answer {
  display: inline-block;
  color: var(--ink);
  border-right: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
}

.play .q-answer {
  animation: typeIn 0.9s steps(18) forwards;
  border-right-color: var(--oxblood);
}

.play .q-field:nth-child(1) .q-answer { animation-delay: 0.3s; }
.play .q-field:nth-child(2) .q-answer { animation-delay: 1.3s; }
.play .q-field:nth-child(3) .q-answer { animation-delay: 2.3s; }

.q-sent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-ok);
  opacity: 0;
}

.play .q-sent { animation: rise 0.4s ease 3.3s forwards; }

.timeline { position: relative; padding-left: 1.4rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hairline);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.1rem 0.6rem;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-8px);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--oxblood);
}

.timeline-item.done::before { background: var(--oxblood); }

.play .timeline-item { animation: riseX 0.45s ease forwards; }
.play .timeline-item:nth-child(1) { animation-delay: 0.15s; }
.play .timeline-item:nth-child(2) { animation-delay: 0.4s; }
.play .timeline-item:nth-child(3) { animation-delay: 0.65s; }
.play .timeline-item:nth-child(4) { animation-delay: 0.9s; }
.play .timeline-item:nth-child(5) { animation-delay: 1.15s; }

.timeline-item b { display: block; font-weight: 600; }

.timeline-item span { color: var(--ink-soft); font-size: 0.75rem; }

.news-list { list-style: none; display: grid; gap: 0.6rem; }

.news-item {
  background: var(--paper);
  border: 1px solid #e5e1d5;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
}

.play .news-item { animation: rise 0.5s ease forwards; }
.play .news-item:nth-child(1) { animation-delay: 0.15s; }
.play .news-item:nth-child(2) { animation-delay: 0.35s; }
.play .news-item:nth-child(3) { animation-delay: 0.55s; }

.news-item .news-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ok);
}

.verified::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--green-ok);
  border-bottom: 2px solid var(--green-ok);
  transform: rotate(-45deg);
  margin-top: -3px;
}

.news-tag {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notify-stage {
  min-height: 150px;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.notify {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid #e5e1d5;
  border-left: 3px solid var(--oxblood);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(24px);
}

.play .notify { animation: slideIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards; }
.play .notify:nth-child(1) { animation-delay: 0.2s; }
.play .notify:nth-child(2) { animation-delay: 0.9s; }
.play .notify:nth-child(3) { animation-delay: 1.6s; }

.notify b { font-weight: 600; display: block; }

.notify span { color: var(--ink-soft); font-size: 0.75rem; }

/* ---------- Phone mock ---------- */

.phone {
  width: 290px;
  background: var(--ink);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(25, 25, 25, 0.55);
}

.phone-top {
  display: flex;
  justify-content: center;
  padding: 6px 0 8px;
}

.phone-notch {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.phone-screen {
  background: var(--paper);
  border-radius: 24px;
  padding: 1.1rem 1rem 1.3rem;
  display: grid;
  gap: 0.75rem;
}

.phone-greeting {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.phone-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-size: 0.82rem;
}

.phone-card-alert { border-left: 3px solid var(--oxblood); }

.phone-card-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.phone-card p { color: var(--ink); }

.phone-doc-list { list-style: none; display: grid; gap: 0.35rem; }

.phone-doc-list li {
  display: flex;
  justify-content: space-between;
}

.phone-doc-list em {
  font-style: normal;
  color: var(--green-ok);
  font-weight: 600;
  font-size: 0.75rem;
}

.phone-doc-list li:last-child em { color: var(--amber); }

.phone-news { color: var(--ink-soft); }

.phone-anim .phone-card {
  opacity: 0;
  transform: translateY(12px);
}

.play.phone-anim .phone-card,
.play .phone-anim .phone-card { animation: rise 0.5s ease forwards; }

.play.phone-anim .phone-card:nth-of-type(1),
.play .phone-anim .phone-card:nth-of-type(1) { animation-delay: 0.2s; }
.play.phone-anim .phone-card:nth-of-type(2),
.play .phone-anim .phone-card:nth-of-type(2) { animation-delay: 0.45s; }
.play.phone-anim .phone-card:nth-of-type(3),
.play .phone-anim .phone-card:nth-of-type(3) { animation-delay: 0.7s; }

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease;
  min-width: 172px;
}

.store-badge:hover { background: var(--oxblood); border-color: var(--oxblood); }

.store-badge svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.store-badge .badge-text {
  display: grid;
  line-height: 1.25;
  text-align: left;
}

.store-badge .badge-text small {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge .badge-text b {
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--oxblood);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 { margin-bottom: 0.5rem; }

.step p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.steps-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Value grid ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.value-card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.value-card .value-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.8rem;
}

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 2.5rem 0;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
}

.stat span {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- Dark sections ---------- */

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark .section-lede { color: #b9b5aa; }

.firm-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.firm-copy {
  display: grid;
  gap: 1.25rem;
  color: #b9b5aa;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
  padding-top: 0.5rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: center;
}

.cta-band h2 { color: var(--paper); }

.cta-band p {
  margin-top: 1rem;
  color: #b9b5aa;
  font-weight: 300;
  max-width: 32rem;
  line-height: 1.75;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-card label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-card input,
.form-card select,
.form-card textarea {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--oxblood);
}

.form-note {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.9rem;
  align-content: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.contact-info p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.contact-info a { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 46rem;
  padding: clamp(2.5rem, 6vw, 4rem) 28px clamp(3.5rem, 8vw, 6rem);
  margin: 0 auto;
}

.legal .updated {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p, .legal li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.legal ul { padding-left: 1.25rem; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 28px;
}

.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 500;
  color: var(--oxblood);
  line-height: 1;
}

.notfound p {
  color: var(--ink-soft);
  margin: 1rem 0 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9b5aa;
  padding: 3.75rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2.5rem;
}

.footer-brand .brand-text small { color: #7e7a70; }

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 300;
  max-width: 22rem;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-nav-title {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7e7a70;
  margin-bottom: 0.4rem;
}

.footer-nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: #b9b5aa;
}

.footer-nav a:hover { color: var(--paper); }

.footer-meta {
  font-size: 0.78rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer-disclaimer {
  color: #7e7a70;
  font-weight: 300;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 243, 238, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #7e7a70;
}

.footer-bottom a {
  color: #b9b5aa;
  text-decoration: none;
  margin-left: 1.25rem;
}

.footer-bottom a:first-child { margin-left: 0; }

.footer-bottom a:hover { color: var(--paper); }

/* ---------- Keyframes ---------- */

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseX {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes settle {
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tickPop {
  to { transform: rotate(-45deg) scale(1); }
}

@keyframes scan {
  0% { opacity: 0; top: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 2px); }
}

@keyframes typeIn {
  from { max-width: 0; }
  to { max-width: 100%; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 96, 74, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(51, 96, 74, 0); }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mock-row, .vault-doc, .news-item, .notify, .timeline-item,
  .phone-anim .phone-card, .q-sent {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .q-answer { max-width: 100%; animation: none !important; }

  .audit-check::after { transform: rotate(-45deg) scale(1); animation: none !important; }

  .scan-line, .dot-pulse { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-grid,
  .firm-grid,
  .cta-band-inner,
  .feature-block {
    grid-template-columns: 1fr;
  }

  .feature-block:nth-child(even) .feature-copy { order: 1; }
  .feature-block:nth-child(even) .feature-visual { order: 2; }

  .split-visual { order: -1; }

  .cta-band-actions { justify-content: flex-start; }

  .trust-grid,
  .steps,
  .steps-4,
  .stat-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .practice-index a {
    grid-template-columns: 1fr auto;
  }

  .pi-num { display: none; }
}

@media (max-width: 760px) {
  .topbar-inner { justify-content: center; }
  .topbar span:first-child { display: none; }

  .site-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }

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

  .site-nav a {
    padding: 1rem 28px;
    border-top: 1px solid var(--hairline);
  }

  .site-nav a[aria-current="page"] { border-bottom: none; color: var(--oxblood); }

  .nav-toggle { display: flex; }

  .header-actions .btn { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .brand-text small { display: none; }

  .brand-logo { height: 38px; width: 38px; }
}
