/* Apple Enterprise pages, styled after apple.com: system SF Pro on Apple devices, Apple's neutrals and link blue,
   generous whitespace, rounded tiles, scroll storytelling (motion.js -> apple()). */
body.apple {
  --ap-text: #1d1d1f; --ap-text-2: #6e6e73; --ap-text-3: #86868b; --ap-bg: #ffffff; --ap-bg-2: #f5f5f7; --ap-line: #d2d2d7;
  --ap-blue: #0071e3; --ap-blue-hover: #0077ed; --ap-link-dark: #2997ff; --ap-black: #000000; --ap-dark-2: #161617;
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Archivo", Arial, sans-serif;
  background: var(--ap-bg); color: var(--ap-text); font-family: var(--ap-font); letter-spacing: -0.012em;
}
body.apple .site-header { position: relative; background: #050b1d; }
body.apple .site-header.is-hidden { transform: none; }
body.apple :focus-visible { outline-color: var(--ap-blue); }

/* local navigation, like apple.com's product sub-nav */
.ap-subnav { position: sticky; top: 0; z-index: 45; background: rgba(251, 251, 253, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.16); }
.ap-subnav .container { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 20px; }
.ap-subnav__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--ap-text); white-space: nowrap; }
.ap-subnav nav { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.ap-subnav nav::-webkit-scrollbar { display: none; }
.ap-subnav nav a { font-size: 0.78rem; color: var(--ap-text); text-decoration: none; opacity: 0.88; white-space: nowrap; }
.ap-subnav nav a:hover, .ap-subnav nav a[aria-current="page"] { opacity: 1; color: var(--ap-blue); }
.ap-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 14px; border-radius: 980px; background: var(--ap-blue); color: #fff !important; font-size: 0.78rem; font-weight: 400; text-decoration: none; opacity: 1 !important; transition: background-color .2s; cursor: pointer; }
.ap-pill:hover { background: var(--ap-blue-hover); }
.ap-pill--lg { min-height: 44px; padding: 0 22px; font-size: 1.0625rem; }
.ap-pill--ghost { background: transparent; color: var(--ap-blue) !important; box-shadow: inset 0 0 0 1px var(--ap-blue); }
.ap-pill--ghost:hover { background: var(--ap-blue); color: #fff !important; }
.ap-link { color: var(--ap-blue); text-decoration: none; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ap-link::after { content: "\203A"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.ap-link:hover { text-decoration: underline; }
.ap-dark .ap-link { color: var(--ap-link-dark); }
.ap-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* type scale */
.ap-eyebrow { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ap-text); margin: 0 0 6px; }
.ap-dark .ap-eyebrow { color: #f5f5f7; }
.ap-h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.ap-h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; margin: 0; }
.ap-h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; margin: 0; }
.ap-sub { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.75rem); font-weight: 400; line-height: 1.35; color: var(--ap-text); margin: 14px auto 0; max-width: 34ch; letter-spacing: -0.015em; }
.ap-dark .ap-sub { color: #f5f5f7; }
.ap-body { font-size: 1.0625rem; line-height: 1.55; color: var(--ap-text-2); max-width: 60ch; }
.ap-dark .ap-body { color: var(--ap-text-3); }
.ap-center { text-align: center; }
.ap-center .ap-body { margin-inline: auto; }
.ap-gradient { background: linear-gradient(90deg, #0071e3 0%, #000cff 60%, #2997ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* sections */
.ap-section { padding: clamp(80px, 10vw, 150px) 0; }
.ap-light { background: var(--ap-bg-2); }
.ap-dark { background: var(--ap-black); color: #f5f5f7; }
.ap-hero { background: var(--ap-black); color: #f5f5f7; text-align: center; padding: clamp(56px, 7vw, 96px) 0 0; overflow: hidden; }
.ap-hero .ap-h1 { color: #f5f5f7; }
.ap-hero .ap-sub { color: #f5f5f7; opacity: 0.86; }
.ap-hero__cta { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.ap-hero__media { margin: clamp(32px, 5vw, 64px) auto 0; max-width: 1200px; }
.ap-hero__media img { width: 100%; height: auto; display: block; }
.ap-note { font-size: 0.75rem; color: var(--ap-text-3); }

/* product tiles (apple.com home rhythm) */
.ap-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; background: #fff; }
.ap-tile { position: relative; border-radius: 0; overflow: hidden; background: var(--ap-bg-2); min-height: 580px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 52px 24px 0; }
.ap-tile--dark { background: var(--ap-black); color: #f5f5f7; }
.ap-tile--wide { grid-column: 1 / -1; min-height: 640px; }
.ap-tile h3 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.ap-tile p { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem); margin: 6px 0 0; letter-spacing: -0.012em; }
.ap-tile .ap-links { margin-top: 14px; }
.ap-tile--dark .ap-link { color: var(--ap-link-dark); }
.ap-tile figure { margin: auto 0 0; width: 100%; display: flex; justify-content: center; padding-top: 28px; }
.ap-tile figure img { width: 100%; max-width: 820px; height: 330px; object-fit: cover; border-radius: 18px 18px 0 0; }
.ap-tile--wide figure img { max-width: 1100px; height: 380px; }

/* statement */
.ap-words { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; max-width: 22ch; margin: 0 auto; text-align: center; }

/* pinned steps */
.ap-steps { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(60px, 8vw, 100px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.ap-steps__list { display: grid; gap: 34px; }
.ap-step { opacity: 0.28; transition: opacity .45s ease; padding-left: 22px; border-left: 2px solid var(--ap-line); }
.ap-step.is-active { opacity: 1; border-left-color: var(--ap-blue); }
.ap-step span { font-size: 0.8rem; font-weight: 600; color: var(--ap-blue); letter-spacing: 0.02em; }
.ap-step h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; margin: 6px 0 8px; }
.ap-step p { margin: 0; color: var(--ap-text-2); font-size: 1.05rem; line-height: 1.5; }
.ap-steps__visual { position: relative; aspect-ratio: 4 / 3.2; border-radius: 28px; overflow: hidden; background: var(--ap-bg-2); }
.ap-steps__shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.ap-steps__shot.is-active { opacity: 1; transform: none; }
.ap-steps__shot img { width: 100%; height: 100%; object-fit: cover; }
.ap-steps__shot figcaption { position: absolute; left: 18px; bottom: 16px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; color: var(--ap-text); max-width: 80%; }

/* cards */
.ap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-card { background: #fff; border-radius: 28px; padding: 34px 30px 36px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08); transition: transform .35s cubic-bezier(0,0,.5,1), box-shadow .35s; }
.ap-card:hover { transform: scale(1.015); box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16); }
.ap-light .ap-card { background: #fff; }
.ap-card .ico { width: 40px; height: 40px; color: var(--ap-blue); }
.ap-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 0; }
.ap-card p { margin: 0; color: var(--ap-text-2); font-size: 1rem; line-height: 1.5; }
.ap-dark .ap-card { background: var(--ap-dark-2); box-shadow: none; }
.ap-dark .ap-card h3 { color: #f5f5f7; }
.ap-dark .ap-card p { color: var(--ap-text-3); }

/* horizontal rail */
.ap-rail { overflow: hidden; padding: clamp(60px, 7vw, 100px) 0; }
.ap-rail__head { max-width: 1320px; margin: 0 auto 36px; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.ap-rail__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; }
.ap-prod { width: 340px; flex: none; background: var(--ap-bg-2); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.ap-prod figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.ap-prod figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ap-prod:hover figure img { transform: scale(1.04); }
.ap-prod div { padding: 22px 24px 26px; }
.ap-prod small { display: block; font-size: 0.75rem; font-weight: 600; color: #bf4800; margin-bottom: 4px; }
.ap-prod h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.ap-prod p { margin: 6px 0 12px; color: var(--ap-text-2); font-size: 0.98rem; }
@media (max-width: 899px) { .ap-rail__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .ap-prod { scroll-snap-align: start; width: 78vw; max-width: 340px; } }

/* stats */
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.ap-stat strong { display: block; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.ap-stat span { display: block; margin-top: 10px; color: var(--ap-text-2); font-size: 1rem; }
.ap-dark .ap-stat span { color: var(--ap-text-3); }

/* form */
.ap-form { background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; max-width: 760px; margin: 40px auto 0; box-shadow: 2px 4px 12px rgba(0,0,0,.08); }
.ap-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--ap-text-2); }
.ap-form input, .ap-form select, .ap-form textarea { min-height: 52px; border: 1px solid #86868b; border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 1.0625rem; color: var(--ap-text); background: #fff; }
.ap-form textarea { min-height: 120px; resize: vertical; }
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { outline: none; border-color: var(--ap-blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.22); }
.ap-form .form__status { color: #1d7a3a; }
.ap-legal { font-size: 0.75rem; line-height: 1.5; color: var(--ap-text-3); padding: 24px 0 0; border-top: 1px solid var(--ap-line); margin-top: 48px; }

/* faq */
.ap-faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--ap-line); }
.ap-faq details { border-bottom: 1px solid var(--ap-line); }
.ap-faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 20px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; color: var(--ap-blue); font-weight: 400; font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq p { margin: 0 0 24px; color: var(--ap-text-2); font-size: 1.0625rem; line-height: 1.55; max-width: 70ch; }

@media (max-width: 899px) {
  .ap-tiles { grid-template-columns: 1fr; }
  .ap-tile { min-height: 500px; }
  .ap-steps { grid-template-columns: 1fr; min-height: 0; }
  .ap-step { opacity: 1; }
  .ap-steps__visual { order: -1; }
  .ap-steps__shot:not(:first-child) { display: none; }
  .ap-steps__shot:first-child { opacity: 1; transform: none; }
  .ap-cards, .ap-stats { grid-template-columns: 1fr 1fr; }
  .ap-subnav nav a:not(.ap-pill) { display: none; }
}
@media (max-width: 560px) { .ap-cards, .ap-stats, .ap-form .row { grid-template-columns: 1fr; } .ap-tile figure img { height: 240px; } }

.ap-card .ico svg { width: 40px; height: 40px; stroke-width: 1.4; }
.ap-card { text-decoration: none; color: inherit; cursor: pointer; }

.ap-hero .ap-eyebrow { color: #86868b; }
.ap-hero p, .ap-center p, .ap-center h2 { margin-left: auto; margin-right: auto; }

.ap-hero--light { background: var(--ap-bg-2); color: var(--ap-text); }
.ap-hero--light .ap-h1 { color: var(--ap-text); }
.ap-hero--light .ap-sub { color: var(--ap-text); opacity: 1; }
.ap-hero--light .ap-eyebrow { color: var(--ap-text-3); }
.ap-hero__media img { max-height: 640px; object-fit: cover; border-radius: 0; }
