/* Styles for the static SEO landing pages (collections, styles, devices, wallpapers). */
:root {
  --bg: #0d0d0f; --panel: #17171c; --line: rgba(255,255,255,.10); --text: #f4f4f6; --muted: #a1a1aa; --accent: #7c3aed;
  /* shared with the app's design system (app-theme.css) */
  --pro: #b77bff; --line-2: rgba(255,255,255,.174); --line-3: rgba(168,168,168,.08);
  --glass-from: rgba(255,255,255,.115); --glass-to: rgba(255,255,255,.03);
  --glass-hover-from: rgba(255,255,255,.18); --glass-hover-to: rgba(255,255,255,.06);
  --drawer-from: rgba(39,39,42,.9); --drawer-to: rgba(8,8,11,.6);
  --thick-from: rgba(255,255,255,.9); --thick-to: rgba(195,195,195,.7);
  --inset-top: rgba(255,255,255,.272); --inset-bottom: rgba(0,0,0,.407);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
main { max-width: 1240px; margin: 0 auto; padding: 24px max(16px, 4vw) 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; opacity: .5; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 44px 0 14px; letter-spacing: -.01em; }
.lede { color: var(--muted); max-width: 70ch; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .meta { display: flex; flex-direction: column; padding: 12px 14px 14px; }
.card small { color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; background: var(--panel); }
.chips a:hover { border-color: var(--accent); }
.open { margin: 18px 0 0; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.detail .hero { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
dl { margin: 0 0 24px; display: grid; gap: 10px; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
.detail .chips { margin-top: 22px; }
@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
.legal { max-width: 72ch; }
.legal h2 { font-size: 18px; margin: 32px 0 10px; }
.legal p, .legal li { color: #d4d4d8; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: #c4b5fd; }
.howto { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.howto a { color: #c4b5fd; }

/* Guides */
.guide { max-width: 76ch; }
.guide .byline { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.guide .answer { font-size: 18px; line-height: 1.6; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; background: var(--panel); }
.guide .answer p { margin: 0; }
.guide p, .guide li { color: #d4d4d8; }
.guide a { color: #c4b5fd; }
.guide h2 { font-size: 22px; margin: 40px 0 12px; }
.guide h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text); }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 8px 0; }
.guide .steps li::marker { color: var(--accent); font-weight: 700; }
.guide table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 15px; }
.guide th, .guide td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.guide td + td, .guide th + th { white-space: nowrap; }
.guide th { color: var(--muted); font-weight: 500; }
.guide .faq h3:first-child { margin-top: 0; }
.picks { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 18px; counter-reset: pick; }
.pick { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; margin: 0 !important; counter-increment: pick; }
.pick-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.pick h3 { margin: 0 0 4px; }
.pick h3::before { content: counter(pick) ". "; color: var(--muted); }
.pick h3 a { color: var(--text); text-decoration: none; }
.pick p { margin: 0 0 6px; }
.pick .pick-meta { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .pick { grid-template-columns: 1fr; gap: 10px; }
  .guide .answer { font-size: 16px; padding: 14px 16px; }
}

/* Guides index */
.g-hero { padding: 8px 0 4px; }
.g-eyebrow { display: inline-flex; align-items: center; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: #c8c8ce; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.g-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; }
.g-hero .lede { font-size: 17px; margin-bottom: 8px; }
.g-sec h2 { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin: 40px 0 14px; }
.g-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.g-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-card { display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: 22px; text-decoration: none; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 30px rgba(0,0,0,.35); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.g-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 14px 40px rgba(0,0,0,.5); }
.g-cover { display: grid; gap: 4px; aspect-ratio: 16 / 10; border-radius: 15px; overflow: hidden; background: #141417; }
.g-cover--trio { grid-template-columns: repeat(3, 1fr); }
.g-cover--strip { grid-template-columns: repeat(4, 1fr); aspect-ratio: 21 / 9; }
.g-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.g-card:hover .g-cover img { transform: scale(1.04); }
.g-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 10px 10px; }
.g-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.g-kind { padding: 3px 9px; border-radius: 999px; font-weight: 500; color: #d8c2ff; background: rgba(183,123,255,.12); border: 1px solid rgba(183,123,255,.22); }
.g-body b { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.g-desc { color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #c4b5fd; }
.g-more svg { transition: transform .2s ease; }
.g-card:hover .g-more svg { transform: translateX(3px); }
@media (max-width: 1100px) { .g-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .g-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .g-grid--four, .g-grid--two, .g-grid--three { grid-template-columns: 1fr; }
  .g-cover--strip { aspect-ratio: 16 / 9; }
}

/* ─────────────── Shared with the app: logo, header, buttons ─────────────── */
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; user-select: none; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.logo-word { display: inline-flex; align-items: baseline; gap: 5px; font-size: 17px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; color: var(--text); }
.logo-word em { font-family: "Yellowtail", cursive; font-style: normal; font-weight: 400; font-size: 21px; letter-spacing: 0; color: #c48bff; transform: translateY(1px); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; padding: 0 max(16px, 2vw); background: rgba(13,13,15,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-3); }
.top-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--line-3); }
.top-links a { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.top-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.top-links a[aria-current="page"] { color: var(--text); background: linear-gradient(180deg, var(--glass-hover-from), var(--glass-hover-to) 60%); box-shadow: inset 0 1px 0 var(--inset-top); }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* dark glass, like the app's secondary buttons */
.btn-glass { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 2rem; font-size: 13px; color: #c8c8ce; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass-from), var(--glass-to) 80%); box-shadow: inset 0 1px 0 var(--inset-top), inset 0 -1px 0 var(--inset-bottom); transition: all .2s; }
.btn-glass:hover { color: var(--text); border-color: var(--line-2); background: linear-gradient(180deg, var(--glass-hover-from), var(--glass-hover-to) 60%); }
/* white "thick glass", like the app's Upgrade and Pro CTAs */
.btn-up, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 2rem; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--bg); text-decoration: none; white-space: nowrap; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--thick-from), var(--thick-to) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(0,0,0,.35); transition: filter .2s; }
.btn-up:hover, .btn:hover { filter: brightness(1.15); }
.btn { height: 42px; padding: 0 22px; font-size: 14px; }

/* ─────────────── Pro banner (matches the app's Lifetime Pro card) ─────────────── */
.upsell { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 24px; margin-top: 48px; padding: 18px 22px 18px 18px; border-radius: 2rem; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(139,31,230,.2) 0%, rgba(139,31,230,0) 55%), linear-gradient(160deg, var(--drawer-from) 0%, var(--drawer-to) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 50px rgba(0,0,0,.4); }
.upsell-fan { position: relative; flex: none; width: 150px; height: 82px; }
.upsell-fan img { position: absolute; top: 12px; width: 84px; height: 56px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,.55); outline: 1px solid rgba(255,255,255,.12); outline-offset: -1px; transition: transform .35s cubic-bezier(.25,0,0,1); }
.upsell-fan img:nth-child(1) { left: 0; transform: rotate(-8deg); z-index: 1; }
.upsell-fan img:nth-child(2) { left: 33px; top: 6px; z-index: 3; }
.upsell-fan img:nth-child(3) { right: 0; transform: rotate(8deg); z-index: 2; }
.upsell:hover .upsell-fan img:nth-child(1) { transform: translate(-3px, 2px) rotate(-11deg); }
.upsell:hover .upsell-fan img:nth-child(2) { transform: translateY(-3px); }
.upsell:hover .upsell-fan img:nth-child(3) { transform: translate(3px, 2px) rotate(11deg); }
.upsell-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.upsell-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.upsell-eyebrow svg { color: var(--pro); }
.upsell-copy p { margin: 0; font-size: 15px; line-height: 1.45; color: #c8c8ce; max-width: 58ch; }
.upsell-copy b { color: var(--text); font-weight: 600; }
.upsell-buy { flex: none; display: flex; align-items: center; gap: 16px; }
.upsell-price { display: flex; align-items: baseline; gap: 4px; }
.upsell-price b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.upsell-price span { font-size: 13px; color: var(--muted); }

/* ─────────────── Footer ─────────────── */
.foot { margin-top: 24px; border-top: 1px solid var(--line-3); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 60%); font-size: 14px; color: var(--muted); }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 48px max(16px, 4vw) 36px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { margin: 0; max-width: 34ch; line-height: 1.55; }
.foot-by { font-size: 13px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot-brand .foot-by a { color: var(--text); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { margin: 0 0 4px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #6e6e76; }
.foot-col a { color: var(--muted); font-size: 13.5px; }
.foot a:hover { color: var(--text); }
.foot-bottom { max-width: 1240px; margin: 0 auto; padding: 18px max(16px, 4vw) 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-3); font-size: 12.5px; color: #6e6e76; }

@media (max-width: 1000px) {
  .top-links { display: none; }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .upsell { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .upsell-buy { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .top-actions .btn-glass { display: none; }
  .logo-word { font-size: 15px; gap: 4px; }
  .logo-word em { font-size: 18px; }
}
