/*
 * WizardsTool homepage. Built on Twenty Twenty-Four's own variables, with its default values as fallbacks, so
 * the same file works in the static prototype and on the WordPress site. Everything is prefixed wt- so it
 * can't touch the rest of the theme.
 *
 * On the site each section is a full-width group with the class wt-landing, and the plugin adds wt-homepage
 * to <body>. In the prototype, <body> is .wt-landing.
 */

.wt-landing,
.wt-homepage {
    --wt-bg: var(--wp--preset--color--base, #f9f9f9);
    --wt-surface: var(--wp--preset--color--base-2, #ffffff);
    --wt-text: var(--wp--preset--color--contrast, #111111);
    --wt-muted: var(--wp--preset--color--contrast-2, #636363);
    --wt-faint: var(--wp--preset--color--contrast-3, #a4a4a4);
    --wt-accent: var(--wp--preset--color--accent-3, #d8613c);
    --wt-accent-dark: #b94e2c;
    --wt-sand: var(--wp--preset--color--accent, #cfcabe);
    --wt-line: #e6e3dd;
    --wt-heading: var(--wp--preset--font-family--heading, Cardo), Georgia, serif;
    --wt-body: var(--wp--preset--font-family--body, "Inter"), system-ui, -apple-system, "Segoe UI", sans-serif;
    --wt-radius: 10px;
    --wt-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 12px 32px -12px rgba(17, 17, 17, 0.18);
}

.wt-landing {
    background: var(--wt-bg);
    color: var(--wt-text);
    font-family: var(--wt-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.wt-landing {
    margin: 0;
}

/* Sections sit flush against each other. Only the vertical margins: Twenty Twenty-Four stretches full-width
   blocks with negative side margins, which must stay. */
.wt-landing.alignfull {
    margin-block: 0;
}

.wt-landing *,
.wt-landing *::before,
.wt-landing *::after {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.wt-landing) {
        scroll-behavior: smooth;
    }
}

.wt-landing h1,
.wt-landing h2,
.wt-landing h3 {
    font-family: var(--wt-heading);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--wt-text);
}

.wt-landing p {
    margin: 0;
}

.wt-landing a {
    color: inherit;
}

.wt-landing :focus-visible {
    outline: 3px solid var(--wt-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.wt-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wt-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--wt-text);
    color: #fff !important;
    border-radius: 6px;
}

.wt-skip:focus {
    top: 12px;
}

.wt-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.wt-container--narrow {
    max-width: 760px;
}

/* Buttons and links */

.wt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--wt-accent);
    border-radius: 8px;
    background: var(--wt-accent);
    color: #fff !important;
    font: 600 1rem/1 var(--wt-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.wt-button:hover {
    background: var(--wt-accent-dark);
    border-color: var(--wt-accent-dark);
}

.wt-button--small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9375rem;
}

.wt-button--ghost {
    background: transparent;
    color: var(--wt-text) !important;
    border-color: var(--wt-text);
}

.wt-button--ghost:hover {
    background: var(--wt-text);
    border-color: var(--wt-text);
    color: #fff !important;
}

.wt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--wt-accent) !important;
    text-decoration: none;
}

.wt-link::after {
    content: "→";
    transition: transform 0.15s;
}

.wt-link:hover::after {
    transform: translateX(3px);
}

.wt-eyebrow,
.wt-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wt-accent);
}

/* Header */

.wt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(249, 249, 249, 0.88);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--wt-line);
}

.wt-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.wt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1875rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--wt-text) !important;
}

.wt-brand img {
    display: block;
}

.wt-brand__accent {
    color: var(--wt-accent);
}

.wt-nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 24px;
}

.wt-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-nav__list > li > a,
.wt-nav__menu-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--wt-text);
    font: 500 0.9375rem/1.2 var(--wt-body);
    text-decoration: none;
    cursor: pointer;
}

.wt-nav__list > li > a:hover,
.wt-nav__menu-button:hover,
.wt-nav__menu-button[aria-expanded="true"] {
    background: rgba(17, 17, 17, 0.05);
}

.wt-nav__menu {
    position: relative;
}

.wt-nav__menu-button svg {
    transition: transform 0.15s;
}

.wt-nav__menu-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.wt-nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    width: 320px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--wt-surface);
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius);
    box-shadow: var(--wt-shadow);
}

.wt-nav__dropdown a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--wt-text);
}

.wt-nav__dropdown a:hover {
    background: var(--wt-bg);
}

.wt-nav__dropdown strong {
    display: block;
    font-size: 0.9375rem;
}

.wt-nav__dropdown small {
    display: block;
    font-size: 0.8125rem;
    color: var(--wt-muted);
}

.wt-nav__icon {
    font-size: 1.25rem;
    line-height: 1.2;
}

.wt-nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.wt-nav__signin {
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
}

.wt-nav__signin:hover {
    text-decoration: underline;
}

.wt-menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--wt-text);
    cursor: pointer;
}

/* Hero */

.wt-hero {
    padding: 56px 0 36px;
    text-align: center;
}

.wt-hero__title {
    margin-top: 14px !important;
    font-size: clamp(2.75rem, 1.9rem + 3.2vw, 4.25rem) !important;
    letter-spacing: -0.025em !important;
}

.wt-hero__lead {
    max-width: 600px;
    margin: 20px auto 0 !important;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
    color: var(--wt-muted);
}

.wt-scan {
    position: relative;
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin: 36px auto 0;
    padding: 8px;
    background: var(--wt-surface);
    border: 1px solid var(--wt-line);
    border-radius: 14px;
    box-shadow: var(--wt-shadow);
}

.wt-scan__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wt-text);
    font: 400 1.0625rem/1 var(--wt-body);
}

.wt-scan__input:focus {
    outline: none;
}

.wt-scan:focus-within {
    border-color: var(--wt-accent);
    box-shadow: 0 0 0 3px rgba(216, 97, 60, 0.18), var(--wt-shadow);
}

.wt-scan .wt-button {
    min-height: 52px;
}

.wt-scan__error {
    position: absolute;
    left: 8px;
    top: calc(100% + 10px);
    font-size: 0.9375rem;
    color: #b42318;
    text-align: left;
}

.wt-hero__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--wt-muted);
}

.wt-hero__facts li::before {
    content: "✓";
    margin-right: 7px;
    color: var(--wt-accent);
    font-weight: 700;
}

/* Section headings */

.wt-section-head {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
}

.wt-section-head h2 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.wt-section-head p {
    margin-top: 12px;
    color: var(--wt-muted);
}

.wt-section-head--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: none;
    text-align: left;
}

/* Showcase */

.wt-showcase {
    padding: 4px 0 72px;
}

.wt-tabs__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.wt-tabs__list {
    display: flex;
    gap: 4px;
    margin: 0 auto;
    padding: 5px;
    overflow-x: auto;
    background: var(--wt-surface);
    border: 1px solid var(--wt-line);
    border-radius: 999px;
    scrollbar-width: none;
}

.wt-tabs__list::-webkit-scrollbar {
    display: none;
}

.wt-tabs__list [role="tab"] {
    flex-shrink: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--wt-muted);
    font: 500 0.9375rem/1.2 var(--wt-body);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.wt-tabs__list [role="tab"]:hover {
    color: var(--wt-text);
}

.wt-tabs__list [role="tab"][aria-selected="true"] {
    background: var(--wt-text);
    color: #fff;
}

/* The bar under the selected tab fills as its video plays, while the tour moves from tab to tab. */
.wt-tabs__list [role="tab"] {
    position: relative;
    overflow: hidden;
}

.wt-tabs__list [role="tab"]::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--wt-accent);
    transform: scaleX(var(--wt-progress, 0));
    transform-origin: left;
    opacity: 0;
}

.wt-tabs[data-touring] [role="tab"][aria-selected="true"]::after {
    opacity: 1;
}

.wt-tabs__pause {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 9px 14px;
    border: 1px solid var(--wt-line);
    border-radius: 999px;
    background: var(--wt-surface);
    color: var(--wt-text);
    font: 500 0.875rem/1 var(--wt-body);
    cursor: pointer;
}

.wt-tabs__pause svg {
    fill: currentColor;
}

.wt-tabs__pause .wt-icon-play,
.wt-tabs__pause[aria-pressed="true"] .wt-icon-pause {
    display: none;
}

.wt-tabs__pause[aria-pressed="true"] .wt-icon-play {
    display: block;
}

.wt-video {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    /* The clips' own background, so nothing flashes before the first frame. */
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
    box-shadow: var(--wt-shadow);
}

.wt-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wt-tabs__caption {
    max-width: 640px;
    margin: 18px auto 0 !important;
    text-align: center;
    color: var(--wt-muted);
}

.wt-tabs__note {
    margin-top: 6px !important;
    text-align: center;
    font-size: 0.875rem;
    color: var(--wt-faint);
}

/* Feature blocks */

.wt-features {
    padding: 24px 0 64px;
}

.wt-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
    padding: 56px 0;
}

.wt-feature + .wt-feature {
    border-top: 1px solid var(--wt-line);
}

.wt-feature--flip .wt-feature__text {
    order: 2;
}

.wt-feature__text h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 1.55rem + 1.8vw, 2.875rem);
}

.wt-feature__text > p:not(.wt-label) {
    margin-top: 16px;
    color: var(--wt-muted);
}

.wt-checks {
    display: grid;
    gap: 10px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.wt-checks li {
    position: relative;
    padding-left: 30px;
}

.wt-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(216, 97, 60, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3 7.7 12 13 6.4' fill='none' stroke='%23d8613c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Extensions and articles: cards */

.wt-extensions,
.wt-pricing,
.wt-articles {
    padding: 80px 0;
}

.wt-extensions {
    background: var(--wt-surface);
    border-top: 1px solid var(--wt-line);
    border-bottom: 1px solid var(--wt-line);
}

.wt-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.wt-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wt-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    background: var(--wt-bg);
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius);
}

.wt-card__icon {
    border-radius: 12px;
}

.wt-card h3 {
    margin-top: 4px;
    font-size: 1.75rem;
}

.wt-card p {
    color: var(--wt-muted);
}

.wt-card__meta {
    font-size: 0.875rem;
}

.wt-card .wt-button {
    margin-top: auto;
}

/* Pricing */

.wt-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.wt-plan {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: var(--wt-surface);
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius);
}

.wt-plan--free {
    border: 2px solid var(--wt-accent);
}

.wt-plan h3 {
    font-family: var(--wt-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.wt-plan__price {
    font-family: var(--wt-heading);
    font-size: 2.75rem;
    line-height: 1;
}

.wt-plan__price span {
    margin-left: 4px;
    font-family: var(--wt-body);
    font-size: 0.9375rem;
    color: var(--wt-muted);
}

.wt-plan ul {
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--wt-muted);
}

.wt-plan li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--wt-accent);
    font-weight: 700;
}

.wt-plan .wt-button {
    margin-top: auto;
    width: 100%;
}

/* FAQ */

.wt-faq {
    padding: 80px 0;
}

.wt-faq h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    text-align: center;
}

.wt-faq details {
    border-bottom: 1px solid var(--wt-line);
}

.wt-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.0625rem;
    list-style: none;
    cursor: pointer;
}

.wt-faq summary::-webkit-details-marker {
    display: none;
}

.wt-faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--wt-accent);
}

.wt-faq details[open] summary::after {
    content: "−";
}

.wt-faq details p {
    padding: 0 0 22px;
    color: var(--wt-muted);
}

/* Articles */

.wt-articles {
    background: var(--wt-surface);
    border-top: 1px solid var(--wt-line);
}

.wt-article {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius);
    text-decoration: none;
    transition: border-color 0.15s;
}

.wt-article:hover {
    border-color: var(--wt-text);
}

.wt-article time {
    font-size: 0.875rem;
    color: var(--wt-muted);
}

.wt-article h3 {
    font-size: 1.5rem;
}

/* On the site the FAQ stays a Yoast FAQ block, because it writes the FAQ structured data. These rules give it
   the same look as the prototype's FAQ (without the open and close, which the block doesn't have). */

.wt-homepage .wp-block-yoast-faq-block {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 80px;
}

/* The page's own heading just before the FAQ block, lined up with it and set like the other section heads. */
.wt-homepage .wp-block-post-content > h2:has(+ .wp-block-yoast-faq-block) {
    max-width: 760px;
    margin: 0 auto 8px;
    padding-top: 80px;
    text-align: center;
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.wt-homepage .schema-faq-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--wt-line);
}

.wt-homepage .schema-faq-question {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
}

.wt-homepage .schema-faq-answer {
    margin: 8px 0 0;
    color: var(--wt-muted);
}

/* The latest articles, a Query Loop on the site: cards like the prototype's. */

.wt-articles-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-articles-query .wp-block-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--wt-line);
    border-radius: var(--wt-radius);
}

.wt-articles-query .wp-block-post-date {
    font-size: 0.875rem;
    color: var(--wt-muted);
}

.wt-articles-query .wp-block-post-title {
    margin: 0;
    font-family: var(--wt-heading);
    font-size: 1.5rem;
    line-height: 1.15;
}

.wt-articles-query .wp-block-post-title a {
    text-decoration: none;
}

/* Closing call to action */

.wt-closing {
    padding: 88px 0 96px;
    background: var(--wt-text);
    text-align: center;
}

.wt-closing h2 {
    color: #fff !important;
    font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}

.wt-closing .wt-scan {
    border-color: #2a2a2a;
}

/* Footer */

.wt-footer {
    padding: 64px 0 32px;
    font-size: 0.9375rem;
}

.wt-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 32px;
}

.wt-footer__about {
    max-width: 280px;
    margin-top: 14px !important;
    color: var(--wt-muted);
}

.wt-footer h2 {
    margin-bottom: 12px;
    font-family: var(--wt-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wt-muted);
}

.wt-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-footer ul a {
    text-decoration: none;
}

.wt-footer ul a:hover {
    text-decoration: underline;
}

.wt-footer__bottom {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--wt-line);
    color: var(--wt-muted);
    font-size: 0.875rem;
}

/* Tablets */

@media (max-width: 960px) {
    .wt-menu-toggle {
        display: inline-flex;
    }

    .wt-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 24px 20px;
        background: var(--wt-bg);
        border-bottom: 1px solid var(--wt-line);
        box-shadow: 0 16px 24px -16px rgba(17, 17, 17, 0.2);
    }

    .wt-nav[data-open] {
        display: flex;
    }

    .wt-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .wt-nav__list > li > a,
    .wt-nav__menu-button {
        width: 100%;
        padding: 12px 8px;
        font-size: 1rem;
    }

    .wt-nav__dropdown {
        position: static;
        width: auto;
        padding: 0 0 0 8px;
        border: 0;
        box-shadow: none;
        background: none;
    }

    .wt-nav__actions {
        margin-left: 0;
        justify-content: space-between;
        padding: 0 8px;
    }

    .wt-feature,
    .wt-feature--flip {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 44px 0;
    }

    .wt-feature--flip .wt-feature__text {
        order: 0;
    }

    .wt-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wt-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wt-footer__grid > :first-child {
        grid-column: 1 / -1;
    }
}

/* Phones */

@media (max-width: 640px) {
    .wt-container {
        padding: 0 16px;
    }

    .wt-hero {
        padding: 56px 0 40px;
    }

    .wt-scan {
        flex-direction: column;
    }

    .wt-scan .wt-button {
        width: 100%;
    }

    .wt-scan__error {
        position: static;
        padding: 0 8px 4px;
    }

    .wt-tabs__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .wt-tabs__list {
        margin: 0;
    }

    .wt-tabs__pause {
        align-self: center;
    }

    .wt-video {
        border-radius: 10px;
    }

    .wt-cards,
    .wt-cards--three,
    .wt-plans,
    .wt-articles-query .wp-block-post-template {
        grid-template-columns: minmax(0, 1fr);
    }

    .wt-card {
        padding: 24px;
    }

    .wt-extensions,
    .wt-pricing,
    .wt-articles,
    .wt-faq {
        padding: 56px 0;
    }

    .wt-section-head--row {
        flex-direction: column;
        gap: 8px;
    }
}
