/* NotarEase portfolio templates — self-contained (no Tailwind CDN; CSP blocks it) */

:root {
  --ink: #0f1a24;
  --ink-soft: #3a4a58;
  --slate: #1c2e3d;
  --seal: #0d6e6e;
  --seal-dark: #0a5555;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --green-soft: #dcfce7;
  --green: #16a34a;
  --purple-soft: #f3e8ff;
  --purple: #9333ea;
  --paper: #f8fafc;
  --white: #fff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 2.5rem;
}

main.container,
.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-xs { max-width: 20rem; }

.w-full { width: 100%; }
.h-auto { height: auto; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.max-h-48 { max-height: 12rem; }

.hidden { display: none !important; }
.block { display: block; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.flex-shrink-0 { flex-shrink: 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 1.15; }

.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: var(--blue); }
.text-green-600 { color: var(--green); }
.text-purple-600 { color: var(--purple); }
.text-red-500 { color: #ef4444; }

.bg-gray-50 { background: var(--paper); }
.bg-gray-100 { background: #f3f4f6; }
.bg-gray-200 { background: #e5e7eb; }
.bg-white { background: var(--white); }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-100 { background: var(--blue-soft); }
.bg-blue-600 { background: var(--blue); }
.bg-green-100 { background: var(--green-soft); }
.bg-purple-100 { background: var(--purple-soft); }

.bg-gradient-to-r {
  background: linear-gradient(90deg, var(--blue) 0%, #5b21b6 100%);
}
.from-blue-600 { /* paired with bg-gradient-to-r */ }
.to-purple-600 { /* paired with bg-gradient-to-r */ }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 12px rgba(15, 26, 36, 0.08); }
.shadow-lg { box-shadow: 0 10px 28px rgba(15, 26, 36, 0.12); }

.border { border: 1px solid var(--border); }
.border-2 { border-width: 2px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.ml-4 { margin-left: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; gap: 2rem; }
.grid-cols-1 { grid-template-columns: 1fr; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Kill default list markers (badge numbers are custom spans) */
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

section {
  margin-bottom: 0.5rem;
}

/* Primary CTAs that were Tailwind utility piles */
a.bg-blue-600,
button.bg-blue-600,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

a.bg-blue-600:hover,
button.bg-blue-600:hover,
.btn-solid:hover,
.hover\:bg-blue-700:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

a.bg-white.hover\:bg-gray-100,
a.border.border-gray-300 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1f2937 !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.bg-white.hover\:bg-gray-100:hover,
.hover\:bg-gray-100:hover {
  background: #f3f4f6;
}

/* Gradient CTA bar: make white button readable */
.bg-gradient-to-r a.bg-white {
  color: var(--blue) !important;
}

.transition,
.transition-duration-300,
.duration-300 {
  transition: all 0.2s ease;
}

/* Forms */
label.block {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
}

select.w-full,
input.w-full,
textarea.w-full {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}

select.w-full:focus,
input.w-full:focus,
textarea.w-full:focus,
.focus\:border-blue-500:focus,
.focus\:ring-blue-500:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: var(--blue);
}

/* Feature / testimonial cards */
.feature-icon,
.w-14.h-14.rounded-full {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feather icon sizing when present */
i[data-feather],
svg.feather {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .md\:p-12 { padding: 3rem; }
  .md\:w-1\/2 { width: 50%; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* How-it-works split panel */
.how-panel,
.bg-blue-50.rounded-2xl {
  width: 100%;
}

.bg-blue-50.rounded-2xl .flex.flex-col.md\:flex-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .bg-blue-50.rounded-2xl .flex.flex-col.md\:flex-row {
    flex-direction: row;
  }
}

.bg-blue-50.rounded-2xl img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(15, 26, 36, 0.1);
}

/* Feather fallback icons (CDN blocked by CSP) — geometric marks, no emoji */
i[data-feather] {
  position: relative;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  font-style: normal;
  color: inherit;
}
i[data-feather]::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border: 2px solid currentColor;
  border-radius: 2px;
  width: 70%;
  height: 70%;
  box-sizing: border-box;
}
i[data-feather="clock"]::before {
  border-radius: 50%;
}
i[data-feather="clock"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 35%;
  background: currentColor;
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(30deg);
}
i[data-feather="shield"]::before {
  border-radius: 4px 4px 50% 50% / 4px 4px 70% 70%;
  width: 60%;
  height: 75%;
}
i[data-feather="zap"]::before {
  border: none;
  width: 0;
  height: 0;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-bottom: 1.1rem solid currentColor;
  clip-path: polygon(40% 0, 100% 40%, 55% 40%, 70% 100%, 0 55%, 40% 55%);
  background: currentColor;
  width: 55%;
  height: 70%;
  border: none;
}
i[data-feather="upload"] {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--blue);
}
i[data-feather="upload"]::before {
  border: none;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-top: none;
  border-radius: 0 0 4px 4px;
  width: 55%;
  height: 40%;
  top: auto;
  bottom: 10%;
}
i[data-feather="upload"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15%;
  width: 3px;
  height: 45%;
  background: currentColor;
  transform: translateX(-50%);
  box-shadow: -5px 6px 0 -1px currentColor, 5px 6px 0 -1px currentColor;
}
i[data-feather="file-text"]::before,
i[data-feather="file"]::before {
  width: 55%;
  height: 70%;
  border-radius: 2px;
}
i.w-12.h-12,
.w-12.h-12[data-feather] {
  width: 3rem;
  height: 3rem;
}

.demo-banner {
  margin: 0 auto 1.5rem;
  max-width: 72rem;
  padding: 0.65rem 1.25rem;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 0.5rem;
  color: #155e75;
  font-size: 0.875rem;
  text-align: center;
}
