/* Bebito — legal site styles (mirrors the app's iOS-style design) */

@font-face {
  font-family: "Baloo 2";
  src: url("baloo-2-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #fdfcf9;
  --foreground: #192b3d;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --muted: #68727e;
  --border: rgba(25, 43, 61, 0.1);
  --primary: #34776d;
  --primary-soft: rgba(152, 211, 194, 0.16);
  --shadow: 0 1px 2px rgba(25, 43, 61, 0.03), 0 16px 42px rgba(25, 43, 61, 0.07);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1211;
    --foreground: #f3f1eb;
    --card: rgba(31, 35, 33, 0.78);
    --card-solid: #1f2321;
    --muted: #a8afa9;
    --border: rgba(255, 255, 255, 0.09);
    --primary: #8fd2bf;
    --primary-soft: rgba(143, 210, 191, 0.1);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 32px 16px 56px;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
}

.landing {
  display: grid;
  place-items: center;
  padding-block: clamp(40px, 8vh, 76px);
  background:
    radial-gradient(circle at 18% 8%, rgba(242, 174, 146, 0.09), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(143, 207, 192, 0.12), transparent 32%),
    var(--background);
}

.landing .wrap {
  width: min(100%, 560px);
}

/* Header */

.site-header {
  text-align: center;
  margin-bottom: 36px;
}

.site-header img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 25%;
  box-shadow: 0 12px 28px rgba(25, 43, 61, 0.12);
}

.site-header h1 {
  margin: 0;
  font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.site-header p {
  max-width: 390px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* Page header (legal pages) */

.page-header {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header h1 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back:hover {
  text-decoration: underline;
}

/* Card */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.card .body {
  padding: 20px 20px 24px;
}

.card h2 {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 650;
}

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

.card p,
.card li {
  color: var(--muted);
  margin: 0 0 10px;
}

.card ul {
  padding-left: 20px;
  margin: 0 0 10px;
}

.card strong {
  color: var(--foreground);
}

a {
  color: var(--primary);
}

.updated {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Index list */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li + li {
  border-top: 1px solid var(--border);
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 79px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
}

.links a:focus-visible,
.back:focus-visible,
footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent);
  outline-offset: -3px;
}

.link-copy {
  min-width: 0;
}

.links .label {
  display: block;
  font-weight: 650;
  font-size: 15px;
  color: var(--foreground);
}

.links .desc {
  display: block;
  font-weight: 400;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.links .chev {
  color: var(--muted);
  flex: none;
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

footer {
  margin-top: 34px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

footer p {
  margin: 4px 0;
}

footer a {
  text-underline-offset: 3px;
}

/* Product landing page */

.home {
  display: block;
}

.home .wrap {
  width: min(100%, 640px);
}

.home .site-header .tagline {
  max-width: 440px;
  font-size: 17px;
}

.store-badge {
  display: inline-block;
  margin-top: 22px;
  border-radius: 10px;
}

.site-header .store-badge img {
  display: block;
  width: 150px;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.store-badge:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent);
  outline-offset: 3px;
}

.site-header .meta-line {
  margin-top: 10px;
  font-size: 13px;
}

main > * + * {
  margin-top: 30px;
}

.section-title {
  margin: 0 0 10px 4px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card h3 {
  margin: 18px 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.card h3:first-child {
  margin-top: 0;
}

.card .body > p:last-child {
  margin-bottom: 0;
}

.intro h2 {
  font-size: 17px;
}

.shots {
  display: flex;
  gap: 12px;
  margin-inline: -16px;
  padding: 4px 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}

.shots img {
  flex: none;
  width: 172px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

blockquote {
  margin: 0;
}

blockquote p {
  color: var(--foreground);
  font-size: 16px;
  font-style: italic;
}

blockquote footer {
  margin-top: 6px;
  text-align: left;
  font-size: 13px;
}

@media (max-width: 480px) {
  body {
    padding-inline: 14px;
  }

  .landing {
    place-items: start center;
    padding-top: 36px;
  }

  .site-header {
    margin-bottom: 28px;
  }

  .site-header img {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
  }

  .site-header h1 {
    font-size: 40px;
  }

  .links a {
    min-height: 74px;
    padding: 14px 16px;
  }
}

@media (prefers-color-scheme: dark) {
  .landing {
    background:
      radial-gradient(circle at 18% 8%, rgba(242, 174, 146, 0.05), transparent 28%),
      radial-gradient(circle at 84% 16%, rgba(143, 207, 192, 0.08), transparent 30%),
      var(--background);
  }

  .site-header img {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .links a,
  .links .chev {
    transition: none;
  }
}
