/* Vibe Days website. Colors follow src/theme/theme.ts in the app, and the
   page follows the system light or dark setting. */

:root {
  color-scheme: light dark;
  --background: #FFFFFF;
  --surface: #F2F2F7;
  --text: #1C1C1E;
  --text-muted: #6E6E73;
  --border: #D1D1D6;
  --accent: #C2185B;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(194, 24, 91, 0.12);
  --fertile: #1F5FCC;
  --elevated: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #1C1C1E;
    --text: #F2F2F7;
    --text-muted: #98989F;
    --border: #38383A;
    --accent: #F06292;
    --on-accent: #000000;
    --accent-soft: rgba(240, 98, 146, 0.24);
    --fertile: #64A8FF;
    --elevated: #2C2C2E;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.site-footer a { color: var(--text-muted); }

/* Text */

h1, h2, h3 { line-height: 1.25; }

h1 {
  font-size: 34px;
  margin: 40px 0 8px;
}

h2 {
  font-size: 24px;
  margin: 48px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.lead {
  font-size: 20px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.muted { color: var(--text-muted); }

/* Home */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 0 8px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin-top: 40px;
}

.hero h1 { margin-top: 16px; }

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
}

/* A mock of the app's Today status, drawn with HTML only. */
.today-card {
  width: 240px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.today-card .label {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.today-card .status {
  font-size: 28px;
  font-weight: 700;
  margin: 2px 0 4px;
}

.today-card .next {
  margin: 0 0 16px;
  font-size: 15px;
}

.today-card .button {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.card p { margin: 0; }

/* About: team members, with a photo or a generic placeholder. */
.member .avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent);
}

.member .avatar svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  opacity: 0.55;
}

.member .kicker {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 2px;
}

.card .muted { font-size: 15px; }

.pledge {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pledge li {
  padding-left: 28px;
  position: relative;
}

.pledge li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.notice {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.notice h3 { margin-bottom: 4px; }
.notice p { margin: 0; }

/* Privacy and Support */

.page h2 { font-size: 21px; margin-top: 36px; }

.updated {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq details:not([hidden]) { border-top: 1px solid var(--border); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p { margin: 10px 0 0; }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .lead { font-size: 18px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .today-card { width: 100%; }
  .cards { grid-template-columns: 1fr; }
}

/* Support: FAQ search */

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

/* One rounded field: search icon, input, and a Clear button inside it. */
.faq-search {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 24px;
  padding: 0 6px 0 16px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.faq-search[hidden],
.faq-clear[hidden] {
  display: none;
}

.faq-search svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.faq-search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.faq-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.faq-search input::placeholder { color: var(--text-muted); opacity: 1; }

/* The Clear button replaces the browsers' own clear icon. */
.faq-search input::-webkit-search-cancel-button,
.faq-search input::-webkit-search-decoration { -webkit-appearance: none; }

.faq-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 14px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.15s;
}

.faq-clear svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.faq-clear:hover { filter: brightness(0.95); }

.faq-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-empty {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* The first visible question gets the top border, also while filtering. */
.faq details:not([hidden]) ~ details { border-top: 0; }

/* Home: an icon at the top of each feature card. */
/* Icon and title on one line. */
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-head h3 { margin: 0; }

.card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* The available features get the faded accent; planned ones stay grey. */
.features .card {
  background: var(--accent-soft);
}

.features .card-icon {
  background: var(--accent);
  color: var(--on-accent);
}

/* The disclaimer's warning icon: solid accent, like the feature icons. */
.notice .card-icon {
  background: var(--accent);
  color: var(--on-accent);
}
