/* Spellbrew's site: Fig's violet night-sky apothecary, glass vials and glossy letter bubbles
   in the game's six potion colours. */
:root {
  --night: #1d0f42;
  --night-2: #2a1660;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.12);
  --text: #f6f1ff;
  --muted: #cbbfe9;
  --gold: #ffd678;
  --ruby: #e8455a;
  --amber: #f2a12e;
  --lime: #8fd14f;
  --aqua: #3cc6d8;
  --violet: #a764f0;
  --pink: #f272b5;
  --line: rgba(255, 255, 255, 0.14);
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(700px 420px at 50% -60px, rgba(167, 100, 240, 0.45), transparent 70%) no-repeat,
    linear-gradient(180deg, var(--night-2) 0, var(--night) 900px) var(--night);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .kicker, summary, .bubble { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

a { color: var(--gold); }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Top bar: the Appy Hour Studios family bar (the studio's aurora over navy, edged with its tile strip). */
.top {
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px);
  background:
    linear-gradient(100deg, rgba(52, 195, 230, 0.30), rgba(125, 108, 240, 0.28) 40%, rgba(212, 87, 179, 0.26) 62%, rgba(236, 106, 90, 0.28) 82%, rgba(246, 196, 69, 0.26)),
    rgba(14, 20, 51, 0.94);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, #34c3e6, #2f8fe0 35%, #f28a2e 70%, #ec6a5a) 1;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; }
.nav a { color: #c9d3ee; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* Hero */
.hero { padding: 60px 0 40px; text-align: center; }
.hero .icon { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 22px; box-shadow: 0 12px 40px rgba(167, 100, 240, 0.55); }
.hero h1 { font-size: clamp(40px, 7vw, 66px); line-height: 1.05; margin: 0 0 12px; font-weight: 900; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  background: var(--gold); color: #2a1660; font-weight: 800; box-shadow: 0 5px 0 #c99a2e;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
}
/* Apple's official App Store badge, unmodified (Apple's rules: at least 40px tall, no restyling). */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: 56px; width: auto; }
.small { font-size: 14px; color: var(--muted); }

/* The App Store screenshots: a grid that wraps (no sideways scrolling): two across on phones,
   three on tablets, six in a row on wide screens. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: var(--max); margin: 0 auto; padding: 8px 16px 40px; }
.shots img { width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .shots img { border-radius: 24px; } }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } .shots img { border-radius: 18px; } }

/* A little letter bubble, like the game's glossy letters. */
.bubble {
  display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 50%;
  font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 32%), var(--c);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: rgba(255, 255, 255, 0.04); }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; font-weight: 850; letter-spacing: -0.5px; }
h2 + p { color: var(--muted); margin-top: 0; max-width: 680px; }
h3 { margin: 0 0 6px; font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .kicker { font-size: 13px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; color: var(--gold); }
.card:nth-child(6n+2) .kicker { color: var(--aqua); }
.card:nth-child(6n+3) .kicker { color: var(--pink); }
.card:nth-child(6n+4) .kicker { color: var(--lime); }
.card:nth-child(6n+5) .kicker { color: var(--amber); }
.card:nth-child(6n) .kicker { color: #c9a2ff; }

/* What's new every few levels, each with a little letter bubble. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; margin-top: 26px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.step .bubble { flex: none; width: 46px; font-size: 20px; }
.step h3 { font-size: 17px; margin: 0 0 2px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .when { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }

/* The rooms of the apothecary */
.rooms { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.rooms li { padding: 8px 14px; border-radius: 999px; background: var(--glass-2); font-weight: 700; font-size: 15px; }

/* FAQ */
details { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Plain pages (support, privacy) */
.page { padding: 48px 16px 64px; max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; letter-spacing: -0.5px; }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: #e6def8; }
.page .note { color: var(--muted); font-style: italic; }
.page a { overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  section { padding: 44px 0; }
  .hero { padding-top: 44px; }
}

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

/* The way back to the studio, shared by every app's top bar: the Appy Hour Studios
   hourglass mark, then the app's own name. */
.crumbs { display: flex; align-items: center; gap: 12px; min-width: 0; }
.studio { display: flex; align-items: center; flex: none; padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, 0.24); }
.studio img { display: block; width: 32px; height: 32px; object-fit: contain; padding: 2px 4px; border-radius: 8px; background: linear-gradient(160deg, #f6f7ff, #d9deef); }
.studio:hover img { transform: translateY(-1px); }
