/* ==========================================================================
   KEEPARO Marketing Website — shared styles
   Design language: Apple-style — bold type, huge whitespace, soft cards,
   subtle scroll reveals. Dark theme matching the native app (#0a0f1e).
   ========================================================================== */

:root {
  --bg: #0a0f1e;
  --surface: #111827;
  --surface-elevated: #1a2235;
  --border: #2d3748;
  --text: #ffffff;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;

  --primary: #00bcd4;
  --primary-light: #4dd0e1;
  --secondary: #1565c0;
  --accent: #4caf50;

  --success: #66bb6a;
  --warning: #ffa726;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --max-width: 1120px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.visible { transition-delay: 0.08s; }
.reveal-delay-2.visible { transition-delay: 0.16s; }
.reveal-delay-3.visible { transition-delay: 0.24s; }
.reveal-delay-4.visible { transition-delay: 0.32s; }
.reveal-delay-5.visible { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10, 15, 30, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo img {
  height: 96px;
  width: auto;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta-outline:hover {
  border-color: var(--text-secondary);
  background: var(--surface-elevated);
  transform: translateY(-1px);
}

.nav-menu-toggle {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 188, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 188, 212, 0.38);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #222d45;
  transform: translateY(-2px);
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Hero ---------- */

.hero {
  padding: 150px 0 78px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  max-width: 160vw;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.16) 0%, rgba(0, 188, 212, 0) 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.hero-content .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.store-badge-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.store-badge {
  display: block;
  height: 52px;
  width: auto;
  opacity: 0.6;
}

.store-badge-sm {
  height: 38px;
}

.store-badge-soon {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
}

.hero-content .subtitle {
  margin: 0 0 36px;
}

.hero-visual {
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-light);
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 40%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 44px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 100px;
}

.link-more {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.link-more:hover {
  border-color: var(--text);
  color: var(--primary-light);
}

/* ---------- Hero visual: phone + 4-step onboarding ---------- */

.hero-visual-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-visual .phone-frame {
  width: 240px;
  margin: 0;
  flex-shrink: 0;
}

.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  width: 208px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.hero-step-icon svg {
  width: 18px;
  height: 18px;
}

.hero-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-step-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
}

.hero-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero-step-connector {
  display: flex;
  justify-content: flex-start;
  padding-left: 29px;
  height: 20px;
  color: var(--text-tertiary);
}

.hero-step-connector svg {
  width: 14px;
  height: 14px;
}

/* ---------- Hero phone mockup ---------- */

.phone-frame {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 46px;
  background: linear-gradient(160deg, #171f33, #0d1220);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  padding: 14px;
  overflow: hidden;
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 22px;
  background: #05070d;
  border-radius: 14px;
  z-index: 2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 32px;
  display: block;
  background: #05070d;
  cursor: pointer;
}

.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
  z-index: 3;
}

.hero-video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 188, 212, 0.85);
}

.hero-video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Sections (generic) ---------- */

section {
  padding: 85px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.section-head p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Screenshots ---------- */

.screenshots-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.screenshot-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  background: linear-gradient(160deg, #171f33, #0d1220);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  padding: 10px;
  overflow: hidden;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  display: block;
}

.screenshot-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.price-card:hover {
  transform: translateY(-6px);
}

.price-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.price-card .price-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-value .amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-value .period {
  font-size: 15px;
  color: var(--text-secondary);
}

.price-trial {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.price-card .store-buttons {
  gap: 10px;
}

.price-card .store-badge-item {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 100px 24px;
  margin: 0 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.12), rgba(21, 101, 192, 0.12));
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.cta-band p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 36px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 38px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  mix-blend-mode: screen;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom a:hover {
  color: var(--text-secondary);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 160px 0 100px;
}

.legal-page .legal-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.legal-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.legal-page .legal-meta {
  color: var(--text-tertiary);
  font-size: 13px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 12px;
  white-space: pre-line;
}

.legal-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.legal-back:hover {
  color: var(--text);
}

/* ---------- Auth pages (Registrieren / Login / Konto) ---------- */

.auth-content {
  max-width: 440px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Without this, a grid item's default min-width:auto lets its content
     (the input's intrinsic size) force the column wider than its 1fr share,
     making the two fields in .form-row uneven instead of equal-width. */
  min-width: 0;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input {
  width: 100%;
  background: var(--surface-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.25s var(--ease);
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-message {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.form-message-error {
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.3);
  color: #ef5350;
}

.form-message-info {
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.3);
  color: var(--primary-light);
}

/* ---------- Plan picker (registrieren.html + konto.html) ---------- */

.plan-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: var(--surface-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.plan-option:hover {
  border-color: rgba(0, 188, 212, 0.4);
}

.plan-option.selected {
  border-color: var(--primary);
  background: rgba(0, 188, 212, 0.08);
}

.plan-option-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.plan-option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.plan-option-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-light);
}

.plan-option-period {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 2px;
}

.plan-option-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Subscription status badge (konto.html) ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.status-badge-active {
  background: rgba(102, 187, 106, 0.12);
  border: 1px solid rgba(102, 187, 106, 0.35);
  color: var(--success);
}

.status-badge-inactive {
  background: rgba(255, 167, 38, 0.12);
  border: 1px solid rgba(255, 167, 38, 0.35);
  color: var(--warning);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 64px;
  }

  .hero-content {
    text-align: center;
  }

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

  .hero-content .subtitle {
    margin: 0 auto 44px;
  }

  .hero-visual {
    text-align: center;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .screenshots-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-cta,
  .nav-cta-outline {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 120px 0 52px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual-inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero-visual .phone-frame {
    width: 220px;
  }

  .hero-steps {
    align-items: center;
  }

  .hero-step-connector {
    padding-left: 0;
    justify-content: center;
  }

  section {
    padding: 58px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cta-band {
    margin: 0 16px;
    padding: 64px 20px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .legal-content {
    padding: 28px 22px;
  }

  .legal-page {
    padding: 130px 0 70px;
  }

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