/* Feature and use-case pages (/features, /best-mac-app-for). Tokens, nav, buttons, FAQ and footer come from styles.css. */
.nav-link[aria-current="page"] { color: var(--foreground); }
/* apple.css colours every link blue; navigation-style links keep the text colours */
.fx .crumbs a, .fx .fx-cards a, .nav a.nav-link, .nav a.brand { color: inherit; }
.nav a.nav-link { color: color-mix(in oklch, var(--foreground) 70%, transparent); }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"], .nav a.brand { color: var(--foreground); }
footer a:not(.btn) { color: var(--secondary-foreground); }
footer a:not(.btn):hover { color: var(--foreground); }

/* Hero: left-aligned, answer first */
.fx-hero { padding-block: 1rem 3.5rem; text-align: center; animation: fx-rise 700ms var(--ease-signature) both; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 40px; font-size: var(--type-caption); color: var(--faint-foreground); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--secondary-foreground); text-decoration: none; }
.fx .crumbs a { color: var(--secondary-foreground); }
.fx .crumbs a:hover, .fx .crumbs a[aria-current] { color: var(--foreground); }
.fx-hero h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(2.5rem, 5.2vw, 4.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.fx-hero .lede { margin: 24px auto 0; max-width: 46rem; text-wrap: pretty; }
.fx-hero .ctas.left { justify-content: center; }
.fx-hero .ctas { margin-top: 32px; }
.fx-fine { margin-top: 14px; font-size: var(--type-caption); color: var(--faint-foreground); }

/* Product shot */
.fx-shot { margin-bottom: 5rem; animation: fx-rise 900ms 120ms var(--ease-signature) both; }
.fx-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--win-content); box-shadow: 0 30px 80px rgb(0 0 0 / .28); }
.fx-frame img { width: 100%; }
.fx-small .fx-frame { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) 16px; background: var(--surface); border: 0; box-shadow: none; }
.fx-small .fx-frame img { width: auto; max-height: 520px; border-radius: 20px; box-shadow: 0 24px 60px rgb(0 0 0 / .3); }
.fx-pair { position: relative; padding-right: 9%; }
.fx-pair > img:first-child { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgb(0 0 0 / .28); }
.fx-phone { position: absolute; right: 1rem; bottom: -6%; width: 19%; border-radius: 22px; border: 1px solid var(--border-strong); box-shadow: 0 16px 48px rgb(0 0 0 / .4); }
@media (max-width: 639px) {
  .fx-pair { padding-right: 1rem; }
  .fx-phone { position: static; display: block; width: 46%; margin: 24px auto 0; }
  .fx-small .fx-frame img { max-height: 420px; }
}

/* Sections: heading left, content right on wide screens */
/* Full-bleed bands alternate page and grey, like Apple product pages */
main.fx > .fx-band:nth-of-type(odd) { background: var(--surface); --card: var(--background); }
.fx-sec { display: grid; gap: 24px; padding-block: 4rem; }
.fx-h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
@media (min-width: 900px) {
  .fx-sec { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 72px; padding-block: 6.5rem; }
  .fx-h2 { position: sticky; top: 104px; align-self: start; }
}
.fx-sec > * { min-width: 0; }
.fx-sub { margin: 0 0 16px; font-size: var(--type-caption); color: var(--faint-foreground); }

/* At a glance: a quotable fact sheet */
.glance { margin: 0; border-top: 1px solid var(--border); }
.glance div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.glance dt { font-weight: 500; color: var(--foreground); }
.glance dd { margin: 0; color: var(--secondary-foreground); line-height: 1.55; }
@media (min-width: 640px) { .glance div { grid-template-columns: 12rem 1fr; gap: 24px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--border); }
.steps li { counter-increment: step; position: relative; padding: 20px 0 22px 52px; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 19px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--secondary-foreground); }
.steps h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.35; }
.steps p { margin-top: 6px; max-width: 40rem; color: var(--secondary-foreground); line-height: 1.6; }
.steps-plain li { padding-left: 0; }
.steps-plain li::before { content: none; }

/* Good to know */
.fx-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fx-notes li { position: relative; padding-left: 20px; max-width: 42rem; color: var(--secondary-foreground); line-height: 1.6; }
.fx-notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint-foreground); }

/* Alternatives table */
.fx-table table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--border); }
.fx-table th, .fx-table td { padding: 16px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--border); line-height: 1.55; }
.fx-table th { width: 12rem; padding-right: 24px; font-weight: 500; color: var(--foreground); }
.fx-table td { color: var(--secondary-foreground); }
@media (max-width: 639px) { .fx-table th, .fx-table td { display: block; width: auto; } .fx-table th { padding-bottom: 4px; border-bottom: 0; } .fx-table td { padding-top: 0; } }

/* FAQ inside the two-column layout */
.fx-sec .faq-list { margin-top: 0; }
.fx-sec.faq summary { font-size: 1.0625rem; }
.fx-sec.faq details p { line-height: 1.6; }

/* Link cards */
.fx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-cards a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px 20px 44px; border-radius: 14px; text-decoration: none;
  background: var(--card, var(--surface)); border: 1px solid transparent;
  transition: border-color 200ms var(--ease-signature), background-color 200ms var(--ease-signature), transform 200ms var(--ease-signature); }
.fx-cards a:hover { border-color: var(--border-strong); }
.fx-cards a:active { transform: scale(.99); }
.fx-cards a:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; border-radius: 14px; }
.fx-card-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint-foreground); margin-bottom: 8px; }
.fx-cards h3 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.fx-cards p { margin-top: 6px; color: var(--secondary-foreground); line-height: 1.5; }
.fx-arrow { position: absolute; left: 20px; bottom: 16px; color: var(--faint-foreground); transition: transform 200ms var(--ease-signature), color 200ms var(--ease-signature); }
.fx-cards a:hover .fx-arrow { transform: translateX(4px); color: var(--foreground); }

@keyframes fx-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .fx-hero, .fx-shot { animation: none; } .fx-cards a, .fx-arrow { transition: none; } }

/* Body copy at Apple's 17px reading size */
.glance dt, .glance dd, .steps p, .fx-notes li, .fx-table th, .fx-table td, .fx-sec.faq details p { font-size: 1.0625rem; }
.steps h3 { font-size: 1.1875rem; }
.fx-fine span { white-space: nowrap; }
