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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f3f4f6;
}

.hidden { display: none !important; }
a { color: inherit; }

/* Topbar (Drive-Stil) */
.topbar {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #00bcd4, #00838f);
}

.topbar-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.topbar-right { font-size: 0.8rem; }

.plan-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

/* Main layout */
.mainwrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

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

.main-left h1 {
  font-size: 2.2rem;
  margin: 0 0 0.75rem;
}

.lead {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  color: #4b5563;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.keyword-line {
  font-size: 0.85rem;
  color: #6b7280;
}

.seo-text h2 {
  font-size: 1.3rem;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.seo-text p {
  font-size: 0.95rem;
  color: #4b5563;
}

.main-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-card {
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.preview-image {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
}

.preview-caption {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #4b5563;
}

/* Sections & cards */

.section {
  margin-top: 2.5rem;
}

.section-alt {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.section h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

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

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.price {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.card ul li {
  margin-bottom: 0.25rem;
}

.note {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Buttons */

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.btn-primary {
  background: #0ea5e9;
  color: #eff6ff;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.6);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #111827;
}

.btn-secondary {
  background: #111827;
  color: #f9fafb;
}

.btn-mini {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  border: none;
  background: rgba(17, 24, 39, 0.9);
  color: #f9fafb;
}

/* Scanner Overlay */

.scanner-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.scanner-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 0.75rem;
  color: #f9fafb;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.scanner-title {
  font-size: 0.95rem;
}

.icon-btn {
  border: none;
  background: transparent;
  color: #f9fafb;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv-status {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.9;
}

.scanner-view {
  position: relative;
  flex: 1;
  overflow: hidden;
}

#cameraVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cameraOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Bottom bar */

.scanner-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem 1rem;
  gap: 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
}

.plan-info-bar {
  position: absolute;
  left: 1rem;
  top: 0.2rem;
  font-size: 0.7rem;
  color: #e5e7eb;
  max-width: 60%;
}

.shutter-btn {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 4px solid #f9fafb;
  background: transparent;
  position: relative;
  margin: 0 auto;
}

.shutter-btn::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: #f9fafb;
}

/* Footer */

.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
  background: #111827;
  color: #e5e7eb;
}

.footer a {
  color: #67e8f9;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Content pages */

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  background: #f9fafb;
}

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-page h2 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
}

.content-page p,
.content-page li {
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-page a {
  color: #0ea5e9;
}
