﻿/* ═══════════════════════════════════════════════════════════════
   BERKAILAND — public.css  (mobile-first)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream:       #FFFFFF;
  --cream-dark:  #E8E8E8;
  --cream-mid:   #F4F4F4;
  --terra:       #FF7432;
  --terra-dark:  #D95F20;
  --terra-light: #FF9661;
  --earth:       #2A1A0A;
  --dark:        #1A0A00;
  --sand:        #C8C0B0;
  --white:       #FFFFFF;
  --grey:        #7A6A5A;
  --grey-light:  #B0A090;

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'DM Sans', system-ui, sans-serif;
  --ff-mono:  'Space Mono', monospace;

  --ease:    cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --t:       all 0.3s var(--ease);

  --shadow-sm:  0 2px 8px rgba(42,26,10,0.08);
  --shadow-md:  0 8px 24px rgba(42,26,10,0.12);
  --shadow-lg:  0 20px 48px rgba(42,26,10,0.18);
  --shadow-up:  0 -8px 32px rgba(42,26,10,0.16);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--earth);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--t); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--ff-sans); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography helpers ──────────────────────────────────────────── */
.section-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 700;
  color: var(--earth);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.65;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 3px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  transition: var(--t);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover, .btn-primary:active { background: var(--terra-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover, .btn-outline:active { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; }
.btn-sm { padding: 10px 16px; font-size: 10px; }

/* ── Header ──────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 200;
  padding: 16px 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.header.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img { height: 36px; filter: brightness(0) invert(1); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,10,0,0.5) 0%,
    rgba(26,10,0,0.75) 60%,
    rgba(26,10,0,0.95) 100%
  );
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 80px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,116,50,0.25);
  border: 1px solid rgba(255,116,50,0.4);
  color: var(--terra-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(38px, 10vw, 72px);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 18px;
}
.hero-title em {
  font-style: italic;
  color: var(--terra-light);
}
.hero-sub {
  font-size: clamp(15px, 3.5vw, 18px);
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-ctas .btn { justify-content: center; }
.hero-scroll-hint {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0 auto;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { opacity: 0.3; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Reveal animations ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.active { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }

/* ── Spotlight ───────────────────────────────────────────────────── */
.spotlight {
  background: var(--dark);
  padding: 28px 0;
}
.spotlight-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.spotlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.sl-icon {
  width: 44px; height: 44px;
  background: rgba(255,116,50,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--terra);
  flex-shrink: 0;
}
.sl-text { display: flex; flex-direction: column; gap: 2px; }
.sl-text strong { font-size: 14px; font-weight: 700; color: var(--white); }
.sl-text span { font-size: 12px; color: var(--grey-light); line-height: 1.5; }

/* ── Gallery section ─────────────────────────────────────────────── */
.gallery-section {
  padding: 64px 0 80px;
  background: #F5F5F5;
}
.gallery-header {
  margin-bottom: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.gallery-grid .doc-card {
  animation: cardIn 0.5s var(--ease-out) both;
}
.gallery-grid .doc-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-grid .doc-card:nth-child(2) { animation-delay: 0.15s; }
.gallery-grid .doc-card:nth-child(3) { animation-delay: 0.25s; }
.gallery-grid .doc-card:nth-child(n+4) { animation-delay: 0.35s; }

/* ── Document cards ──────────────────────────────────────────────── */
.doc-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.04);
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.doc-card:active { transform: scale(0.98); }
.doc-card.unlocked { cursor: pointer; }

/* Lock overlay — removed on unlock */
.doc-card:not(.unlocked) .doc-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(1px);
  z-index: 2;
}

.doc-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.doc-cover.variant-1 { background: var(--terra); }
.doc-cover.variant-2 { background: var(--dark); }
.doc-cover.variant-3 { background: #3D1A08; }
.doc-cover-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  top: -60px; right: -60px;
}
.doc-icon {
  font-size: 52px;
  color: rgba(255,255,255,0.12);
  position: relative; z-index: 3;
}
.doc-status {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--terra);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-family: var(--ff-mono);
  font-weight: 700;
  z-index: 10;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}
.doc-status.unlocked { color: #16a34a; }
.doc-status.coming-soon { color: var(--grey); }
.pin-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(26,10,0,0.75);
  color: var(--sand);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-family: var(--ff-mono);
  z-index: 10;
  display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(4px);
}
.doc-info {
  padding: 20px;
}
.doc-cat {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.doc-title {
  font-family: var(--ff-serif);
  font-size: 20px;
  color: var(--earth);
  line-height: 1.3;
  margin-bottom: 8px;
}
.doc-desc {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-action {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--terra);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 8px;
}

/* Teaser cards (dummy when empty) */
.doc-card.teaser .doc-cover::after { backdrop-filter: blur(2px); }

/* ── Teaser notice ───────────────────────────────────────────────── */
.teaser-notice {
  margin-top: 32px;
}
.teaser-notice-inner {
  background: var(--earth);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.teaser-notice-inner > i { font-size: 22px; color: var(--terra); }
.teaser-notice-inner strong { display: block; font-size: 15px; color: var(--white); margin-bottom: 4px; }
.teaser-notice-inner span { font-size: 13px; color: var(--grey-light); }

/* ── How it works ────────────────────────────────────────────────── */
.how-it-works {
  background: var(--dark);
  padding: 56px 0;
}
.hiw-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hiw-step { text-align: center; }
.hiw-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--terra);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.hiw-step h4 {
  font-family: var(--ff-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}
.hiw-step p { font-size: 13px; color: var(--grey-light); line-height: 1.65; max-width: 260px; margin: 0 auto; }
.hiw-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.1); display: none; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: #0F0500;
  padding: 48px 0 calc(100px + var(--safe-bottom));
  text-align: center;
  color: var(--sand);
}
.footer-logo { max-width: 120px; margin: 0 auto 18px; filter: brightness(0) invert(1); }
.footer-text { font-size: 13px; opacity: 0.65; max-width: 400px; margin: 0 auto 24px; line-height: 1.7; }
.footer-socials a { color: var(--sand); margin: 0 10px; font-size: 20px; display: inline-block; }
.footer-socials a:hover { color: var(--terra); }
.footer-bottom { margin-top: 28px; font-size: 11px; font-family: var(--ff-mono); border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; opacity: 0.4; }

/* ── Sticky Mobile Bar ───────────────────────────────────────────── */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 10px;
  box-shadow: var(--shadow-up);
}
.msb-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: 6px;
  border: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.msb-wa { background: #25d366; color: var(--white); flex: 0.7; }
.msb-wa:hover, .msb-wa:active { background: #1da851; }
.msb-cta { background: var(--terra); color: var(--white); flex: 1; }
.msb-cta:hover, .msb-cta:active { background: var(--terra-dark); }

/* Hide sticky bar on desktop */
@media (min-width: 900px) {
  .mobile-sticky-bar { display: none; }
  .site-footer { padding-bottom: 48px; }
}

/* ══════════════════════════════════════════════════════════════════
   DRAWER (BOTTOM SHEET)
   ══════════════════════════════════════════════════════════════════ */

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(26,10,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 400;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-up);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bottom-sheet.active { transform: translateY(0); }

.sheet-drag-handle {
  width: 40px; height: 4px;
  background: var(--sand);
  border-radius: 2px;
  margin: 14px auto 0;
  flex-shrink: 0;
  cursor: grab;
}

.sheet-header {
  padding: 16px 24px 18px;
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
  flex-shrink: 0;
}
.sheet-icon-wrap { margin-bottom: 12px; }
.sheet-icon {
  width: 48px; height: 48px;
  background: var(--terra);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.sheet-title {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--earth);
  margin-bottom: 6px;
}
.sheet-subtitle { font-size: 13px; color: var(--grey); line-height: 1.5; }
.sheet-subtitle strong { color: var(--earth); }

.sheet-body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: calc(20px + var(--safe-bottom));
}
.sheet-body::-webkit-scrollbar { width: 3px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { margin-bottom: 14px; }
.form-group label {
  font-family: var(--ff-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey);
}
.req { color: var(--terra); }
.optional { color: var(--grey-light); font-size: 8px; }
.form-group input, .form-group select {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 6px;
  padding: 13px 14px;
  font-family: var(--ff-sans);
  font-size: 15px;
  color: var(--earth);
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group input:not(:placeholder-shown) { border-color: var(--terra); outline: none; }
.form-group input.error { border-color: #dc2626; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 36px; }
.select-wrap i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--terra); font-size: 12px; pointer-events: none; }

/* Chip group (radio) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chip input { position: absolute; opacity: 0; width: 0; }
.chip span {
  display: block;
  padding: 8px 13px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 20px;
  font-size: 12px;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  background: var(--white);
}
.chip input:checked + span {
  border-color: var(--terra);
  background: var(--terra);
  color: var(--white);
}

/* Toggle checkbox */
.toggle-check {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--grey);
  cursor: pointer;
  margin-bottom: 20px;
  line-height: 1.5;
}
.toggle-check input { position: absolute; opacity: 0; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--cream-dark);
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-check input:checked ~ .toggle-track { background: var(--terra); }
.toggle-check input:checked ~ .toggle-track::after { transform: translateX(20px); }

.gate-submit {
  width: 100%;
  background: var(--terra);
  color: var(--white);
  border: none;
  padding: 17px;
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.gate-submit:hover, .gate-submit:active { background: var(--terra-dark); }
.gate-submit:active { transform: scale(0.98); }
.gate-submit:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

.privacy-note {
  text-align: center;
  font-size: 11px;
  color: var(--grey-light);
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Success screen */
.success-screen {
  text-align: center;
  padding: 48px 24px calc(32px + var(--safe-bottom));
}
.success-anim { margin-bottom: 24px; }
.success-circle {
  width: 80px; height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; color: #16a34a;
  animation: popIn 0.5s var(--ease) both;
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-family: var(--ff-serif); font-size: 26px; color: var(--earth); margin-bottom: 10px; }
.success-sub { font-size: 14px; color: var(--grey); margin-bottom: 28px; }

/* ══════════════════════════════════════════════════════════════════
   FULLSCREEN READER
   ══════════════════════════════════════════════════════════════════ */

.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 2100;
  pointer-events: none;
}
#readerProgressBar {
  height: 100%;
  background: var(--terra);
  width: 0%;
  transition: width 0.1s linear;
}

.fullscreen-reader {
  position: fixed; inset: 0;
  z-index: 2000;
  background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.fullscreen-reader.active { transform: translateY(0); }

.reader-header {
  height: 56px;
  background: var(--earth);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}
.reader-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--terra);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--ff-serif); font-weight: 700; font-size: 15px;
}
.brand-text { font-family: var(--ff-mono); font-size: 11px; color: var(--sand); text-transform: uppercase; letter-spacing: 0.1em; }
.reader-header-right { display: flex; align-items: center; gap: 8px; }

.reader-dl-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--terra);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: var(--t);
}
.reader-dl-btn:hover { background: var(--terra-dark); }

.reader-close-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.reader-close-btn:hover { background: rgba(255,255,255,0.2); }

.reader-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 32px 20px;
  scroll-behavior: smooth;
}
.reader-body::-webkit-scrollbar { width: 4px; }
.reader-body::-webkit-scrollbar-thumb { background: var(--terra); border-radius: 2px; }

.reader-footer {
  background: var(--cream-dark);
  border-top: 1px solid var(--sand);
  padding: 12px 16px;
  padding-bottom: calc(12px + var(--safe-bottom));
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}
.reader-meta { font-family: var(--ff-mono); font-size: 9px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.reader-wa-cta {
  display: flex; align-items: center; gap: 6px;
  background: #25d366; color: var(--white);
  padding: 8px 14px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}

/* Reader content styles */
.reader-page { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.r-cover-title { font-family: var(--ff-serif); font-size: clamp(30px, 7vw, 56px); color: var(--earth); line-height: 1.1; margin-bottom: 18px; font-weight: 700; }
.r-cover-title span { color: var(--terra); }
.r-cover-sub { font-size: 16px; color: var(--grey); font-style: italic; font-family: var(--ff-serif); margin-bottom: 40px; }
.r-interlude { background: var(--earth); padding: 32px; margin: 48px 0; border-radius: 8px; color: var(--white); }
.r-interlude p { font-family: var(--ff-serif); font-size: clamp(18px, 4vw, 24px); line-height: 1.45; font-style: italic; }
.r-interlude h2 { font-family: var(--ff-serif); font-size: 24px; color: var(--sand); margin-bottom: 14px; }
.r-card { display: flex; background: var(--white); border-radius: 8px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); }
.r-num { width: 64px; min-width: 64px; background: var(--terra); display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 32px; color: rgba(255,255,255,0.2); font-weight: 700; }
.r-content { padding: 20px; flex: 1; min-width: 0; }
.r-q { font-family: var(--ff-serif); font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--earth); line-height: 1.3; }
.r-a { font-size: 14px; color: var(--grey); margin-bottom: 12px; line-height: 1.65; }
.r-key { display: block; padding: 8px 12px; background: var(--cream-dark); border-left: 3px solid var(--terra); font-size: 12px; font-weight: 600; color: var(--terra-dark); line-height: 1.5; }
.section-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); display: block; margin-top: 36px; margin-bottom: 10px; }
.reader-page h1 { font-family: var(--ff-serif); font-size: clamp(26px, 6vw, 40px); margin-bottom: 16px; line-height: 1.2; }
.reader-page h2 { font-family: var(--ff-serif); font-size: clamp(20px, 4vw, 28px); margin: 32px 0 12px; color: var(--earth); }
.reader-page h3 { font-family: var(--ff-serif); font-size: 18px; margin: 24px 0 10px; }
.reader-page p { font-size: 15px; color: var(--grey); margin-bottom: 14px; line-height: 1.7; }
.reader-page ul, .reader-page ol { padding-left: 22px; margin-bottom: 14px; }
.reader-page li { font-size: 14px; color: var(--grey); margin-bottom: 6px; }
.reader-page strong { color: var(--earth); }
.reader-page a { color: var(--terra); }
.reader-page img { border-radius: 8px; margin: 18px 0; max-width: 100%; }
.reader-page table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; display: block; overflow-x: auto; }
.reader-page th { background: var(--earth); color: var(--white); padding: 10px 12px; text-align: left; font-family: var(--ff-mono); font-size: 10px; white-space: nowrap; }
.reader-page td { padding: 10px 12px; border-bottom: 1px solid var(--cream-dark); color: var(--grey); }
.reader-page .btn { display: inline-flex; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   TABLET  ≥ 600px
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .container { padding: 0 28px; }
  .hero { min-height: 90vh; padding-bottom: 80px; }
  .hero-title { font-size: clamp(44px, 9vw, 70px); }
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .spotlight-grid { flex-direction: row; gap: 0; }
  .spotlight-item { flex: 1; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.07); }
  .spotlight-item:last-child { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .teaser-notice-inner { flex-direction: row; align-items: center; }
  .teaser-notice-inner > div { flex: 1; }
  .hiw-grid { flex-direction: row; align-items: flex-start; }
  .hiw-divider { display: block; align-self: stretch; margin-top: 40px; }
  .form-row { gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   DESKTOP  ≥ 900px
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  .container { padding: 0 32px; }
  .header { padding: 20px 0; }
  .logo img { height: 40px; }

  /* Header hover effect on desktop */
  .header:not(.scrolled) { background: transparent; }

  .hero { min-height: 100vh; align-items: center; padding-bottom: 0; }
  .hero-inner { padding-top: 100px; }
  .hero-tag { font-size: 12px; }
  .hero-title { font-size: clamp(52px, 7vw, 80px); }
  .hero-sub { font-size: 18px; }
  .hero-scroll-hint { display: block; }

  .spotlight { padding: 36px 0; }
  .sl-icon { width: 52px; height: 52px; font-size: 22px; }
  .sl-text strong { font-size: 15px; }
  .sl-text span { font-size: 13px; }

  .gallery-section { padding: 100px 0; }
  .gallery-header { margin-bottom: 56px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  /* Card hover on desktop */
  .doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(255,116,50,0.18), 0 0 0 2px var(--terra);
  }
  .doc-cover { height: 180px; }
  .doc-title { font-size: 21px; }

  .hiw-step p { max-width: 220px; }

  /* Bottom sheet desktop (centered panel) */
  .bottom-sheet {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 560px;
    transform: translateX(-50%) translateY(110%);
    bottom: 0;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
  }
  .bottom-sheet.active { transform: translateX(-50%) translateY(0); }

  /* Reader */
  .reader-header { height: 64px; padding: 0 28px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-text { font-size: 12px; }
  .reader-dl-btn { padding: 9px 18px; font-size: 11px; }
  .reader-body { padding: 48px 32px; }
  .r-card { margin-bottom: 22px; }
  .r-num { width: 80px; font-size: 40px; }
}
