/* Albuno website. Palette from the app (core/designsystem AlbunoColors / AlbunoGradients). */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --canvas: #20232c;
  --container: #1c1f28;
  --surface: #323848;
  --surface-bright: #363943;
  --accent: #2166f1;
  --link: #7fa8ff;
  --mint: #3de8b0;
  --text: #ffffff;
  --text-body: #c3c6d7;
  --text-secondary: #9098ad;
  --divider: rgba(255, 255, 255, 0.08);
  --hero-gradient: linear-gradient(90deg, #36d1dc, #5b86e5, #a855f7);
  --pro-gradient: linear-gradient(90deg, #2166f1, #9742e5);
  --radius: 16px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 31, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

.site-nav a {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.hero h1 {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .brand {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.hero .note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Google Play badge placeholder. TODO(8.4): replace with the official badge artwork
   (https://play.google.com/intl/en_us/badges/), which Google's brand guidelines require. */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid #a6a6a6;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  text-align: left;
}

.play-badge:hover {
  text-decoration: none;
  border-color: #ffffff;
}

.play-badge small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play-badge strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

.section h2 {
  color: var(--text);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-align: center;
  margin-bottom: 12px;
}

.section .section-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--text-secondary);
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: var(--container);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.privacy-band {
  background: var(--container);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.checklist {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checklist strong {
  color: var(--text);
}

.pro-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--pro-gradient);
}

.pro-card-inner {
  background: var(--surface);
  border-radius: calc(var(--radius) - 2px);
  padding: 28px;
}

.pro-card h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq summary {
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin-top: 10px;
}

.cta {
  text-align: center;
}

/* Legal pages */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal h1 {
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h2 {
  color: var(--text);
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

.legal h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  font-size: 0.97rem;
  margin-bottom: 10px;
}

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

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

.legal .summary {
  background: var(--surface);
  border-left: 4px solid var(--mint);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
}

.legal .summary ul {
  margin-bottom: 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
}

.legal th {
  color: var(--text);
  background: var(--container);
}

.table-wrap {
  overflow-x: auto;
}

/* Placeholders that must be filled before publishing (README: TODO(8.4)). */
.todo {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--container);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .section {
    padding: 40px 16px;
  }

  .legal {
    padding: 32px 16px 56px;
  }
}

/* App icon in front of the header wordmark; the gradient moves to the text. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: inherit;
}
.wordmark-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}
