/* ==========================================================================
   FAWATIR DZ — SaaS landing page (responsive, mobile-first fixes)
   ========================================================================== */
:root {
  --color-primary: #1E3A8A;
  --color-primary-hover: #172554;
  --color-accent: #2563EB;
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-text-light: #64748B;
  --color-bg: #fff;
  --color-surface: #F8FAFC;
  --color-surface-subtle: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-dark: #CBD5E1;
  --color-success: #15803D;
  --color-success-bg: #F0FDF4;
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(30, 58, 138, .28), 0 8px 20px -8px rgba(15, 23, 42, .12);
  --max-width: 1160px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

a {
  color: var(--color-accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  font: 600 .9375rem/1 var(--font-family);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
  text-align: center
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .14)
}

.btn-primary:hover {
  background: var(--color-primary-hover)
}

.btn-secondary {
  background: #fff;
  color: var(--color-text-main);
  border-color: var(--color-border-dark);
  box-shadow: var(--shadow-sm)
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-text-light)
}

.btn-whatsapp {
  background: #15803D;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .2)
}

.btn-whatsapp:hover {
  background: #166534
}

.btn-sm {
  min-height: 40px;
  padding: .5rem 1rem;
  font-size: .875rem
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border)
}

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

.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none !important
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain
}

.brand-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: -.01em
}

.brand-tag {
  font-size: .6875rem;
  font-weight: 700;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  padding: .125rem .45rem;
  border-radius: 9999px;
  color: var(--color-text-muted)
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none
}

.nav-menu a {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: .5rem .875rem;
  border-radius: var(--radius-md)
}

.nav-menu a:hover {
  color: var(--color-primary);
  background: var(--color-surface-subtle);
  text-decoration: none
}

.nav-mobile-only {
  display: none
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .5rem
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
  content: ""
}

.nav-toggle span {
  position: relative
}

.nav-toggle span::before {
  position: absolute;
  top: -6px
}

.nav-toggle span::after {
  position: absolute;
  top: 6px
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg)
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg)
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(60rem 28rem at 78% -10%, #DBEAFE 0, transparent 60%), var(--color-surface);
  border-bottom: 1px solid var(--color-border)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid #BFDBFE;
  padding: .35rem .875rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm)
}

.compliance-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex: none
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.125rem;
  text-wrap: balance
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 34rem
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .875rem
}

.hero-note {
  font-size: .8125rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
  font-size: .8125rem;
  color: var(--color-text-muted);
  font-weight: 500
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: .4rem
}

.hero-meta li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--color-success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2315803D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.2 2.2 4.8-5'/%3E%3C/svg%3E") center/100% no-repeat
}

/* App window mockup */
.app-window {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border)
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-dark)
}

.window-bar b {
  font-size: .8125rem;
  font-weight: 700;
  margin-left: .5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.window-body {
  padding: 1.25rem
}

.overview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem
}

.stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: .875rem;
  border-radius: var(--radius-md);
  min-width: 0
}

.stat-label {
  font-size: .75rem;
  color: var(--color-text-light);
  font-weight: 500
}

.stat-value {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-top: .25rem;
  letter-spacing: -.01em
}

.overview-list {
  list-style: none;
  font-size: .8125rem
}

.overview-list li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: .625rem
}

.overview-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0
}

.overview-list li>span {
  flex: 1;
  min-width: 0;
  color: var(--color-text-muted)
}

.overview-list strong {
  white-space: nowrap
}

.pill {
  font-size: .6875rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 9999px;
  background: #EFF6FF;
  color: var(--color-primary);
  flex: none
}

.pill.green {
  background: var(--color-success-bg);
  color: var(--color-success)
}

.pill.amber {
  background: #FFFBEB;
  color: #B45309
}

/* Sections */
.section {
  padding: 5rem 0
}

.section+.section {
  border-top: 1px solid var(--color-border)
}

.section-title {
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: .75rem;
  text-align: center;
  text-wrap: balance
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center
}

#specimen {
  background: var(--color-surface-subtle)
}

/* Tabs (segmented control) */
.tabs-nav {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  margin: 0 auto 1.5rem;
  width: fit-content;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity
}

.tabs-nav::-webkit-scrollbar {
  display: none
}

.tab-btn {
  flex: none;
  scroll-snap-align: start;
  min-height: 40px;
  background: none;
  border: 0;
  padding: .5rem .875rem;
  font: 600 .875rem var(--font-family);
  color: var(--color-text-muted);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, color .15s
}

.tab-btn:hover {
  color: var(--color-text-main)
}

.tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm)
}

/* Document sheet */
.doc-sheet {
  background: #fff;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  font-size: .8125rem;
  max-width: 920px;
  margin: 0 auto
}

.doc-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 1.5rem
}

.doc-company-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .25rem
}

.doc-company-desc {
  color: var(--color-text-muted);
  margin-bottom: .5rem
}

.fiscal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: .625rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  overflow-wrap: anywhere
}

.doc-meta {
  min-width: 240px;
  text-align: right
}

.doc-title-badge {
  background: var(--color-primary);
  color: #fff;
  padding: .4rem .875rem;
  font-weight: 700;
  font-size: .9375rem;
  border-radius: var(--radius-sm);
  display: inline-block
}

.doc-details-table {
  width: 100%;
  margin-top: .75rem;
  font-size: .75rem;
  border-collapse: collapse
}

.doc-details-table td {
  padding: .2rem 0
}

.doc-details-table td:last-child {
  text-align: right;
  font-weight: 600
}

.doc-recipient-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: .875rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem
}

.recipient-fiscal {
  font-size: .75rem;
  color: var(--color-text-light);
  text-align: right
}

.recipient-label {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: .25rem
}

.recipient-title {
  font-weight: 700;
  font-size: .9375rem
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem
}

.data-table th {
  background: #1E293B;
  color: #fff;
  text-align: left;
  padding: .625rem;
  font-size: .75rem;
  font-weight: 600
}

.data-table th.right,
.data-table td.right {
  text-align: right
}

.data-table th.center,
.data-table td.center {
  text-align: center
}

.data-table td {
  padding: .75rem .625rem;
  border-bottom: 1px solid var(--color-border);
  font-size: .75rem
}

.data-table tbody tr:nth-child(even) {
  background: var(--color-surface)
}

.doc-sheet-bottom {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  margin-bottom: 1.75rem
}

.legal-words-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: .8125rem
}

.totals-breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem
}

.totals-breakdown td {
  padding: .4rem .5rem;
  border-bottom: 1px solid var(--color-border)
}

.totals-breakdown td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap
}

.totals-breakdown tr.highlight-total td {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem
}

.signatures-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem
}

.signature-cell {
  border: 1px dashed var(--color-border-dark);
  border-radius: var(--radius-sm);
  padding: .75rem;
  min-height: 90px;
  background: var(--color-surface);
  font-size: .75rem;
  color: var(--color-text-light);
  font-weight: 600
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.feature-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-dark)
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EFF6FF;
  color: var(--color-primary);
  margin-bottom: 1rem
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.feature-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.01em
}

.feature-item p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6
}

/* Pricing */
.pricing-wrapper {
  background: var(--color-surface)
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  align-items: stretch
}

.plan-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-dark)
}

.plan-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg)
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 9999px;
  white-space: nowrap
}

.plan-title {
  font-size: 1.125rem;
  font-weight: 700
}

.plan-desc {
  font-size: .8125rem;
  color: var(--color-text-light);
  min-height: 2.5rem;
  line-height: 1.4;
  margin-top: .25rem
}

.plan-price {
  margin: 1rem 0 .5rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem
}

.plan-price .amount {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em
}

.plan-price .period {
  font-size: .875rem;
  color: var(--color-text-light);
  font-weight: 500
}

.plan-equiv {
  font-size: .75rem;
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: 1.25rem;
  min-height: 2.25rem
}

.plan-features {
  list-style: none;
  font-size: .8125rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem
}

.plan-features li {
  padding: .35rem 0;
  display: flex;
  align-items: flex-start;
  gap: .5rem
}

.plan-features li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 800
}

.pricing-footer-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.5rem;
  align-items: start
}

.pricing-instructions {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm)
}

.pricing-instructions h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem
}

.steps-list {
  padding-left: 1.25rem;
  font-size: .9rem;
  color: var(--color-text-muted)
}

.steps-list li {
  margin-bottom: .75rem;
  padding-left: .25rem
}

.steps-list li:last-child {
  margin-bottom: 0
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: .875rem;
  box-shadow: var(--shadow-sm)
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin-bottom: .625rem;
  overflow-wrap: anywhere
}

/* FAQ accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: .75rem
}

.faq-entry {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm)
}

.faq-entry summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: .9375rem
}

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

.faq-entry summary::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: transform .2s
}

.faq-entry[open] summary::after {
  transform: rotate(45deg)
}

.faq-entry p {
  padding: 0 1.25rem 1.25rem;
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.65
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
  font-size: .8125rem;
  color: var(--color-text-light)
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.5rem
}

.footer-columns h5 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: .75rem
}

.footer-columns ul {
  list-style: none
}

.footer-columns li {
  margin-bottom: .5rem;
  overflow-wrap: anywhere
}

.footer-columns li a {
  color: var(--color-text-muted)
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border)
}

/* Tablet */
@media (max-width:1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:900px) {
  .hero {
    padding: 3rem 0
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem
  }

  .pricing-footer-layout,
  .doc-sheet-bottom {
    grid-template-columns: 1fr
  }

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

  .footer-columns>div:first-child {
    grid-column: 1/-1
  }
}

/* Mobile navigation */
@media (max-width:820px) {
  .nav-toggle {
    display: inline-flex
  }

  .nav-cta .btn {
    display: none
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none
  }

  .nav-menu.open {
    display: flex
  }

  .nav-menu a {
    padding: .875rem .5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-surface-subtle);
    border-radius: 0
  }

  .nav-mobile-only {
    display: block;
    padding-top: .75rem
  }

  .nav-mobile-only .btn {
    width: 100%;
    border: 0
  }
}

/* Phones */
@media (max-width:640px) {
  .container {
    padding: 0 1rem
  }

  .section {
    padding: 3.25rem 0
  }

  .section-desc {
    margin-bottom: 2rem;
    font-size: 1rem
  }

  .hero-actions .btn {
    width: 100%
  }

  .hero-meta {
    flex-direction: column
  }

  .pricing-grid,
  .features-grid {
    grid-template-columns: 1fr
  }

  .plan-desc,
  .plan-equiv {
    min-height: 0
  }

  .plan-card.featured {
    order: -1
  }

  .window-body {
    padding: 1rem
  }

  .overview-stats {
    grid-template-columns: 1fr
  }

  .tabs-nav {
    width: 100%
  }

  .doc-sheet {
    padding: 1.125rem
  }

  .doc-sheet-head,
  .doc-recipient-box {
    flex-direction: column;
    gap: 1rem
  }

  .doc-meta {
    min-width: 0;
    width: 100%;
    text-align: left
  }

  .doc-details-table td:last-child {
    text-align: right
  }

  .fiscal-grid {
    grid-template-columns: 1fr
  }

  .recipient-fiscal {
    text-align: left
  }

  .signatures-row {
    grid-template-columns: 1fr
  }

  .pricing-instructions,
  .contact-card {
    padding: 1.25rem
  }

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

  /* Items table becomes stacked cards */
  .data-table thead {
    display: none
  }

  .data-table,
  .data-table tbody {
    display: block
  }

  .data-table tr {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: .5rem .75rem;
    margin-bottom: .75rem;
    background: #fff !important
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    border: 0;
    text-align: right !important
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--color-text-light);
    font-weight: 600;
    text-align: left;
    flex: none
  }

  .data-table td:nth-child(2) {
    flex-direction: column;
    gap: .15rem;
    text-align: left !important;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: .25rem
  }
}