/* ── 1. Reset & custom properties (override base bg for landing page) ── */
body { background: var(--bg); line-height: 1.7; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

/* ── 2. Layout utilities ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-header h2 { color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}

/* ── 3. Logo overrides for landing page ── */
.logo svg { flex-shrink: 0; }
.logo-wordmark { font-family: var(--font); font-weight: 600; letter-spacing: -0.3px; line-height: 1; }
.logo--sm .logo-wordmark { font-size: 17px; }
.logo--lg .logo-wordmark { font-size: 26px; }
.logo--white .logo-wordmark { color: #ffffff; }

/* ── 4. Landing navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-app-links { display: none; align-items: center; gap: 2px; list-style: none; }
.nav-app-links.visible { display: flex; }
.nav-app-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 5px 11px; border-radius: 8px; transition: color 0.15s, background 0.15s; white-space: nowrap; }
.nav-app-links a:hover { color: var(--text); background: var(--bg-subtle); }

/* ── 5. Language switcher ── */
.lang-select {
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 22px 4px 8px; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
  transition: border-color 0.15s, color 0.15s;
}
.lang-select:hover { border-color: var(--blue); color: var(--text); }
.lang-select:focus { border-color: var(--blue); }

/* ── 6. Sign In nav button ── */
.btn-signin-nav {
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  color: var(--blue); background: var(--blue-light);
  border: none; border-radius: 10px;
  padding: 7px 16px; cursor: pointer;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.btn-signin-nav:hover { background: #d4e8ff; }

/* ── User pill (shown when logged in) ── */
.user-pill {
  display: none;
  align-items: center; gap: 8px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 10px; padding: 5px 12px 5px 8px;
}
.user-pill.visible { display: flex; }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}
.user-name { font-size: 0.85rem; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-signout {
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; padding: 0; margin-left: 2px;
  transition: color 0.15s;
}
.btn-signout:hover { color: var(--red); }

/* ── 7. Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 128px 24px 80px; position: relative; overflow: visible;
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 50%, #f5f0ff 100%);
}
.hero-blob {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #c2dcff 0%, transparent 55%),
              radial-gradient(circle at 70% 70%, #ddd6fe 0%, transparent 50%);
  opacity: 0.5; top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; animation: blobDrift 12s ease-in-out infinite alternate;
}
@keyframes blobDrift {
  from { transform: translate(-50%,-50%) scale(1);   }
  to   { transform: translate(-48%,-52%) scale(1.06); }
}
.hero-content { position: relative; z-index: 10; max-width: 680px; }
.hero-logo { margin-bottom: 32px; }

/* Eyebrow badge */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,122,255,0.08); border: 1px solid rgba(0,122,255,0.18);
  color: var(--blue); border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 14px; margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 2px rgba(0,122,255,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0,122,255,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(0,122,255,0.0);  }
}

.hero h1 { margin-bottom: 20px; color: var(--text); }
.hero-sub { font-size: 1.12rem; color: var(--text-muted); max-width: 540px; margin: 0 auto 40px; line-height: 1.75; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cta-note { font-size: 0.82rem; color: var(--text-muted); opacity: 0.75; }

/* ── 8. Store buttons ── */
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-store:hover { transform: translateY(-1px); }
.btn-store--dark { background: var(--text); color: #fff; box-shadow: 0 2px 12px rgba(28,28,30,0.2); }
.btn-store--dark:hover { box-shadow: 0 6px 20px rgba(28,28,30,0.28); }
.btn-store--light { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.btn-store--light:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.btn-store-icon { flex-shrink: 0; }
.btn-store-text { display: flex; flex-direction: column; text-align: left; gap: 1px; }
.btn-store-label { font-size: 0.68rem; font-weight: 400; opacity: 0.75; letter-spacing: 0.02em; }
.btn-store-name  { font-size: 0.95rem; font-weight: 600; }

/* ── 9. Features ── */
.features { background: var(--bg-subtle); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.feature-card { background: var(--bg); border-radius: 20px; padding: 32px 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.055); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,122,255,0.1); }
.feature-icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card h3 { color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; line-height: 1.65; }

/* ── 10. How it works ── */
.steps-row { display: flex; align-items: flex-start; justify-content: center; max-width: 860px; margin: 0 auto; position: relative; }
.step { flex: 1; text-align: center; padding: 0 24px; position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 26px; height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  left: calc(50% + 26px + 12px); width: calc(100% - 52px - 24px);
}
.step-icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; display: block; }
.step h3 { color: var(--text); margin-bottom: 8px; }
.step p { font-size: 0.92rem; line-height: 1.65; max-width: 220px; margin: 0 auto; }

/* ── 11. Footer ── */
.footer { background: var(--text); padding: 52px 24px; }
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-tagline { font-size: 0.82rem; color: #6e6e73; margin-top: 4px; }
.footer-copy    { font-size: 0.82rem; color: #6e6e73; }

/* ── 12. Auth modal ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg); border-radius: 24px;
  padding: 36px 32px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-subtle); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem; line-height: 1;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }

.modal-title {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 24px; padding-right: 24px;
}

.btn-oauth {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; border: 1.5px solid var(--border);
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
  margin-bottom: 10px; text-decoration: none;
}
.btn-oauth--google { background: var(--bg); color: var(--text); }
.btn-oauth--google:hover { background: var(--bg-subtle); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.btn-oauth--apple  { background: var(--text); color: #fff; border-color: var(--text); }
.btn-oauth--apple:hover  { background: #2c2c2e; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }

.modal-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--text-muted); font-size: 0.8rem;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.modal-form { display: flex; flex-direction: column; gap: 12px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-field input {
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); font-family: var(--font);
  font-size: 0.95rem; color: var(--text); background: var(--bg);
  outline: none; transition: border-color 0.15s;
}
.form-field input:focus { border-color: var(--blue); }

.btn-submit {
  width: 100%; padding: 13px; border-radius: 12px;
  background: var(--blue); color: #fff; border: none;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  transition: background 0.15s, transform 0.1s;
}
.btn-submit:hover  { background: var(--blue-dark); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 36px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue) 0%, #0056b3 100%);
  color: #fff;
  font-family: var(--font); font-size: 1.15rem; font-weight: 700;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 32px;
  box-shadow: 0 10px 20px rgba(0,122,255,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid rgba(0,122,255,0.2);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,122,255,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #0084ff 0%, var(--blue-dark) 100%);
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-primary svg { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-primary:hover svg { transform: translateX(4px) rotate(-10deg); }

.download-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px;
}

.modal-error {
  font-size: 0.82rem; color: var(--red);
  background: #fff0ef; border-radius: 8px;
  padding: 8px 12px; display: none;
}
.modal-error.visible { display: block; }

.modal-switch {
  text-align: center; margin-top: 18px;
  font-size: 0.85rem; color: var(--text-muted);
}
.modal-switch button {
  background: none; border: none; color: var(--blue);
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; padding: 0;
}
.modal-switch button:hover { text-decoration: underline; }

/* ── 13. Hero search widget ── */
.hero-search { width: 100%; max-width: 540px; margin: 0 auto; }

.search-row { display: flex; align-items: center; gap: 10px; }
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; display: flex; }
.search-input {
  width: 100%; padding: 17px 110px 17px 46px;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: 16px;
  font-family: var(--font); font-size: 1rem; color: var(--text);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 4px rgba(0,122,255,0.14);
  background: #fff;
}
.search-input::placeholder { color: var(--text-muted); }
.search-badge {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; transition: background 0.15s, color 0.15s;
}
.search-badge.type-text    { background: #f0f0f5; color: var(--text-muted); }
.search-badge.type-cnk     { background: #fff3e0; color: #b36200; }
.search-badge.type-cnk-ok  { background: #ff9500; color: #fff; }
.search-badge.type-fmd     { background: #e3f0ff; color: var(--blue-dark); }
.search-badge.type-fmd-ok  { background: var(--blue); color: #fff; }

.btn-scan {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 56px; padding: 0 20px;
  background: var(--blue);
  border: none; border-radius: 16px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: #fff;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,122,255,0.35);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn-scan:hover { background: var(--blue-dark); box-shadow: 0 6px 22px rgba(0,122,255,0.45); transform: translateY(-1px); }
.btn-scan:active { transform: scale(0.97); }
.btn-scan svg { flex-shrink: 0; }

.autocomplete {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow-y: auto; max-height: 320px; display: none; text-align: left;
}
.autocomplete.open { display: block; }
.ac-item { display: flex; flex-direction: column; padding: 12px 16px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border); }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--bg-subtle); }
.ac-name { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.ac-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.ac-code { font-size: 0.72rem; font-family: monospace; color: var(--blue); margin-top: 2px; }
.ac-empty { padding: 20px 16px; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.ac-loading { padding: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 0.88rem; }

/* Result card shown after a medication is selected */
.hero-med-card {
  display: none; align-items: center; gap: 14px;
  margin-top: 10px; padding: 16px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,122,255,0.2);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,122,255,0.1), 0 2px 8px rgba(0,0,0,0.06);
}
.hero-med-card.open { display: flex; animation: slideDown 0.2s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-med-info { flex: 1; min-width: 0; text-align: left; }
.hero-med-name { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-med-meta { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-add-btn { flex-shrink: 0; padding: 10px 20px; font-size: 0.88rem; white-space: nowrap; border-radius: 12px; }
.hero-clear-btn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--bg-subtle); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.hero-clear-btn:hover { background: var(--border); }

/* Scan overlay (same as cabinet) */
.scan-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.scan-overlay.open { display: flex; }
.scan-modal { background: var(--bg); border-radius: 20px; width: min(400px, 100%); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.scan-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.scan-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.scan-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-subtle); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.scan-close:hover { background: var(--border); }
.scan-viewfinder { position: relative; aspect-ratio: 1; background: #111; overflow: hidden; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-line { position: absolute; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 8px var(--blue); animation: scanSweep 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes scanSweep { 0%, 100% { top: 15%; } 50% { top: 85%; } }
.scan-corners { position: absolute; inset: 0; pointer-events: none; }
.scan-corners span { position: absolute; width: 24px; height: 24px; border-color: rgba(255,255,255,0.9); border-style: solid; border-width: 0; }
.scan-corners span:nth-child(1) { top: 10%;    left: 10%;  border-top-width: 3px; border-left-width: 3px;   border-radius: 3px 0 0 0; }
.scan-corners span:nth-child(2) { top: 10%;    right: 10%; border-top-width: 3px; border-right-width: 3px;  border-radius: 0 3px 0 0; }
.scan-corners span:nth-child(3) { bottom: 10%; left: 10%;  border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 3px; }
.scan-corners span:nth-child(4) { bottom: 10%; right: 10%; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 3px 0; }
.scan-hint { text-align: center; font-size: 0.85rem; color: var(--text-muted); padding: 14px 20px 0; min-height: 44px; line-height: 1.4; }
.btn-scan-file { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 20px 20px; padding: 12px; border: 1.5px dashed var(--border); border-radius: 12px; font-family: var(--font); font-size: 0.88rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.btn-scan-file:hover { border-color: var(--blue); color: var(--blue); }

.hero-try-link { margin-top: 16px; text-align: center; }
.hero-try-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  text-decoration: none;
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
}
.hero-try-link a::after { content: '→'; font-size: 0.92rem; transition: transform 0.15s; display: inline-block; }
.hero-try-link a:hover { color: var(--blue); border-color: rgba(0,122,255,0.3); background: rgba(232,242,255,0.7); }
.hero-try-link a:hover::after { transform: translateX(3px); }

/* ── 13. Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-app-links.visible { display: none; }
  .hero { padding: 120px 24px 64px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-blob { width: 400px; height: 400px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-store { justify-content: center; }
  .section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; gap: 40px; }
  .step { max-width: 300px; }
  .step::after { display: none; }
  .footer .container { flex-direction: column; align-items: flex-start; }
  .modal { padding: 28px 20px; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-width: 100%; }
}
