/* ============================================================
   Accounting Plus — Public Site Styles
   Premium, warm, editorial design system
   ============================================================ */

:root {
  --font-family-latin: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-arabic: "Cairo", "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  /* Warm neutral palette */
  --gray-50:  #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  --gray-950: #0c0a09;

  /* Brand teal */
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;

  /* Semantic - Premium Dark Mode */
  --bg:          #0b0e14;
  --bg-muted:    #131722;
  --text:        #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary:  #475569;
  --border:      #1e293b;
  --accent:      #2dd4bf;
  --accent-hover: #5eead4;
  --accent-subtle: rgba(45, 212, 191, 0.1);
  --accent-glow: 0 0 25px rgba(45, 212, 191, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);

  --container: 1536px;
  --header-h: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-family-latin);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body {
  font-family: var(--font-family-arabic);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-pad { padding-block: 5.5rem; }

/* ---- Typography ---- */
h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #f8fafc;
  color: #0b0e14;
  box-shadow: var(--shadow-xs), 0 0 0 0 transparent;
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-accent {
  background: var(--accent);
  color: #0b0e14;
  box-shadow: var(--accent-glow);
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 35px rgba(45, 212, 191, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-wide { width: 100%; }

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.65;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- Buttons small ---- */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-section { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (min-width: 960px) {
  .hero-section { padding-top: 5rem; padding-bottom: 5rem; }
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(45, 212, 191, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 100%, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-dashboard-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  width: 100%;
  height: auto;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-dashboard-image:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-layout {
  position: relative;
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero-spotlight h1 {
  margin-bottom: 0.75rem;
}

/* ---- Hero Checklist ---- */
.hero-checklist {
  list-style: none;
  margin: 1.25rem 0 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .hero-checklist {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }
}

.hero-checklist li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

@media (min-width: 960px) {
  .hero-checklist li { font-size: 0.9375rem; }
}

.check-icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (min-width: 960px) {
  .hero-actions { margin-top: 2rem; }
}

/* ---- Why Grid (stats) ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

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

.why-card {
  background: var(--accent-subtle);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.1);
}

.why-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .why-card strong { font-size: 1.125rem; }
}

.why-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ---- Steps Flow ---- */
.steps-flow {
  list-style: none;
  margin: 2rem 0 0 0;
  padding: 0;
  counter-reset: steps;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .steps-flow { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
}

.steps-flow li {
  counter-increment: steps;
  position: relative;
  padding-inline-start: 2.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.steps-flow li::before {
  content: counter(steps);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--accent);
}

/* ---- Features Section ---- */
.section-alt {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.section-head h2 { margin-bottom: 0.75rem; }

.section-head p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

.feature-card {
  background: var(--bg);
  padding: 2rem;
  transition: background-color 0.2s;
}

.feature-card:hover {
  background: var(--bg-muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--teal-100);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

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

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---- Trust Section ---- */
.trust-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .trust-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

.trust-card h2 { margin-bottom: 0.5rem; }

.trust-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.trust-points > div {
  padding: 1.25rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.trust-points > div:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.trust-points h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}

.trust-points p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* CTA dark panel */
.cta-card {
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.1) 0%, rgba(11, 14, 20, 0.8) 100%);
  border: 1px solid rgba(45, 212, 191, 0.2);
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.cta-card .eyebrow {
  color: var(--accent);
}

.cta-card h3 {
  color: #fff;
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-card .btn-primary {
  background: var(--accent);
  color: #0b0e14;
  border: none;
  box-shadow: var(--accent-glow);
}

.cta-card .btn-primary:hover {
  background: var(--accent-hover);
}

/* ---- Apply Page ---- */
.apply-section {
  padding-top: 4rem;
}

.page-apply {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-apply main {
  flex: 1;
}

.apply-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .apply-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.apply-info {
  width: 100%;
  text-align: center;
}

.apply-info h1 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin: 0;
}

.info-checks {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
}

.info-checks h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.notes-list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

html[dir="rtl"] .notes-list {
  padding-right: 1.125rem;
  padding-left: 0;
}

.notes-list li + li {
  margin-top: 0.35rem;
}

.status-strip {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-strip span {
  font-size: 0.75rem;
  font-weight: 550;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--teal-100);
}

/* Form shell */
.form-shell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.form-shell.form-shell-submitted {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.form-shell h2 {
  font-size: 1.375rem;
  margin-bottom: 1.75rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field > span {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text);
}

input, textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.input-phone-ltr,
#success-contact-phone {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}

textarea { resize: vertical; min-height: 5rem; }

.field-readonly {
  background: var(--bg-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
}

.field-readonly p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-message {
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.5rem;
}

.form-message.success { color: var(--accent); }
.form-message.error { color: #dc2626; }

.form-footnote {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

.submission-success {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 212, 191, 0.45);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 14, 20, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.submission-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.submission-success h3 {
  font-size: 1.125rem;
  line-height: 1.25;
}

.submission-success-copy {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.submission-success-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .submission-success-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.submission-success-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.submission-success-item span {
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.submission-success-item strong {
  font-size: 0.875rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.submission-success-tip {
  font-size: 0.875rem;
  color: var(--accent-hover);
}

.submission-success-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.submission-success-actions .btn {
  flex: 1 1 180px;
}

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

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

.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.download-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.download-copy {
  color: var(--text-secondary);
}

.download-meta {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  display: grid;
  gap: 0.45rem;
}

.download-meta > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.download-meta dt {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-meta dd {
  margin: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-all;
}

.download-footnote {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 0.45rem;
}

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

@media (min-width: 900px) {
  .screenshots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.screenshot-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.screenshot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-100);
}

.screenshot-card figcaption {
  padding: 0.7rem 0.8rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-inner p {
  color: var(--text-tertiary);
}

.link-strong {
  font-weight: 550;
  color: var(--accent);
}

.link-strong:hover {
  text-decoration: underline;
}

/* ---- Reveal Animation ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.js .delay-1 { transition-delay: 0.12s; }
.js .delay-2 { transition-delay: 0.22s; }

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

/* Tablet */
@media (max-width: 959px) {
  .section-pad { padding-block: 3.5rem; }

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

  .trust-points {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .container { padding-inline: 1rem; }
  .section-pad { padding-block: 2.5rem; }

  h1 {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  h2 {
    font-size: 1.35rem;
  }

  .lead {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .nav {
    gap: 0.375rem;
  }

  .brand-text strong { font-size: 0.875rem; }
  .brand-text small { font-size: 0.6875rem; }
  .brand-mark { width: 26px; height: 26px; font-size: 0.7rem; }

  .nav-actions .btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }

  .hero-section { padding-top: 2rem; padding-bottom: 2rem; }

  .hero-checklist li {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

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

  .feature-card {
    padding: 1.25rem;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head p { font-size: 0.9375rem; }

  .cta-card {
    padding: 1.5rem;
  }

  .cta-card h3 { font-size: 1.125rem; }
  .cta-card p { font-size: 0.875rem; }

  .trust-points > div {
    padding: 1rem;
  }

  .trust-points h3 { font-size: 0.875rem; }
  .trust-points p { font-size: 0.8125rem; }

  .why-card { padding: 0.75rem; }
  .why-card strong { font-size: 0.875rem; }
  .why-card p { font-size: 0.6875rem; }

  .steps-flow li { font-size: 0.8125rem; }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  html { font-size: 15px; }
  h1 { font-size: 1.5rem; }
  .container { padding-inline: 0.75rem; }
  .hero-checklist li { font-size: 0.75rem; }
  .nav-actions .btn { padding: 0.3rem 0.5rem; font-size: 0.6875rem; }
}

/* ---- Image Viewer ---- */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.image-viewer[hidden] {
  display: none;
  opacity: 0;
}

.viewer-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#viewer-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.viewer-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  padding: 0;
}

.viewer-close:hover {
  opacity: 1;
  color: var(--accent);
}

.viewer-prev,
.viewer-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 14, 20, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s, border-color 0.2s;
}

.viewer-prev { left: -1.5rem; }
.viewer-next { right: -1.5rem; }

.viewer-prev:hover,
.viewer-next:hover {
  background: var(--bg-muted);
  border-color: var(--accent);
}

@media (min-width: 768px) {
  .viewer-prev { left: -4rem; }
  .viewer-next { right: -4rem; }
}
