/* =============================================================
   efeque — landing page
   Standalone stylesheet: the marketing page shares the palette
   with the app but none of its markup.
   ============================================================= */

:root {
    --canvas:      #f6f7fa;
    --surface:     #ffffff;
    --surface-2:   #f2f3f8;
    --line:        #e7e9f0;
    --line-2:      #d7dae5;

    --ink:         #14151a;
    --ink-2:       #5c6070;
    --ink-3:       #8e93a3;

    --brand:       #5b5bd6;
    --brand-deep:  #3a3a9e;
    --brand-soft:  #eeeffc;
    --brand-line:  #dcdef8;
    --brand-lift:  #7a7ae8;

    --amber:       #c08a3e;
    --amber-deep:  #92621f;
    --amber-soft:  #fdf4e6;
    --amber-line:  #f2e2c6;

    --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
            "Helvetica Neue", Arial, sans-serif;

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 1px 2px rgba(20, 21, 26, .04), 0 10px 30px rgba(20, 21, 26, .06);
    --shadow-lg: 0 30px 80px rgba(29, 29, 90, .16);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --t:    .45s var(--ease);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand-deep); text-decoration: none; transition: color var(--t); }
a:hover { color: #2b2b7e; }

.shell { width: min(1140px, 100% - 3rem); margin-inline: auto; }

.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .75rem 1.25rem; border-radius: var(--radius-sm); z-index: 99; }

.eyebrow {
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-deep);
    margin-bottom: .9rem;
}

.section-lede {
    color: var(--ink-2);
    font-size: 1.02rem;
    max-width: 40rem;
    margin-top: 1rem;
}
.section-lede.center { margin-inline: auto; }

/* ---------------------------------------------- Buttons */

.btn {
    display: inline-block;
    font-size: .93rem;
    font-weight: 500;
    padding: .8rem 1.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t),
                box-shadow var(--t), transform var(--t);
}

.btn-primary {
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 21, 26, .1), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-primary:hover {
    background: linear-gradient(145deg, var(--brand-lift) 0%, #33338f 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(58, 58, 158, .32), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.btn-ghost { color: var(--ink-2); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); color: var(--ink); }

.btn-lg { padding: .95rem 2.2rem; font-size: 1rem; }

/* ---------------------------------------------- Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 247, 250, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
}

/* Flat circle — matches the mark in the app exactly. */
.logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: relative;
    background: var(--brand);
    transition: transform var(--t), background var(--t);
}
.logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .92);
    border-bottom-color: transparent;
    border-right-color: transparent;
    transform: rotate(-45deg);
}
.logo:hover .logo-mark {
    transform: rotate(-12deg);
    background: var(--brand-deep);
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: .89rem;
}
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }

.nav-cta {
    background: var(--brand-deep);
    color: #ffffff !important;
    padding: .5rem 1.2rem;
    border-radius: 999px;
    transition: background var(--t);
}
.nav-cta:hover { background: #2b2b7e; }

/* ---------------------------------------------- Hero */

.hero {
    position: relative;
    padding: 6rem 0 5.5rem;
    overflow: hidden;
    background:
        radial-gradient(46rem 30rem at 78% -4%,  rgba(91, 91, 214, .20) 0%, transparent 62%),
        radial-gradient(34rem 24rem at 10% 18%,  rgba(122, 122, 232, .16) 0%, transparent 60%),
        radial-gradient(30rem 22rem at 52% 104%, rgba(192, 138, 62, .13) 0%, transparent 62%);
}

/* A faint grid, the kind you only notice once. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(20, 21, 26, .028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 21, 26, .028) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(36rem 26rem at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(36rem 26rem at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}
.hero > * { position: relative; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.5rem);
    margin-bottom: 1.3rem;
}

.lede {
    color: var(--ink-2);
    font-size: 1.08rem;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin: 2.2rem 0 1.4rem;
}

.hero-foot {
    font-size: .84rem;
    color: #8e93a3;
    max-width: 28rem;
}

/* Mock board */

.hero-visual { perspective: 1400px; }

.mock {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotateY(-7deg) rotateX(3deg);
    transition: transform .8s var(--ease);
}
.mock:hover { transform: rotateY(-2deg) rotateX(1deg); }

.mock-bar {
    display: flex;
    gap: .4rem;
    padding: .75rem 1rem;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }

.mock-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
    padding: 1rem;
}

.mock-col {
    background: var(--canvas);
    border-radius: var(--radius-sm);
    padding: .7rem .6rem;
}

.mock-col-active { background: var(--brand-soft); }

.mock-h {
    font-size: .6rem;
    letter-spacing: .04em;
    color: var(--ink-2);
    margin-bottom: .6rem;
    display: flex;
    justify-content: space-between;
    gap: .3rem;
}
.mock-h em { font-style: normal; color: #8e93a3; }
.mock-col-active .mock-h em { color: var(--brand-deep); font-weight: 600; }

.mock-card {
    height: 26px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    margin-bottom: .45rem;
}
.mock-card.short { width: 72%; }
.mock-card.live  { border-left: 3px solid var(--brand); }
.mock-card.done  { background: #dcdef8; border-color: #c9ccf2; }

.mock-full {
    font-size: .58rem;
    color: var(--brand-deep);
    text-align: center;
    margin-top: .5rem;
}

/* ---------------------------------------------- Bands */

.band {
    background: var(--surface);
    border-block: 1px solid var(--line);
    padding: 5rem 0;
    margin: 1rem 0;
}

.band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 2rem;
}

/* House rules — deliberately NOT <blockquote>. These are our own statements,
   not quotations, and they must never read as attributed to anyone. */
.house-rule {
    margin: 0;
    background: var(--canvas);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.5rem 1.75rem;
    font-size: 1.02rem;
    color: #2f3142;
    transition: transform var(--t), box-shadow var(--t);
}
.house-rule:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.rule-num {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .6rem !important;
}

.credit {
    text-align: center;
    font-size: .85rem;
    color: #8e93a3;
}

/* ---------------------------------------------- Features */

.features { padding: 5rem 0 2rem; }
.features h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 3rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
}

.feature {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: var(--shadow-lg);
}

.feature-num {
    display: block;
    font-size: .72rem;
    letter-spacing: .12em;
    color: var(--brand);
    margin-bottom: .7rem;
}

.feature h3 { font-size: 1.12rem; margin-bottom: .7rem; }
.feature p  { color: var(--ink-2); font-size: .93rem; }
.feature strong { color: var(--ink); }
.feature em { color: #2f3142; font-style: italic; }

.feature-quiet { background: var(--brand-soft); border-color: #dcdef8; }

/* Little inline demos */

.demo {
    margin-top: 1.5rem;
    padding: 1.1rem;
    background: var(--canvas);
    border-radius: var(--radius-sm);
}

.demo-verdict {
    font-size: .78rem !important;
    color: var(--ink-2) !important;
    margin-top: .7rem !important;
}

.demo-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--line-2) 0 62%, var(--brand-soft) 62% 100%);
    position: relative;
}
.demo-thumb {
    position: absolute;
    left: 62%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--brand);
    box-shadow: 0 2px 6px rgba(20, 21, 26, .12);
}

.demo-scale {
    display: flex;
    justify-content: space-between;
    font-size: .66rem;
    color: #8e93a3;
    margin-top: .9rem;
}
.demo-scale span:nth-child(2) { color: var(--brand-deep); }

.demo-wip { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }

.chip {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .78rem;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border: 1px solid #d5e0d1;
}

.chip-blocked {
    background: var(--amber-soft);
    color: #b08a63;
    border: 1px dashed #eed9b4;
    opacity: .75;
}

.demo-wip .demo-verdict { flex-basis: 100%; }

.demo-buffer { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }

.est {
    font-size: .84rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.est-real { background: var(--brand-soft); border-color: #d5e0d1; color: var(--brand-deep); }
.est-real em { font-style: normal; font-size: .82em; opacity: .85; }
.arrow { color: #a2a7b8; }

.rest-pill {
    display: inline-block;
    font-size: .82rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: var(--amber-soft);
    border: 1px solid #f2e2c6;
    color: #7a5117;
}

.demo-shutdown .demo-q { font-size: .82rem !important; color: var(--ink-2) !important; }
.demo-shutdown .demo-a {
    margin-top: .5rem !important;
    font-size: .9rem !important;
    color: var(--brand-deep) !important;
    border-left: 2px solid var(--brand);
    padding-left: .8rem;
}

/* ---------------------------------------------- Mock extras */

.mock-card.wide { width: 100%; }

.mock-delegate {
    margin: 0 1rem;
    padding: .7rem .6rem;
    background: #f1eff5;
    border-radius: var(--radius-sm);
}
.mock-delegate .mock-h em { color: #6b7185; }

.mock-foot {
    display: flex;
    gap: .5rem;
    padding: .8rem 1rem 1rem;
}

.mock-pill {
    font-size: .58rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.mock-pill-rest { background: var(--amber-soft); color: #92621f; }

/* ---------------------------------------------- Feature demo extras */

.demo-cats, .demo-due, .demo-arc, .demo-delegate {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.cat-pill {
    font-size: .76rem;
    padding: .3rem .8rem;
    border-radius: 999px;
}
.cat-pill.accent-a { background: #eeeffc; color: #3a3a9e; }
.cat-pill.accent-b { background: #fbf3e5; color: #b03a6b; }
.cat-pill.accent-c { background: #e6f4ee; color: #14795f; }

.due-pill {
    font-size: .76rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--canvas);
    color: var(--ink-2);
}
.due-pill-today { background: #faecd6; color: #7a5117; }

.rest-pill-dusk { background: #eef0f5; border-color: #dde1ea; color: #4a5163; }

.demo-delegate .demo-verdict { flex-basis: 100%; }

.arc-tab {
    font-size: .76rem;
    padding: .3rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.arc-tab.is-on { background: var(--brand-deep); color: #ffffff; border-color: var(--brand-deep); }

/* ---------------------------------------------- Routine + queue demos */

.demo-routines, .demo-queues {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.rt-pill {
    font-size: .78rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.rt-pill.rt-on {
    background: #e6f4ee;
    border-color: #cdeadd;
    color: #0f6f57;
}

.q-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .76rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.q-pill em {
    font-style: normal;
    font-size: .72rem;
    color: var(--brand-deep);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 0 .4rem;
}

.demo-routines .demo-verdict,
.demo-queues .demo-verdict { flex-basis: 100%; }

/* ---------------------------------------------- Points band */

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 2rem;
}

.point-rule {
    background: var(--canvas);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--brand);
    padding: 1.5rem 1.75rem;
    transition: transform var(--t), box-shadow var(--t);
}
.point-rule:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.point-rule h3 {
    font-size: 1rem;
    margin-bottom: .6rem;
    color: #2f3142;
}
.point-rule p { color: var(--ink-2); font-size: .92rem; }

/* ---------------------------------------------- Rewards feature */

.rewards-feature {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 3.5rem;
    padding: 2.75rem;
    background:
        linear-gradient(135deg, rgba(192, 138, 62, .09) 0%, rgba(192, 138, 62, 0) 45%),
        var(--surface-2);
    border: 1px solid var(--amber-line);
    border-radius: var(--radius);
}

.rewards-copy h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    margin-bottom: .9rem;
}
.rewards-copy > p { color: var(--ink-2); font-size: .98rem; }
.rewards-copy em { color: var(--ink); font-style: italic; }

.rewards-points {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-top: 1.5rem;
}
.rewards-points li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--ink-2);
}
.rewards-points span { color: var(--amber); flex: none; }

.rewards-demo { display: flex; flex-direction: column; gap: .7rem; }

.rw-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t);
}
.rw-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }

.rw-earned {
    background: linear-gradient(135deg, rgba(192, 138, 62, .12) 0%, rgba(255, 255, 255, 0) 45%), var(--surface);
    border-color: var(--amber-line);
}

.rw-medal { font-size: 1.05rem; line-height: 1.4; color: var(--amber); flex: none; }
.rw-medal-pending { color: var(--ink-3); }

.rw-card strong { display: block; font-size: .95rem; font-weight: 560; }
.rw-meta { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .15rem; }

.rw-bar {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: var(--line);
    margin: .5rem 0 .1rem;
    overflow: hidden;
}
.rw-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-lift) 100%);
}

/* ---------------------------------------------- Who */

.who-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.who-list { display: flex; flex-direction: column; gap: .9rem; }

.who-list li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: var(--canvas);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    font-size: .93rem;
    color: #2f3142;
    transition: transform var(--t), background var(--t);
}
.who-list li:hover { transform: translateX(4px); background: var(--brand-soft); }
.who-list span { color: var(--brand); flex: none; }

/* ---------------------------------------------- Stack */

.stack-section { padding: 5rem 0 4rem; }
.stack-section h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }

.stack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.stack-list li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.4rem 1rem;
    text-align: center;
    transition: transform var(--t), box-shadow var(--t);
}
.stack-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stack-list strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.stack-list span { font-size: .8rem; color: #8e93a3; }

/* ---------------------------------------------- CTA + footer */

.cta {
    background: var(--brand-soft);
    border-block: 1px solid #dcdef8;
    padding: 5rem 0;
    text-align: center;
}

.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: #3f5340; }
.cta p { color: #5c6d59; margin: 1rem auto 2.2rem; max-width: 32rem; }

.foot { padding: 2.5rem 0 3.5rem; }

.foot-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .85rem;
    color: #8e93a3;
}
.foot strong { color: var(--ink-2); font-weight: 600; }
.foot nav { display: flex; gap: 1.5rem; }

/* ---------------------------------------------- Responsive */

@media (max-width: 900px) {
    .hero-inner,
    .rewards-feature,
    .who-inner { grid-template-columns: 1fr; gap: 3rem; }
    .rewards-feature { padding: 1.75rem; }
    .hero { padding: 3.5rem 0 4rem; }
    .hero-visual { order: -1; }
    .mock { transform: none; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .shell { width: min(1140px, 100% - 2rem); }
    .nav nav { gap: 1rem; font-size: .82rem; }
    .nav nav a:not(.nav-cta) { display: none; }
    .band, .features, .cta, .stack-section { padding: 3.5rem 0; }
    .foot-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
