/* Free guides that the videos point to ("free guide in my bio"). One stylesheet for every guide,
   drawn from the landing page's tokens so a guide reads as part of milens.app. Phone first:
   almost every visitor arrives from a TikTok or Instagram bio link. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #ff5c02;
  --orange-50: #fff4ed;
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-tint: #f4f4f4;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --line: #e8e8e8;
  --radius: 16px;
  --shadow-md: 0 4px 12px rgba(24,24,27,0.06), 0 1px 2px rgba(24,24,27,0.04);
}
html { font-optical-sizing: none; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,250,250,0.88);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 760px; margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo span { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.top-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px;
}
.top-cta svg { width: 14px; height: 14px; }

main {
  max-width: 760px; margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 48px;
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--orange); }
h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.08; letter-spacing: -1.2px; font-weight: 800; margin-top: 8px; text-wrap: balance; }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 14px; max-width: 34em; }
.from { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.5px; font-weight: 750; text-wrap: balance; }
h2 + p { color: var(--ink-2); margin-top: 8px; max-width: 34em; }
section { display: grid; gap: 20px; }

/* collage: the same body relaxed and squeezed, then the photo spot */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collage figure { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 4 / 5; }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.collage figure.wide img { object-position: center 62%; }
.collage figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.collage figcaption small { display: block; font-weight: 400; opacity: 0.85; }
@media (min-width: 640px) {
  .collage { grid-template-columns: repeat(3, 1fr); }
  .collage figure.wide { grid-column: auto; aspect-ratio: 4 / 5; }
  .collage figure.wide img { object-position: center; }
}

/* the checks: one card each, picture beside the words on wider screens */
.checks { list-style: none; display: grid; gap: 14px; counter-reset: check; }
.check {
  counter-increment: check;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1fr;
}
.check img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 42%; background: #111; }
.check .words { padding: 16px 18px 18px; display: grid; gap: 6px; }
.check h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.2px; display: flex; gap: 10px; align-items: baseline; }
.check h3::before {
  content: counter(check);
  flex: none; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange-50); color: var(--orange); font-size: 15px; font-weight: 700;
}
.check p { color: var(--ink-2); }
@media (min-width: 640px) {
  .check { grid-template-columns: 220px 1fr; }
  .check img { height: 100%; aspect-ratio: auto; }
  .check .words { padding: 20px 22px; align-content: center; }
}

/* the checklist itself: tick boxes the reader can use while setting up */
.list {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 18px; box-shadow: var(--shadow-md);
}
.list label {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.list label:first-child { border-top: 0; }
.list input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); }
.list b { font-weight: 650; }
.list span { color: var(--ink-2); }
.list input:checked + span { color: var(--ink-3); }

/* app box */
.app {
  background: var(--ink); color: #fff; border-radius: 20px;
  padding: 26px 22px; display: grid; gap: 14px;
}
.app h2 { color: #fff; }
.app p { color: rgba(255,255,255,0.78); max-width: 34em; }
.store-badge {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #000; text-decoration: none;
  padding: 10px 18px; border-radius: 12px; min-width: 170px;
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge small { display: block; font-size: 10px; line-height: 1.2; }
.store-badge strong { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -0.3px; }

.note { font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; }
.more { font-weight: 600; text-decoration: none; color: var(--orange); }

/* guide index */
.cards { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; text-decoration: none;
}
.card img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; background: #111; }
.card h3 { font-size: 18px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--ink-3); margin-top: 4px; }

footer {
  max-width: 760px; margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-3);
}
footer a { color: var(--ink-3); text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
