/* unmask - shared stylesheet */

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

/* ─────────────────────────────────────────
  Color scheme and design tokens hehe :)
───────────────────────────────────────── */
:root {
  --bg:          #F7F5F2;
  --card-bg:     #FFFDF9;
  --electric:    #002BC5;
  --coral:       #FF5C4D;
  --lavender:    #8B8FE8;
  --mint:        #3DBAA6;
  --peach:       #FF9A5C;
  --rose:        #E47BA8;
  --text:        #141830;
  --text-muted:  #6B7194;
  --radius:      24px;
  --radius-sm:   12px;
  --shadow:      0 6px 24px rgba(20, 24, 48, 0.08);
  --shadow-lg:   0 12px 40px rgba(20, 24, 48, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
  Nav
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 24, 48, 0.06);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-links .nav-cta {
  background: var(--electric);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-links .nav-cta:hover { color: #fff; opacity: 0.85; }

/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
section { padding: 96px 48px; }
.container { max-width: 1120px; margin: 0 auto; }

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  border: none;
}

.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--electric); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(20, 24, 48, 0.18);
}

/* ─────────────────────────────────────────
  Badge
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-beta {
  background: rgba(255, 92, 77, 0.1);
  color: var(--coral);
  border: 1px solid rgba(255, 92, 77, 0.25);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ─────────────────────────────────────────
  Cards
───────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 24, 48, 0.05);
  padding: 32px;
}

/* ─────────────────────────────────────────
  Strike (tagline effect)
───────────────────────────────────────── */
.strike {
  position: relative;
  display: inline;
}

.strike::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--text-muted);
  transform: translateY(-50%);
}

/* ─────────────────────────────────────────
  Hero (index.html)
───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  gap: 32px;
}

.hero-wordmark {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.hero-tagline .strike::after {
  height: 1px;
  background: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
  Screenshots row
───────────────────────────────────────── */
.screenshots {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  /* generous padding so shadows are never clipped */
  padding: 32px 64px 80px;
}

/* ─────────────────────────────────────────
  iPhone 17 Pro mockup
───────────────────────────────────────── */
.iphone-wrap {
  position: relative;
  flex-shrink: 0;
}

.iphone-frame {
  position: relative;
  width: 220px;
  /* slim titanium frame */
  background: linear-gradient(155deg, #5E5E60 0%, #3C3C3E 45%, #1E1E20 100%);
  border-radius: 39px;
  padding: 8px;
  box-shadow:
    inset 0 0 0 0.75px rgba(255, 255, 255, 0.14), /* inner highlight ring */
    inset 0 1px 0 rgba(255, 255, 255, 0.1),        /* top edge shimmer */
    0 32px 56px -12px rgba(0, 0, 0, 0.44),
    0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.iphone-frame:hover { transform: translateY(-10px); }

.iphone-wrap.featured .iphone-frame { width: 238px; }

/* Power button – right */
.iphone-frame::before {
  content: '';
  position: absolute;
  right: -4px;
  top: 25%;
  width: 4px;
  height: 13%;
  background: linear-gradient(180deg, #565658, #363638);
  border-radius: 0 2px 2px 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Action + volume buttons – left (box-shadow for 3 buttons) */
.iphone-frame::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 19%;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #565658, #363638);
  border-radius: 2px 0 0 2px;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    0 38px 0 0 #3C3C3E,  /* volume up */
    0 74px 0 0 #3C3C3E;  /* volume down */
}

.iphone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  position: relative;
}

/* inner screen gloss border */
.iphone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.iphone-screen img {
  width: 100%;
  display: block;
}

/* ─────────────────────────────────────────
  Feature cards (index.html)
───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 24, 48, 0.05);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
  Section headings (index.html)
───────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
  Modes section (index.html)
───────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}

.mode-card {
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-card.table  { background: var(--coral);    color: #fff; }
.mode-card.answer { background: var(--electric); color: #fff; }

.mode-card .mode-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.mode-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mode-card p {
  font-size: 0.9375rem;
  opacity: 0.85;
  line-height: 1.65;
}

/* ─────────────────────────────────────────
  CTA section (index.html)
───────────────────────────────────────── */
.cta-section { text-align: center; }

.cta-inner {
  background: var(--card-bg);
  border-radius: 40px;
  padding: 72px 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20, 24, 48, 0.06);
}

/* ─────────────────────────────────────────
  Data Deletion steps (data-deletion.html)
───────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid rgba(20, 24, 48, 0.06);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--electric);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────────────────────────
  Deletion form (data-deletion.html)
───────────────────────────────────────── */
.deletion-form {
  background: var(--card-bg);
  border: 1px solid rgba(20, 24, 48, 0.06);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 48px;
}

.deletion-form h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
  color: var(--text);
}

.deletion-form .form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(20, 24, 48, 0.14);
  background: var(--bg);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--electric); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────
  Deletion table (data-deletion.html)
───────────────────────────────────────── */
.what-gets-deleted { margin-top: 56px; }

.deletion-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.875rem;
}

.deletion-table th {
  text-align: left;
  padding: 10px 16px;
  background: rgba(20, 24, 48, 0.04);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(20, 24, 48, 0.08);
}

.deletion-table td {
  padding: 12px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(20, 24, 48, 0.05);
  vertical-align: top;
}

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

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-deleted  { background: rgba(255, 92, 77, 0.1);  color: var(--coral); }
.tag-retained { background: rgba(107, 113, 148, 0.1); color: var(--text-muted); }

/* ─────────────────────────────────────────
  Legal pages
───────────────────────────────────────── */
.legal-hero {
  padding-top: 128px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(20, 24, 48, 0.08);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.legal-hero .legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-body {
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
  color: var(--text);
}

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

.legal-body p, .legal-body li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-body li { margin-bottom: 6px; }

.legal-body a {
  color: var(--electric);
  text-decoration: none;

  .btn-text-white { color: #fff; }
}

.legal-body a:hover { text-decoration: underline; }

.legal-body .placeholder {
  background: rgba(0, 43, 197, 0.08);
  color: var(--electric);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-style: normal;
}

/* ─────────────────────────────────────────
  Coming soon teaser (index.html)
───────────────────────────────────────── */
.teaser-section { background: var(--text); }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.teaser-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaser-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(139, 143, 232, 0.2);
  color: var(--lavender);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
}

.teaser-hint {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  font-weight: 500;
}

/* ─────────────────────────────────────────
  FAQ (support.html)
───────────────────────────────────────── */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(20, 24, 48, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-body {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-body a { color: var(--electric); text-decoration: none; }
.faq-body a:hover { text-decoration: underline; }

.contact-card {
  margin-top: 64px;
  background: var(--electric);
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.contact-card a.btn {
  align-self: flex-start;
  background: #fff;
  color: var(--electric);
  font-weight: 700;
}

.contact-card a.btn:hover { opacity: 0.9; }

/* ─────────────────────────────────────────
  Footer
───────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(20, 24, 48, 0.08);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
  Responsive
───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links li:not(:last-child) { display: none; }

  section { padding: 72px 24px; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .hero { padding: 100px 24px 64px; }
  .screenshots { padding: 24px 24px 64px; gap: 16px; }

  .iphone-frame { width: 150px !important; border-radius: 30px; padding: 7px; }
  .iphone-frame::before { right: -3px; width: 3px; }
  .iphone-frame::after  { left: -3px;  width: 3px; }
  .iphone-screen        { border-radius: 24px; }
  .iphone-screen::after { border-radius: 23px; }

  .modes-grid  { grid-template-columns: 1fr; }
  .cta-inner   { padding: 48px 24px; border-radius: var(--radius); }
}

/* ─────────────────────────────────────────
  404 not found page
───────────────────────────────────────── */
.not-found {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  gap: 24px;
}

.not-found-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--electric);
  opacity: 0.12;
  user-select: none;
}

.not-found-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: -24px;
}

.not-found-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.65;
}

.not-found-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ─────────────────────────────────────────
  Language switcher
───────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  gap: 2px;
  background: rgba(20, 24, 48, 0.07);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
}

.lang-btn {
  padding: 5px 18px;
  border: none;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.lang-btn.active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* CSS-driven visibility — no flash even before JS runs */
.lang-content { display: none; }
html[lang="en"] .lang-content[data-lang="en"] { display: block; }
html[lang="de"] .lang-content[data-lang="de"] { display: block; }
