@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Brand tokens match bittenbythevibe.com */
:root {
  --ink: #111517;
  --card: #1c2428;
  --paper: #ffffff;
  --chalk: #f4f6f5;
  --muted: #5b666b;
  --muted-dark: #a7b2b7;
  --lime: #9be15d;
  --body-ink: #3a4448;
  --rule: #d9dee0;
  --card-edge: #2c363b;

  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 96px);
  --section-y: clamp(48px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.lime { color: var(--lime); }

/* ---------- site header and footer ---------- */
.site-head { background: var(--ink); color: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.brand img { width: 36px; height: 36px; }
.site-head nav a { text-decoration: none; color: var(--muted-dark); font-size: 15px; }
.site-head nav a:hover { color: var(--lime); }
.site-foot { background: var(--ink); color: var(--muted-dark); font-size: 14px; padding: 32px 0; }
.site-foot a { color: var(--paper); }

/* ---------- library index ---------- */
.hero { background: var(--ink); color: var(--paper); padding: var(--section-y) 0; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 14ch; }
.hero p { color: var(--muted-dark); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; margin-top: 20px; }
.notice { display: inline-block; margin-top: 8px; padding: 6px 12px; border: 1px solid var(--card-edge); border-radius: 999px; font-size: 14px; color: var(--muted-dark); }

.shelf { padding: var(--section-y) 0; background: var(--chalk); }
.shelf-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.app-tile {
  display: flex; flex-direction: column; text-decoration: none; border-radius: 18px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); transition: transform .15s ease, box-shadow .15s ease;
}
.app-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(17, 21, 23, .12); }
.app-tile .cover, .app-hero {
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--app-accent) 32%, transparent), transparent 55%),
    radial-gradient(circle at 8% 100%, color-mix(in srgb, var(--app-glow2, var(--app-accent)) 22%, transparent), transparent 50%),
    var(--app-bg);
  position: relative; overflow: hidden;
}
.app-tile .cover { color: var(--app-fg); padding: 24px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.app-tile .cover .logo { width: 64px; height: 64px; margin-bottom: auto; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); position: relative; }
.app-tile .cover .name, .app-tile .cover .tagline { position: relative; }
.app-tile .cover .art, .app-hero .art { position: absolute; right: -10px; bottom: -20px; height: 115%; pointer-events: none; }
.app-hero .art { height: 100%; bottom: 0; right: 4%; opacity: .9; }
.app-hero .wrap { position: relative; }
.app-hero .app-logo { display: block; width: 88px; height: 88px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.app-tile .cover .name { font-family: var(--app-font); font-size: 34px; font-weight: 700; line-height: 1; color: var(--app-name, var(--app-fg)); }
.app-tile .cover .tagline { color: var(--app-accent); font-size: 15px; font-weight: 600; }
.app-tile .meta { padding: 18px 24px 22px; color: var(--body-ink); font-size: 15px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.app-tile .meta p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--chalk); border: 1px solid var(--rule); color: var(--muted); }
.chip.win { background: #eaf8dd; border-color: #cfeab4; color: #2f5d12; }

/* ---------- app page ---------- */
.app-hero { color: var(--app-fg); padding: var(--section-y) 0 calc(var(--section-y) * .8); }
.app-hero .back { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--app-fg); opacity: .75; text-decoration: none; }
.app-hero .back:hover { opacity: 1; }
.app-hero h1 { font-family: var(--app-font); font-size: clamp(44px, 7vw, 88px); font-weight: 700; color: var(--app-name, var(--app-fg)); }
.app-hero .tagline { color: var(--app-accent); font-size: clamp(18px, 2vw, 24px); font-weight: 600; margin-top: 10px; }
.app-hero .lede { max-width: 62ch; margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); opacity: .9; }
.app-hero .chips { margin-top: 24px; }
.app-hero .chip { background: transparent; color: var(--app-fg); border-color: color-mix(in srgb, var(--app-fg) 35%, transparent); }

.story { padding: var(--section-y) 0; }
.story-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.story h2 { font-size: 26px; margin-bottom: 12px; }
.story ul { margin: 0; padding-left: 1.1em; }
.story li { margin-bottom: .6em; color: var(--body-ink); }
.story p { color: var(--body-ink); }
.numbers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 8px; }
.number { background: var(--chalk); border-radius: 14px; padding: 18px 20px; }
.number b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.number span { font-size: 14px; color: var(--muted); }

.screens { background: var(--chalk); padding: var(--section-y) 0; }
.screens h2 { font-size: 30px; margin-bottom: 8px; }
.screens .sub { color: var(--muted); margin-bottom: 32px; }
.screen { margin: 0 0 64px; }
.screen figcaption { margin-top: 18px; color: var(--body-ink); font-size: 15px; max-width: 70ch; }
.screen figcaption b { color: var(--ink); }

/* ---------- device stage: laptop with the phone version alongside ---------- */
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: 0 32px;
  padding: clamp(24px, 4vw, 56px); border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--app-accent) 22%, transparent), transparent 60%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--app-glow2, var(--app-bg)) 18%, transparent), transparent 55%),
    #ffffff;
  border: 1px solid var(--rule);
}
.laptop { min-width: 0; filter: drop-shadow(0 24px 40px rgba(17, 21, 23, .18)); }
.lid { position: relative; background: #1b1f22; border-radius: 18px 18px 0 0; padding: 22px 14px 14px; }
.lid .cam { position: absolute; top: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a4146; }
.lid { overflow: hidden; }
.lid .mock { width: 1280px; height: 800px; zoom: .5; border-radius: 6px; overflow: hidden; }
.base { height: 16px; margin: 0 -4%; background: linear-gradient(#d5d9dc, #b9bfc3); border-radius: 0 0 14px 14px; position: relative; }
.base::before { content: ""; position: absolute; top: 0; left: 50%; width: 18%; height: 6px; margin-left: -9%; background: #a9b0b5; border-radius: 0 0 8px 8px; }
.phone-wrap { min-width: 0; position: relative; z-index: 1; }
.phone {
  background: #111517; border-radius: 40px; padding: 10px; position: relative;
  box-shadow: 0 0 0 2px #2c3338, 0 30px 50px rgba(17, 21, 23, .28);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #111517; border-radius: 99px; z-index: 2; }
.phone { overflow: hidden; }
.phone .mock { width: 390px; height: 820px; zoom: .59; border-radius: 52px; overflow: hidden; }
.phone-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .phone-wrap { width: min(250px, 100%); justify-self: center; }
}
@media (max-width: 600px) { .lid { padding: 16px 10px 10px; } .lid .cam { top: 5px; } .base { height: 10px; } }
@media (max-width: 460px) {
  .site-head nav { display: none; }
}
@media (max-width: 640px) { .app-hero .art { opacity: .3; right: -40px; } }
