/* StudyMaster support site. Colours follow the app: warm paper, ink and
   Laurel Gold (#8A6116 light, #E0B85C dark). */
:root {
  --paper-top: #faf6ee;
  --paper-bottom: #f1e7d4;
  --card: #fffdf9;
  --ink: #1d1b18;
  --sub: #6e665c;
  --gold: #8a6116;
  --line: rgba(29, 27, 24, 0.1);
  --shadow: 0 1px 2px rgba(50, 34, 12, 0.06), 0 8px 24px rgba(50, 34, 12, 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper-top: #1b1814;
    --paper-bottom: #121110;
    --card: #23201b;
    --ink: #f3eee6;
    --sub: #b3a999;
    --gold: #e0b85c;
    --line: rgba(243, 238, 230, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--paper-bottom); }
body {
  margin: 0;
  background: linear-gradient(var(--paper-top), var(--paper-bottom) 900px);
  background-color: var(--paper-bottom);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold); }
img { max-width: 100%; height: auto; }

.bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 16px; max-width: 1080px; margin: 0 auto; padding: 18px 20px;
}
.crumbs { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.crumbs > a:first-child { color: var(--sub); text-decoration: none; font-size: 15px; }
.crumbs > a:first-child:hover { color: var(--gold); }
.crumbs span { color: var(--sub); opacity: 0.6; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: var(--sub); text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: var(--gold); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }
section { margin: 56px 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 30px; margin: 0 0 20px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.hero { text-align: center; margin-top: 24px; }
.hero .icon { border-radius: 28px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); margin: 22px 0 14px; }
.lead { font-size: 20px; color: var(--sub); max-width: 640px; margin: 0 auto 28px; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; flex-direction: column; align-items: center; min-width: 210px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  background: var(--gold); color: #fffdf9; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .store { color: #1b1814; } }
.store span { font-weight: 700; font-size: 18px; }
.store small { opacity: 0.85; font-size: 13px; }
.note { color: var(--sub); font-size: 14px; max-width: 560px; margin: 18px auto 0; }

.strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 16px; justify-content: safe center;
}
.strip img {
  flex: 0 0 auto; width: 200px; border-radius: 18px; scroll-snap-align: center;
  box-shadow: var(--shadow);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid article {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow);
}
.grid p { margin: 0; color: var(--sub); font-size: 15px; }
@media (max-width: 900px) { .grid, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.four { grid-template-columns: 1fr; } }

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 0 20px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--sub); }
.faq details[open] summary { color: var(--gold); }

.support {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow);
}
.support h2 { margin-top: 0; }

.doc {
  max-width: 760px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px clamp(20px, 5vw, 48px); margin-top: 8px; box-shadow: var(--shadow);
}
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin-top: 0; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc li { margin: 6px 0; }

footer { text-align: center; color: var(--sub); font-size: 14px; padding: 24px 20px 40px; }
footer p { margin: 4px 0; }
footer .small { font-size: 12px; opacity: 0.8; }
