/* =======================================================================
   1. GOOGLE MEET / MATERIAL 3 DESIGN TOKENS (100% OFFLINE / ZERO CDN)
   ======================================================================= */
:root {
  --bg-page: #F8FAFD;
  --bg-surface: #F0F4F9;
  --bg-surface-hover: #E6ECF5;
  --bg-card: #FFFFFF;
  --primary: #0B57D0;
  --primary-hover: #0842A0;
  --tonal: #D3E3FD;
  --tonal-hover: #C2D7FC;
  --tonal-text: #041E49;
  --ink: #1F1F1F;
  --muted: #444746;
  --subtle: #747775;
  --paid-bg: #E6F4EA;
  --paid-text: #137333;
  --pending-bg: #FEF7E0;
  --pending-text: #B06000;
  --danger-bg: #FCE8E6;
  --danger-text: #C5221F;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(11, 87, 208, 0.03);
  --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
}

button {
  background: none;
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

/* Smooth View Transitions */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeSlideUp 0.2s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* =======================================================================
   2. SHARED PILL BUTTONS, INPUTS & FLAT MATERIAL 3 SURFACES
   ======================================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 9999px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

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

.btn-primary:active {
  transform: scale(0.98);
}

.btn-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--tonal);
  color: var(--tonal-text);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

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

.btn-tonal:active {
  transform: scale(0.98);
}

select.btn-tonal {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 32px 6px 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23041E49' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.btn-surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.btn-surface:hover {
  background-color: var(--bg-surface-hover);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background-color: var(--bg-surface-hover);
  color: var(--ink);
}

.icon-btn.danger:hover {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

.meet-input {
  width: 100%;
  background-color: var(--bg-surface);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 14px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.meet-input:focus {
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--primary);
}

.meet-input::placeholder {
  color: var(--subtle);
}

select.meet-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23444746' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card-tonal {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 18px;
}

/* =======================================================================
   3. LANDING PAGE STYLES (#landing-view)
   ======================================================================= */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(248, 250, 253, 0.202);
  backdrop-filter: blur(1px);
}

.landing-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--primary);
}

.hero-paper-header {
  position: relative;
  margin-top: -68px;
  padding-top: 68px;
  background-color: var(--bg-page);
  background-image:
    linear-gradient(
      to bottom,
      rgba(248, 250, 253, 0.12) 0%,
      rgba(248, 250, 253, 0.34) 55%,
      rgba(248, 250, 253, 0.86) 84%,
      var(--bg-page) 100%
    ),
    url('../assets/paper-header.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-section {
  padding: 44px 0 36px;
  text-align: center;
}

.hero-animate {
  opacity: 0;
  transform: translateY(14px);
  animation: heroReveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--stagger, 0) * 70ms);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--tonal);
  color: var(--tonal-text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 5.2vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 740px;
  margin: 60px auto 30px;
}

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

.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

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

.hero-microcopy {
  font-size: 12px;
  color: var(--subtle);
}

.story-banner {
  background-color: rgba(240, 244, 249, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  padding: 24px;
  margin: 50px auto 12px;
  max-width: 760px;
  text-align: left;
}

.story-quote {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 10px;
}

.story-caption {
  font-size: 13px;
  font-weight: 700;
  color: var(--tonal-text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.feature-card {
  background-color: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: var(--tonal);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.landing-cta-box {
  background-color: var(--tonal);
  color: var(--tonal-text);
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 48px;
}

.landing-cta-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.landing-cta-box p {
  font-size: 14px;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 20px;
}

.landing-footer {
  background-color: var(--bg-surface);
  padding: 28px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--tonal-text);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* =======================================================================
   3B. STATIC SEO GUIDES & TRUST/LEGAL PAGES (#guides, #privacy, #terms, #contact)
   ======================================================================= */
.guides-section {
  padding: 12px 0 44px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
}

.guide-nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.guide-accordion {
  background-color: #FFFFFF;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.guide-accordion[open] {
  box-shadow: var(--shadow-float);
}

.guide-accordion-trigger {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.guide-accordion-trigger::-webkit-details-marker {
  display: none;
}

.guide-accordion-trigger:hover {
  background-color: rgba(240, 244, 249, 0.55);
}

.guide-accordion-title-wrap {
  min-width: 0;
}

.guide-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.guide-accordion-trigger h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.guide-chevron {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: var(--bg-surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.15s ease;
}

.guide-accordion[open] .guide-chevron {
  transform: rotate(180deg);
  background-color: var(--tonal);
  color: var(--tonal-text);
}

.guide-accordion-body {
  padding: 4px 24px 24px;
  border-top: 1px solid var(--bg-surface);
}

.guide-accordion-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--tonal-text);
}

.guide-accordion-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.68;
  margin-top: 12px;
  margin-bottom: 12px;
}

.guide-accordion-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-accordion-body li {
  margin-bottom: 6px;
}

.guide-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--bg-surface);
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 16px;
}

.legal-page-view {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.legal-card {
  background-color: #FFFFFF;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

.legal-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 20px;
}

.legal-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 20px 0 8px;
  color: var(--tonal-text);
}

.legal-card p, .legal-card li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* =======================================================================
   4. MOBILE-FIRST PWA SHELL (#app-view, 100dvh FLEX COLUMN)
   ======================================================================= */
.pwa-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.pwa-header {
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: var(--bg-page);
  flex-shrink: 0;
  z-index: 20;
}

.pwa-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card-tonal {
  background-color: #E8F0FE;
  border-radius: 20px;
  padding: 16px;
}

.stat-card-neutral {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 16px;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dot-amber {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E37400;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #137333;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-sub {
  font-size: 11px;
  color: var(--subtle);
  margin-top: 2px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-tab {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--muted);
  transition: all 0.15s ease;
}

.pill-tab.active {
  background-color: var(--tonal);
  color: var(--tonal-text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.paid {
  background-color: var(--paid-bg);
  color: var(--paid-text);
}

.status-badge.unpaid {
  background-color: var(--pending-bg);
  color: var(--pending-text);
}

/* =======================================================================
   5. ABOVE-THE-NAV BANNER AD + 10px SAFE BUFFER + BOTTOM NAVIGATION
   ======================================================================= */
.ad-slot-wrapper {
  padding: 6px 12px 0;
  background-color: var(--bg-page);
  flex-shrink: 0;
}

.ad-banner-box {
  height: 52px;
  max-width: 420px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border-radius: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ad-banner-embed {
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.ad-tag {
  background-color: #FFFFFF;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ad-text-wrap {
  min-width: 0;
  flex: 1;
}

.ad-headline {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-subline {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-cta {
  background-color: var(--tonal);
  color: var(--tonal-text);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Mandatory 10px accidental-click buffer between ad banner and bottom nav */
.nav-safe-buffer {
  height: 10px;
  background-color: var(--bg-page);
  flex-shrink: 0;
}

.bottom-nav {
  background-color: var(--bg-surface);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
  height: 52px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
}

.nav-pill-indicator {
  padding: 4px 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item.active .nav-pill-indicator {
  background-color: var(--tonal);
  color: var(--tonal-text);
}

.nav-item-label {
  font-size: 11px;
  font-weight: 600;
}

.nav-item.active .nav-item-label {
  color: var(--ink);
  font-weight: 700;
}

/* =======================================================================
   6. FULL-SCREEN MODALS (INVOICE EDITOR, PREVIEW, CLIENT MODAL)
   ======================================================================= */
.modal-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background-color: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-sheet {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-float);
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  padding-left: 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.line-item-box {
  background-color: var(--bg-surface);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}

.line-item-subrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.mini-input-wrap {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-input-wrap span {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.mini-input-wrap input {
  width: 100%;
  min-width: 0;
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.mini-input-wrap input::-webkit-inner-spin-button,
.mini-input-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 8px;
  flex-shrink: 0;
}

.qty-step-btn {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  background-color: var(--bg-surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.qty-step-btn:hover {
  background-color: var(--tonal);
  color: var(--tonal-text);
}

/* =======================================================================
   7. TOAST NOTIFICATION & DEDICATED PRINT STYLESHEET (@media print)
   ======================================================================= */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-pill {
  background-color: var(--ink);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: var(--shadow-float);
}

@media print {
  body {
    background-color: #FFFFFF !important;
  }
  #landing-view,
  #legal-views,
  #app-view,
  #invoice-editor-modal,
  #invoice-preview-modal,
  #client-modal,
  #toast-container {
    display: none !important;
  }
  #print-sheet {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    color: #000000 !important;
  }
}

/* =======================================================================
   8. SMALLEST MOBILE BREAKPOINT CLEANUP (<= 420px)
   ======================================================================= */
@media (max-width: 420px) {
  .landing-container {
    padding: 0 14px;
  }

  .landing-nav-inner {
    height: 60px;
    gap: 8px;
  }

  .hero-paper-header {
    margin-top: -60px;
    padding-top: 60px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-logo,
  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 17px;
  }

  .landing-nav-actions {
    gap: 6px;
  }

  .landing-nav .btn-primary,
  .landing-nav .btn-surface {
    padding: 8px 12px !important;
    font-size: 12px !important;
    gap: 4px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-tonal {
    width: 100%;
  }

  .pwa-header {
    padding: 12px 14px;
  }

  .pwa-header-actions {
    gap: 6px !important;
  }

  .pwa-header .btn-primary,
  .pwa-header .btn-tonal,
  .pwa-header .btn-surface {
    padding: 8px 10px !important;
    font-size: 12px !important;
    gap: 4px;
  }

  .guide-accordion-trigger {
    padding: 16px;
    gap: 12px;
  }

  .guide-accordion-trigger h3 {
    font-size: 16px;
  }

  .guide-accordion-body {
    padding: 4px 16px 18px;
  }

  .guide-cta-bar {
    padding: 12px 14px;
  }
}
