/* Where's the Toilet? — marketing site styles.
   Mobile-first, responsive, no frameworks, system font stack (no third-party CDNs). */

:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --surface: #16223c;
  --surface-2: #1d2c4d;
  --text: #eaf0fb;
  --text-muted: #a9b6cf;
  --brand: #1a73e8;
  --brand-2: #34a0ff;
  --accent: #38d39f;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(26, 115, 232, 0.25), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Honor device safe areas (notch / home indicator). */
.safe {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ── Layout primitives ─────────────────────────────────────── */

.section {
  padding: 56px 20px;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--prose {
  max-width: 720px;
}

.section__title {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.section__body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  padding-top: max(64px, calc(env(safe-area-inset-top) + 48px));
  padding-bottom: 64px;
  text-align: center;
}

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

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #ffffff, #c8d6f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--text);
}

.hero__lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 30px;
}

.hero__cta {
  width: 100%;
  max-width: 360px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Features ───────────────────────────────────────────────── */

.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card__icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ── Screenshots ────────────────────────────────────────────── */

.screenshots__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.phone {
  margin: 0;
}

.phone__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, var(--surface-2), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: var(--shadow);
}

.phone__placeholder {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ── Imprint ────────────────────────────────────────────────── */

.imprint {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.imprint__line {
  margin: 4px 0;
  color: var(--text-muted);
}

/* ── Privacy ────────────────────────────────────────────────── */

.privacy__intro {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.privacy__heading {
  font-size: 1.2rem;
  margin: 28px 0 8px;
}

.privacy__list {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

.privacy__list li {
  margin-bottom: 10px;
}

/* Content pages (privacy, imprint): comfortable, safe-area-aware bottom spacing
   above the footer. */
.privacy,
.imprint {
  padding-bottom: max(56px, calc(env(safe-area-inset-bottom) + 56px));
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  margin-top: auto;
  padding: 28px 20px max(28px, calc(env(safe-area-inset-bottom) + 20px));
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer__link {
  color: var(--text-muted);
  font-weight: 500;
}

.footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive: tablet and up ──────────────────────────────── */

@media (min-width: 640px) {
  .section {
    padding: 72px 24px;
  }

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

  .screenshots__gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

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