/* ==========================================================================
   SafeDeal — design system v2
   Theme: refined dark, editorial serif headlines, single restrained accent,
   private-bank fintech feel.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:           #08090d;
  --bg-elev:      #0e1017;
  --bg-card:      #12141c;
  --bg-card-h:    #161922;
  --bg-soft:      #0b0d13;

  /* lines */
  --line:         rgba(255, 255, 255, 0.06);
  --line-strong:  rgba(255, 255, 255, 0.10);
  --line-bright:  rgba(255, 255, 255, 0.18);

  /* text */
  --ink:          #eef0f5;
  --ink-soft:     #c2c6d4;
  --muted:        #8a8f9e;
  --dim:          #5b606e;
  --faint:        #3a3e49;

  /* accents */
  --accent:       #6b8cff;     /* refined blue, primary */
  --accent-soft:  #8aa6ff;
  --accent-deep:  #3a5ad9;
  --accent-ring:  rgba(107, 140, 255, 0.22);
  --gold:         #c9a96a;     /* sparingly: premium signals */
  --gold-soft:    #d8bd86;
  --success:      #4ade80;

  /* radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-mid:  0 8px 24px rgba(0,0,0,0.35);
  --shadow-deep: 0 30px 80px rgba(0,0,0,0.55);

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 18% -5%, rgba(107, 140, 255, 0.10), transparent 65%),
    radial-gradient(700px 420px at 88% 8%, rgba(107, 140, 255, 0.05), transparent 70%);
}

main, .nav, .footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

img, svg { display: block; max-width: 100%; }

/* ==========================================================================
   Typography
   ========================================================================== */

.display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-variation-settings: 'opsz' 96, 'SOFT' 100;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink);
}

.display em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #b2c1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.04em;
}

h1.display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2.display { font-size: clamp(2rem, 3.6vw, 3rem); }

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

p { color: var(--muted); }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.link {
  color: var(--accent-soft);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}
.link:hover { border-bottom-color: var(--accent-soft); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-sm { height: 36px; padding: 0 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--ink);
  color: #0a0c12;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(238, 240, 245, 0.10);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-bright);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.28);
  color: var(--ink);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 1.05rem;
}
.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  color: var(--accent-soft);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-link-quiet {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.15s;
}
.nav-link-quiet:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 88px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.hero h1.display { margin-bottom: 24px; }

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.meta-item {
  font-size: 0.92rem;
  color: var(--muted);
}
.meta-item strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: 6px;
}
.meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

/* ----- Hero product mockup ----- */

.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-bg {
  position: absolute;
  inset: -60px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  mask: radial-gradient(circle at 50% 50%, #000 25%, transparent 72%);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 25%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}
.hero-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(107, 140, 255, 0.16), transparent 80%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.mock-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 60%),
    var(--bg-card);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    var(--shadow-deep);
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.mock-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mock-title {
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(107, 140, 255, 0.10);
  border: 1px solid rgba(107, 140, 255, 0.24);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent-soft);
  white-space: nowrap;
}
.mock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.18);
}

.mock-parties {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.party {
  display: flex;
  align-items: center;
  gap: 12px;
}
.party-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f6eef, #6b8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.74rem;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.party-avatar.alt { background: linear-gradient(135deg, #c9a96a, #d8bd86); color: #2a2208; }
.party-info { display: flex; flex-direction: column; min-width: 0; }
.party-info span {
  font-size: 0.7rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.party-info strong {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 1px;
}
.party-arrow {
  width: 28px;
  height: 18px;
  color: var(--dim);
}

.mock-amount {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.amount-label {
  display: block;
  font-size: 0.74rem;
  color: var(--dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.amount-value {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
  margin-bottom: 6px;
}
.amount-decimal { color: var(--muted); }
.amount-currency {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.mock-progress { margin-bottom: 28px; }
.prog-track {
  position: relative;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin: 8px 6px 18px;
}
.prog-fill {
  position: absolute;
  inset: 0;
  width: 66.6%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 2px;
}
.prog-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 2px solid var(--faint);
  border-radius: 50%;
}
.prog-node.done    { border-color: var(--accent); background: var(--accent); }
.prog-node.current { border-color: var(--accent-soft); background: var(--bg-card); box-shadow: 0 0 0 4px var(--accent-ring); }

.prog-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  font-size: 0.74rem;
  color: var(--dim);
}
.prog-labels span { text-align: center; }
.prog-labels span:first-child { text-align: left; }
.prog-labels span:last-child  { text-align: right; }
.prog-labels span.done    { color: var(--muted); }
.prog-labels span.current { color: var(--accent-soft); font-weight: 500; }

.mock-actions {
  display: flex;
  gap: 10px;
}
.mock-actions .btn { flex: 1; }

/* ==========================================================================
   Logo wall
   ========================================================================== */

.logo-wall {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.logo-wall-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.logo-wall-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.wm {
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  user-select: none;
}
.wm:hover { opacity: 1; color: var(--ink-soft); }

.wm-1 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.wm-2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.34em;
}
.wm-3 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}
.wm-4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.wm-5 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.42em;
}
.wm-6 {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 120px 0;
}
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-head h2 { margin-bottom: 18px; }
.section-head .section-sub { font-size: 1.05rem; }
.section-head-left { text-align: left; margin-left: 0; margin-right: 0; margin-bottom: 0; }

.section-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   How it works — timeline
   ========================================================================== */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.timeline li::marker { content: none; }
.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--line-strong) 8%,
    var(--line-strong) 92%,
    transparent);
}

.t-step {
  position: relative;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.t-step:first-child { border-left: 0; padding-left: 0; }
.t-step:last-child { padding-right: 0; }

.t-num {
  position: relative;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-soft);
  margin-bottom: 22px;
  z-index: 1;
}

.t-step h3 { margin-bottom: 8px; }
.t-step p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   Services
   ========================================================================== */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.svc {
  background: var(--bg-soft);
  padding: 36px 32px;
  transition: background 0.2s;
  position: relative;
}
.svc:hover {
  background: var(--bg-card-h);
}

.svc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(107, 140, 255, 0.08);
  border: 1px solid rgba(107, 140, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  margin-bottom: 24px;
}
.svc-icon svg { width: 18px; height: 18px; }

.svc h3 { margin-bottom: 10px; font-size: 1.08rem; }
.svc p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.quote-section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 8rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.18;
  margin-bottom: -32px;
  user-select: none;
}
.quote blockquote {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 36px;
}
.quote blockquote em {
  font-style: italic;
  color: var(--accent-soft);
}
.quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96a, #8a6b2f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1a1306;
  font-size: 0.82rem;
}
.quote figcaption strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.quote figcaption span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   Security & compliance
   ========================================================================== */

.security-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.security-text h2 { margin-bottom: 18px; }
.security-text .section-sub { margin-bottom: 40px; }

.sec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.sec-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.sec-list li:last-child { border-bottom: 1px solid var(--line); }

.sec-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}
.sec-list strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.sec-list span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.compliance {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px;
}
.compliance-head {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.badge {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.badge:hover {
  border-color: var(--line-bright);
  background: var(--bg-elev);
}
.badge-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.badge-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.compliance-foot {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.5;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.price {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: all 0.22s;
}
.price:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

.price.featured {
  background:
    linear-gradient(180deg, rgba(107, 140, 255, 0.06) 0%, rgba(107, 140, 255, 0) 100%),
    var(--bg-card);
  border-color: rgba(107, 140, 255, 0.32);
  box-shadow: 0 20px 60px rgba(107, 140, 255, 0.08);
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
}

.price-tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-value .num {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.price-value .pct {
  font-size: 1.6rem;
  color: var(--muted);
  font-weight: 400;
}
.price-value .per {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-range {
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.price-feats {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.price-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l5 5L20 7' stroke='%236b8cff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ---- Pricing callout (above tier grid) ---- */

.price-callout {
  max-width: 720px;
  margin: 0 auto 40px;
  background:
    linear-gradient(135deg, rgba(107,140,255,0.10) 0%, rgba(168,85,247,0.06) 100%),
    var(--bg-card);
  border: 1px solid rgba(107,140,255,0.28);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(107,140,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.price-callout-text strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 0.96rem;
}
.price-callout-text span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
}

.price-value .num.custom-num {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.price-feats li strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .price-callout { padding: 14px 16px; gap: 12px; }
  .price-callout-text strong { font-size: 0.92rem; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line);
  transition: border-color 0.2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item[open] { border-top-color: var(--line-bright); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-soft); }

.chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}
.chev::before, .chev::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--muted);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.chev::before { transform: translate(-50%, -50%) rotate(0deg); }
.chev::after  { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .chev::before { background: var(--accent-soft); }

.faq-a {
  padding: 0 0 26px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section { padding-bottom: 140px; }

.cta {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(107, 140, 255, 0.16), transparent 65%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-xl);
  padding: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cta-head h2 { margin-bottom: 14px; }
.cta-head p { color: var(--muted); max-width: 480px; }
.cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-tag {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.18s;
}
.footer-social a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(107, 140, 255, 0.10);
}

.footer-col h4 { margin-bottom: 18px; }
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--dim);
  gap: 16px;
}
.footer-loc { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { min-height: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .t-step { border-left: 0; padding: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; gap: 56px; }
  .compliance { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px;
    gap: 14px;
  }
  .nav.is-open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(100% + 215px);
    left: 28px;
    right: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero { padding: 64px 0 72px; }
  .hero h1.display { font-size: 2.4rem; }
  .lead { font-size: 1rem; }
  .hero-meta { gap: 10px; }
  .meta-sep { display: none; }

  .mock-card { padding: 22px; }
  .mock-parties { grid-template-columns: 1fr; gap: 12px; }
  .party-arrow { display: none; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 48px; }
  .svc-grid, .timeline { grid-template-columns: 1fr; }
  .svc { padding: 28px 24px; }

  .logo-wall-grid { gap: 24px; justify-content: center; }
  .wm { font-size: 1rem !important; letter-spacing: 0.12em !important; }
  .wm-1, .wm-4, .wm-6 { font-size: 1.2rem !important; letter-spacing: 0 !important; }

  .quote blockquote { font-size: 1.25rem; }
  .cta { padding: 36px 28px; flex-direction: column; align-items: stretch; text-align: left; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Sub-pages: /create and /deal
   ========================================================================== */

.page {
  padding: 72px 0 120px;
  min-height: calc(100vh - 72px);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 32px;
  padding: 4px 0;
  transition: color 0.15s;
}
.back-link:hover { color: var(--ink); }

.page-head {
  margin-bottom: 48px;
  text-align: left;
  max-width: none;
}
.page-head .section-kicker { margin-bottom: 16px; }
.page-head h1 { margin-bottom: 16px; }
.page-head .lead { font-size: 1.02rem; max-width: 560px; }

/* ---- Form blocks ---- */

.deal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--bg-card);
}

.form-block-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field:last-child { margin-bottom: 0; }

.field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.field-req,
.field-opt {
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 2px 7px;
  border-radius: 999px;
}
.field-req { color: var(--accent-soft); background: rgba(107,140,255,0.10); border: 1px solid rgba(107,140,255,0.22); }
.field-opt { color: var(--dim);         background: rgba(255,255,255,0.02); border: 1px solid var(--line-strong); }

.field input,
.field textarea,
.field select,
.tx-form input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input::placeholder,
.field textarea::placeholder,
.tx-form input::placeholder {
  color: var(--dim);
}
.field input:hover,
.field textarea:hover,
.field select:hover,
.tx-form input:hover {
  border-color: rgba(255,255,255,0.18);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.tx-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.field input:invalid:not(:placeholder-shown),
.tx-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(239,68,68,0.45);
}
.field textarea {
  resize: vertical;
  min-height: 88px;
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238a8f9e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.tx-form input { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.88rem; }

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row-amount {
  grid-template-columns: 1.4fr 1fr 1fr;
}
.field-row .field { margin-bottom: 0; }

.form-summary {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 18px 22px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.summary-row span { color: var(--muted); }
.summary-row strong {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.05rem;
}

.summary-note {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}
.summary-star {
  color: var(--accent-soft);
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.summary-note strong {
  color: var(--ink);
  font-weight: 600;
}
.summary-note span:last-child > span {
  color: var(--ink);
  font-weight: 500;
}

.btn-success {
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  color: #022c1a !important;
  border-color: #10b981 !important;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.form-footnote {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  padding: 0 8px;
  margin-top: 4px;
}

.form-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.30);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- Deal status page ---- */

.deal-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.deal-page-id {
  font-size: 0.74rem;
  color: var(--dim);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.deal-page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.deal-page-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 540px;
}

.deal-page-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.deal-page-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.status-pending  { background: rgba(245,158,11,0.08);  border: 1px solid rgba(245,158,11,0.28);  color: #fbbf24; }
.status-active   { background: rgba(107,140,255,0.10); border: 1px solid rgba(107,140,255,0.28); color: var(--accent-soft); }
.status-released { background: rgba(74,222,128,0.08);  border: 1px solid rgba(74,222,128,0.28);  color: #4ade80; }
.status-disputed { background: rgba(239,68,68,0.08);   border: 1px solid rgba(239,68,68,0.32);   color: #fca5a5; }

.deal-card-block {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 18px;
}

.deal-parties {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.deal-amount-block {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.deal-amount-block .amount-value {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: 4px;
}

.action-panel {
  background: var(--bg-card);
  border: 1px solid var(--accent-ring);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 18px;
}
.action-panel:empty { display: none; }

.deal-section-h {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.deal-section-h .muted { color: var(--muted); font-weight: 400; }

.action-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.action-desc strong { color: var(--ink); font-weight: 500; }

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.address-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 4px;
}
.address-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 500;
  margin-bottom: 10px;
}
.address-value {
  font-size: 0.92rem;
  color: var(--ink);
  word-break: break-all;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.18s;
}
.address-value.copied {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.tx-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tx-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

/* Timeline log */

.deal-timeline {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 32px;
  margin-bottom: 18px;
}

.tlog {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tlog li::marker { content: none; }
.tlog-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tlog-item:last-child { border-bottom: 0; }
.tlog-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  margin-left: 5px;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.tlog-label {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.tlog-ts {
  font-size: 0.78rem;
  color: var(--muted);
}
.small { font-size: 0.8rem; }

.deal-page-foot {
  text-align: center;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.deal-page-foot p { margin: 0; }

/* Loading / empty */

.page-loading,
.page-empty {
  text-align: center;
  padding: 100px 0;
}
.page-loading p { color: var(--muted); }
.page-empty h1 { margin-bottom: 16px; }
.page-empty .lead { max-width: 480px; margin: 0 auto 28px; }

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 18px;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---- Create success state ---- */

.create-success {
  text-align: center;
  padding-top: 8px;
}
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  margin: 0 auto 24px;
  box-shadow: 0 10px 28px rgba(107,140,255,0.28);
}
.create-success h2 { margin-bottom: 14px; }
.create-success .lead { max-width: 540px; margin: 0 auto 40px; }
.create-success .lead strong { color: var(--ink); }

.share-box {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}
.share-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.share-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.share-url-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.share-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  word-break: break-all;
  line-height: 1.45;
  display: flex;
  align-items: center;
}
.share-url-wrap .btn { flex-shrink: 0; align-self: center; }
.btn.copied {
  background: var(--accent-soft) !important;
  border-color: var(--accent-soft) !important;
  color: var(--bg) !important;
}

.success-cta { text-align: center; margin-bottom: 16px; }
.success-cta-hint {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.success-cta .action-row { justify-content: center; }

/* ---- Deal page: role chip + aside grouping ---- */

.deal-page-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.role-chip.role-buyer  { color: var(--accent-soft); background: rgba(107,140,255,0.08); border: 1px solid rgba(107,140,255,0.24); }
.role-chip.role-seller { color: var(--gold-soft);   background: rgba(201,169,106,0.08); border: 1px solid rgba(201,169,106,0.28); }
.role-chip.role-public { color: var(--muted);       background: rgba(255,255,255,0.02); border: 1px solid var(--line-strong); }

.readonly-notice {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.readonly-notice strong { color: var(--ink); margin-right: 4px; }

/* Sub-page responsive */
@media (max-width: 720px) {
  .deal-page-aside { align-items: flex-start; }
  .share-url { font-size: 0.74rem; }
  .share-url-wrap { flex-direction: column; align-items: stretch; }
  .share-url-wrap .btn { align-self: stretch; }
  .container-narrow { padding: 0 22px; }
  .page { padding: 48px 0 80px; }
  .page-head { margin-bottom: 36px; }
  .form-block { padding: 22px; }
  .field-row,
  .field-row-amount { grid-template-columns: 1fr; }

  .deal-page-head { flex-direction: column; gap: 16px; }
  .deal-card-block { padding: 24px; }
  .deal-parties { grid-template-columns: 1fr; gap: 16px; }
  .deal-parties .party-arrow { display: none; }
  .action-panel { padding: 22px 24px; }
  .deal-timeline { padding: 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
