/* WineNoob's pages (thisbrain.ai/winenoob/): the app icon's burgundy, dark by default with a light variant.
   Same page structure as the ChatAgain pages. */
:root {
  color-scheme: dark light;
  --bg: #1c0b11;
  --card: #2a121b;
  --border: #4a2331;
  --text: #f5ece8;
  --muted: #c3abb1;
  --accent: #f0a3b4;
  --link: #f0a3b4;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf6f3;
    --card: #ffffff;
    --border: #e6d9dc;
    --text: #2a0f18;
    --muted: #6b5258;
    --accent: #8f2e4a;
    --link: #8f2e4a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header and footer */
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px;
}

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

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a { color: var(--muted); margin: 0 10px; }
.site-footer a:hover { color: var(--text); }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 5vw, 40px);
}

h1 { font-size: 30px; margin: 0 0 4px; line-height: 1.2; }
h2 { font-size: 20px; margin: 36px 0 8px; line-height: 1.3; }
h3 { font-size: 16px; margin: 24px 0 4px; }
.note { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
p, li { font-size: 16px; }
li { margin: 4px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
a.tile {
  display: block;
  background: color-mix(in srgb, var(--text) 4%, var(--card));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
a.tile:hover { border-color: var(--accent); }
a.tile strong { display: block; color: var(--link); margin-bottom: 4px; }
a.tile span { color: var(--muted); font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
table.flows th:first-child { width: 24%; }
table.flows th:last-child, table.flows td:last-child { width: 26%; }

@media (max-width: 560px) {
  th, td { padding: 8px 10px; font-size: 14px; }
  .site-header { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Product page (index.html) */
main.wide { max-width: 1040px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero-icon { border-radius: 24px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.35); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 24px 0 12px; letter-spacing: -0.5px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 24px; }
.hero .note { margin: 12px 0 0; }
.app-store-badge { display: inline-block; }
.app-store-badge img { display: block; height: 60px; width: auto; }

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.shots img { width: 100%; height: auto; border-radius: 18px; display: block; }

@media (max-width: 760px) {
  /* Swipe through the screenshots on a phone. */
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 32px -16px;
    padding: 0 16px 8px;
  }
  .shots img { flex: 0 0 auto; width: 64%; min-width: 0; scroll-snap-align: center; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.features .card { padding: 24px; }
.features h2, .requirements h2 { margin-top: 0; }
.features p { margin-bottom: 0; color: var(--muted); }
