/* ==========================================================================
   SimpliTag — Design System & Storefront Styles
   Inspired by Google 5-Star Reviews & Royal Blue Brand Identity
   ========================================================================== */

:root {
  --blue-900: #072c6b;
  --blue-800: #0a3d96;
  --blue-700: #0d52c4;
  --blue-600: #1a68e8;
  --blue-100: #e8f0fe;
  --blue-50: #f4f8ff;

  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc05;
  --g-green: #34a853;

  --gold-500: #fbbc05;
  --gold-600: #e5a500;
  --green-600: #16a34a;
  --green-50: #ecfdf5;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 82, 196, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 44, 107, 0.18);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin-top: 0;
  letter-spacing: -0.02em;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */

.announcement-bar {
  background: var(--blue-900);
  color: #ffffff;
  font-size: 0.875rem;
  padding-block: 0.55rem;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-inner p {
  margin: 0;
}

.announcement-pill {
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

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

.brand-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  display: inline-grid;
  place-items: center;
  padding: 5px;
  box-shadow: 0 3px 10px rgba(13, 82, 196, 0.22);
  flex-shrink: 0;
}

.brand-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark-footer {
  width: 38px;
  height: 38px;
  padding: 6px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-main {
  color: var(--blue-700);
}

.brand-accent {
  color: var(--ink-900);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue-700);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-700);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.05rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 82, 196, 0.24);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cart-trigger:hover {
  background: var(--blue-800);
}

.cart-trigger:active {
  transform: scale(0.98);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, translate 0.2s ease;
  }
  .btn:hover {
    translate: 0 -1px;
  }
}

.btn-lg {
  padding: 0.95rem 1.65rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--blue-700);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 82, 196, 0.22);
}

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

.btn-gold {
  background: var(--gold-500);
  color: var(--ink-900);
  box-shadow: 0 8px 22px rgba(251, 188, 5, 0.32);
}

.btn-gold:hover {
  background: var(--gold-600);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(66, 133, 244, 0.45), transparent 45%),
    repeating-linear-gradient(
      -25deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 14px,
      transparent 14px,
      transparent 28px
    ),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: #ffffff;
  padding-top: 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.stars-svg-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-500);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 1.15rem;
}

.text-gold {
  color: var(--gold-500);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 54ch;
  margin: 0 0 1.85rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.85rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.65rem 1.5rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.check-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--g-green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Interactive Phone Mockup in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(340px, 100%);
  background: #0f172a;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.phone-notch {
  width: 96px;
  height: 18px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -12px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #f8fafc;
  color: var(--ink-900);
  border-radius: 28px;
  padding: 1.65rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.phone-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  padding-inline: 0.25rem;
}

.g-blue { color: var(--g-blue); }
.g-red { color: var(--g-red); }
.g-yellow { color: var(--g-yellow); }
.g-green { color: var(--g-green); }
.phone-brand-dark { color: var(--ink-900); }

.phone-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
}

.phone-rating-pill svg {
  color: var(--gold-500);
}

.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.review-bubble {
  display: flex;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem;
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .review-bubble.is-new {
    animation: popReview 0.35s ease-out;
  }
}

@keyframes popReview {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.avatar-blue { background: var(--g-blue); }
.avatar-red { background: var(--g-red); }
.avatar-green { background: var(--g-green); }
.avatar-yellow { background: #d97706; }

.review-body {
  min-width: 0;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold-500);
}

.review-body p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-700);
  line-height: 1.4;
}

.nfc-sim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--blue-700);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nfc-sim-btn:hover {
  background: var(--blue-800);
}

.floating-badge {
  position: absolute;
  right: -6px;
  bottom: 24px;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  transform: rotate(-4deg);
}

.badge-fast-red { color: var(--g-red); }
.badge-fast-blue { color: var(--blue-800); }

.google-stripe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 7px;
  width: 100%;
}

.stripe-blue { background: var(--g-blue); }
.stripe-red { background: var(--g-red); }
.stripe-yellow { background: var(--g-yellow); }
.stripe-green { background: var(--g-green); }

/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust-strip {
  background: var(--blue-50);
  border-bottom: 1px solid var(--border);
  padding-block: 1.75rem;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-blue { background: #dbeafe; color: var(--blue-700); }
.trust-green { background: #dcfce7; color: #15803d; }
.trust-yellow { background: #fef3c7; color: #b45309; }
.trust-red { background: #fee2e2; color: #b91c1c; }

.trust-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink-900);
}

.trust-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-kicker {
  display: inline-block;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 1.02rem;
}

/* ==========================================================================
   Products Section & Live Shipping Tracker
   ========================================================================== */

.products-section {
  padding-block: 4.5rem;
}

.shipping-tracker {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  background: var(--blue-50);
  border: 1px solid #c7d9fc;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.shipping-tracker.is-unlocked {
  background: var(--green-50);
  border-color: #86efac;
}

.shipping-tracker-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.shipping-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #dbeafe;
  color: var(--blue-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.shipping-tracker.is-unlocked .shipping-icon-badge {
  background: #bbf7d0;
  color: #15803d;
}

.shipping-tracker-top p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-900);
}

.shipping-bar-track {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.shipping-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--blue-600), var(--g-green));
  transition: width 0.35s ease;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.product-featured {
  border: 2px solid var(--blue-600);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--blue-50);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .product-media img {
    transition: transform 0.4s ease;
  }
  .product-card:hover .product-media img {
    transform: scale(1.03);
  }
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 0.32rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.badge-subtle { background: #ffffff; color: var(--ink-900); }
.badge-popular { background: var(--gold-500); color: var(--ink-900); }
.badge-premium { background: var(--blue-700); color: #ffffff; }
.badge-custom { background: var(--g-green); color: #ffffff; }

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.product-desc {
  margin: 0 0 1rem;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.87rem;
  color: var(--ink-700);
}

.product-specs li::before {
  content: "✓ ";
  color: var(--g-green);
  font-weight: 800;
}

.product-footer {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-current {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.1;
}

.price-note {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
  margin-top: 0.2rem;
}

/* Combo Banner */
.combo-banner {
  margin-top: 2.25rem;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.combo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.combo-tag svg {
  color: var(--gold-500);
}

.combo-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.combo-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  font-size: 0.95rem;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.steps-section {
  background: var(--surface-alt);
  padding-block: 4.5rem;
  border-block: 1px solid var(--border);
}

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

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.num-blue { background: var(--g-blue); }
.num-yellow { background: var(--g-yellow); color: var(--ink-900); }
.num-green { background: var(--g-green); }

.step-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}

.step-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.94rem;
}

/* ==========================================================================
   Control Panel Interactive Demo
   ========================================================================== */

.panel-section {
  padding-block: 4.75rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.panel-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}

.panel-copy > p {
  color: var(--ink-700);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

.panel-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-benefits li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.panel-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-700);
  font-weight: 800;
}

.panel-simulator {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.panel-window-bar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.panel-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4ade80;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.panel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-700);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-900);
  font-size: 0.94rem;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: 1px;
  border-color: var(--blue-600);
}

.panel-live-preview {
  background: var(--blue-50);
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.preview-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  margin-bottom: 0.65rem;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.85rem;
  border: 1px solid var(--border);
}

.preview-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef3c7;
  color: #d97706;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.preview-icon.tone-gold { background: #fef3c7; color: #d97706; }
.preview-icon.tone-green { background: #dcfce7; color: #15803d; }
.preview-icon.tone-red { background: #fee2e2; color: #dc2626; }
.preview-icon.tone-blue { background: #dbeafe; color: var(--blue-700); }

.preview-info {
  min-width: 0;
}

.preview-info strong {
  display: block;
  font-size: 0.95rem;
}

.preview-info span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.preview-info code {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--blue-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-toast {
  margin: 0.6rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green-600);
  min-height: 1.2em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section {
  background: var(--blue-50);
  padding-block: 4.5rem;
  border-top: 1px solid var(--border);
}

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

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
  flex: 1;
}

.testimonial-card footer strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-card footer span {
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* ==========================================================================
   FAQ Accordion (modern-web-guidance: accordion)
   ========================================================================== */

.faq-section {
  padding-block: 4.5rem;
}

.faq-container {
  max-width: 780px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.accordion details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-900);
  cursor: pointer;
}

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

.accordion summary:hover {
  background: var(--blue-50);
}

.accordion summary::before {
  content: "";
  inline-size: 1.1em;
  block-size: 1.1em;
  flex-shrink: 0;
  background-color: var(--blue-700);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.accordion details[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: rotate 0.2s ease;
  }
}

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-answer {
  padding: 0 1.35rem 1.25rem 3.15rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Bottom CTA & Footer
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #ffffff;
  padding-block: 3.25rem;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.4rem;
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   Editorial Full-Width Footer (Estilo Alastro / Grupo SimpliSAC)
   ========================================================================== */

.alastre-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(13, 82, 196, 0.22), transparent 42%),
    #060d1f;
  color: #cbd5e1;
  overflow: hidden;
}

.footer-top-band {
  display: grid;
  grid-template-columns: 1.05fr 1.65fr;
  gap: 3.25rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-wordmark .brand-main { color: #60a5fa; }
.footer-wordmark .brand-accent { color: #ffffff; }

.group-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #94a3b8;
}

.simplisac-logo-img {
  height: 20px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}

.footer-lead {
  margin: 1rem 0 1.45rem;
  max-width: 38ch;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: var(--blue-700);
  border-color: var(--blue-600);
  color: #ffffff;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.35fr;
  gap: 2.25rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
  color: #93c5fd;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  font-size: 0.9rem;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-col a span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
}

.footer-col a:hover span {
  color: var(--gold-500);
}

.external-link {
  justify-content: flex-start;
  gap: 0.35rem;
}

.corp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.5;
}

.corp-list svg {
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.corp-list strong {
  color: #e2e8f0;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* Monumental Editorial Brand Watermark */
.footer-watermark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  user-select: none;
  pointer-events: none;
  text-align: center;
}

.footer-watermark span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 13.5vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom-bar p {
  margin: 0;
}

.footer-trust-pills {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  font-weight: 600;
}

.trust-pill-item svg {
  color: var(--g-green);
}

/* ==========================================================================
   Native Modal Cart Drawer (<dialog>) — modern-web-guidance: dialog
   ========================================================================== */

dialog.cart-dialog {
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #ffffff;
  color: var(--ink-900);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.25);
}

/* Scope display strictly to [open] so closed state is never overridden */
dialog.cart-dialog[open] {
  display: flex;
  flex-direction: column;
}

/* Mandatory scroll containment for modal dialogs */
dialog.cart-dialog:modal {
  overscroll-behavior: contain;
}

dialog.cart-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.cart-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h1 {
  margin: 0;
  font-size: 1.3rem;
}

.icon-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.icon-close-btn:hover {
  background: #e2e8f0;
  color: var(--ink-900);
}

.cart-shipping-box {
  padding: 0.9rem 1.35rem;
  background: var(--blue-50);
  border-bottom: 1px solid var(--border);
}

.cart-shipping-box.is-unlocked {
  background: var(--green-50);
}

.cart-shipping-box p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
}

.cart-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
}

.cart-view[hidden] {
  display: none;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.85rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info h2 {
  font-size: 0.96rem;
  margin: 0 0 0.15rem;
}

.cart-item-price {
  font-size: 0.86rem;
  color: var(--ink-500);
  margin: 0 0 0.55rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--surface-alt);
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-900);
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.remove-item-btn {
  border: none;
  background: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.remove-item-btn:hover {
  text-decoration: underline;
}

.cart-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-500);
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid;
  place-items: center;
}

.cart-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.94rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

.summary-free {
  color: var(--green-600);
}

.summary-total {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
}

.back-link-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--blue-700);
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.checkout-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkout-mini-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-50);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.92rem;
}

.cart-success-view {
  text-align: center;
  justify-content: center;
  gap: 0.75rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green-600);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
}

.order-code {
  margin: 0;
  color: var(--blue-700);
}

.success-next-box {
  text-align: left;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
}

.success-next-box p {
  margin: 0 0 0.4rem;
}

.success-next-box ul {
  margin: 0;
  padding-left: 1.15rem;
}

/* Toast Region */
.toast-region {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold-500);
}

.toast-icon {
  display: inline-flex;
  color: var(--gold-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Floating Mobile Hamburger & Swipeable Navigation Drawer
   (modern-web-guidance: navigation-drawer)
   ========================================================================== */

.mobile-fab-menu {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #ffffff;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7, 44, 107, 0.38);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-fab-menu:hover {
  background: var(--blue-900);
}

.Drawer {
  --drawer-width: min(20em, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #060d1f;
  opacity: calc(var(--drawer-backdrop) * 0.6);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: '';
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100svh;
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 104, 232, 0.28), transparent 45%),
    #060d1f;
  color: #ffffff;
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.35);
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.drawer-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 1.5rem;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-nav-list a:hover,
.drawer-nav-list a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.drawer-nav-list svg {
  color: #60a5fa;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.drawer-group-label {
  font-size: 0.76rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .mobile-fab-menu {
    display: grid;
  }

  .toast-region {
    bottom: 88px;
  }

  .hero-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

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

  .steps-grid,
  .testimonials-grid,
  .footer-top-band,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    right: 6px;
    bottom: -10px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
