/* Feature pages (/features/). Built by docs/site-tools/build/build_features.py in the app repository.
   Everything not here comes from /blog/style.css. No icons: every visual is a real screenshot of the app. */

article.feature-page { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }
.breadcrumb { max-width: 960px; }
.feature-page h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 12px 0 10px; }
.feature-page .meta { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }
.feature-page .lead { font-size: 1.15rem; line-height: 1.7; color: var(--text); }
.feature-page h2 { font-size: 1.5rem; margin: 0 0 14px; }
.feature-page .small { font-size: 0.88rem; color: var(--text-3); }

/* The opening: what the feature does, in a sentence that can be quoted, next to the app itself */
.feature-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; margin: 8px 0 24px; }
.feature-hero .facts { list-style: none; margin: 18px 0 0; padding: 0; }
.feature-hero .facts li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-2); }
.feature-hero .facts li::before { content: ""; position: absolute; left: 3px; top: 0.66em; width: 9px; height: 9px; border-radius: 50%; background: var(--check); }
.hero-cta { margin-top: 24px; }
.btn, .feature-page .btn { display: inline-block; padding: 13px 28px; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #000; font-weight: 700; border-radius: 12px; text-decoration: none; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Screenshots: the app as it is, in a phone-shaped frame */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,0.5); background: #000; }
.shot figcaption { font-size: 0.82rem; color: var(--text-3); text-align: center; margin-top: 10px; }
.hero-shot { max-width: 300px; justify-self: end; }

/* Sections */
.feature-section { padding: 44px 0 4px; border-top: 1px solid var(--border); margin-top: 40px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.feature-section p, .feature-section li { color: var(--text-2); line-height: 1.8; }
.feature-section ul { margin: 0 0 16px 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; align-items: start; }
.split .shot { max-width: 260px; justify-self: end; }

/* How to: numbered steps */
.how { counter-reset: step; list-style: none; margin: 8px 0 0 !important; padding: 0; }
.how li { counter-increment: step; position: relative; padding: 0 0 18px 48px; color: var(--text-2); }
.how li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #000; background: linear-gradient(135deg, var(--gold), var(--orange)); }

/* Free and Pro */
.free-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 14px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.tier.pro { border-color: rgba(240,180,41,0.45); }
.tier h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tier.pro h3 { color: var(--gold); }
.tier ul { margin: 0 0 0 18px; }
.tier li { margin-bottom: 6px; }

/* Questions */
.feature-page details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
.feature-page details > summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; color: var(--text); list-style: none; position: relative; }
.feature-page details > summary::-webkit-details-marker { display: none; }
.feature-page details > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; font-weight: 400; }
.feature-page details[open] > summary::after { content: "\2212"; }
.feature-page details > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.feature-page details > .inner { padding: 0 18px 6px; }

/* Links to the other features */
.related-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related-feature { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; text-decoration: none; }
.related-feature:hover { border-color: rgba(240,180,41,0.45); text-decoration: none; }
.related-feature strong { display: block; color: var(--text); margin-bottom: 4px; }
.related-feature span { color: var(--text-3); font-size: 0.88rem; line-height: 1.5; }
.feature-page .cta-box { margin-top: 48px; }

/* The hub: every feature with its screenshot */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin: 28px 0 8px; }
.hub-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; }
.hub-card:hover { border-color: rgba(240,180,41,0.45); text-decoration: none; }
.hub-card img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); background: #000; }
.hub-card-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.hub-card-text strong { color: var(--text); font-size: 1.1rem; }
.hub-card-text > span { color: var(--text-2); font-size: 0.93rem; line-height: 1.55; }
.hub-card-text > .more { color: var(--gold); font-weight: 600; margin-top: 4px; }
.beta-pill { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #000; background: var(--gold); border-radius: 4px; padding: 2px 6px; vertical-align: middle; margin-left: 6px; }

@media (max-width: 760px) {
    article.feature-page { padding-top: 20px; }
    .feature-hero, .split { grid-template-columns: 1fr; gap: 28px; }
    .hero-shot, .split .shot { justify-self: center; max-width: 260px; }
    .free-pro { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
