/* ============================================================
   INSCRITI — bold, custom brand system
   Flat color. Tactile. No gradients. Satoshi.
   ============================================================ */

@font-face { font-family: "Satoshi"; src: url("../uploads/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../uploads/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../uploads/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../uploads/Satoshi-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
    /* ink */
    --ink:      #191320;
    --ink-soft: #423b4f;
    --muted:    #6d6678;
    --faint:    #9a94a4;

    /* surfaces — warm, distinct */
    --paper:    #f5f1e8;
    --paper-2:  #ede7d9;
    --card:     #ffffff;

    /* brand violet */
    --brand:      #6d4df6;
    --brand-600:  #5a37e6;
    --brand-700:  #4326b4;   /* tactile ledge / deep */
    --brand-ink:  #241150;   /* dark violet ground */
    --brand-wash: #ece6ff;
    --brand-wash-2:#ddd2ff;

    /* cohesive secondary palette (flat solids) */
    --amber:  #ffb020;  --amber-ink:#6f4400;
    --coral:  #ff6a5a;  --coral-ink:#7c2013;
    --teal:   #16c2a3;  --teal-ink: #0a5346;
    --sky:    #4aa3ff;  --sky-ink:  #0a4278;

    /* lines */
    --line:      #e6dfd0;
    --line-2:    #d8cfbc;
    --ink-line:  rgba(25, 19, 32, 0.12);

    --r-xl: 34px;
    --r-lg: 26px;
    --r:    20px;
    --r-sm: 14px;
    --pill: 999px;

    --max: 1180px;
    --nav: 78px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* ---------- tactile buttons ---------- */
.btn {
    --ledge: var(--brand-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--pill);
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--ledge);
    transition: transform 0.09s var(--ease), box-shadow 0.09s var(--ease), background 0.18s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ledge); }
/* All primary buttons share one uniform size (defined on .btn above).
   .btn-sm / .btn-lg remain as no-op modifiers so existing markup doesn't
   need to change — they no longer alter the button's dimensions. */
.btn-sm, .btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; box-shadow: 0 5px 0 var(--ledge); }

.btn-ink { --ledge: #000; background: var(--ink); }
.btn-ink:hover { background: #000; }

.btn-ghost {
    background: var(--card);
    color: var(--ink);
    --ledge: var(--line-2);
    box-shadow: 0 5px 0 var(--ledge);
}
.btn-ghost:hover { background: #fff; }

.btn-cream {
    background: #fff; color: var(--brand-700); --ledge: rgba(0,0,0,0.18);
}

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 11px 20px 11px 16px;
    border-radius: 15px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 0 #000;
    transition: transform 0.09s var(--ease), box-shadow 0.09s var(--ease);
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.store-badge .sb-ico { width: 26px; height: 26px; flex: none; }
.store-badge span { display: grid; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.82; text-transform: uppercase; }
.store-badge b { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.store-badges.on-dark .store-badge {
    background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,0.28);
}
.store-badges.on-dark .store-badge:active { box-shadow: 0 0 0 rgba(0,0,0,0.28); }

/* pill chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px 8px 12px;
    border-radius: var(--pill);
    background: var(--brand-wash);
    color: var(--brand-700);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.005em;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 4px;
    border-radius: 4px;
    background: var(--brand);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: calc(var(--nav) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    background: rgba(245, 241, 232, 0);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-bottom: 1.5px solid transparent;
}
.site-header.scrolled,
.site-header.menu-is-open {
    background: rgba(245, 241, 232, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.header-in {
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.site-logo img { width: 128px; height: auto; display: block; }
.site-nav { display: flex; justify-content: center; gap: 2px; }
.site-nav a {
    padding: 10px 15px;
    border-radius: var(--pill);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-soft);
    transition: background 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { background: rgba(25, 19, 32, 0.06); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .login {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: var(--ink);
    min-height: 54px; padding: 0 26px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--pill);
    background: var(--card);
    box-shadow: 0 5px 0 var(--line-2);
    transition: transform 0.09s var(--ease), box-shadow 0.09s var(--ease), border-color 0.18s ease, color 0.18s ease;
}
.header-actions .login:hover { color: var(--brand-700); border-color: var(--brand); }
.header-actions .login:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line-2); }

.menu-toggle {
    display: none;
    width: 48px; height: 48px;
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    background: var(--card);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2.4px; border-radius: 3px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    z-index: 900;
    inset: calc(var(--nav) + env(safe-area-inset-top)) 0 0 0;
    background: var(--paper);
    padding: 26px 24px max(28px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s var(--ease), visibility 0.24s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.m-link {
    font-size: clamp(26px, 8vw, 38px);
    font-weight: 900;
    letter-spacing: -0.03em;
    padding: 16px 0;
    border-bottom: 1.5px solid var(--line);
}
.mobile-actions { margin-top: auto; display: grid; gap: 12px; padding-top: 26px; }
.mobile-actions .btn { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: calc(var(--nav) + env(safe-area-inset-top) + 44px) 0 64px;
    overflow: hidden;
}
.hero::before {
    /* solid dot texture — custom, no gradient */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--line-2) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 90% at 70% 8%, #000 0%, transparent 62%);
    mask-image: radial-gradient(120% 90% at 70% 8%, #000 0%, transparent 62%);
    opacity: 0.55;
    pointer-events: none;
}
.hero-in {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
}
.hero h1 {
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.98;
    margin: 20px 0 0;
}
.hero h1 .line { display: block; }
/* rotating word in a bold solid highlight block */
.rotor {
    display: inline-flex;
    align-items: center;
    height: 1.02em;
    padding: 0.04em 0.28em 0.12em;
    margin-top: 0.08em;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 6px 0 var(--brand-700);
    transform: rotate(-1.4deg);
}
.rotor .word {
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.34s var(--ease), opacity 0.34s var(--ease);
}
.rotor.swap .word { transform: translateY(-115%); opacity: 0; }

.hero-lede {
    max-width: 38ch;
    margin: 26px 0 0;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: var(--ink-soft);
    font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    margin-top: 30px;
    font-size: 14.5px; font-weight: 700; color: var(--muted);
}
.hero-trust b { color: var(--ink-soft); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.hero-trust b::before {
    content: "";
    width: 18px; height: 18px; flex: none;
    border-radius: 50%;
    background: var(--teal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/74% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/74% no-repeat;
}

/* hero product */
.hero-visual {
    position: relative;
    padding: 14px 6px 22px;
}
.hero-visual .blob {
    position: absolute;
    inset: -6% -8% 4% 4%;
    background: var(--brand-wash);
    border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
    z-index: 0;
}
.hero-visual .blob.two {
    inset: 18% 2% -8% 26%;
    background: var(--brand-wash-2);
    border-radius: 54% 46% 42% 58% / 46% 56% 44% 54%;
    opacity: 0.7;
}
.browser {
    position: relative;
    z-index: 1;
    border-radius: var(--r);
    background: #fff;
    border: 1.5px solid var(--ink-line);
    overflow: hidden;
    box-shadow: 0 22px 50px -26px rgba(36, 17, 80, 0.5);
}
.browser-bar {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    background: var(--paper-2);
    border-bottom: 1.5px solid var(--line);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.browser-bar i:nth-child(1){ background:#ff6a5a; } .browser-bar i:nth-child(2){ background:#ffb020; } .browser-bar i:nth-child(3){ background:#16c2a3; }
.browser-bar b { margin-left: 10px; font-size: 12.5px; font-weight: 800; color: var(--faint); }
.browser img { width: 100%; display: block; }

.hero-phone {
    position: absolute;
    z-index: 2;
    right: -10px;
    bottom: -14px;
    width: clamp(122px, 17vw, 176px);
    padding: 7px;
    border-radius: 30px;
    background: var(--ink);
    border: 1.5px solid rgba(255,255,255,0.16);
    box-shadow: 0 20px 40px -16px rgba(25, 19, 32, 0.55);
}
.hero-phone img { width: 100%; border-radius: 24px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background: #fff; }

/* floating personality card */
.float-card {
    position: absolute;
    z-index: 3;
    left: -14px;
    top: 16%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px 11px 11px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    box-shadow: 0 14px 30px -16px rgba(25,19,32,0.4);
}
.float-card .fc-ico {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    display: grid; place-items: center;
    background: var(--teal); color: #fff;
}
.float-card .fc-ico svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: 13.5px; font-weight: 900; letter-spacing: -0.01em; }
.float-card span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.strip {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: 18px 0;
    border-block: 3px solid var(--brand);
}
.strip-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.strip-track span {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding-inline: 22px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.strip-track span::after {
    content: "";
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand);
    transform: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-head { max-width: 720px; margin: 0 0 clamp(38px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.02;
}
.section-head p {
    margin: 18px 0 0;
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.62;
    color: var(--muted);
    font-weight: 500;
    max-width: 56ch;
}
.section-head.center p { margin-inline: auto; }

/* ============================================================
   FEATURE BENTO
   ============================================================ */
.features { background: var(--paper); }
.bento {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.card {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    box-shadow: 0 3px 0 var(--line);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--line); border-color: var(--line-2); }
.f-col-3 { grid-column: span 3; }
.f-col-2 { grid-column: span 2; }
.f-col-6 { grid-column: span 6; }

.f-ico {
    width: 56px; height: 56px;
    border-radius: 18px;
    display: grid; place-items: center;
    margin-bottom: 22px;
    color: #fff;
}
.f-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i-violet { background: var(--brand); }
.i-teal   { background: var(--teal); }
.i-coral  { background: var(--coral); }
.i-amber  { background: var(--amber); }
.i-sky    { background: var(--sky); }
.i-ink    { background: var(--ink); }

.card h3 { font-size: 22px; line-height: 1.12; margin-bottom: 9px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; font-weight: 500; }

/* wide showcase card with screenshot */
.card.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: center;
    padding: 40px;
    background: var(--brand-ink);
    border-color: var(--brand-ink);
    color: #fff;
    box-shadow: 0 3px 0 var(--brand-700);
}
.card.showcase:hover { box-shadow: 0 10px 0 var(--brand-700); border-color: var(--brand-ink); }
.card.showcase h3 { font-size: clamp(26px, 3vw, 36px); }
.card.showcase p { color: rgba(255,255,255,0.72); font-size: 16.5px; margin-top: 4px; }
.card.showcase .f-ico { background: rgba(255,255,255,0.14); }
.showcase-shot {
    border-radius: var(--r);
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.14);
    box-shadow: 0 20px 44px -22px rgba(0,0,0,0.7);
    background: #fff;
}
.showcase-shot img { width: 100%; display: block; }

/* ============================================================
   ROLES
   ============================================================ */
.roles { background: var(--paper-2); border-block: 1.5px solid var(--line); }
.role-tabs {
    display: inline-flex;
    padding: 6px;
    gap: 6px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--pill);
    box-shadow: 0 3px 0 var(--line);
    margin-bottom: 40px;
}
.role-tab {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 900;
    font-size: 15.5px;
    padding: 12px 26px;
    border-radius: var(--pill);
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, color 0.2s ease;
}
.role-tab:hover { color: var(--ink); }
.role-tab.active { background: var(--brand); color: #fff; }

.role-stage { position: relative; }
.role-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
    pointer-events: none;
}
.role-panel.active { opacity: 1; visibility: visible; position: relative; transform: none; pointer-events: auto; }
.role-panel h3 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.04; max-width: 15ch; }
.role-panel > div > p { margin: 18px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--muted); font-weight: 500; max-width: 46ch; }
.role-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 13px; }
.role-list li { position: relative; padding-left: 34px; font-weight: 700; color: var(--ink-soft); font-size: 16px; }
.role-list li::before {
    content: "";
    position: absolute; left: 0; top: -1px;
    width: 22px; height: 22px; border-radius: 7px;
    background: var(--teal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
    box-shadow: none;
}
.role-list li::after {
    content: "";
    position: absolute; left: 0; top: -1px;
    width: 22px; height: 22px; border-radius: 7px;
    background: rgba(22, 194, 163, 0.18);
    z-index: -1;
}
.role-visual { justify-self: center; }
.phone-frame {
    position: relative;
    width: min(280px, 74vw);
    padding: 10px;
    border-radius: 40px;
    background: var(--ink);
    border: 1.5px solid rgba(255,255,255,0.16);
    box-shadow: 0 26px 50px -24px rgba(25,19,32,0.6);
}
.phone-frame img { width: 100%; border-radius: 30px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; background: #fff; }
.web-frame {
    width: 100%;
    border-radius: var(--r);
    overflow: hidden;
    border: 1.5px solid var(--ink-line);
    background: #fff;
    box-shadow: 0 24px 50px -26px rgba(36,17,80,0.5);
}
.web-frame img { width: 100%; max-height: 440px; object-fit: cover; object-position: top; }

/* ============================================================
   PROMISE BAND (bold violet, cohesive)
   ============================================================ */
.promise { background: var(--brand); color: #fff; }
.promise .section-head h2 { font-size: clamp(30px, 4vw, 50px); }
.promise .eyebrow { color: #fff; }
.promise .eyebrow::before { background: rgba(255,255,255,0.6); }
.promise-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.promise-card {
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.16);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.14);
}
.promise-card .num {
    display: inline-flex;
    font-size: 40px; font-weight: 900; letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
}
.promise-card h3 { font-size: 20px; margin-bottom: 8px; }
.promise-card p { margin: 0; color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.55; font-weight: 500; }

/* ============================================================
   STORY (alternating)
   ============================================================ */
.story { background: var(--paper); }
.story-in {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 84px);
    align-items: center;
}
.story-in.flip .story-media { order: 2; }
.story-media {
    position: relative;
    background: var(--brand-wash);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: 0 3px 0 var(--line);
}
.story-media img { border-radius: var(--r-sm); margin: 0 auto; max-height: 560px; object-fit: contain; }
.story-copy h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.03; }
.story-copy > p { margin: 20px 0 0; font-size: 18px; line-height: 1.62; color: var(--muted); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 700; color: var(--ink-soft); font-size: 16.5px; }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 1px;
    width: 22px; height: 22px; border-radius: 7px;
    background: var(--brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ============================================================
   WORKFLOW (how it works)
   ============================================================ */
.workflow { background: var(--paper-2); border-block: 1.5px solid var(--line); }
.steps {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.step {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: 0 3px 0 var(--line);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--line); }
.step .step-num {
    width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brand-wash); color: var(--brand-700);
    font-weight: 900; font-size: 18px;
    margin-bottom: 24px;
}
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper); }
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.faq-item {
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 3px 0 var(--line);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 22px 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.faq-q .pm {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--brand-wash);
    position: relative;
    transition: background 0.2s ease;
}
.faq-q .pm::before, .faq-q .pm::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 13px; height: 2.6px; border-radius: 3px;
    background: var(--brand-700);
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--ease);
}
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .pm { background: var(--brand); }
.faq-item.open .faq-q .pm::before, .faq-item.open .faq-q .pm::after { background: #fff; }
.faq-item.open .faq-q .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { margin: 0; padding: 0 24px 24px; color: var(--muted); font-size: 16px; line-height: 1.62; font-weight: 500; max-width: 64ch; }

/* ============================================================
   FINAL CTA + FORM
   ============================================================ */
.cta { background: var(--brand-ink); color: #fff; }
.cta-in {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
    gap: clamp(34px, 6vw, 80px);
    align-items: start;
}
.cta .eyebrow { color: #c9bcff; }
.cta .eyebrow::before { background: var(--brand); }
.cta h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.0; }
.cta > .cta-in > .cta-copy p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.74); font-weight: 500; max-width: 44ch; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cta-badges span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: var(--pill);
    background: rgba(255,255,255,0.10);
    border: 1.5px solid rgba(255,255,255,0.16);
    font-size: 14px; font-weight: 800;
}

.demo-form {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 28px;
    display: grid;
    gap: 15px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.22);
}
.demo-form .df-row { display: grid; gap: 7px; }
.demo-form label { color: var(--ink-soft); font-size: 13px; font-weight: 900; letter-spacing: 0.01em; }
.demo-form input, .demo-form select {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    padding: 0 15px;
    background: var(--paper);
    color: var(--ink);
    outline: none;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.demo-form input::placeholder { color: var(--faint); font-weight: 500; }
.demo-form input:focus, .demo-form select:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 77, 246, 0.14);
}
.demo-form .btn { width: 100%; margin-top: 4px; }
.demo-form .fine { margin: 0; color: var(--faint); font-size: 12.5px; line-height: 1.5; font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 max(30px, env(safe-area-inset-bottom)); }
.footer-top {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding-bottom: 44px;
    border-bottom: 1.5px solid rgba(255,255,255,0.12);
}
.footer-brand img { width: 132px; margin-bottom: 18px; }
.footer-brand p { margin: 0; color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.6; max-width: 34ch; font-weight: 500; }
.footer-col h4 { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 15px; color: rgba(255,255,255,0.85); font-weight: 900; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 14.5px; line-height: 2; font-weight: 600; transition: color 0.16s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.45);
    font-size: 13.5px;
    font-weight: 600;
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 9px; }
.footer-bottom .made img { height: 16px; opacity: 0.7; }

/* ============================================================
   REVEAL
   ============================================================ */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
    will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { opacity: 1; transform: none; } /* hero paints instantly */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
    .site-nav, .header-actions { display: none; }
    .menu-toggle { display: flex; justify-self: end; grid-column: 3; }
    .header-in { grid-template-columns: auto 1fr auto; }
    .hero-in { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 560px; }
    .bento { grid-template-columns: repeat(4, 1fr); }
    .f-col-3 { grid-column: span 2; }
    .f-col-2 { grid-column: span 2; }
    .f-col-6 { grid-column: span 4; }
    .card.showcase { grid-template-columns: 1fr; gap: 26px; }
    .role-panel { grid-template-columns: 1fr; }
    .role-visual { justify-self: start; }
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .story-in { grid-template-columns: 1fr; }
    .story-in.flip .story-media { order: 0; }
    .steps { grid-template-columns: 1fr; }
    .cta-in { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --nav: 68px; }
    html { scroll-padding-top: 78px; }
    .wrap, .header-in, .hero-in, .bento, .promise-grid, .story-in, .steps, .cta-in, .footer-top, .footer-bottom { padding-inline: 18px; }
    .hero { padding-top: calc(var(--nav) + env(safe-area-inset-top) + 30px); }
    .hero h1 { font-size: clamp(40px, 12vw, 52px); }
    .hero-cta { display: grid; }
    .hero-cta .btn { width: 100%; }
    .hero-visual { padding: 8px 4px 16px; }
    .hero-phone { width: min(38vw, 150px); right: 4px; bottom: -8px; }
    .float-card { left: -6px; padding: 9px 13px 9px 9px; }
    .float-card span { display: none; }
    .section { padding: 64px 0; }
    .bento { grid-template-columns: 1fr; }
    .f-col-3, .f-col-2, .f-col-6 { grid-column: span 1; }
    .card { padding: 26px; }
    .role-tabs { width: 100%; overflow-x: auto; }
    .role-tab { flex: 1; padding: 12px 16px; white-space: nowrap; }
    .promise-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .rotor { transform: rotate(-1deg); }
}
