:root {
    /* One measure for every page that is mostly prose -- Support, Terms,
       Privacy, the EULA, and anything like them added later. Use .text-page
       below rather than setting a max-width on the page itself.
       880, not the 720 the legal pages started on: these pages sit above a
       1100px footer, and a narrower column read as inset from the furniture
       around it. At 880 with 1rem text a line runs about 103 characters. */
    --page-width: 880px;
    --primary-color: #0071e3;
    --bg-color: #ffffff;
    --text-color: #1d1d1f;
    --secondary-text: #86868b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --section-padding: 80px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* A prose page: one column, centered, clearing the fixed 53px navbar. Pages
   using this must NOT set their own max-width or top padding -- a page-local
   <style> loads after this file and would silently win. */
.text-page {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 104px 24px 96px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: var(--section-padding);
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.alt-bg {
    background-color: #f5f5f7;
}

/* Hero */
.hero {
    --section-padding: 130px 20px 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--secondary-text);
    max-width: 780px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 10px;
}

.primary {
    background: var(--primary-color);
    color: white;
}

.primary:hover {
    background: #0077ed;
}

.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary:hover {
    background: rgba(0, 113, 227, 0.05);
}

/* Features */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-gif {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin-top: auto;
    padding-top: 20px;
    display: block;
}

/* Nav login button */
.btn-nav-login {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 980px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-nav-login:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Plans */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 48px;
    margin-top: -30px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.plan-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: left;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card-pro {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 40px rgba(0,113,227,0.15);
}

.plan-card-enterprise {
    background: #f5f5f7;
}


.feature-section {
    font-weight: 600;
    color: var(--secondary-text) !important;
    font-size: 0.82rem !important;
    border-bottom: none !important;
    padding-top: 4px !important;
    padding-bottom: 0 !important;
}

.feature-section::before {
    content: "" !important;
}

.plans-grid-single {
    grid-template-columns: minmax(280px, 700px);
    justify-content: center;
}

.plan-card-wide {
    padding: 36px 40px;
}

.plan-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
}

.plan-features-grid li {
    border-bottom: none;
    padding: 6px 0;
}

.plan-trial-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--secondary-text);
    margin-top: 10px;
    visibility: hidden;
}

.plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-text);
    margin-bottom: 12px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-text);
    letter-spacing: 0;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
    min-height: 180px;
}

.plan-features li {
    font-size: 0.9rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    color: var(--text-color);
}

/* No tick marks. A checklist exists to contrast one tier against another, and
   there is only one version of ixScale — ticking every line in a single card
   implies a second card somewhere with them unticked. A plain dot just lists. */
.plan-features li::before {
    content: "·  ";
    color: var(--secondary-text);
    font-weight: 600;
}

.plan-btn {
    display: block;
    text-align: center;
    margin: auto 0 0;
    padding: 13px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 15px;
    }
}



/* ── Hero video ───────────────────────────────────────────────────────────
   Autoplaying, so it must be muted and playsinline or iOS refuses to start it
   and shows a play button instead. preload="metadata" keeps it off the
   critical path; the poster is what a visitor sees until it can paint. */
.hero-video {
    max-width: 1100px;   /* the .container width, so it aligns with the navbar */
    margin: 44px auto 0;
}

.hero-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 968;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
    background: #f5f5f7;
}

/* ── Hero: one capability shot, then the three-step sequence ──────────────
   All four shots are cropped to the 3D viewport: at this size the app's menus
   and card panel would be too small to read, and the geometry is the part that
   carries the meaning. */
.showcase {
    max-width: 528px;   /* 40% smaller than the 880 it sat at */
    margin: 24px auto 0;
}

/* Every section clears the fixed navbar when jumped to from the nav. */
.section { scroll-margin-top: 53px; }

.showcase img {
    display: block;
    width: 100%;
    height: auto;
    /* 10% shorter than the source's 1700x1075. `fill` rather than `cover` is
       what makes that a squash instead of a crop: cover would keep the shape
       and cut the edges off. */
    aspect-ratio: 1700 / 967.5;
    object-fit: fill;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.07);
    background: #f5f5f7;
}

.hetero { margin-top: 30px; }

.hetero-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}

/* Three across, because the three shots ARE a sequence and a row is what reads
   as one. They stay in a row down to a narrow screen rather than stacking. */
.hetero-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}

.hetero-steps figure { margin: 0; }

.hetero-steps img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 512;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    background: #f5f5f7;
}

.hetero-steps figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 560px) {
    .hetero-steps { gap: 10px; }
    .hetero-steps figcaption { font-size: 0.74rem; gap: 5px; }
    .step-num { width: 16px; height: 16px; font-size: 0.62rem; }
}

/* ── Contact form ─────────────────────────────────────────────────────────
   Sends to support@ixscale.com through POST /contact; nothing is stored. */
.contact-form {
    max-width: 560px;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary-color); }

.contact-form textarea { resize: vertical; min-height: 120px; }

/* The honeypot. Kept out of sight without display:none, which some bots
   check for; it stays focusable-by-nobody via tabindex="-1" in the markup. */
#ct-website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-status {
    min-height: 20px;
    font-size: 0.86rem;
    color: var(--secondary-text);
}

.contact-status.is-ok    { color: #1d8a4e; }
.contact-status.is-error { color: #d62c2c; }

.contact-form .btn.primary {
    align-self: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form .btn.primary:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 520px) {
    .contact-row { grid-template-columns: 1fr; }
}


/* ── Footer ───────────────────────────────────────────────────────────────
   Matches the coming-soon page: legal links and a phone number a verifier can
   find — the Apple review rejected the site for looking unattended, and a
   reachable number is part of not looking that way. */
/* ── Footer ───────────────────────────────────────────────────────────────
   Two tiers: brand + link columns, then a thin legal line. The single centred
   row it replaced ran the copyright sentence and three links together with
   interpuncts, which read as one long string rather than as navigation. */
footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    color: var(--secondary-text);
    font-size: 0.85rem;
    /* No margin-top. It used to have 40px, which was invisible only because a
       white section always sat above it; with the home page now ending on the
       gray Case Studies band, that margin read as a white gap between the band
       and the footer's rule. .footer-top's 48px padding gives the breathing
       room the margin was there for, inside the footer where it belongs. */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 20px 36px;
}

.footer-brand { max-width: 260px; }

.footer-logo {
    height: 20px;
    vertical-align: -3px;
    margin-right: 7px;
}

.footer-word {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-links h3 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-text);
    text-decoration: none;
}

.footer-links a:hover { color: var(--primary-color); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 0.78rem;
}

.footer-bottom a {
    color: var(--secondary-text);
    text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .footer-top {
        flex-direction: column;
        gap: 32px;
        padding-top: 36px;
    }
    .footer-links { gap: 40px; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* The two ways to reach us, stated once above the form rather than as a
   separate box — the form is the default, the address is for anyone who would
   rather use their own mail client. */
.contact-alt {
    margin-top: 10px;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.contact-alt a { color: var(--primary-color); text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

/* ── Case study ───────────────────────────────────────────────────────────
   A before/after pair. Side by side rather than stacked, because the whole
   point is the comparison and a reader should not have to scroll to make it. */
.case {
    max-width: 880px;
    margin: 40px auto 0;
    text-align: left;
}

.case-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.case-lede {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: 28px;
}

.case-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-pair figure { margin: 0; }

.case-pair img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 589;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    background: #fff;
}

.case-pair figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 600px) {
    .case-pair { gap: 12px; }
    .case-pair figcaption { font-size: 0.78rem; }
}
