/* ==========================================================================
   Apple.com-inspired visual layer — scoped to /browser/extension/feature/*
   Loaded last on feature pages only; works with the site's light/dark vars.
   ========================================================================== */

/* ---------- Type & rhythm ------------------------------------------------ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.52941;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    overflow: visible;
}

main section {
    width: auto;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: left;
}

/* ---------- Hero: big centered headline + subtitle ----------------------- */
main section > h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: -0.025em;
    font-weight: 700;
    text-align: center;
    margin: 88px auto 0;
    max-width: 860px;
}

main section > h1 + h2 {
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--totl-fig-cap);
    text-align: center;
    margin: 14px auto 0;
    max-width: 720px;
}

main section > h1 + h2 + p {
    text-align: center;
    font-size: 1.12rem;
    max-width: 760px;
    margin: 28px auto 0;
}

/* ---------- Section headings (the "chapters" of the page) ---------------- */
main section h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 72px 0 14px;
}

main section h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.012em;
    margin: 40px 0 10px;
}

main section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 6px;
}

/* ---------- Body copy & links -------------------------------------------- */
main section p {
    font-size: 1.06rem;
    line-height: 1.55;
    margin: 1em 0;
}

main a {
    color: var(--totl-a-color);
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

main section ul {
    margin: 1em 0;
    padding-left: 1.4em;
}

main section ul li {
    margin: 0.45em 0;
}

/* ---------- How-to steps: clean numbered cards --------------------------- */
main section ol {
    counter-reset: totl-step;
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: grid;
    gap: 14px;
}

main section ol > li {
    counter-increment: totl-step;
    position: relative;
    padding: 22px 26px 22px 72px;
    background: var(--totl-second-background);
    border-radius: 18px;
}

main section ol > li::before {
    content: counter(totl-step);
    position: absolute;
    left: 26px;
    top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--totl-a-color);
}

/* ---------- FAQ: hairline-separated questions ---------------------------- */
h3.question {
    border-top: var(--totl-nav-border);
    padding-top: 24px;
    margin-top: 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

h3.question + p {
    color: var(--totl-primary-font-color);
    opacity: .85;
}

/* ---------- Command chips (speech-recognition etc.) ---------------------- */
ul.techspec {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

ul.techspec li {
    background: var(--totl-second-background);
    border-radius: 999px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Figures: large rounded media, quiet captions ----------------- */
main section > figure {
    margin: 52px 0;
    text-align: center;
}

main section > figure img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .10);
}

main section figure figcaption {
    margin-top: 14px;
    font-family: inherit;
    font-variant: normal;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--totl-fig-cap);
}

/* ---------- Mouse-actions option grid ------------------------------------ */
#mouseactions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

#mouseactions > div {
    background: var(--totl-second-background);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
}

#mouseactions h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

#mouseactions p {
    font-size: 0.95rem;
}

#mouseactions figure img {
    border-radius: 10px;
}

/* ---------- Feature tile grid (index page) ------------------------------- */
#favbrowser {
    margin: 48px 0 8px;
}

#listfavbrowser {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#listfavbrowser li {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
}

#listfavbrowser li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    box-sizing: border-box;
    padding: 30px 14px;
    background: var(--totl-second-background);
    border-radius: 18px;
    color: var(--totl-primary-font-color);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

#listfavbrowser li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    text-decoration: none;
    color: var(--totl-primary-font-color);
}

#listfavbrowser li a:focus-visible {
    outline: 2px solid var(--totl-a-color);
    outline-offset: 2px;
}

#listfavbrowser li .text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
}

/* ---------- Header: frosted-glass sticky nav (Apple's translucency) ------ */
header {
    position: sticky;
    top: 0;
    box-shadow: none;
    background: var(--totl-header-background);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
}

.brandname {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

nav a {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-variant: normal;
    letter-spacing: -0.005em;
    border-radius: 8px;
}

/* ---------- Closing CTA paragraph ---------------------------------------- */
main section > p:last-of-type {
    text-align: center;
    font-size: 1.12rem;
    margin: 56px auto 72px;
    max-width: 720px;
}

/* ---------- Ad slot: quiet, centered ------------------------------------- */
.wideads {
    margin: 48px auto;
}

/* ---------- Newsletter band + footer polish ------------------------------ */
a.btnblogsubscribe {
    border-radius: 980px;
    padding: 8px 22px;
    background: var(--totl-a-color);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

footer #footer-socialmedia li a svg {
    transition: opacity .2s ease;
}

footer #footer-socialmedia li a:hover svg {
    opacity: .75;
}

/* ---------- Mobile -------------------------------------------------------- */
@media only screen and (max-width: 768px) {
    main section {
        padding: 0 16px;
    }

    main section > h1 {
        margin-top: 56px;
    }

    main section h2 {
        margin-top: 56px;
    }

    main section > figure {
        margin: 36px 0;
    }

    main section > figure img {
        border-radius: 14px;
    }

    nav#menu {
        background: var(--totl-header-background);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #listfavbrowser li a {
        transition: none;
    }

    #listfavbrowser li a:hover {
        transform: none;
    }
}
