/* ==========================================================================
   DCS Quick Login — Premium Design System (System Fonts Only, No CDNs)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Foundation Colors */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Brand Accents */
  --brand-blue:       #0369a1;
  --brand-blue-hover: #075985;
  --brand-navy:       #0c4a6e;
  --brand-cyan:       #0ea5e9;
  --brand-cyan-light: #e0f2fe;
  --brand-sky-soft:   #f0f9ff;

  /* Semantic Tokens */
  --color-bg:        var(--white);
  --color-surface:   var(--white);
  --color-surface-subtle: var(--slate-50);
  --color-text:      var(--slate-700);
  --color-text-dark: var(--slate-900);
  --color-text-muted:var(--slate-500);
  --color-border:    var(--slate-200);
  --color-border-subtle: #edf2f7;
  --color-primary:   var(--brand-blue);
  --color-primary-hover: var(--brand-blue-hover);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

/* Accessibility: Skip Link */
.skip {
  position: absolute;
  left: 1.25rem;
  top: -120px;
  background: var(--brand-navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.skip:focus {
  top: 1rem;
}

/* Accessibility: Focus visible */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Layout Containers */
.wrap {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding-block: 5.5rem;
  scroll-margin-top: 4.5rem;
}

.section-alt {
  background-color: var(--slate-50);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header.left-aligned {
  text-align: left;
  margin-inline: 0;
  max-width: 760px;
}

/* Typography Hierarchy */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background-color: var(--brand-sky-soft);
  border: 1px solid var(--brand-cyan-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* Header & Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-link-support {
  color: #854d0e;
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

.nav-link-support:hover {
  color: #713f12;
  background: #fef9c3;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--slate-700);
}

/* Hero Section */
.hero {
  padding-block: 4.5rem 5.5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(3, 105, 161, 0.05) 0%, transparent 50%);
}

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

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--slate-900);
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-blue);
  margin: 0 0 1.25rem;
}

.hero-copy {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--slate-600);
  margin: 0 0 2rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(180deg, var(--brand-blue) 0%, #025380 100%);
  color: var(--white);
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #024368;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(3, 105, 161, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0284c7 0%, var(--brand-blue) 100%);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.12), 0 12px 20px -4px rgba(3, 105, 161, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--slate-700);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-500);
}

.trust-dot {
  color: var(--slate-300);
}

/* Browser Mockup Visual Area */
.browser-mockup {
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.browser-header {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dot.red { background: #f87171; }
.browser-dot.yellow { background: #facc15; }
.browser-dot.green { background: #4ade80; }

.browser-address-bar {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: var(--slate-500);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-address-bar svg {
  color: #16a34a;
  flex-shrink: 0;
}

.browser-content {
  background: var(--slate-50);
  padding: 2rem 1.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Mockup Placeholder Frame */
.mockup-placeholder {
  width: 100%;
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  background: var(--brand-sky-soft);
  border: 1px solid var(--brand-cyan-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.mockup-placeholder h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-800);
  margin: 0;
}

.mockup-placeholder p {
  font-size: 0.88rem;
  color: var(--slate-500);
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

/* Key Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-cyan-light);
}

.benefit-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-sky-soft);
  border: 1px solid var(--brand-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.benefit-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

/* How It Works Flow (01 - 04) */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.flow-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease;
}

.flow-card:hover {
  border-color: var(--brand-blue);
}

.flow-step-num {
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  color: var(--brand-blue);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  display: inline-block;
}

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--slate-900);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.flow-step-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

/* Data Sources Section: Segmented Controls & Tabs */
.tabs-control-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tabs-segmented {
  display: inline-flex;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.source-detail-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

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

.source-info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.source-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--brand-sky-soft);
  color: var(--brand-blue);
  border: 1px solid var(--brand-cyan-light);
}

.source-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
}

.source-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.source-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--slate-700);
}

.source-feature-list svg {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.warning-callout {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 1.5rem;
}

.warning-callout strong {
  color: #92400e;
}

/* Copy Header Card */
.copy-header-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.copy-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.copy-header-title {
  font-size: 1rem;
  font-weight: 750;
  color: var(--slate-900);
  margin: 0;
}

.copy-header-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin: 0;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--brand-sky-soft);
}

.btn-copy.copied {
  background: #ecfdf5;
  border-color: #059669;
  color: #059669;
}

/* Fictional Preview Table */
.preview-table-wrap {
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--slate-100);
  color: var(--slate-800);
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-caption {
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--slate-500);
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  margin: 0;
}

/* Visual Tutorial Section (7 Steps - Editorial Layout) */
.tutorial-steps-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.tutorial-step-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 3.5rem;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.tutorial-step-row.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.tutorial-step-row.reverse .step-text-col {
  order: 2;
}

.tutorial-step-row.reverse .step-visual-col {
  order: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  background: var(--brand-sky-soft);
  border: 1px solid var(--brand-cyan-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.step-text-col h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.step-text-col p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0;
}

.screenshot-container {
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screenshot-placeholder-box {
  min-height: 280px;
  background: var(--slate-50);
  border: 2px dashed var(--slate-300);
  margin: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}

.placeholder-asset-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-500);
  background: var(--slate-200);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.placeholder-msg {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
  margin: 0;
}

/* Screenshot presentation & Lightbox */
.browser-content.has-screenshot {
  padding: 0;
  min-height: auto;
  background: var(--slate-900);
  overflow: hidden;
}

.hero-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.2s ease;
}

.screenshot-container.has-screenshot {
  background: var(--slate-900);
}

.screenshot-image-wrap {
  background: var(--slate-900);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.screenshot-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.js-lightbox {
  cursor: zoom-in;
}

.js-lightbox:hover {
  transform: scale(1.015);
}

/* Lightbox Modal Dialog */
.lightbox-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1280px);
  max-height: 94vh;
  overflow: visible;
  box-shadow: var(--shadow-xl);
}

.lightbox-dialog::backdrop {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.08);
}

.lightbox-body {
  background: #020617;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  width: 100%;
  max-height: calc(88vh - 48px);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin: 0;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--slate-300);
  text-align: center;
  background: rgba(15, 23, 42, 0.95);
  width: 100%;
}

/* Chrome Installation Section */
.install-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.install-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.chrome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--slate-800);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.install-headline {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 850;
  color: var(--slate-900);
  margin: 0 0 1rem;
}

.install-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--slate-600);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.store-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-store-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--slate-200);
  color: var(--slate-600);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--slate-300);
  cursor: not-allowed;
  user-select: none;
}

.store-status-text {
  font-size: 0.88rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin: 0;
}

/* Privacy & Security Cards */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.security-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.security-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-text h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--slate-900);
  margin: 0 0 0.5rem;
}

.security-text p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

.privacy-cta-wrap {
  text-align: center;
}

.link-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.link-privacy:hover {
  background-color: var(--brand-sky-soft);
  color: var(--brand-blue-hover);
}

/* Belanja Kopi Section */
.support-card {
  background: var(--white);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 750;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.support-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 850;
  color: #78350f;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-700);
  margin: 0 0 1rem;
}

.support-highlight {
  font-size: 1.15rem;
  font-weight: 750;
  color: #92400e;
  margin: 1.25rem 0;
}

.support-recipient {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid var(--slate-300);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--slate-900);
  margin: 1.25rem 0;
}

.support-closing {
  font-size: 0.92rem;
  color: var(--slate-600);
  font-style: italic;
  margin-top: 1rem;
}

.qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-frame {
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

.qr-image {
  width: 240px;
  height: auto;
  display: block;
}

.qr-caption {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.85rem;
  max-width: 240px;
}

/* FAQ Section */
.faq-wrap {
  max-width: 820px;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-blue);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.faq-content p {
  margin: 0;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: var(--slate-100);
  border-top: 1px solid var(--slate-200);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.disclaimer-banner p {
  margin: 0;
  max-width: 800px;
  margin-inline: auto;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--slate-800);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 750;
  font-size: 1.1rem;
  text-decoration: none;
}

.footer-version {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(14, 165, 233, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--slate-500);
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Privacy Page Dedicated Styles
   ========================================================================== */
.policy-page {
  padding-block: 4rem 6rem;
}

.policy-container {
  max-width: 860px;
  margin-inline: auto;
}

.policy-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.policy-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin: 0.5rem 0 1rem;
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin: 0;
}

.policy-article {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.policy-article h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.policy-article h2:first-of-type {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.policy-article p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-700);
  margin: 0 0 1.25rem;
}

.policy-article ul {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.policy-article li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--slate-700);
  margin-bottom: 0.75rem;
}

.policy-notice {
  background: #f8fafc;
  border-left: 4px solid var(--brand-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 2.5rem;
  color: var(--slate-700);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

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

  .tutorial-step-row,
  .tutorial-step-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tutorial-step-row.reverse .step-text-col {
    order: 1;
  }

  .tutorial-step-row.reverse .step-visual-col {
    order: 2;
  }

  .support-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .support-title {
    justify-content: center;
  }

  .source-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile (max-width: 680px) */
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .section {
    padding-block: 3.75rem;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    height: auto;
    padding-block: 1rem;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-cta-btn {
    display: none;
  }

  .nav-links .nav-cta-btn {
    display: inline-flex;
    width: 100%;
  }

  .benefits-grid,
  .flow-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .source-detail-card,
  .install-card,
  .support-card,
  .tutorial-step-row,
  .policy-article {
    padding: 1.5rem;
  }

  .qr-image {
    width: 200px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
