/* ============================================================
   navichain — Apple-style public landing
   Drop-in stylesheet. Pairs with new .apple-* classes added in
   Areas/Public/Views/Home/Index.cshtml, and overrides .public-navbar
   from _LayoutNavichain.cshtml (loaded after the inline <style>
   block so cascade wins on equal specificity).
   ============================================================ */

:root {
    --apple-black: #000;
    --apple-near-black: #1d1d1f;
    --apple-text: #1d1d1f;
    --apple-text-muted: #6e6e73;
    --apple-text-on-dark: #f5f5f7;
    --apple-text-on-dark-muted: #a1a1a6;
    --apple-bg-white: #ffffff;
    --apple-bg-grey: #f5f5f7;
    --apple-bg-soft-grey: #fbfbfd;
    --apple-divider: #d2d2d7;
    --apple-accent: #22c55e;
    --apple-accent-hover: #16a34a;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;

    --apple-radius-card: 18px;
    --apple-radius-pill: 980px;

    --apple-nav-height: 48px;

    --apple-font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

body {
    font-family: var(--apple-font-stack);
    color: var(--apple-text);
    background: var(--apple-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.003em;
}

/* Push content below the fixed translucent nav. */
.public-content {
    padding-top: var(--apple-nav-height);
}

/* ---------- Navigation override ---------- */

.public-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    min-height: var(--apple-nav-height);
    height: var(--apple-nav-height);
    padding: 0;
    background: rgba(251, 251, 253, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

.public-navbar .container {
    max-width: 1024px;
    height: var(--apple-nav-height);
    display: flex;
    align-items: center;
}

.public-navbar .navbar-brand {
    color: var(--apple-text) !important;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0;
    margin: 0;
}

.public-navbar .navbar-brand span {
    color: var(--apple-text);
    font-weight: 500;
}

.public-navbar .navbar-logo {
    height: 22px;
    width: auto;
    margin-right: 8px;
}

.public-navbar .navbar-nav {
    gap: 4px;
}

.public-navbar .nav-link {
    color: var(--apple-text) !important;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 0 10px !important;
    line-height: var(--apple-nav-height);
    opacity: 0.88;
    transition: opacity 0.2s ease;
}

.public-navbar .nav-link:hover {
    opacity: 1;
    color: var(--apple-text) !important;
    background: transparent !important;
}

.public-navbar .dropdown-toggle::after {
    border-top-width: 3px;
    margin-left: 4px;
    opacity: 0.6;
}

.public-navbar .dropdown-menu {
    background: rgba(251, 251, 253, 0.95);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 6px;
    margin-top: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.public-navbar .dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 12px;
    color: var(--apple-text);
}

.public-navbar .dropdown-item:hover,
.public-navbar .dropdown-item:focus {
    background: rgba(0, 0, 0, 0.04);
    color: var(--apple-text);
}

.public-navbar .dropdown-item.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--apple-accent);
}

.public-navbar .nav-cta-signin {
    font-size: 12px !important;
    opacity: 0.88;
}

.public-navbar .nav-cta-divider {
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 6px;
}

.public-navbar .btn-primary-nav {
    background: var(--apple-blue);
    color: #fff;
    border: none;
    border-radius: var(--apple-radius-pill);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease;
    display: inline-block;
}

.public-navbar .btn-primary-nav:hover {
    background: var(--apple-blue-hover);
    color: #fff;
}

.public-navbar .navbar-toggler {
    border: 0;
    padding: 4px 8px;
    color: var(--apple-text);
}

.public-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile nav backdrop */
@media (max-width: 991.98px) {
    .public-navbar {
        height: auto;
        min-height: var(--apple-nav-height);
    }

    .public-navbar .container {
        height: auto;
        flex-wrap: wrap;
        padding: 6px 16px;
    }

    .public-navbar .navbar-collapse {
        background: rgba(251, 251, 253, 0.98);
        margin: 8px -16px -6px;
        padding: 12px 20px 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .public-navbar .nav-link {
        line-height: 2.4;
        font-size: 15px;
    }

    .public-navbar .nav-cta-divider {
        display: none;
    }

    .public-navbar .btn-primary-nav {
        display: inline-block;
        margin-top: 6px;
    }
}

/* ---------- Section framework ---------- */

.apple-section {
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
    text-align: center;
}

.apple-section--white { background: var(--apple-bg-white); color: var(--apple-text); }
.apple-section--grey  { background: var(--apple-bg-grey);  color: var(--apple-text); }
.apple-section--soft  { background: var(--apple-bg-soft-grey); color: var(--apple-text); }
.apple-section--dark  { background: var(--apple-black);   color: var(--apple-text-on-dark); }
.apple-section--dark .apple-eyebrow { color: var(--apple-accent); }
.apple-section--dark .apple-sub,
.apple-section--dark .apple-bullet-desc { color: var(--apple-text-on-dark-muted); }

.apple-container {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

.apple-container--wide { max-width: 1200px; }
.apple-container--narrow { max-width: 720px; }

/* ---------- Typography ---------- */

.apple-eyebrow {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-accent);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.apple-headline {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}

.apple-headline--mega {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.022em;
}

.apple-headline--gradient {
    background: linear-gradient(90deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.apple-sub {
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--apple-text-muted);
    margin: 0 auto 32px;
    max-width: 720px;
}

.apple-section--dark .apple-sub { color: var(--apple-text-on-dark-muted); }

.apple-tagline {
    font-size: 21px;
    line-height: 1.4;
    color: var(--apple-text-muted);
    margin: 0 auto;
    max-width: 640px;
}

/* ---------- CTAs ---------- */

.apple-cta-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 17px;
}

.apple-link {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.apple-link:hover {
    color: var(--apple-blue-hover);
    text-decoration: underline;
}

.apple-link::after {
    content: "›";
    font-size: 1.2em;
    line-height: 1;
    margin-left: 2px;
}

.apple-btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-decoration: none;
    border-radius: var(--apple-radius-pill);
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.apple-btn--primary {
    background: var(--apple-blue);
    color: #fff;
    border-color: var(--apple-blue);
}

.apple-btn--primary:hover {
    background: var(--apple-blue-hover);
    color: #fff;
}

.apple-btn--ghost {
    background: transparent;
    color: var(--apple-blue);
    border-color: var(--apple-blue);
}

.apple-btn--ghost:hover {
    background: var(--apple-blue);
    color: #fff;
}

.apple-section--dark .apple-btn--ghost {
    color: var(--apple-text-on-dark);
    border-color: var(--apple-text-on-dark);
}

.apple-section--dark .apple-btn--ghost:hover {
    background: var(--apple-text-on-dark);
    color: var(--apple-black);
}

.apple-section--dark .apple-link {
    color: #2997ff;
}

/* ---------- Hero ---------- */

.apple-hero {
    min-height: calc(100vh - var(--apple-nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 64px 24px 0;
    background:
        radial-gradient(circle 520px at 50% 22%, rgba(34, 197, 94, 0.28), transparent 70%),
        radial-gradient(circle 380px at 18% 78%, rgba(0, 113, 227, 0.10), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apple-hero__content {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

/* Dashboard preview that peeks from the bottom of the hero — the "product peek" */
.apple-hero__preview {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    /* Lift the top so it sits flush with the content fade. */
    margin-top: auto;
}

.apple-hero__preview-frame {
    background: #f5f5f7;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow:
        0 -2px 24px rgba(0, 0, 0, 0.06),
        0 -40px 80px -30px rgba(0, 113, 227, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: translateY(0);
}

.apple-hero__preview-frame .apple-browser-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ebebef;
    border-bottom: 1px solid #d9d9de;
}

.apple-hero__preview-frame .apple-browser-chrome span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.apple-hero__preview-frame .apple-browser-chrome span:nth-child(1) { background: #ff5f57; }
.apple-hero__preview-frame .apple-browser-chrome span:nth-child(2) { background: #febc2e; }
.apple-hero__preview-frame .apple-browser-chrome span:nth-child(3) { background: #28c840; }

.apple-hero__preview-frame img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .apple-hero { padding: 40px 16px 0; min-height: auto; }
    .apple-hero__preview { padding: 0 12px; }
    .apple-hero__preview-frame { border-radius: 10px 10px 0 0; }
}

.apple-hero__logo {
    width: 80px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.18));
}

.apple-hero__price {
    margin-top: 18px;
    font-size: 17px;
    color: var(--apple-text-muted);
}

.apple-hero__price strong {
    color: var(--apple-text);
    font-weight: 600;
}

.apple-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--apple-text-muted);
}

.apple-hero__badge i { color: var(--apple-accent); }

/* ---------- Bigtile / image+text (Apple-style alternating panels) ---------- */

.apple-tile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.apple-tile--reverse > :first-child { order: 2; }
.apple-tile--centered { text-align: center; grid-template-columns: 1fr; max-width: 800px; }

.apple-tile__media {
    width: 100%;
    border-radius: var(--apple-radius-card);
    overflow: hidden;
    box-shadow: 0 18px 60px -20px rgba(0, 0, 0, 0.18);
}

.apple-tile__media img { display: block; width: 100%; height: auto; }

.apple-tile__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}

.apple-tile__body {
    font-size: 19px;
    line-height: 1.45;
    color: var(--apple-text-muted);
    margin: 0 0 24px;
}

.apple-section--dark .apple-tile__body { color: var(--apple-text-on-dark-muted); }

@media (max-width: 768px) {
    .apple-tile { grid-template-columns: 1fr; gap: 32px; }
    .apple-tile--reverse > :first-child { order: 0; }
}

/* ---------- Grid (cards) ---------- */

.apple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
    text-align: left;
}

.apple-grid--3 { grid-template-columns: repeat(3, 1fr); }
.apple-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .apple-grid--3 { grid-template-columns: 1fr; }
    .apple-grid--2 { grid-template-columns: 1fr; }
}

.apple-card {
    background: var(--apple-bg-white);
    border-radius: var(--apple-radius-card);
    padding: 36px 28px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 30px -16px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.apple-section--grey .apple-card { background: #fff; }
.apple-section--dark .apple-card {
    background: #1d1d1f;
    color: var(--apple-text-on-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 30px -16px rgba(0, 0, 0, 0.5);
}

.apple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(0, 0, 0, 0.18);
}

.apple-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px -4px rgba(34, 197, 94, 0.4);
}

.apple-card__title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.apple-card__body {
    font-size: 15px;
    line-height: 1.5;
    color: var(--apple-text-muted);
    margin: 0;
}

.apple-section--dark .apple-card__body { color: var(--apple-text-on-dark-muted); }

/* ---------- Bullet list inside tile ---------- */

.apple-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apple-bullets--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

@media (max-width: 640px) {
    .apple-bullets--two-col { grid-template-columns: 1fr; }
}

.apple-bullet {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16px;
}

.apple-bullet__icon {
    color: var(--apple-accent);
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.apple-bullet__title {
    font-weight: 600;
    color: var(--apple-text);
    margin: 0 0 2px;
    font-size: 16px;
}

.apple-bullet__desc {
    margin: 0;
    font-size: 14px;
    color: var(--apple-text-muted);
    line-height: 1.45;
}

.apple-section--dark .apple-bullet__title { color: var(--apple-text-on-dark); }
.apple-section--dark .apple-bullet__desc  { color: var(--apple-text-on-dark-muted); }

/* ---------- Stat row (logos / TOTP apps / integrations) ---------- */

.apple-logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 56px;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    opacity: 0.75;
}

.apple-logo-strip img {
    height: 36px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.apple-logo-strip img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.apple-logo-strip__label {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--apple-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 24px;
    opacity: 1;
}

/* ---------- TOTP / app badges ---------- */

.apple-app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.apple-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--apple-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: var(--apple-text-on-dark);
}

.apple-section--white .apple-app-badge,
.apple-section--grey .apple-app-badge,
.apple-section--soft .apple-app-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--apple-text);
}

/* ---------- Phone mockup container ---------- */

.apple-phone-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 280px;
}

.apple-phone-frame svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px -20px rgba(0, 0, 0, 0.5));
}

/* Real phone bezel that wraps the actual app screenshot */
.apple-phone-bezel {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        inset 0 0 0 2px #2a2a2c,
        0 30px 60px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.apple-phone-bezel::before {
    /* Dynamic-island notch */
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #000;
    border-radius: 14px;
    z-index: 2;
    pointer-events: none;
}

.apple-phone-screen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 30px;
    background: #fff;
}

/* Browser-chrome strip on top of dashboard screenshots */
.apple-tile__media--browser {
    background: #f5f5f7;
    border-radius: var(--apple-radius-card);
    overflow: hidden;
    box-shadow: 0 18px 60px -20px rgba(0, 0, 0, 0.22);
    padding: 0;
}

.apple-tile__media--browser .apple-browser-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ebebef;
    border-bottom: 1px solid #d9d9de;
}

.apple-tile__media--browser .apple-browser-chrome span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d2d2d7;
}

.apple-tile__media--browser .apple-browser-chrome span:nth-child(1) { background: #ff5f57; }
.apple-tile__media--browser .apple-browser-chrome span:nth-child(2) { background: #febc2e; }
.apple-tile__media--browser .apple-browser-chrome span:nth-child(3) { background: #28c840; }

.apple-tile__media--browser img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* ---------- Document preview (CMR, invoices, PDFs) ---------- */

.apple-document-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.apple-document-frame {
    position: relative;
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 30px 60px -20px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    max-width: 360px;
    width: 100%;
    transform: rotate(-1.2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.apple-document-frame::after {
    /* subtle paper stack hint behind the document */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    border-radius: 8px;
    transform: rotate(2.4deg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.apple-document-frame:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 40px 80px -24px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}

.apple-document-frame--right { transform: rotate(1.2deg); }
.apple-document-frame--right::after { transform: rotate(-2.4deg); }

.apple-document-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.apple-document-caption {
    max-width: 360px;
    text-align: left;
}

.apple-section--dark .apple-document-caption .apple-bullet__title { color: var(--apple-text-on-dark); }
.apple-section--dark .apple-document-caption .apple-card__body { color: var(--apple-text-on-dark-muted); }

/* ---------- Pricing area shell ---------- */

.apple-pricing-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.apple-billing-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--apple-radius-pill);
    padding: 4px;
    margin: 24px auto 48px;
    gap: 0;
}

.apple-billing-toggle input[type="radio"] { display: none; }

.apple-billing-toggle label {
    padding: 8px 22px;
    border-radius: var(--apple-radius-pill);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-text-muted);
    transition: background 0.25s ease, color 0.25s ease;
    margin: 0;
}

.apple-billing-toggle input[type="radio"]:checked + label {
    background: #fff;
    color: var(--apple-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.apple-billing-toggle .save-badge {
    background: var(--apple-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--apple-radius-pill);
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: 1px;
}

/* ---------- Feature comparison table ---------- */

.apple-table-wrap {
    max-width: 1000px;
    margin: 40px auto 0;
    background: #fff;
    border-radius: var(--apple-radius-card);
    overflow: hidden;
    box-shadow: 0 8px 30px -16px rgba(0, 0, 0, 0.12);
}

.apple-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.apple-table thead th {
    background: var(--apple-bg-grey);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--apple-text);
    padding: 16px 24px;
    border-bottom: 1px solid var(--apple-divider);
}

.apple-table tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid #ebebef;
    font-size: 15px;
    color: var(--apple-text);
    vertical-align: top;
}

.apple-table tbody tr:last-child td { border-bottom: 0; }

.apple-table .feature-icon-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.apple-table .feature-icon-cell i {
    font-size: 22px;
    color: var(--apple-accent);
}

.apple-table .check-icon {
    color: var(--apple-accent);
    font-size: 22px;
}

.apple-table .feature-description {
    font-size: 13px;
    color: var(--apple-text-muted);
    margin-top: 4px;
}

@media (max-width: 700px) {
    .apple-table thead th:nth-child(3),
    .apple-table tbody td:nth-child(3) { display: none; }
    .apple-table thead th,
    .apple-table tbody td { padding: 14px 16px; font-size: 14px; }
}

/* ---------- Data sovereignty flag card ---------- */

.apple-flag-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--apple-radius-card);
    text-align: left;
}

.apple-flag-card__flag {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .apple-flag-card { grid-template-columns: 1fr; padding: 32px; text-align: center; }
    .apple-flag-card__flag { max-width: 200px; margin: 0 auto; }
}

/* ---------- Reveal animation (IntersectionObserver) ---------- */

.apple-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.apple-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.apple-reveal--delay-1 { transition-delay: 0.08s; }
.apple-reveal--delay-2 { transition-delay: 0.16s; }
.apple-reveal--delay-3 { transition-delay: 0.24s; }
.apple-reveal--delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .apple-reveal,
    .apple-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Section spacing on small screens ---------- */

@media (max-width: 768px) {
    .apple-section { padding: 70px 20px; }
    .apple-hero { padding: 60px 20px 40px; min-height: auto; }
    .apple-cta-row { gap: 16px; flex-direction: column; align-items: stretch; }
    .apple-cta-row .apple-btn { text-align: center; }
}

/* ---------- Misc helpers ---------- */

.apple-divider-thin {
    width: 60px;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 auto 24px;
    border: 0;
}

.apple-section--dark .apple-divider-thin { background: rgba(255, 255, 255, 0.15); }

/* Force Bootstrap's .btn focus shadow to a subtle look on our pill buttons */
.apple-btn:focus,
.apple-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25);
}
