/* Sandbox only: the "three ways to use SageRank" section.
   Reads the live theme tokens (theme.css) and adds no colour of its own: one brand blue, white frames, flat surfaces. */

#ways { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(1rem, 3vw, 3rem); }

/* ---- Intro and the three jump tiles ---- */
.ways-intro { max-width: 48rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.ways-intro h2 { margin: 0 0 1rem; }
.ways-lede { margin: 0; color: var(--on-surface-variant); font-size: 1.0625rem; line-height: 1.65; }

.ways-jump { max-width: 62rem; margin: 0 auto; }
.way-jump { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; border-radius: 10px; text-decoration: none; color: inherit; }
.way-jump b { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: #fff; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; }
.way-jump b .material-symbols-outlined { color: var(--n-accent); font-size: 1.25rem; }
.way-jump span.way-jump-d { color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.5; }

/* ---- One way = copy beside media; the .way--flip block swaps sides ---- */
.way { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 2.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); scroll-margin-top: 3rem; }
.way + .way { border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 1024px) {
    .way { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(2.5rem, 5vw, 5rem); }
    .way-copy { grid-column: 1 / span 5; grid-row: 1; }
    .way-media { grid-column: 6 / span 7; grid-row: 1; }
    .way--flip .way-copy { grid-column: 8 / span 5; }
    .way--flip .way-media { grid-column: 1 / span 7; }
}

.way-copy h2 { margin: 0 0 1rem; max-width: 16ch; }
.way-lede { margin: 0; color: var(--on-surface-variant); font-size: 1.0625rem; line-height: 1.65; max-width: 34rem; }

.way-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; max-width: 34rem; }
.way-list li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: start; }
.way-list .material-symbols-outlined { color: var(--n-accent); font-size: 1.25rem; margin-top: 0.1rem; }
.way-list strong { display: block; color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.way-list .way-d { display: block; margin-top: 0.15rem; color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.55; }
.way-tag { margin-left: 0.5rem; padding: 0.05rem 0.45rem; border: 1px solid rgba(56, 182, 255, 0.45); border-radius: 999px; color: var(--n-accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.1em; }

.way-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.5rem; margin-top: 2rem; }
.way-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.4rem; border-radius: 12px; background: var(--primary); color: #04121f; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color 0.2s var(--n-ease); }
.way-btn:hover { background: #38b6ff; }
.way-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }
.way-link:hover { text-decoration-color: #fff; }
.way-note { margin: 1.1rem 0 0; max-width: 34rem; color: var(--on-surface-variant); font-size: 0.875rem; line-height: 1.6; }
.way-btn:focus-visible, .way-link:focus-visible, .way-jump:focus-visible, .way-play:focus-visible, .way-pause:focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px; }

/* ---- The address example ---- */
.way-url { display: grid; gap: 0.7rem; margin-top: 1.5rem; max-width: 34rem; padding: 1rem 1.25rem; border-radius: 10px; }
.way-url p { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: center; margin: 0; }
.way-url .way-url-k { color: var(--on-surface-variant); font-size: 0.875rem; }
.way-url code { overflow-wrap: anywhere; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(0.8125rem, 3.7vw, 1rem); }
.way-url code b { color: var(--n-accent); font-weight: 600; }

/* ---- Media: white frame like every picture on the site, no tilt ---- */
.way-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--img-frame, rgba(255, 255, 255, 0.9)); border-radius: 14px; background: #05070b; transition: border-color 0.3s var(--n-ease), translate 0.3s var(--n-ease); }
@media (hover: hover) and (pointer: fine) {
    .way-frame:hover { border-color: var(--img-frame-hover, #fff); translate: 0 calc(var(--img-lift, 6px) * -1); }
}
.way-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.way-cap { margin: 0.8rem 0 0; color: var(--on-surface-variant); font-size: 0.875rem; line-height: 1.5; }

.way-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; background: linear-gradient(to top, rgba(5, 7, 11, 0.55), rgba(5, 7, 11, 0) 50%); color: #fff; }
.way-play i { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border: 2px solid #fff; border-radius: 50%; background: rgba(5, 7, 11, 0.6); backdrop-filter: blur(6px); transition: background-color 0.2s var(--n-ease), border-color 0.2s var(--n-ease); }
.way-play i .material-symbols-outlined { font-size: 2.25rem; }
.way-play:hover i { border-color: var(--primary); background: var(--primary); color: #04121f; }
.way-frame.is-playing .way-play, .way-frame.has-controls .way-play { display: none; }

.way-chip { position: absolute; left: 0.85rem; bottom: 0.85rem; padding: 0.2rem 0.6rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: rgba(5, 7, 11, 0.72); color: #fff; font-size: 0.8125rem; line-height: 1.4; pointer-events: none; }
.way-frame.is-playing .way-chip, .way-frame.has-controls .way-chip { display: none; }

.way-pause { position: absolute; right: 0.85rem; bottom: 0.85rem; display: none; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; background: rgba(5, 7, 11, 0.7); color: #fff; cursor: pointer; }
.way-pause:hover { background: var(--primary); border-color: var(--primary); color: #04121f; }
.way-frame[data-autoplay].is-playing .way-pause, .way-frame[data-autoplay].user-paused .way-pause { display: grid; }

@media (prefers-reduced-motion: reduce) {
    .way-frame, .way-btn, .way-play i { transition: border-color 0.3s var(--n-ease); }
    .way-frame:hover { translate: none; }
}

/* ---- Hero helper: what the four scores mean, in plain words ---- */
.hero-asks { display: grid; gap: 0.5rem; max-width: 36rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hero-asks li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.45; }
.hero-asks b { color: #fff; font-weight: 600; }
.hero-note a { white-space: nowrap; }

/* ---- The two-line "why" under the hero ---- */
.why-band { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.why-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.why-inner h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
.why-inner p { margin: 0; color: var(--on-surface-variant); font-size: 1.0625rem; line-height: 1.65; }

/* ---- Dashboard block: the extras in one line ---- */
.way-also { max-width: 34rem; margin: 1.25rem 0 0; color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.6; }
.way-also b { color: #fff; font-weight: 600; }

/* ---- Subscribe strip right after the three ways ---- */
#start.section-padding { border-top: 0; background-image: none; padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.start-panel { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem); border-radius: 14px; }
@media (min-width: 900px) { .start-panel { grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; } }
.start-panel h2 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; }
.start-panel p { margin: 0; max-width: 42rem; color: var(--on-surface-variant); font-size: 1rem; line-height: 1.6; }
.start-panel .start-lead { margin-bottom: 0.4rem; color: #fff; font-size: 1.0625rem; font-weight: 600; }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.5rem; }

/* ---- Spacing and line breaks ---- */
.why-inner p, .ways-lede { text-wrap: balance; }
.way-lede, .way-list .way-d, .way-also, .way-note { text-wrap: pretty; }
#way-prefix { padding-bottom: clamp(0.5rem, 2vw, 1.5rem); }
#ways { padding-bottom: 0; }

/* ---- Contact form: an off-white slate sheet that stands out from the dark page ---- */
.contact-stage { position: relative; isolation: isolate; }
.contact-stage::before { content: ""; position: absolute; inset: -6% -8%; z-index: -1; background: radial-gradient(60% 60% at 50% 38%, rgba(56, 182, 255, 0.30), rgba(148, 163, 184, 0.14) 55%, transparent 76%); filter: blur(42px); pointer-events: none; }
#contact .contact-sheet { background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.90)); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 30px 80px -34px rgba(56, 182, 255, 0.45); color: #0f172a; }
#contact .contact-sheet h3 { color: #0f172a; }
#contact .contact-sheet p, #contact .contact-sheet li { color: #475569; }
#contact .contact-sheet p.text-xs { font-size: 13px; line-height: 1.55; }
#contact .contact-sheet .material-symbols-outlined.text-8xl { color: #0f172a; }
#contact .contact-sheet label { color: #0369a1; font-size: 12px; letter-spacing: 0.08em; }
#contact .contact-sheet input, #contact .contact-sheet select, #contact .contact-sheet textarea { background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a !important; font-size: 16px; box-shadow: none; color-scheme: light !important; }
#contact .contact-sheet input::placeholder, #contact .contact-sheet textarea::placeholder { color: #64748b; opacity: 1; }
#contact .contact-sheet input:focus, #contact .contact-sheet select:focus, #contact .contact-sheet textarea:focus { border-color: #0ea5e9; outline: 2px solid rgba(14, 165, 233, 0.35); outline-offset: 1px; }
#contact .contact-sheet a { color: #0369a1; text-decoration: underline; text-underline-offset: 2px; }
#contact .contact-sheet button[type="submit"] { min-height: 52px; background: #0ea5e9; color: #04121f; font-size: 12px; letter-spacing: 0.14em; }
#contact .contact-sheet button[type="submit"]:hover { background: #0369a1; color: #fff; }
#contact .contact-sheet button[type="submit"]:focus-visible { outline: 2px solid #0f172a; outline-offset: 3px; }
/* the form script sets these colours inline for the dark card: darker equivalents on the light sheet */
#contact .contact-sheet #index-form-status[style*="rgb(248, 113, 113)"] { color: #b91c1c !important; }
#contact .contact-sheet #index-form-status[style*="rgb(74, 222, 128)"] { color: #15803d !important; }
#contact .contact-sheet #index-form-status[style*="rgb(56, 182, 255)"], #contact .contact-sheet #index-form-status a { color: #0369a1 !important; }
#contact .contact-sheet #index-form-status a[style*="rgb(56, 182, 255)"] { color: #0369a1 !important; }
#contact .contact-sheet #index-contact-thanks h3, #contact .contact-sheet #index-contact-thanks b { color: #0f172a; }
@media (max-width: 480px) { #contact .contact-sheet { padding: 1.5rem; border-radius: 1.5rem; } }
#contact .contact-sheet select option { background: #ffffff; color: #0f172a; }
#contact .contact-sheet select option:disabled { color: #64748b; }
#contact .contact-sheet select:invalid { color: #64748b !important; }

/* ---- Mobile and tablet: comfortable tap targets (44 px), readable type, compact quick-nav ---- */
.way-tag { font-size: 0.75rem; }
@media (max-width: 1023px) {
    header a[aria-label="SageRank Home"] { min-height: 44px; }
    header .btn-rippling-glow { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    #mobile-menu-btn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    #scanner-domain { min-height: 44px; }
    .way-actions .way-link, .start-actions .way-link { display: inline-flex; align-items: center; min-height: 44px; }
    #faq summary { min-height: 44px; }
    #pricing a.inline-flex { min-height: 44px; }
    footer a { display: inline-flex; align-items: center; min-height: 44px; }
    footer #sagerank-social-links a { width: 44px; height: 44px; justify-content: center; }
    footer ul > li { margin-top: 0 !important; }
}
@media (max-width: 767px) {
    .way-jump { padding: 0.8rem 1rem; }
    .way-jump span.way-jump-d { display: none; }
    .ways-jump { gap: 0.6rem; }
    .way-media .way-cap { font-size: 0.8125rem; }
}

/* ---- Smallest phones (320-380 px): keep logo, Sign Up and menu button inside the screen ---- */
@media (max-width: 380px) {
    header.main-header .header-inner { padding-inline: 12px; }
    header.main-header a[aria-label="SageRank Home"] { gap: 8px; }
    header.main-header a[aria-label="SageRank Home"] .font-headline { letter-spacing: 0.1em !important; font-size: 14px; }
    header.main-header .btn-rippling-glow { padding-inline: 12px; }
}
