/* ccSidekick product site.
 *
 * Tokens from vibe/DESIGN-apple.md, applied as written: one accent (Action
 * Blue), near-black ink, white / parchment / near-black tiles that touch
 * edge to edge, SF Pro (Inter off-platform) with tight display tracking,
 * 17px body, and exactly one drop shadow — under the phone. No gradients,
 * no shadows on chrome.
 */

:root {
    --primary: #0066cc;
    --cc: #e0202e;
    --primary-focus: #0071e3;
    --primary-on-dark: #2997ff;
    --ink: #1d1d1f;
    --body-on-dark: #ffffff;
    --body-muted: #cccccc;
    --ink-80: #333333;
    --ink-48: #7a7a7a;
    --divider-soft: #f0f0f0;
    --hairline: #e0e0e0;
    --canvas: #ffffff;
    --parchment: #f5f5f7;
    --pearl: #fafafc;
    --tile-1: #272729;
    --tile-2: #2a2a2c;
    --tile-3: #252527;
    --black: #000000;
    --chip: rgba(210, 210, 215, 0.64);

    --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", system-ui, Helvetica, Arial, sans-serif;
    --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", system-ui, Helvetica, Arial, sans-serif;

    --r-sm: 8px;
    --r-md: 11px;
    --r-lg: 18px;
    --pill: 9999px;

    --section: 80px;
    --content: 980px;
    --wide: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.374px;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss03";
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- global nav (44px, true black) ---------- */

.gnav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 44px;
    background: var(--black);
    color: var(--body-on-dark);
}

.gnav .in {
    max-width: var(--content);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: -0.12px;
}

.gnav .mark { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; }
.gnav .mark img { width: 22px; height: 22px; border-radius: 6px; }
.gnav .mark b { color: var(--primary-on-dark); font-weight: 600; }
/* The brand: "cc" is always red, wherever the name is written. */
.cc { color: var(--cc); }
.gnav nav { display: flex; gap: 24px; margin-left: 8px; }
.gnav nav a { color: rgba(255, 255, 255, .8); }
.gnav nav a:hover { color: #fff; text-decoration: none; }
.gnav .spacer { flex: 1; }
.gnav .get {
    background: var(--primary);
    color: #fff;
    border-radius: var(--pill);
    padding: 5px 12px;
    font-size: 12px;
}
.gnav .get:hover { text-decoration: none; background: var(--primary-focus); }

@media (max-width: 833px) {
    .gnav nav { display: none; }
}

/* ---------- tiles ---------- */

.tile {
    padding: var(--section) 22px;
    text-align: center;
}

.tile.light { background: var(--canvas); color: var(--ink); }
.tile.parchment { background: var(--parchment); color: var(--ink); }
.tile.dark { background: var(--tile-1); color: var(--body-on-dark); }
.tile.dark-2 { background: var(--tile-2); color: var(--body-on-dark); }
.tile.dark-3 { background: var(--tile-3); color: var(--body-on-dark); }
.tile.dark a, .tile.dark-2 a, .tile.dark-3 a { color: var(--primary-on-dark); }

.tile .in { max-width: var(--content); margin: 0 auto; }
.tile .in.wide { max-width: var(--wide); }

.eyebrow {
    font-family: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
    color: var(--ink-48);
    margin: 0 0 10px;
}
.tile.dark .eyebrow, .tile.dark-2 .eyebrow, .tile.dark-3 .eyebrow { color: var(--body-muted); }

h1.hero {
    font-family: var(--display);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
    margin: 0;
}

h2.display {
    font-family: var(--display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    margin: 0;
}

p.lead {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: 0.196px;
    margin: 14px auto 0;
    max-width: 720px;
}

p.lead-airy {
    font-family: var(--text);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0;
    margin: 12px auto 0;
    max-width: 680px;
}
.tile.dark p.lead-airy, .tile.dark-2 p.lead-airy, .tile.dark-3 p.lead-airy { color: var(--body-muted); }

p.body { margin: 12px auto 0; max-width: 640px; }
.tile.dark p.body, .tile.dark-2 p.body, .tile.dark-3 p.body { color: var(--body-muted); }

.ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--text);
    font-size: 17px;
    letter-spacing: -0.374px;
    border-radius: var(--pill);
    padding: 11px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease;
}
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.tile.dark .btn.ghost, .tile.dark-2 .btn.ghost, .tile.dark-3 .btn.ghost { color: var(--primary-on-dark); border-color: var(--primary-on-dark); }
.btn.store-hero { font-size: 18px; font-weight: 300; padding: 14px 28px; }

/* Store badges: black capsule with the platform glyph, drawn here rather
   than fetched — the site has to work from a LAN box with no CDN. */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--black);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r-sm);
    padding: 7px 14px 7px 11px;
    min-height: 52px;
    text-align: left;
    line-height: 1.1;
    cursor: pointer;
    transition: transform .12s ease;
    font-family: var(--text);
}
.badge:hover { text-decoration: none; }
.badge:active { transform: scale(0.95); }
.badge:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge small { display: block; font-size: 10px; letter-spacing: 0; opacity: .85; }
.badge span { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
.badge.soon { opacity: .78; }
.badge.soon small::after { content: " · Fall 2026"; }

/* The hero: text, then the phone resting on the surface below. */
.hero-icon { width: 108px; height: 108px; margin: 0 auto 22px; }
.hero-phones {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 56px;
    align-items: flex-end;
}

/* A tile with copy beside a phone. The phone is a fixed-size render, so the
   copy column takes what is left; under 834px they stack. */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}
.split.flip { grid-template-columns: auto minmax(0, 1fr); }
.split.flip > .copy { order: 2; }
.split .copy h2 { text-align: left; }
.split .copy p { margin-left: 0; margin-right: 0; }
.split .copy .ctas { justify-content: flex-start; }

@media (max-width: 833px) {
    .split, .split.flip { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .split.flip > .copy { order: 0; }
    .split .copy h2 { text-align: center; }
    .split .copy p { margin-left: auto; margin-right: auto; }
    .split .copy .ctas { justify-content: center; }
    .split .phone-wrap { margin: 0 auto; }
}

/* Feature bullets under a tile headline. */
.points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    text-align: left;
    max-width: 520px;
}
.points li { padding-left: 26px; position: relative; }
.points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.tile.dark .points li::before, .tile.dark-2 .points li::before, .tile.dark-3 .points li::before { background: var(--primary-on-dark); }
.points b { font-weight: 600; }

/* ---------- utility card grid ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
    text-align: left;
}
@media (max-width: 1068px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.ucard {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 24px;
}
.ucard .glyph {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--chip);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.ucard .glyph svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ucard h3 { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; margin: 0 0 6px; }
.ucard p { margin: 0; font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-80); }

/* ---------- stats band ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
}
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat .big { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.1; }
.stat .cap { font-size: 14px; letter-spacing: -0.224px; color: var(--body-muted); margin-top: 4px; }

/* ---------- gallery of screens ---------- */

.gallery {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; letter-spacing: -0.224px; color: var(--body-muted); margin-top: 14px; }

/* ---------- footer ---------- */

footer {
    background: var(--parchment);
    color: var(--ink-80);
    padding: 64px 22px;
    font-size: 12px;
    letter-spacing: -0.12px;
}
footer .in { max-width: var(--content); margin: 0 auto; }
footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { footer .cols { grid-template-columns: minmax(0, 1fr); } }
footer h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.224px; margin: 0 0 4px; color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 2.41; letter-spacing: 0; }
footer ul a { color: var(--ink-80); }
footer .legal { border-top: 1px solid var(--hairline); margin-top: 32px; padding-top: 18px; color: var(--ink-48); line-height: 1.6; }
footer .legal p { margin: 0 0 6px; }
footer .legal .disclaimer { font-weight: 600; color: var(--ink-80); }

/* ---------- "coming soon" sheet ---------- */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: grid;
    place-items: end center;
    z-index: 50;
    padding: 16px;
}
.sheet-backdrop[hidden] { display: none; }
.sheet {
    background: var(--canvas);
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: 28px 24px 22px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.sheet .glyph { width: 56px; height: 56px; margin: 0 auto 14px; }
.sheet h3 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.2px; margin: 0 0 6px; line-height: 1.14; }
.sheet p { margin: 0 0 18px; color: var(--ink-80); }
.sheet .btn { width: 100%; justify-content: center; }
@media (min-width: 640px) { .sheet-backdrop { place-items: center; } }

/* ---------- responsive type ---------- */

@media (max-width: 1068px) { h1.hero { font-size: 40px; } }
@media (max-width: 833px) {
    .tile { padding: 56px 20px; }
    .hero-phones { flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
    h1.hero { font-size: 34px; }
    h2.display { font-size: 32px; }
    p.lead { font-size: 22px; }
    p.lead-airy { font-size: 20px; }
    .tile { padding: 48px 16px; }
}
@media (max-width: 419px) {
    h1.hero { font-size: 28px; }
    h2.display { font-size: 28px; }
}

/* Reduced motion: no scale on press. */
@media (prefers-reduced-motion: reduce) {
    .btn, .badge { transition: none; }
    .btn:active, .badge:active { transform: none; }
    html { scroll-behavior: auto; }
}
