/* Apple-style homepage sections.
   Rhythm: generous vertical space, alternating #fff / #f5f5f7, centred
   headings, hairline separation, one accent. */

.ap { --ink:#1d1d1f; --ink2:#6e6e73; --ink3:#86868b;
      --line:#d2d2d7; --line-soft:#e8e8ed; --wash:#f5f5f7;
      --accent:#0071e3; --accent-h:#0077ed; }

.ap-section { padding: 104px 22px; background:#fff; }
.ap-section--wash { background: var(--wash); }
.ap-section--ink { background:#000; }
.ap-wrap { max-width: 1080px; margin: 0 auto; }
.ap-wrap--narrow { max-width: 760px; }

@media (max-width: 860px) { .ap-section { padding: 72px 20px; } }

/* ---- Headings ---------------------------------------------------- */
.ap-head { text-align: center; margin-bottom: 56px; }
.ap-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.ap-h2 {
    font-size: clamp(30px, 4.2vw, 52px); line-height: 1.07;
    letter-spacing: -.025em; font-weight: 600; color: var(--ink); margin: 0;
}
.ap-sub {
    font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink2);
    margin: 18px auto 0; max-width: 620px; letter-spacing: -.01em;
}
.ap-section--ink .ap-h2 { color:#f5f5f7; }
.ap-section--ink .ap-sub { color:#a1a1a6; }
.ap-section--ink .ap-eyebrow { color:#0a84ff; }

/* ---- Links & buttons --------------------------------------------- */
.ap-link {
    display:inline-flex; align-items:center; gap:5px;
    color: var(--accent); font-size: 17px; letter-spacing:-.01em;
}
.ap-link:hover { color: var(--accent-h); text-decoration: underline; }
.ap-link svg { width:14px; height:14px; }
.ap-cta {
    display:inline-flex; align-items:center; justify-content:center;
    background: var(--accent); color:#fff; border-radius: 980px;
    padding: 13px 26px; font-size: 17px; font-weight: 400; letter-spacing:-.01em;
    transition: background-color .2s ease;
}
.ap-cta:hover { background: var(--accent-h); color:#fff; }
.ap-cta--ghost { background: transparent; color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent); }
.ap-cta--ghost:hover { background: rgba(0,113,227,.06); color: var(--accent); }
.ap-actions { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top:34px; }

/* ---- Tiles -------------------------------------------------------- */
.ap-grid { display:grid; gap: 22px; }
.ap-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ap-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ap-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .ap-grid--3, .ap-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ap-grid--2, .ap-grid--3, .ap-grid--4 { grid-template-columns: 1fr; } }

.ap-tile {
    background: var(--wash); border-radius: 18px; padding: 36px 30px;
    display:flex; flex-direction:column; gap:10px;
    transition: transform .3s cubic-bezier(.25,.1,.25,1), box-shadow .3s cubic-bezier(.25,.1,.25,1);
}
.ap-section--wash .ap-tile { background:#fff; }
.ap-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 34px rgba(0,0,0,.07); }
.ap-tile h3 { font-size: 21px; font-weight: 600; letter-spacing:-.018em; color: var(--ink); margin:0; }
.ap-tile p { font-size: 15.5px; line-height:1.6; color: var(--ink2); margin:0; }
.ap-tile__icon {
    width:40px; height:40px; border-radius:11px; display:grid; place-items:center;
    background: rgba(0,113,227,.1); color: var(--accent); margin-bottom: 6px;
}
.ap-tile__icon svg { width:21px; height:21px; }

/* ---- Metrics ------------------------------------------------------ */
.ap-metrics { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; text-align:center; }
@media (max-width: 760px) { .ap-metrics { grid-template-columns: repeat(2,1fr); gap:36px; } }
.ap-metric__n { font-size: clamp(34px,4vw,50px); font-weight:600; letter-spacing:-.03em; color:var(--ink); line-height:1; }
.ap-metric__l { font-size:14.5px; color:var(--ink2); margin-top:9px; }
.ap-section--ink .ap-metric__n { color:#f5f5f7; }
.ap-section--ink .ap-metric__l { color:#a1a1a6; }

/* ---- Logo strip --------------------------------------------------- */
.ap-logos { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: 14px; }
.ap-logos img { height: 30px; width:auto; opacity:.62; filter: grayscale(1);
    transition: opacity .25s ease, filter .25s ease; }
.ap-logos img:hover { opacity:1; filter:none; }
.ap-logo-card {
    background:#fff; border:1px solid var(--line-soft); border-radius:14px;
    padding: 16px 22px; display:grid; place-items:center; min-width: 136px;
}

/* ---- Steps -------------------------------------------------------- */
.ap-steps { display:grid; grid-template-columns: repeat(5,1fr); gap: 18px; counter-reset: s; }
@media (max-width: 1000px) { .ap-steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .ap-steps { grid-template-columns: 1fr; } }
.ap-step { padding-top: 20px; border-top: 1px solid var(--line); }
.ap-step__n { font-size:12px; font-weight:600; color: var(--accent); letter-spacing:.06em; }
.ap-step h3 { font-size:17px; font-weight:600; letter-spacing:-.015em; color:var(--ink); margin:9px 0 6px; }
.ap-step p { font-size:14.5px; line-height:1.6; color: var(--ink2); margin:0; }

/* ---- Chips -------------------------------------------------------- */
.ap-chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.ap-chip {
    background:#fff; border:1px solid var(--line-soft); border-radius:980px;
    padding: 10px 18px; font-size:15px; color: var(--ink); letter-spacing:-.01em;
}
.ap-section--wash .ap-chip { background:#fff; }

/* ---- Reviews ------------------------------------------------------ */
.ap-quote { background: var(--wash); border-radius:18px; padding: 30px 28px; }
.ap-section--wash .ap-quote { background:#fff; }
.ap-quote p { font-size:16px; line-height:1.65; color:var(--ink); margin:0 0 18px; letter-spacing:-.01em; }
.ap-quote footer { font-size:14px; color: var(--ink3); }
.ap-stars { color:#ff9f0a; font-size:14px; letter-spacing:1px; margin-bottom:12px; }

/* ---- FAQ ---------------------------------------------------------- */
.ap-faq { border-top: 1px solid var(--line-soft); }
.ap-faq details { border-bottom: 1px solid var(--line-soft); }
.ap-faq summary {
    cursor:pointer; list-style:none; padding: 22px 0; font-size:17.5px;
    font-weight:500; color:var(--ink); letter-spacing:-.015em;
    display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.ap-faq summary::-webkit-details-marker { display:none; }
.ap-faq summary::after { content:'+'; font-size:22px; color:var(--ink3); font-weight:300; flex:none; }
.ap-faq details[open] summary::after { content:'–'; }
.ap-faq details p { margin:0 0 22px; font-size:16px; line-height:1.65; color:var(--ink2); max-width:70ch; }

/* ---- Security list ------------------------------------------------ */
.ap-checks { display:grid; grid-template-columns: repeat(2,1fr); gap:18px 30px; }
@media (max-width:700px) { .ap-checks { grid-template-columns:1fr; } }
.ap-check { display:flex; gap:12px; align-items:flex-start; font-size:16px; color:#a1a1a6; line-height:1.55; }
.ap-check svg { width:19px; height:19px; flex:none; color:#0a84ff; margin-top:2px; }

/* ---- Closing CTA --------------------------------------------------- */
.ap-final { text-align:center; }
.ap-final .ap-h2 { font-size: clamp(34px, 5.4vw, 64px); }

/* ---------------------------------------------------------------
   Image cards, background bands and scroll transitions
---------------------------------------------------------------- */

/* Scroll reveal: opt-in, and inert when motion is reduced */
.js-anim .ap-reveal { opacity: 0; transform: translateY(18px); }
.js-anim .ap-reveal.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js-anim .ap-reveal:nth-child(2).is-in { transition-delay: .07s; }
.js-anim .ap-reveal:nth-child(3).is-in { transition-delay: .14s; }
.js-anim .ap-reveal:nth-child(4).is-in { transition-delay: .21s; }

/* Image card */
.ap-imgcard {
    display: block; position: relative; overflow: hidden;
    border-radius: 20px; background: #fff; color: inherit; text-decoration: none;
    border: 1px solid rgba(0,0,0,.08);
    transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s cubic-bezier(.22,.61,.36,1);
}
.ap-imgcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.10); }
.ap-imgcard__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #f5f5f7; }
.ap-imgcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.ap-imgcard:hover .ap-imgcard__media img { transform: scale(1.045); }
.ap-imgcard__body { padding: 20px 22px 24px; }
.ap-imgcard__body h3 { font-size: 19px; line-height: 1.3; font-weight: 600; color: #1d1d1f; margin: 0 0 6px; }
.ap-imgcard__body p { font-size: 15px; line-height: 1.55; color: #515154; margin: 0; }
.ap-imgcard__tag {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: #0062c4; margin-bottom: 8px;
}

/* Full-bleed band with a background photograph */
.ap-band { position: relative; overflow: hidden; border-radius: 28px; isolation: isolate; }
.ap-band__bg { position: absolute; inset: 0; z-index: -2; }
.ap-band__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-band::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.68) 100%);
}
.ap-band__inner { padding: 72px 32px; text-align: center; }
.ap-band__inner h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
.ap-band__inner p { color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.6; max-width: 46ch; margin: 0 auto 28px; }
@media (max-width: 640px) { .ap-band__inner { padding: 52px 20px; } .ap-band { border-radius: 20px; } }

@media (prefers-reduced-motion: reduce) {
    .js-anim .ap-reveal, .js-anim .ap-reveal.is-in { opacity: 1; transform: none; transition: none; }
    .ap-imgcard, .ap-imgcard__media img { transition: none; }
    .ap-imgcard:hover { transform: none; }
    .ap-imgcard:hover .ap-imgcard__media img { transform: none; }
}

/* The ghost button sits on a photograph inside the band: it needs
   light-on-dark treatment, not the light-background variant. */
.ap-band .ap-cta--ghost {
    color: #fff;
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.06);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.ap-band .ap-cta--ghost:hover {
    background: rgba(255,255,255,.18);
    border-color: #fff;
    color: #fff;
}
