/* =========================================================
   CurrentBody Skin — MyDose™ ICP landing page
   Palette: charcoal "CB" ink + the steel-blue gradient every
   app screen sits on, with a warm 633nm red-light glow as the
   single accent. Screenshots sit flush on steel-blue panels so
   the phones read as embedded in their native canvas.
   ========================================================= */

:root {
    /* ---------- CLIENT TOKENS ---------- */

    /* Color — charcoal mark + steel-blue app canvas + 633nm red glow */
    --ink: #26262a;          /* CB mark charcoal — headings */
    --body: #55606d;         /* steel-desaturated body copy */
    --accent: #d9463a;       /* 633nm red-light glow */
    --accent-700: #b6362c;   /* accent hover */
    --accent-2: #47566a;     /* steel-blue gradient partner */

    --base: #eef1f4;         /* cool off-white page canvas */
    --panel: #dde4ec;        /* steel-blue panel behind screenshots */
    --panel-alt: #ccd6e0;    /* deeper steel tint (alt rows) */
    --surface: #ffffff;      /* cards */
    --line: #d7dee6;         /* hairlines */

    /* Type — Archivo (architectural grotesque, echoes the CURRENTBODY
       wordmark) / Hanken Grotesk (body) / Space Mono (nm-style labels).
       Latin self-hosted (fonts.css); CJK falls back to PingFang / YaHei. */
    --font-display: "Archivo", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Hanken Grotesk", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "Space Mono", ui-monospace, "PingFang SC", "Microsoft YaHei", monospace;

    /* Shape — precise, moderately rounded (clinical-premium) */
    --radius-lg: 30px;
    --radius-md: 20px;

    /* ---------- END CLIENT TOKENS ---------- */

    --shadow-soft: 0 24px 60px rgba(30, 40, 55, 0.12);
    --shadow-phone: 0 30px 70px rgba(30, 40, 55, 0.20);
}

/* ---- Reset / base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--base);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0;
}

.list-reset { list-style: none; padding: 0; margin: 0; }

/* Shared micro-label (mono) */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ---- Layout helpers ---- */
.body-wrap { background: var(--base); max-width: 1320px; margin: 0 auto; overflow: hidden; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container-sm { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 28px; }

/* Focus visibility */
a:focus-visible, .button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---- Scroll reveal (gentle) ---- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* ---- Header ---- */
.site-header { padding: 26px 0 10px; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-lockup .brand-icon {
    width: 42px; height: 42px; border-radius: 12px;
    box-shadow: 0 6px 16px rgba(30, 40, 55, 0.22);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink); padding: 10px 4px;
    transition: color 0.15s ease;
}
.nav-link:hover { color: var(--accent); }

/* ---- Buttons ---- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 17px 40px; border: none; border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button-primary {
    color: #fff; background: var(--accent);
    box-shadow: 0 14px 30px rgba(217, 70, 58, 0.30);
}
.button-primary:hover { background: var(--accent-700); transform: translateY(-2px); }

/* ---- Hero ---- */
.hero { padding: 20px 0 40px; }
.hero-panel {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    max-width: 1080px; margin: 0 auto; padding: 78px 28px 0;
    text-align: center;
    background: linear-gradient(160deg, #e7edf3 0%, #d3dde8 60%, #c3cfdc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}
/* faint red-light glow — signature echo of the LED therapy */
.hero-panel::before {
    content: ""; position: absolute; top: -140px; left: 50%;
    width: 660px; height: 660px; transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 58, 0.12) 0%, rgba(217, 70, 58, 0) 62%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.hero-icon { width: 82px; height: 82px; margin: 0 auto 30px; border-radius: 20px; box-shadow: 0 16px 36px rgba(30, 40, 55, 0.30); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 600; margin-bottom: 20px; letter-spacing: 0.01em; }
.hero-tagline { font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.6; color: var(--body); max-width: 480px; margin: 0 auto 34px; }
.hero-cta { margin-bottom: 56px; }
.hero-phone { position: relative; z-index: 2; width: 272px; margin-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: 0 -6px 60px rgba(30, 40, 55, 0.20); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---- Lead intro ---- */
.lead { padding: clamp(72px, 12vw, 128px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.lead-title { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 22px; }
.lead-text { font-size: 1.13rem; line-height: 1.75; color: var(--body); }
.lead-text .accent { color: var(--ink); font-weight: 700; }

/* ---- Story: alternating feature rows ---- */
.story { padding: 20px 0 40px; }
.story-row {
    display: flex; align-items: center;
    gap: clamp(32px, 6vw, 84px);
    max-width: 1000px; margin: 0 auto; padding: clamp(28px, 5vw, 52px) 28px;
}
.story-row:nth-child(even) { flex-direction: row-reverse; }

.story-frame {
    flex: 0 0 auto; display: flex; justify-content: center; align-items: flex-end;
    width: 336px; padding: 34px 34px 0;
    background: linear-gradient(165deg, var(--panel) 0%, var(--panel-alt) 100%);
    border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
}
/* deeper steel tint to match the screens' own gradient */
.story-frame--alt { background: linear-gradient(165deg, var(--panel-alt) 0%, #bcc7d4 100%); }
.story-frame img { width: 232px; border-radius: 24px 24px 0 0; box-shadow: 0 18px 40px rgba(30, 40, 55, 0.18); }

.story-body { flex: 1 1 auto; }
.story-title { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 16px; }
.story-text { font-size: 1.06rem; line-height: 1.72; color: var(--body); margin: 0; max-width: 34ch; }

/* ---- Benefits ---- */
.grid { padding: clamp(64px, 9vw, 104px) 0; text-align: center; }
.grid-title { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin-bottom: clamp(40px, 6vw, 60px); }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 1000px; margin: 0 auto; }
.card {
    flex: 1 1 262px; max-width: 320px; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 38px 32px; box-shadow: 0 14px 40px rgba(30, 40, 55, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(30, 40, 55, 0.14); }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 16px; margin-bottom: 24px;
    background: linear-gradient(140deg, var(--accent-2) 0%, var(--accent) 100%);
}
.card-icon svg { width: 27px; height: 27px; stroke: #fff; }
.card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 1rem; line-height: 1.62; color: var(--body); margin: 0; }

/* ---- Science band (why precise energy matters) ---- */
.science { padding: clamp(20px, 4vw, 40px) 0 clamp(56px, 8vw, 88px); }
.science-inner {
    position: relative; max-width: 1000px; margin: 0 auto;
    padding: clamp(48px, 7vw, 76px) clamp(32px, 6vw, 72px);
    background: linear-gradient(158deg, #f4f6f9 0%, #e6ecf2 100%);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    text-align: center; overflow: hidden;
}
.science-inner::after {
    content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
    bottom: -240px; left: -140px;
    background: radial-gradient(circle, rgba(217, 70, 58, 0.10) 0%, rgba(217, 70, 58, 0) 68%);
    pointer-events: none;
}
.science-copy { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.science-title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 20px; }
.science-text { font-size: 1.08rem; line-height: 1.76; color: var(--body); margin: 0 0 18px; }
.science-text:last-child { margin-bottom: 0; }
.science-text .accent { color: var(--ink); font-weight: 600; }
.science-text .term {
    font-family: var(--font-mono); font-size: 0.9em; letter-spacing: 0.02em;
    color: var(--accent); white-space: nowrap;
}

/* ---- Closing card — the one saturated moment ---- */
.closing { padding: 20px 0 clamp(48px, 7vw, 80px); }
.closing-card {
    position: relative; max-width: 1080px; margin: 0 auto;
    padding: clamp(64px, 9vw, 100px) 28px; text-align: center; color: #fff;
    background: linear-gradient(150deg, var(--ink) 0%, var(--accent-2) 52%, var(--accent) 118%);
    border-radius: var(--radius-lg); overflow: hidden;
}
.closing-card::after {
    content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
    top: -260px; right: -170px;
    background: radial-gradient(circle, rgba(217, 70, 58, 0.30) 0%, rgba(217, 70, 58, 0) 68%);
    pointer-events: none;
}
.closing-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.closing-title { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 18px; }
.closing-text { font-size: 1.13rem; line-height: 1.65; color: rgba(255, 255, 255, 0.88); margin: 0; }

/* ---- Compliance / ICP ---- */
.compliance { display: flex; justify-content: center; padding: 40px 28px 28px; }
.compliance a {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
    color: #8b929b; transition: color 0.15s ease;
}
.compliance a:hover { color: var(--accent); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: #8b929b; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
    .story-row, .story-row:nth-child(even) { flex-direction: column; gap: 32px; text-align: center; padding: 28px; }
    .story-body { display: flex; flex-direction: column; align-items: center; }
    .story-text { max-width: 42ch; }
}
@media (max-width: 560px) {
    body { font-size: 17px; }
    .hero-panel { padding-top: 56px; border-radius: 26px; }
    .story-frame { width: 100%; max-width: 300px; }
    .science-inner { padding: 44px 26px; }
    .card { text-align: center; }
    .card-icon { margin-left: auto; margin-right: auto; }
    .site-footer-inner { flex-direction: column; justify-content: center; text-align: center; }
}
