/* ============================================================================
   sections.css — shared, reusable section styles for landing + niche pages.
   Extracted from the notetaker.tech reference so every page (homepage and
   every niche/alternative/vertical page) renders identically without copying
   large inline <style> blocks. Pages must use the same section IDs/classes:
   #use-cases, #what-you-get, #pricing, #faq, footer#about, .hero-note.
   All values come from the design tokens in base.css — no magic values.
   ========================================================================== */

/* --- Single-row header on every size (no wrap, no two-story) -------------- */
nav .nav-inner { flex-wrap: nowrap; }
.nav-links { flex-wrap: nowrap; }
@media (max-width: 860px) {
    nav .nav-inner { padding: 8px 0; gap: 10px; }
    .nav-links { gap: 8px; }
    .nav-links a { font-size: 14px; padding: 6px 8px; }
    .nav-links .btn.primary { padding: 6px 12px !important; font-size: 14px; }
}
@media (max-width: 430px) {
    .brand span { display: none; }
    .nav-links { gap: 6px; }
    .nav-links a:not(.btn) { font-size: 13px; padding: 5px 6px; }
}

/* --- Hero note under the CTA row ----------------------------------------- */
.hero-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.hero-note::before {
    content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 7px; vertical-align: 1px;
    background: var(--gradient-brand);
}

/* --- Use cases (3 problem→solution cards) -------------------------------- */
#use-cases .uc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { #use-cases .uc-grid { grid-template-columns: repeat(3, 1fr); } }
#use-cases .uc-card {
    background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
    padding: 22px; box-shadow: var(--shadow-card);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
#use-cases .uc-card:hover { transform: translateY(-3px); border-color: var(--border-card-hover); box-shadow: var(--shadow-card-hover); }
#use-cases .uc-badge {
    display: inline-block; font: 700 12px/1 Outfit, Inter, sans-serif; letter-spacing: .02em;
    color: var(--primary); background: var(--brand-tint);
    padding: 6px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
#use-cases .uc-card h3 { margin: 0 0 6px; font: 800 18px/1.2 Outfit, Inter, sans-serif; }
#use-cases .uc-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* --- What you get / Restrictions ----------------------------------------- */
#what-you-get { overflow: hidden; }
#what-you-get .container { position: relative; z-index: 1; }
#what-you-get::before {
    content: ""; position: absolute; z-index: 0;
    top: -120px; right: -140px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(147, 51, 234, .16), transparent 68%);
    pointer-events: none;
}
#what-you-get::after {
    content: ""; position: absolute; z-index: 0;
    bottom: -160px; left: -160px; width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(6, 182, 212, .14), transparent 68%);
    pointer-events: none;
}
#what-you-get .wyg-subhead {
    margin: 34px 0 18px;
    font: 800 22px/1.2 Outfit, Inter, sans-serif;
    display: flex; align-items: center; gap: 10px;
}
#what-you-get .wyg-subhead::before {
    content: ""; width: 24px; height: 24px; flex: none;
    border-radius: 8px;
    background-color: var(--color-success-tint);
    background-repeat: no-repeat; background-position: center; background-size: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
#what-you-get .wyg-subhead--limits {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(79, 70, 229, .12);
}
#what-you-get .wyg-subhead--limits::before {
    background-color: var(--color-warning-tint);
    background-size: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E");
}
#what-you-get .wyg-subhead-note {
    margin: 0 0 18px; font-size: 15px; color: var(--muted); max-width: 74ch; line-height: 1.55;
}
#what-you-get .wyg-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { #what-you-get .wyg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { #what-you-get .wyg-grid { grid-template-columns: repeat(3, 1fr); } }
#what-you-get .wyg-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
#what-you-get .wyg-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card-hover);
}
#what-you-get .wyg-ico {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    color: #fff;
    margin-bottom: 14px;
    box-shadow: var(--shadow-icon);
}
#what-you-get .wyg-ico svg { width: 23px; height: 23px; }
#what-you-get .wyg-card:nth-child(3n+1) .wyg-ico { background: var(--gradient-brand); }
#what-you-get .wyg-card:nth-child(3n+2) .wyg-ico { background: var(--gradient-brand-2); box-shadow: var(--shadow-icon-2); }
#what-you-get .wyg-card:nth-child(3n+3) .wyg-ico { background: var(--gradient-brand-3); box-shadow: var(--shadow-icon-3); }
#what-you-get .wyg-card h4 { margin: 0 0 6px; font: 800 17px/1.25 Outfit, Inter, sans-serif; }
#what-you-get .wyg-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
#what-you-get .wyg-limits {
    background: linear-gradient(180deg, rgba(176, 137, 0, .06), rgba(176, 137, 0, .03));
    border: 1px solid var(--color-warning-line);
    border-radius: var(--radius-lg);
    padding: 22px;
}
#what-you-get .wyg-limits-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 760px) { #what-you-get .wyg-limits-list { grid-template-columns: repeat(2, 1fr); } }
#what-you-get .wyg-limits-list li {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--color-warning-line);
    border-radius: var(--radius);
    padding: 14px;
}
#what-you-get .wyg-tag {
    flex: none;
    font: 700 11px/1 Outfit, Inter, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-warning-strong);
    background: var(--color-warning-tint);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    margin-top: 1px;
}
#what-you-get .wyg-limits-list strong { display: block; font: 700 15px/1.3 Outfit, Inter, sans-serif; }
#what-you-get .wyg-limits-list span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* --- Pricing (2 plans, one featured) ------------------------------------- */
#pricing { overflow: hidden; }
#pricing .container { position: relative; z-index: 1; }
#pricing::before {
    content: ""; position: absolute; z-index: 0;
    top: -140px; left: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(79, 70, 229, .12), transparent 68%);
    pointer-events: none;
}
#pricing .plans { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 880px) { #pricing .plans { grid-template-columns: repeat(2, 1fr); } }
#pricing .plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
    transition: transform .18s ease, box-shadow .2s ease;
}
#pricing .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
#pricing .plan.featured {
    border: 1.5px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gradient-brand) border-box;
}
#pricing .plan-flag {
    position: absolute;
    top: -11px;
    left: 24px;
    font: 700 11px/1 Outfit, Inter, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-brand);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}
#pricing .plan-head { display: flex; align-items: center; gap: 12px; }
#pricing .plan-ico {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    border-radius: var(--radius);
    background: var(--gradient-brand-2);
    color: #fff;
    box-shadow: 0 6px 14px rgba(79, 70, 229, .26);
}
#pricing .plan.featured .plan-ico { background: var(--gradient-brand); box-shadow: var(--shadow-icon-3); }
#pricing .plan-ico svg { width: 22px; height: 22px; }
#pricing .plan h3 { margin: 0; font: 800 22px/1.1 Outfit, Inter, sans-serif; }
#pricing .plan-tagline { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
#pricing .plan-block { margin-top: 22px; }
#pricing .block-title {
    display: flex; align-items: center; gap: 7px;
    font: 700 12px/1 Outfit, Inter, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}
#pricing .block-title::before {
    content: ""; width: 16px; height: 16px; flex: none;
    background-repeat: no-repeat; background-position: center; background-size: contain;
}
#pricing .block-get::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
#pricing .block-limit::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08900' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}
#pricing .plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
#pricing .plan ul li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
#pricing .plan ul li svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
#pricing .li-get svg { color: var(--color-success); }
#pricing .li-limit svg { color: var(--color-warning); }
#pricing .plan-price { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(79, 70, 229, .1); }
#pricing .plan-price .amount { font: 800 30px/1 Outfit, Inter, sans-serif; }
#pricing .plan.featured .plan-price .amount {
    background: var(--gradient-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
#pricing .plan.featured .plan-price .amount small { -webkit-text-fill-color: var(--muted); }
#pricing .plan-price .amount small { font-size: 15px; font-weight: 700; color: var(--muted); }
#pricing .plan-price .note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
#pricing .plan-cta { display: grid; gap: 10px; margin-top: 16px; }
#pricing .plan-cta .btn { width: 100%; }

/* --- FAQ (accordions) ---------------------------------------------------- */
#faq .faq-list { display: grid; gap: 12px; max-width: 860px; margin-top: 28px; }
#faq .faq-item {
    background: var(--surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 4px 20px;
    box-shadow: var(--shadow-card);
    transition: border-color .2s ease, box-shadow .2s ease;
}
#faq .faq-item[open] { border-color: var(--border-card-hover); box-shadow: var(--shadow-card-hover); }
#faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    cursor: pointer; list-style: none; padding: 16px 0;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary h3 { margin: 0; font: 700 17px/1.3 Outfit, Inter, sans-serif; }
#faq .faq-chev { flex: none; width: 22px; height: 22px; position: relative; transition: transform .2s ease; }
#faq .faq-chev::before, #faq .faq-chev::after {
    content: ""; position: absolute; top: 10px; width: 11px; height: 2px; border-radius: 2px;
    background: var(--primary);
}
#faq .faq-chev::before { left: 1px; transform: rotate(45deg); }
#faq .faq-chev::after { right: 1px; transform: rotate(-45deg); }
#faq .faq-item[open] .faq-chev { transform: rotate(180deg); }
#faq .faq-item p { margin: 0; padding: 0 0 18px; font-size: 15px; color: #3a4353; line-height: 1.6; max-width: 68ch; }

/* --- Footer -------------------------------------------------------------- */
footer#about { border-top: 1px solid var(--hairline); padding: 40px 0 28px; margin-top: 8px; background: #ecefff; text-align: left; }
footer#about .footer-inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { footer#about .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; } }
footer#about .footer-tag { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 46ch; line-height: 1.6; }
footer#about .footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 760px) { footer#about .footer-nav { justify-content: flex-end; } }
footer#about .footer-nav a { color: var(--muted); font-size: 14px; }
footer#about .footer-nav a:hover { color: var(--primary); }
footer#about .footer-bottom {
    display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between;
    margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hairline);
    color: var(--muted); font-size: 13px;
}
footer#about .footer-bottom a { color: var(--muted); }
footer#about .footer-bottom a:hover { color: var(--primary); }

/* --- Prose intro (lead paragraph under a niche hero/section) ------------- */
.prose { max-width: 72ch; }
.prose p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* --- Comparison table caption + "best" column emphasis ------------------- */
.cmp-wrap { margin-top: 28px; }
table.cmp td.cmp-best, table.cmp th.cmp-best { background: var(--brand-tint); color: var(--primary); font-weight: 700; }
table.cmp .cmp-yes { color: var(--color-success); font-weight: 700; }
table.cmp .cmp-no { color: #b4487a; font-weight: 600; }
