/* SideNotes page — app-specific styles. Shared styles live in /assets/css/base.css */

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 30% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(500px 280px at 75% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.hero .app-icon { width: 96px; height: 96px; margin: 0 auto 22px; filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent)); }
.hero h1 { max-width: 860px; margin: 0 auto 18px; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.hero .lede { margin: 0 auto 32px; }
.hero .btn-row { justify-content: center; }
.hero .fine { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.hero .fine a { color: var(--muted); }

/* ---------- Hero screenshot ---------- */
.hero-shot { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1072px; }
.hero-shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg), 0 30px 80px -20px color-mix(in srgb, var(--accent) 35%, transparent); background: var(--surface); }
.hero-shot img { width: 100%; height: auto; transition: transform .4s ease; }
.hero-shot a:hover img { transform: scale(1.01); }
.hero-shot figcaption { margin-top: 14px; font-size: .78rem; color: var(--muted); }

/* ---------- Showcase (tabbed screenshots) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.tabs button:hover { color: var(--fg); background: var(--bg-alt); }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.panel { margin: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.panel a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.panel img { width: 100%; height: auto; }
.panel img.tall { max-height: 560px; width: auto; margin: 0 auto; }
.panel figcaption { color: var(--muted); font-size: 1.02rem; }
.panel figcaption b { display: block; color: var(--fg); font-family: var(--font-code); font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.02em; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tabs { width: 100%; } .tabs button { flex: 1 1 auto; padding: 8px 10px; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Use case story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; counter-increment: s; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.steps b { display: block; }
.steps span { color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); font-size: .84rem; }
.doc .t { font-weight: 650; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.doc p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.doc .q { color: var(--fg); background: linear-gradient(transparent 10%, color-mix(in srgb, var(--hl) 70%, transparent) 10%); border-bottom: 2px dashed var(--link); }
.compare .result { grid-column: 1 / -1; background: var(--note); color: var(--note-fg); border: 1px solid color-mix(in srgb, var(--note-edge) 40%, transparent); border-left: 4px solid var(--note-edge); border-radius: 12px; padding: 14px 16px; font-size: .88rem; }
.compare .result b { display: block; margin-bottom: 2px; }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.checks svg { width: 22px; height: 22px; flex: none; color: #16a34a; margin-top: 1px; }
.shield { width: min(260px, 70%); margin: 0 auto; color: var(--accent); }

/* ---------- Download ---------- */
.download { text-align: center; }
.download .lede { margin: 0 auto 36px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 20px; justify-content: center; align-items: start; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.dl .os { display: flex; align-items: center; gap: 12px; }
.dl .os svg { width: 30px; height: 30px; }
.dl h3 { margin: 0; }
.dl .meta { font-size: .85rem; color: var(--muted); }
.dl ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.dl ol li { margin-bottom: 4px; }
.dl .btn { width: 100%; }
.dl.primary { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-sm); }
.dl:not(.primary) .btn { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: none; }
.dl .yours { display: none; font-size: .72rem; font-weight: 650; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 9px; margin-left: auto; white-space: nowrap; align-self: flex-start; }
.dl.primary .yours { display: inline-block; }
.req { margin-top: 26px; font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--muted); }
.faq .a p:last-child { margin: 0; }
.faq pre { margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); overflow-x: auto; font-size: .85rem; color: var(--fg); }
.faq pre code { background: none; border: 0; padding: 0; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; }
.cta .card { padding: clamp(36px, 6vw, 64px) 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--accent-2) 10%, var(--surface))); }
.cta .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- Release pill (hero) ---------- */
.release-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 99px; font-size: .8rem; font-weight: 600;
  color: var(--fg); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.release-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 22%, transparent); }
.release-pill .arrow { color: var(--muted); transition: transform .15s; }
.release-pill:hover .arrow { transform: translateX(3px); }

/* ---------- Release note (download) ---------- */
.release-note {
  max-width: 760px; margin: 0 auto 36px; text-align: left;
  border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--line));
  background: color-mix(in srgb, #f59e0b 8%, var(--surface));
  border-radius: var(--radius); padding: 20px 22px; font-size: .95rem;
}
.release-note p { margin: 8px 0 0; color: var(--muted); }
.release-note p b { color: var(--fg); }
.rn-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.rn-head .badge { background: #f59e0b; color: #1f1300; border-radius: 6px; padding: 2px 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Install steps ---------- */
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; background: none; border: 0; border-radius: 0; padding: 10px 12px; font-size: .74rem; line-height: 1.5; word-break: break-all; color: var(--fg); }
.cmd .copy { flex: none; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: .78rem; font-weight: 600; padding: 0 14px; cursor: pointer; }
.cmd .copy:hover { background: var(--accent-soft); }
.alt-step { margin: 0; font-size: .85rem; color: var(--muted); }
.panel a:has(img.tall) { width: fit-content; max-width: 100%; margin: 0 auto; }
