@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  color-scheme: light;

  /* Brand (aligned with Flutter design tokens) */
  --primary-strong: #d0056e;
  --primary-base: #eb2b2b;
  --primary-light: #ffa10b;
  --secondary-base: #7164ff;

  --bg-0: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.12);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: rgba(17, 24, 39, 0.08);

  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center, #f82e56 0%, #ff5879 100%);
  color: #ffffff;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.55;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px var(--shadow);
}

.site-header nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 10px 30px var(--shadow);
  color: var(--fg);
}

h1 {
  font-size: 28px;
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 18px;
  margin: 18px 0 8px;
  letter-spacing: -0.01em;
}

ul {
  padding-left: 18px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

body .meta strong {
  color: inherit;
}

body > .container > main > .meta,
body > .container > main > p.meta {
  color: rgba(255, 255, 255, 0.9);
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  font-size: 0.95em;
}

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.75);
}

/* Homepage: match app login screen layout */
body.page--home .container {
  max-width: 560px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page--home footer {
  text-align: center;
}

body.page--home main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.home-logo {
  height: 180px;
  width: auto;
}

.home-tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
}

.home-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
}

.home-actions {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.home-button {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ffffff;
  color: rgba(31, 41, 55, 0.95);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}

.home-button:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.home-button:active {
  transform: translateY(1px);
}

/* Card content links use brand accent */
.card a {
  color: var(--secondary-base);
}
