/* SFx60 — 60-second Salesforce fixes
   Brand tokens from the SFx60 YouTube channel artwork. */

:root {
  --primary: #0786E7;
  --accent: #1493EE;
  --banner-dark: #0170C1;
  --banner-light: #0E9FD8;
  --soft: #5FB9E2;
  --white: #FFFFFF;
  --ink: #0B1F33;
  --muted: #3D5166;
  --line: #D7E6F3;
  --bg: #F5FAFE;
  --bg-card: #FFFFFF;
  --prod: #C62828;
  --sandbox: #0786E7;
  --developer: #6A1B9A;
  --scratch: #00897B;
  --trailhead: #00838F;
  --demo: #EF6C00;
  --shadow: 0 10px 30px rgba(1, 112, 193, 0.10);
  --shadow-lg: 0 24px 50px rgba(1, 112, 193, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max: 1120px;
  --font-sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Outfit, Inter, "Segoe UI", system-ui, sans-serif;
}

@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--banner-dark); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--ink); }
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
  padding: 0.4rem 0.15rem;
}
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: none;
}
.nav .nav-cta:hover { background: var(--banner-dark); }

.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 720px) {
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    border-radius: 1px;
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-label span::before { top: -6px; }
  .nav-toggle-label span::after { top: 6px; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.15rem;
  }
  .nav a { padding: 0.7rem 0.4rem; align-self: flex-start; box-shadow: none; }
  .nav a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
  .nav .nav-cta { justify-content: center; margin-top: 0.4rem; align-self: stretch; text-decoration: none; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    transition: transform 0.15s ease, top 0.15s ease, background 0.15s ease;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(105deg, var(--banner-dark) 0%, #0681C7 48%, var(--banner-light) 100%);
  padding: 4.5rem 0 4.75rem;
}
.hero .clouds { position: absolute; inset: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.92;
  margin: 0 0 0.85rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}
.hero .tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero .tagline::before {
  content: "";
  width: 3px;
  height: 2.1em;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}
.hero .lede {
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  color: rgba(255,255,255,0.95);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary {
  background: var(--white);
  color: var(--banner-dark);
}
.btn-primary:hover { background: #EEF7FD; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-solid {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-solid:hover { background: var(--banner-dark); border-color: var(--banner-dark); color: var(--white); }
.btn-disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}
.btn-disabled.on-light,
.on-light .btn-disabled {
  background: #E6EEF6;
  color: #3D5166;
  border-color: #C9D8E6;
}

/* Sections */
.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.section .intro {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}
.prose { max-width: 44rem; }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-top: 2rem;
}
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.prose .meta { color: var(--muted); margin: 0 0 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }
.prose p { margin: 0.85rem 0; }

/* Tool card */
.tool-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.tool-card:hover { box-shadow: var(--shadow-lg); color: inherit; }
.tool-card .copy { padding: 2rem 2rem 2.1rem; }
.tool-card .eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.tool-card h3 img { width: 36px; height: 36px; }
.tool-card p { margin: 0 0 1.1rem; color: var(--muted); }
.tool-card .media {
  background: linear-gradient(135deg, var(--banner-dark), var(--banner-light));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  min-height: 220px;
}
.tool-card .media img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
@media (max-width: 800px) {
  .tool-card { grid-template-columns: 1fr; }
  .tool-card .media { min-height: 0; padding: 1rem; }
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #E8F4FC;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.chip {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
}
.chip-prod { background: var(--prod); }
.chip-sbx { background: var(--sandbox); }
.chip-dev { background: var(--developer); }

/* Product hero (on-page, not the home hero) */
.page-hero { padding: 3.2rem 0 2.4rem; }
.page-hero.tinted {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.product-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.product-hero .mark { width: 88px; height: 88px; margin-top: 1.6rem; }
.product-hero .eyebrow {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}
.product-hero .lede { margin: 0 0 1.2rem; color: var(--muted); max-width: 40rem; }
.product-hero .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.coming-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 600px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero .mark { width: 72px; height: 72px; }
}

/* Screenshots */
.shots {
  display: grid;
  gap: 2rem;
}
.shot figure { margin: 0; }
.shot img, .shot picture img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #eee;
}
.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Privacy callout */
.callout {
  background: #E8F4FC;
  border: 1px solid #C5E1F5;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.callout h2 { margin-top: 0; }
.callout p { margin: 0.4rem 0 0; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 0.7rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.15rem 1.1rem 0.15rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-family: var(--font-display);
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.05rem; color: var(--muted); }
.faq .answer p { margin: 0 0 0.7rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { margin: 0.3rem 0 0.7rem; padding-left: 1.2rem; }

.placeholder-email {
  display: inline-block;
  background: #FFF6D6;
  border: 1px dashed #C9A227;
  color: var(--ink);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #07253A;
  color: #D5E4F0;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--soft); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.footer-links a { text-decoration: none; font-weight: 500; }
.legal {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  color: #B7C9D6;
}
.legal p { margin: 0.35rem 0 0; }

/* 404 */
.err-page { padding: 5rem 0 6rem; text-align: center; }
.err-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.6rem;
}
.err-page p { color: var(--muted); margin: 0 0 1.5rem; }

/* Breadcrumb */
.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #E8F4FC;
  color: var(--ink);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
code.nowrap {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
code.host {
  display: block;
  margin: 0.4rem 0;
  padding: 0.45rem 0.6rem;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.feature { hyphens: none; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: #E8F4FC; color: var(--banner-dark); }

.trust-strip {
  margin: 1.4rem 0 0;
  padding: 0.95rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(1, 112, 193, 0.07);
}
.trust-strip strong { font-weight: 700; color: var(--banner-dark); }

/* In-page YouTube embeds */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07253A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame.video-short {
  aspect-ratio: 9 / 16;
  max-width: 280px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-row,
.featured-row {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 1.5rem;
  align-items: start;
}
.demo-row figure,
.featured-short {
  margin: 0;
}
.demo-row figcaption,
.featured-short .caption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.tool-card .card-actions .btn { text-decoration: none; }
.tool-card a.media:hover { color: inherit; }
.featured-short h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}
@media (max-width: 860px) {
  .demo-row,
  .featured-row { grid-template-columns: 1fr; }
  .video-frame.video-short { margin-inline: auto; }
  .featured-short { text-align: center; }
  .featured-short .caption { text-align: center; }
}

#demo {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Optional Ko-fi tip — quiet, not a campaign CTA */
.footer-support {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #B7C9D6;
}
.footer-support a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-support a:hover { color: var(--soft); }
.support-coffee {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.support-coffee a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.support-coffee a:hover { color: var(--primary); }
