/* ==========================================================================
   BILL2Z.COM - APPLE-STYLE MINIMALIST DESIGN SYSTEM
   Tailored for Indian Tile & Building Material Businesses (GST & Payments)
   ========================================================================== */

:root {
  /* Apple System Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Apple Monochromatic Color Palette */
  --apple-black: #000000;
  --apple-dark: #1d1d1f;
  --apple-card-dark: #161617;
  --apple-gray-subtle: #f5f5f7;
  --apple-gray-border: #d2d2d7;
  --apple-gray-text: #86868b;
  --apple-gray-secondary: #6e6e73;
  --apple-white: #ffffff;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #34c759;

  /* Depth & Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-floating: 0 16px 40px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 980px;

  /* Transitions */
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  font-family: var(--font-system);
  background-color: var(--apple-white);
  color: var(--apple-dark);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

/* ==========================================================================
   CONTAINER & GRID
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   APPLE MINIMALIST PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-apple), visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.apple-loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid #e5e5ea;
  border-top-color: var(--apple-dark);
  border-radius: 50%;
  animation: appleSpin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

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

.apple-loader-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
  margin-bottom: 0.25rem;
}

.apple-loader-sub {
  font-size: 0.85rem;
  color: var(--apple-gray-secondary);
}

/* ==========================================================================
   NAVIGATION BAR (APPLE STYLE)
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
}

.brand-pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
}

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

.nav-item {
  font-size: 0.85rem;
  color: var(--apple-gray-secondary);
  transition: color 0.2s ease;
  font-weight: 400;
}

.nav-item:hover {
  color: var(--apple-black);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--apple-blue);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--apple-blue-hover);
}

.nav-hamburger {
  display: none;
  font-size: 1.2rem;
  color: var(--apple-dark);
}

@media (max-width: 820px) {
  .nav-menu, .desktop-only {
    display: none !important;
  }
  .nav-hamburger {
    display: block;
  }
}

/* ==========================================================================
   BUTTONS (APPLE SYSTEM)
   ========================================================================== */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-apple-primary {
  background: var(--apple-blue);
  color: var(--apple-white);
}

.btn-apple-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.01);
}

.btn-apple-secondary {
  background: var(--apple-gray-subtle);
  color: var(--apple-dark);
  border: 1px solid #e5e5ea;
}

.btn-apple-secondary:hover {
  background: #ececee;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fbfbfd 0%, #ffffff 100%);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0071e3;
  background: #f0f7ff;
  border: 1px solid #d0e4ff;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--apple-dark);
  max-width: 840px;
  margin: 0 auto 1.5rem;
}

.hero-subhead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--apple-gray-secondary);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Hero Hardware Frame / Mockup (Apple Style) */
.hero-mockup-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e5ea;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}

.mockup-window-header {
  background: #fbfbfd;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #ececee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-title {
  font-size: 0.8rem;
  color: var(--apple-gray-secondary);
  font-weight: 500;
}

.mockup-body {
  padding: 2rem;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

@media (max-width: 850px) {
  .mockup-body {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

/* Sample Tile Tax Invoice */
.tile-invoice-preview {
  background: #fafafc;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 1.5rem;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.invoice-badge-gst {
  font-size: 0.75rem;
  background: #eef7ee;
  color: #1b8a3b;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.tile-line-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f4;
}

.tile-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--apple-dark);
}

/* Instant Collection Card (UPI & e-NACH) */
.tile-pay-card {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   200+ INDIAN TILE BUSINESSES TRUST METRICS
   ========================================================================== */
.trust-strip {
  border-top: 1px solid #f0f0f2;
  border-bottom: 1px solid #f0f0f2;
  background: #ffffff;
  padding: 3rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.trust-number {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
  margin-bottom: 0.2rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--apple-gray-secondary);
}

/* Tile Hubs Pill Row */
.hubs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hub-chip {
  font-size: 0.8rem;
  font-weight: 500;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   TILE-SPECIFIC PRODUCT CAPABILITIES
   ========================================================================== */
.section-wrap {
  padding: 5.5rem 0;
}

.section-head-apple {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--apple-gray-secondary);
  line-height: 1.5;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}

.apple-card {
  background: var(--apple-gray-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-dark);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--apple-gray-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5ea;
  font-size: 0.85rem;
  color: var(--apple-dark);
  font-weight: 500;
}

/* ==========================================================================
   INTERACTIVE TILE GST & COLLECTION CALCULATOR
   ========================================================================== */
.calc-section-apple {
  background: #fafafc;
  border-radius: 24px;
  border: 1px solid #e5e5ea;
  padding: 3rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .calc-section-apple {
    padding: 1.5rem;
  }
}

.calc-grid-apple {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 850px) {
  .calc-grid-apple {
    grid-template-columns: 1fr;
  }
}

.apple-slider {
  width: 100%;
  height: 6px;
  background: #e5e5ea;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  margin: 1rem 0;
}

.apple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--apple-blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}

.calc-summary-apple {
  background: var(--apple-white);
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f4;
  font-size: 0.9rem;
}

.summary-row.final {
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ==========================================================================
   PRICING PLANS (APPLE STYLE)
   ========================================================================== */
.pricing-grid-apple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

@media (max-width: 950px) {
  .pricing-grid-apple {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-card-apple {
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.pricing-card-apple.featured {
  border: 2px solid var(--apple-blue);
  box-shadow: var(--shadow-card);
}

.pricing-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--apple-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.plan-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--apple-dark);
  margin-bottom: 0.35rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--apple-gray-secondary);
  min-height: 40px;
  margin-bottom: 1.5rem;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-freq {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--apple-gray-secondary);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--apple-dark);
}

.plan-check {
  color: var(--apple-blue);
  font-weight: bold;
}

/* ==========================================================================
   INDIAN REGULATORY POLICIES MODAL (APPLE SYSTEM DIALOG)
   ========================================================================== */
.policy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.policy-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.policy-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.policy-header {
  padding: 1.25rem 1.75rem;
  background: #fbfbfd;
  border-bottom: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex-grow: 1;
  overflow: hidden;
}

@media (max-width: 720px) {
  .policy-content-grid {
    grid-template-columns: 1fr;
  }
  .policy-menu {
    display: none;
  }
}

.policy-menu {
  background: #fbfbfd;
  border-right: 1px solid #e5e5ea;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.policy-tab-item {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--apple-gray-secondary);
  border-radius: 8px;
  text-align: left;
  transition: all 0.15s ease;
}

.policy-tab-item.active, .policy-tab-item:hover {
  background: #ffffff;
  color: var(--apple-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.policy-text-area {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--apple-gray-secondary);
  line-height: 1.65;
}

.policy-text-area h3 {
  font-size: 1.4rem;
  color: var(--apple-dark);
  margin-bottom: 0.5rem;
}

.policy-text-area h4 {
  font-size: 1.05rem;
  color: var(--apple-dark);
  margin: 1.5rem 0 0.5rem;
}

.policy-callout-box {
  background: #f5f5f7;
  border-left: 3px solid var(--apple-blue);
  padding: 0.85rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--apple-dark);
}

/* ==========================================================================
   FOOTER (APPLE STYLE)
   ========================================================================== */
.footer-apple {
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 0.8rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid #e5e5ea;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 500px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apple-dark);
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link-item {
  color: #6e6e73;
  transition: color 0.15s ease;
}

.footer-link-item:hover {
  color: var(--apple-dark);
}

.footer-legal-bar {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
