/* Evident Marketing Site: Design System & Layout
   Palette: Deep Navy #142C43, Muted Teal #237C83, Soft Mint #A3D5C3,
   Cloud White #F5F7FA, Slate #253244, Muted Terracotta #B96B58 */

:root {
  --navy: #142C43;
  --navy-deep: #0D1E2E;
  --navy-soft: #1B3A57;
  --teal: #237C83;
  --teal-hover: #1C666C;
  --teal-tint: #E9F4F4;
  --teal-border: #C5E2E3;
  --mint: #A3D5C3;
  --mint-tint: #EFF8F4;
  --cloud: #F5F7FA;
  --slate: #253244;
  --terracotta: #B96B58;
  --terracotta-tint: #FAF0ED;

  --ink: #111D2B;
  --ink-secondary: #435366;
  --ink-muted: #64748B;
  --border: #E2E8F0;
  --border-subtle: #EDF2F7;
  --surface: #FFFFFF;

  --font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --max-w: 1140px;
  --max-prose: 740px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Containers */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container-prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container, .container-prose { padding: 0 28px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

/* Eyebrow & Typography helpers */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.mono {
  font-family: var(--font-mono);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Site Header (Sticky, Glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(20, 44, 67, 0.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (min-width: 640px) { .header-inner { padding: 0 28px; } }
@media (min-width: 1024px) { .header-inner { padding: 0 40px; } }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-link img {
  width: 24px;
  height: 28px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--navy);
  background: var(--cloud);
}

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-navy {
  height: 48px;
  padding: 0 22px;
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(20, 44, 67, 0.18);
}

.btn-navy:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(20, 44, 67, 0.45);
}

.btn-teal {
  height: 48px;
  padding: 0 22px;
  background: var(--teal);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(35, 124, 131, 0.22);
}

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

.btn-outline {
  height: 48px;
  padding: 0 20px;
  background: #FFFFFF;
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--cloud);
  border-color: #CBD5E1;
}

.btn-header {
  display: none;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 10px;
}

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

@media (min-width: 640px) {
  .btn-header { display: inline-flex; }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--navy);
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-bars { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.mobile-drawer.is-open {
  display: block;
}

@media (min-width: 900px) {
  .mobile-drawer.is-open { display: none; }
}

.mobile-drawer nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer a {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current="page"] {
  background: var(--cloud);
}

.mobile-drawer .drawer-cta {
  margin-top: 10px;
  background: var(--navy);
  color: #FFFFFF;
  text-align: center;
  font-weight: 600;
}

.mobile-drawer .drawer-cta:hover {
  background: var(--navy-soft);
}

/* ==========================================================================
   App Store Badge Button
   ========================================================================== */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--navy);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px -10px rgba(20, 44, 67, 0.55);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.app-store-btn:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(20, 44, 67, 0.65);
}

.app-store-btn--light {
  background: #FFFFFF;
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
}

.app-store-btn--light:hover {
  background: var(--cloud);
}

.app-store-btn .store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.app-store-btn .store-sub {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.01em;
}

.app-store-btn .store-main {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Homepage: Hero (Centered Editorial Showcase)
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(64% 48% at 50% 0%, rgba(163, 213, 195, 0.24) 0%, rgba(163, 213, 195, 0) 70%),
    radial-gradient(48% 40% at 50% 68%, rgba(35, 124, 131, 0.1) 0%, rgba(35, 124, 131, 0) 72%),
    linear-gradient(180deg, #FFFFFF 0%, var(--cloud) 100%);
}

@media (min-width: 1024px) {
  .hero { padding: 92px 0 104px; }
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #CDE4DE;
  box-shadow: 0 2px 10px -4px rgba(20, 44, 67, 0.1);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 124, 131, 0.16);
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.5rem, 5.8vw, 4.15rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.038em;
  color: var(--navy);
  text-wrap: balance;
}

.hero-accent {
  color: var(--teal);
}

.hero-lead {
  margin-top: 22px;
  font-size: clamp(1.06rem, 1.9vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 600px;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
  max-width: 520px;
}

/* Centered Phone Showcase + Floating Badges */
.hero-showcase {
  position: relative;
  margin-top: 52px;
  width: 100%;
  max-width: 880px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-showcase { margin-top: 64px; }
}

.hero-float {
  display: none;
}

@media (min-width: 960px) {
  .hero-float {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 44, 67, 0.08);
    border-radius: 16px;
    padding: 13px 16px;
    text-align: left;
    box-shadow: 0 20px 44px -18px rgba(13, 30, 46, 0.22);
    max-width: 248px;
  }

  .hero-float--left {
    left: 0;
    top: 22%;
  }

  .hero-float--right {
    right: 0;
    bottom: 20%;
  }

  .hero-float-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--teal-tint);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .hero-float-icon--navy {
    background: var(--navy);
    color: var(--mint);
  }

  .hero-float-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
  }

  .hero-float-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.35;
  }
}

/* ==========================================================================
   Realistic iPhone 17 Hardware Frame (Hero + How It Works)
   ========================================================================== */
.iphone17 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 348px;
  padding: 11px;
  border-radius: 54px;
  text-align: left;
  /* Brushed dark titanium chassis */
  background: linear-gradient(145deg, #525965 0%, #2b3038 22%, #171a20 55%, #2e343d 84%, #4c535f 100%);
  box-shadow:
    0 46px 90px -24px rgba(10, 22, 36, 0.48),
    0 14px 28px -12px rgba(10, 22, 36, 0.28),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3.5px #090b0e;
}

/* Inner black glass bezel */
.iphone17-bezel {
  position: relative;
  background: #050608;
  border-radius: 44px;
  padding: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Physical side buttons (Action, Vol+, Vol-, Side Power, Camera Control) */
.iphone17-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5a6270 0%, #2a3038 50%, #49505c 100%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.iphone17-btn--action { left: -3px; top: 112px; height: 26px; border-radius: 2px 0 0 2px; }
.iphone17-btn--vol-up { left: -3px; top: 158px; height: 48px; border-radius: 2px 0 0 2px; }
.iphone17-btn--vol-dn { left: -3px; top: 218px; height: 48px; border-radius: 2px 0 0 2px; }
.iphone17-btn--power  { right: -3px; top: 176px; height: 74px; border-radius: 0 2px 2px 0; }
.iphone17-btn--camera { right: -2.5px; top: 386px; height: 46px; width: 2.5px; border-radius: 0 2px 2px 0; opacity: 0.8; }

.iphone17-screen {
  position: relative;
  background: #F5F7FA; /* EvidentStyle.canvas */
  border-radius: 41px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 668px;
}

/* Authentic iOS Status Bar + Dynamic Island */
.ios-statusbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 22px 9px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #142C43;
  flex-shrink: 0;
}

.ios-time {
  justify-self: start;
  padding-left: 4px;
}

.ios-island {
  width: 96px;
  height: 27px;
  border-radius: 999px;
  background: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.ios-island-lens {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #2b4a78 0%, #101b2e 55%, #05070c 100%);
  box-shadow: inset 0 0 2px rgba(130, 180, 255, 0.45);
}

.ios-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #142C43;
}

/* iOS Home Indicator */
.ios-home-bar {
  margin-top: auto;
  padding: 10px 0 8px;
  display: flex;
  justify-content: center;
  background: #F5F7FA;
  flex-shrink: 0;
}

.ios-home-bar::after {
  content: "";
  width: 120px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(20, 44, 67, 0.28);
}

.phone-body {
  padding: 6px 15px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Exact SwiftUI TimelineView + HomeTabBar for Hero iPhone */
.sw-hero-week {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 4px 0 11px;
  border-bottom: 1px solid #DEE6EB;
}

.sw-hero-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sw-hero-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(222, 230, 235, 0.42);
  border: 1px solid rgba(222, 230, 235, 0.75);
  color: #4D5D6C;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
}

.sw-hero-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-hero-dot--has {
  background: rgba(163, 213, 195, 0.22);
  color: #1C6B72;
}

.sw-hero-dot--today {
  border: 2px solid #1C6B72;
}

.sw-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2px;
}

.sw-group-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #142C43;
}

.sw-group-count {
  font-size: 11px;
  color: #4D5D6C;
}

.sw-tline-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sw-tline-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.sw-tline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 34px;
}

.sw-tline-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(163, 213, 195, 0.24);
  color: #1C6B72;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(28, 107, 114, 0.14);
}

.sw-tline-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-tline-line {
  width: 1.5px;
  flex: 1;
  min-height: 14px;
  margin-top: 4px;
  margin-bottom: -9px;
  background: #D5E0E6;
}

.sw-tline-card {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border-radius: 15px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(20, 44, 67, 0.055);
  border: 1px solid rgba(222, 230, 235, 0.7);
}

.sw-tline-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  color: #4D5D6C;
}

.sw-tline-lock {
  color: #1C6B72;
  flex-shrink: 0;
}

.sw-tline-text {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #142C43;
  line-height: 1.32;
}

.sw-tline-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #4D5D6C;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-tline-incident {
  color: #1C6B72;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Floating Glass HomeTabBar (mirrors JournalHome.swift) */
.sw-tabbar-wrap {
  margin-top: auto;
  padding: 10px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0) 0%, #F5F7FA 36%);
}

.sw-tabbar-pill {
  flex: 1;
  height: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(222, 230, 235, 0.9);
  box-shadow: 0 8px 20px -8px rgba(20, 44, 67, 0.16);
}

.sw-tab-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 500;
  color: #4D5D6C;
}

.sw-tab-item.is-selected {
  background: rgba(163, 213, 195, 0.28);
  color: #1C6B72;
  font-weight: 600;
}

.sw-fab-log {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #1C6B72;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(28, 107, 114, 0.55);
}

.sw-tabbar-wrap + .ios-home-bar {
  margin-top: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.app-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mint-tint);
  color: #165B5F;
  font-size: 11px;
  font-weight: 600;
}

.app-date-group {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.entry-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: 0 1px 3px rgba(20, 44, 67, 0.04);
}

.entry-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.entry-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--teal-tint);
  color: var(--teal);
}

.entry-tag--incident {
  background: var(--terracotta-tint);
  color: var(--terracotta);
}

.entry-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.entry-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.entry-meta {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-seal-bar {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--teal);
}

.integrity-card {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 14px;
}

.integrity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.integrity-status {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.integrity-hash {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(245, 247, 250, 0.78);
  word-break: break-all;
}

/* ==========================================================================
   Live Seal Ticker & Key Metrics Strip
   ========================================================================== */
.metrics-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}

.metrics-top {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.live-seal-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--navy);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 124, 131, 0.18);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

.metric-cell {
  padding: 22px 16px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metric-cell:nth-child(2n) { border-right: 0; }

@media (min-width: 768px) {
  .metric-cell { border-bottom: 0; border-right: 1px solid var(--border-subtle); }
  .metric-cell:nth-child(2n) { border-right: 1px solid var(--border-subtle); }
  .metric-cell:last-child { border-right: 0; }
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.metric-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Homepage: How It Works (Interactive Walkthrough)
   ========================================================================== */
.section {
  padding: 72px 0;
}

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

.section-cloud {
  background: var(--cloud);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 660px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-secondary);
}

.walkthrough-grid {
  margin-top: 48px;
  display: grid;
  gap: 36px;
  align-items: start;
}

@media (min-width: 960px) {
  .walkthrough-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  text-align: left;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.step-item:hover {
  border-color: #CBD5E1;
}

.step-item.is-active {
  border-color: var(--teal);
  background: #FFFFFF;
  box-shadow: 0 12px 30px -16px rgba(20, 44, 67, 0.22), 0 0 0 1px var(--teal);
}

.step-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.step-item h3 {
  margin-top: 6px;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--navy);
}

.step-item p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.step-spec {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Preview Stage: Real SwiftUI-Matched iPhone 17 Mockup */
.stage-sticky {
  position: sticky;
  top: 84px;
  display: flex;
  justify-content: center;
}

.stage-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeSlide 0.22s ease;
}

.stage-panel.is-active {
  display: flex;
}

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

/* SwiftUI Evident App Primitives inside Mockup */
.sw-content {
  padding: 6px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.sw-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 16px 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #142C43;
}

.sw-nav-accent {
  color: #1C6B72;
}

.sw-card {
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 16px;
  padding: 14px;
}

.sw-card-tight {
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 16px;
  overflow: hidden;
}

.sw-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4D5D6C;
  margin-bottom: 8px;
}

.sw-title-lg {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #142C43;
  line-height: 1.15;
}

.sw-sub {
  font-size: 12.5px;
  color: #4D5D6C;
  line-height: 1.4;
}

.sw-entry-text {
  font-size: 15px;
  font-weight: 600;
  color: #142C43;
  line-height: 1.35;
}

.sw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.sw-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(163, 213, 195, 0.22);
  color: #1C6B72;
  font-size: 11.5px;
  font-weight: 600;
}

.sw-pill-incident {
  background: rgba(185, 107, 88, 0.14);
  color: #B96B58;
}

.sw-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(163, 213, 195, 0.22);
  color: #1C6B72;
  font-size: 11.5px;
  font-weight: 600;
}

.sw-status-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.sw-status-row + .sw-status-row {
  margin-top: 4px;
}

.sw-status-icon {
  color: #1C6B72;
  flex-shrink: 0;
  margin-top: 2px;
}

.sw-status-title {
  font-size: 13px;
  font-weight: 600;
  color: #142C43;
  line-height: 1.3;
}

.sw-status-detail {
  margin-top: 2px;
  font-size: 11.5px;
  color: #4D5D6C;
  line-height: 1.4;
}

/* AmendmentBlock (accent left bar) */
.sw-amend-wrap {
  padding-top: 2px;
}

.sw-amend-body {
  padding-left: 11px;
  border-left: 2px solid #1C6B72;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sw-amend-text {
  font-size: 13px;
  color: #142C43;
  line-height: 1.45;
}

.sw-bottom-actions {
  margin-top: auto;
  padding: 10px 16px 16px;
  border-top: 1px solid #DEE6EB;
  background: #F5F7FA;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sw-btn-mint {
  height: 42px;
  border-radius: 12px;
  background: rgba(163, 213, 195, 0.26);
  color: #1C6B72;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sw-btn-navy {
  height: 42px;
  border-radius: 12px;
  background: #142C43;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* TimelineView header & week strip */
.sw-tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 4px;
}

.sw-tl-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #1C6B72;
}

.sw-tl-brand img {
  width: 22px;
  height: 26px;
}

.sw-tl-actions {
  display: flex;
  gap: 8px;
}

.sw-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  color: #142C43;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-circle-btn--active {
  background: #1C6B72;
  border-color: #1C6B72;
  color: #FFFFFF;
}

.sw-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px 0 10px;
  border-bottom: 1px solid #DEE6EB;
}

.sw-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sw-day-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(222, 230, 235, 0.45);
  border: 1px solid rgba(222, 230, 235, 0.8);
  color: #4D5D6C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.sw-day-dot--has {
  background: rgba(163, 213, 195, 0.22);
  color: #1C6B72;
}

.sw-day-dot--today {
  background: rgba(163, 213, 195, 0.34);
  border: 2px solid #1C6B72;
  color: #1C6B72;
}

.sw-day-w {
  font-size: 10px;
  color: #4D5D6C;
}

.sw-day-n {
  font-size: 12px;
  font-weight: 600;
  color: #142C43;
}

.sw-day--today .sw-day-n {
  color: #1C6B72;
}

.sw-tl-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 14px;
  padding: 11px 12px;
}

.sw-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(163, 213, 195, 0.24);
  color: #1C6B72;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-avatar--incident {
  background: rgba(185, 107, 88, 0.14);
  color: #B96B58;
}

/* ReportBuilder step progress & toggle rows */
.sw-rb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sw-rb-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #4D5D6C;
}

.sw-progress-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.sw-progress-seg {
  height: 4px;
  border-radius: 999px;
  background: #DEE6EB;
}

.sw-progress-seg.is-filled {
  background: #1C6B72;
}

.sw-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #EDF2F6;
}

.sw-toggle-row:last-child {
  border-bottom: 0;
}

.sw-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #DEE6EB;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.22s ease;
}

.sw-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-switch.is-on {
  background: #1C6B72;
}

.sw-switch.is-on::after {
  left: 18px;
}

/* Step 2: PDF Sheet Preview */
.sw-pdf-sheet {
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px -14px rgba(20, 44, 67, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-pdf-cover-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #1C6B72;
}

.sw-pdf-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #142C43;
}

.sw-pdf-sub {
  font-size: 11.5px;
  color: #4D5D6C;
}

.sw-pdf-divider {
  height: 1px;
  background: #EDF2F6;
  margin: 4px 0;
}

.sw-pdf-entry {
  padding: 6px 0;
}

.sw-pdf-entry-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #1C6B72;
}

.sw-pdf-entry-body {
  margin-top: 2px;
  font-size: 12px;
  color: #142C43;
  line-height: 1.4;
}

.sw-pdf-verif {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(163, 213, 195, 0.22);
  color: #1C6B72;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Step 3: Face ID LockScreen (mirrors AppLock.swift) */
.sw-lock-screen {
  align-items: center;
  text-align: center;
}

.sw-lock-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sw-lock-icon-tile {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #142C43;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -12px rgba(20, 44, 67, 0.45);
}

.sw-faceid-modal {
  width: 148px;
  padding: 20px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 44px -12px rgba(20, 44, 67, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: scale(0.92);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-protect-overlay.is-open .sw-faceid-modal {
  transform: scale(1);
}

.sw-faceid-glyph {
  color: #142C43;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-faceid-modal.is-scanning .sw-faceid-scan {
  color: #1C6B72;
  animation: swFacePulse 1s ease-in-out infinite;
}

@keyframes swFacePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.72; }
}

.sw-faceid-done {
  display: none;
  color: #1C6B72;
}

.sw-faceid-modal.is-unlocked .sw-faceid-scan {
  display: none;
}

.sw-faceid-modal.is-unlocked .sw-faceid-done {
  display: block;
  animation: fadeSlide 0.22s ease;
}

.sw-faceid-label {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: #142C43;
}

/* SettingsCardRow */
.sw-set-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid #EDF2F6;
}

.sw-set-row:last-child {
  border-bottom: 0;
}

.sw-set-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(163, 213, 195, 0.24);
  color: #1C6B72;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-set-val {
  margin-left: auto;
  font-size: 12px;
  color: #4D5D6C;
  white-space: nowrap;
}

/* ==========================================================================
   Step 1 Animated Flow: Log a moment -> Protecting -> Entry protected
   ========================================================================== */
.sw-flow-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sw-flow-view {
  display: none;
  flex-direction: column;
  flex: 1;
}

.sw-flow-view.is-shown {
  display: flex;
  animation: fadeSlide 0.28s ease;
}

.sw-composer-box {
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 16px;
  padding: 13px 14px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sw-composer-text {
  font-size: 14.5px;
  font-weight: 500;
  color: #142C43;
  line-height: 1.4;
  min-height: 42px;
}

.sw-composer-placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.sw-caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: #1C6B72;
  vertical-align: -2px;
  margin-left: 1px;
  animation: swBlink 0.9s steps(1) infinite;
}

@keyframes swBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.sw-attach-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-attach-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sw-photo-preview {
  width: 100%;
  height: 112px;
  overflow: hidden;
  background: #DCEEE9;
}

.sw-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-attach-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
}

.sw-protect-btn {
  height: 46px;
  border-radius: 13px;
  background: #142C43;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.sw-protect-btn.is-pressed {
  transform: scale(0.96);
  opacity: 0.88;
}

.sw-protect-btn.is-sealed {
  background: rgba(163, 213, 195, 0.28);
  color: #1C6B72;
}

.sw-seal-mark {
  display: none;
}

.sw-flow-stage.is-sealed .sw-seal-mark {
  display: block;
  animation: fadeSlide 0.28s ease;
}

.sw-flow-stage.is-sealed .sw-composer-box {
  border-color: #A3D5C3;
  box-shadow: 0 0 0 2px rgba(163, 213, 195, 0.22);
}

.sw-sealed-strip {
  background: #FFFFFF;
  border: 1px solid #C5E2E3;
  border-radius: 14px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

.sw-flow-stage.is-sealed .sw-sealed-strip {
  opacity: 1;
  transform: translateY(0);
  max-height: 90px;
  padding: 9px 12px;
  border-width: 1px;
}

.sw-sealed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #4D5D6C;
}

.sw-sealed-row strong {
  color: #142C43;
  font-weight: 600;
}

.sw-protect-caption {
  margin-top: 7px;
  font-size: 11px;
  color: #4D5D6C;
  text-align: center;
}

/* ProtectionProgress modal overlay (mirrors EntryEditor.swift) */
.sw-protect-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(20, 44, 67, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.sw-protect-overlay.is-open {
  opacity: 1;
}

.sw-protect-modal {
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 22px 44px -12px rgba(20, 44, 67, 0.28);
  transform: scale(0.95);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-protect-overlay.is-open .sw-protect-modal {
  transform: scale(1);
}

.sw-protect-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #142C43;
  margin-bottom: 14px;
}

.sw-pstep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
  color: #4D5D6C;
  transition: color 0.2s ease;
}

.sw-pstep.is-active,
.sw-pstep.is-done {
  color: #142C43;
  font-weight: 500;
}

.sw-pstep-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-pstep-circle {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.6px solid #CBD5E1;
}

.sw-pstep-spin {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid rgba(28, 107, 114, 0.22);
  border-top-color: #1C6B72;
  animation: swSpin 0.75s linear infinite;
}

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

.sw-pstep-check {
  color: #1C6B72;
}

.sw-pstep .sw-pstep-spin,
.sw-pstep .sw-pstep-check { display: none; }
.sw-pstep.is-active .sw-pstep-circle { display: none; }
.sw-pstep.is-active .sw-pstep-spin { display: block; }
.sw-pstep.is-done .sw-pstep-circle,
.sw-pstep.is-done .sw-pstep-spin { display: none; }
.sw-pstep.is-done .sw-pstep-check { display: block; }

.sw-protect-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #EDF2F6;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4D5D6C;
}

/* RecordTable card (mirrors EntryEditor.swift confirmation) */
.sw-rtable {
  background: #FFFFFF;
  border: 1px solid #DEE6EB;
  border-radius: 16px;
  overflow: hidden;
}

.sw-rtable-head {
  display: flex;
  justify-content: space-between;
  padding: 9px 13px;
  background: #F8FAFC;
  border-bottom: 1px solid #EDF2F6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #4D5D6C;
}

.sw-rtable-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 13px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 12px;
}

.sw-rtable-row:last-child { border-bottom: 0; }
.sw-rtable-k { color: #4D5D6C; }
.sw-rtable-v { font-weight: 600; color: #142C43; text-align: right; }

/* ==========================================================================
   Trust Pillars (4-column grid)
   ========================================================================== */
.pillars-grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.pillar-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Editorial Pull Quote Band
   ========================================================================== */
.quote-band {
  background: var(--navy);
  color: #FFFFFF;
  padding: 72px 0;
  text-align: center;
}

.quote-band blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-wrap: balance;
}

.quote-band .quote-sub {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

/* ==========================================================================
   Pricing Summary Card (Homepage)
   ========================================================================== */
.pricing-grid {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.plan-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.plan-card--featured {
  border-color: var(--navy);
  box-shadow: 0 20px 44px -22px rgba(20, 44, 67, 0.25);
}

.plan-price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}

.plan-list {
  margin-top: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-check {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

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

.faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--teal-tint);
  color: var(--teal);
}

.faq-answer {
  padding: 0 0 22px;
  max-width: 720px;
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.68;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* ==========================================================================
   Final CTA Band
   ========================================================================== */
.cta-band {
  padding: 76px 0;
  background: linear-gradient(180deg, var(--cloud) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--ink-secondary);
}

.cta-band .cta-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-band .cta-footnote {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Subpages (Editorial Header & Prose)
   ========================================================================== */
.page-hero {
  padding: 56px 0 40px;
  background: var(--cloud);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero .lead {
  margin-top: 14px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 640px;
}

.page-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.prose-body {
  padding: 52px 0 84px;
}

.prose-body h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 24px;
  font-weight: 700;
}

.prose-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose-body h3 {
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--slate);
}

.prose-body p {
  margin-top: 12px;
  font-size: 15.8px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.prose-body ul,
.prose-body ol {
  margin-top: 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

.prose-body a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-body a:hover {
  color: var(--navy);
}

.prose-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--cloud);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--navy);
}

.callout {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}

.callout-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.callout p {
  margin-top: 6px;
  font-size: 14.8px;
}

.toc-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 36px;
}

.toc-box ul {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.toc-box a {
  text-decoration: none;
  color: var(--navy);
  font-size: 14.5px;
}

.toc-box a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ==========================================================================
   Contact Page Cards & Form
   ========================================================================== */
.contact-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 720px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.contact-card h3 {
  margin-top: 8px;
  font-size: 17px;
}

.contact-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 12px 30px -20px rgba(20, 44, 67, 0.2);
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 124, 131, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.char-count {
  margin-top: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: var(--mint-tint);
  border: 1px solid #B6DFCE;
  color: var(--navy);
}

.form-status--err {
  background: var(--terracotta-tint);
  border: 1px solid #E5BFB4;
  color: #7A3929;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #9FB0C2;
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  flex: 1 1 280px;
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.footer-logo img {
  width: 24px;
  height: 28px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #9FB0C2;
}

.footer-hash {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(163, 213, 195, 0.72);
  word-break: break-all;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 68px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #DCE5EF;
  margin-bottom: 4px;
}

.footer-col a {
  color: #9FB0C2;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-legal {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: #7D91A6;
}

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