/* Features page — builds on styles.css tokens */

body.features-page{background:var(--paper)}
.features-page .site-header{background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(10px);border-bottom-color:var(--hairline)}
.features-page .nav a[aria-current="page"]{color:var(--violet)}

/* ---------- hero ---------- */
.f-hero{position:relative;min-height:min(1125px,120vh);padding-top:76px;overflow:hidden;background:#f7f6f4;display:flex}
.f-hero-inner{position:relative;z-index:2;display:flex;flex-direction:column;width:100%;padding-bottom:clamp(64px,10vh,120px)}
.f-hero-top{max-width:455px;margin-left:auto;padding-top:clamp(48px,9vh,120px)}
.f-hero-top p{font-size:16px;line-height:1.6;color:#3c3b3b}
.f-hero-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}
.f-hero h1{margin-top:auto;max-width:14ch;font-size:clamp(40px,4.5vw,64px);line-height:1.1;letter-spacing:-.02em}

.f-hero-art{position:absolute;top:0;right:0;width:min(78vw,1080px);height:100%;pointer-events:none;z-index:1}
.iso-grid{position:absolute;top:8%;right:-10%;width:900px;display:grid;grid-template-columns:repeat(5,150px);gap:16px;transform:rotate(-28deg) skewX(10deg);opacity:.95}
.iso-grid i{display:block;height:150px;border-radius:14px;background:#fff;border:1px solid rgba(0,0,0,.05);box-shadow:0 24px 60px -40px rgba(0,0,0,.35)}
.iso-app{position:absolute;display:grid;place-items:center;width:132px;height:132px;border-radius:26px;color:#fff;font-size:44px;letter-spacing:-.03em;box-shadow:0 30px 60px -30px rgba(0,0,0,.45);transform:rotate(-8deg)}
.iso-app span{transform:translateY(-2px)}
.a1{background:#18b26b;top:38%;right:24%;transform:rotate(-14deg)}
.a2{background:#f5c518;top:52%;right:10%;transform:rotate(6deg)}
.a3{background:#6b5bff;top:66%;right:22%;transform:rotate(-18deg)}

/* ---------- feature blocks ---------- */
.feature{padding:clamp(72px,9vw,140px) 0 72px;background:linear-gradient(180deg,var(--g1) 0,var(--g2) 30%,var(--mist) 62%,var(--mist) 100%)}
.feature-head{max-width:980px}
.feature-label{display:flex;align-items:center;gap:12px;font-size:24px;line-height:1.2;letter-spacing:.02em}
.feature-label .icon-tile{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.08)}
.feature-label svg{width:22px;height:22px}
.feature-title{font-size:clamp(44px,5.6vw,80px);line-height:1.08;letter-spacing:-.02em;margin-top:28px}
.feature-lede{font-size:clamp(22px,2.3vw,32px);line-height:1.3;max-width:760px;margin-top:24px;margin-bottom:clamp(40px,5vw,64px)}
.feature-stage{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:30px;padding:clamp(14px,2vw,28px);margin-bottom:clamp(48px,6vw,80px);overflow:hidden}

.feature-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,3vw,48px)}
.feature-cols h3{font-size:clamp(20px,2vw,24px);line-height:1.25;margin-bottom:14px}
.feature-cols p{font-size:16px;line-height:1.6;color:#4a4949}

.feature-more{margin-top:clamp(56px,7vw,96px);padding-top:40px;border-top:1px solid rgba(0,0,0,.12)}
.feature-more>h3{font-size:24px;margin-bottom:28px}
.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.more-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.more-grid h4{font-size:18px;line-height:1.35;margin-bottom:8px}
.more-grid p{font-size:15px;line-height:1.6;color:#4a4949}

.feature-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:clamp(48px,6vw,80px);padding-top:32px;border-top:1px solid rgba(0,0,0,.12)}
.feature-cta p{font-size:clamp(20px,2.2vw,28px);line-height:1.3;max-width:22ch}

/* ---------- storefront mockup ---------- */
.mock-browser{border-radius:18px;overflow:hidden;background:#eef1f5}
.mock-bar{display:flex;align-items:center;gap:6px;padding:12px 14px;background:#e3e7ee}
.mock-bar span{width:9px;height:9px;border-radius:50%;background:#c2c8d2}
.mock-bar em{margin-left:12px;font-style:normal;font-size:11px;color:#5b6270;background:#fff;padding:4px 10px;border-radius:6px}
.mock-shop{display:grid;grid-template-columns:240px 1fr;gap:14px;padding:16px;background:linear-gradient(160deg,#eff3fa,#e9f7f0)}
.mock-editor{background:#fff;border-radius:12px;padding:12px}
.mock-editor b{font-size:10px;letter-spacing:.14em}
.mock-thumb{height:86px;border-radius:8px;background:repeating-linear-gradient(135deg,#eef1f6 0 8px,#e4e9f1 8px 16px);margin:10px 0;position:relative}
.mock-thumb:after{content:"+";position:absolute;inset:0;display:grid;place-items:center;color:#9aa3b2;font-size:22px}
.mock-editor small,.mock-catalog small{display:block;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#7b8494;margin:10px 0 8px}
.mock-product{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.mock-product i{width:34px;height:34px;border-radius:6px;background:#e7ebf2}
.mock-product span{font-size:10px;line-height:1.35}
.mock-product em{display:block;font-style:normal;color:#6d7686}
.mock-catalog{background:#fff;border-radius:12px;padding:12px}
.mock-feature{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center;margin-bottom:12px}
.mock-shoe{height:96px;border-radius:10px;background:radial-gradient(120% 120% at 30% 20%,#dfe7f7,#c9d6ee)}
.mock-feature b{font-size:13px;display:block;margin-bottom:4px}
.mock-feature p{font-size:10px;color:#6d7686;line-height:1.45;margin-bottom:6px}
.mock-feature em{font-style:normal;font-size:12px}
.mock-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mock-mini i{height:56px;border-radius:8px;background:#eef1f6}

/* ---------- workflow mockup ---------- */
.mock-flow{background:#fffaf5;border-radius:18px;padding:18px}
.flow-head{display:flex;align-items:center;gap:12px;font-size:12px;color:#4a4949;padding-bottom:12px;border-bottom:1px solid rgba(0,0,0,.08)}
.flow-head span{background:#171717;color:#fff;padding:5px 10px;border-radius:999px;font-size:10px;letter-spacing:.06em}
.flow-head b{font-size:14px}
.flow-head em{margin-left:auto;font-style:normal;font-size:11px;color:#0a7a4a;background:#e5f7ee;padding:4px 9px;border-radius:999px}
.flow-canvas{position:relative;height:300px;margin:16px 0;border-radius:12px;background:
  radial-gradient(circle at 1px 1px, rgba(0,0,0,.10) 1px, transparent 0) 0 0/22px 22px,#fbf7f2}
.node{position:absolute;width:210px;background:#fff;border:1px solid rgba(0,0,0,.10);border-radius:12px;padding:12px;box-shadow:0 18px 40px -30px rgba(0,0,0,.5)}
.node small{display:block;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#8a6a4a;margin-bottom:6px}
.node b{display:block;font-size:12px;line-height:1.4}
.node em{display:block;font-style:normal;font-size:10px;color:#6d7686;margin-top:4px}
.n1{left:4%;top:40px}
.n2{left:38%;top:110px}
.n3{right:4%;top:180px}
.flow-lines{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#c9a98a;stroke-width:1.6;stroke-dasharray:5 5}
.flow-foot{display:flex;gap:24px;font-size:11px;color:#6d7686;border-top:1px solid rgba(0,0,0,.08);padding-top:12px}

/* ---------- dashboard mockup ---------- */
.mock-dash{display:grid;grid-template-columns:180px 1fr;min-height:420px;border-radius:18px;overflow:hidden;background:#f7f7fb}
.dash-side{background:#14131a;color:#cfcdd8;padding:18px 16px;display:flex;flex-direction:column;gap:10px;font-size:11px}
.dash-side b{color:#fff;font-size:10px;letter-spacing:.2em;margin-bottom:8px}
.dash-side span{padding:6px 8px;border-radius:6px}
.dash-side .on{background:#2a2836;color:#fff}
.dash-main{padding:18px 20px}
.dash-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:14px}
.dash-top em{font-style:normal;font-size:10px;color:#6d7686;background:#fff;border:1px solid rgba(0,0,0,.08);padding:4px 8px;border-radius:6px}
.dash-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.dash-kpis>div{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:10px;padding:10px 12px}
.dash-kpis small{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#7b8494}
.dash-kpis b{display:block;font-size:16px;margin:4px 0}
.dash-kpis i{font-style:normal;font-size:10px;color:#0a7a4a}
.dash-chart{position:relative;margin-top:12px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:10px;height:170px;padding:14px}
.bars{position:absolute;inset:18px 14px 14px;display:flex;align-items:flex-end;gap:10px}
.bars i{flex:1;height:var(--h);border-radius:4px 4px 0 0;background:#ded9ff}
.dash-chart svg{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);fill:none;stroke:#6b5bff;stroke-width:2.4}
.dash-table{margin-top:12px;display:grid;gap:8px}
.dash-table span{display:block;height:10px;border-radius:4px;background:#e9e9f1}

/* ---------- integrations ---------- */
.integrations{padding:clamp(72px,9vw,120px) 0;background:#fff;text-align:center}
.integrations h2{font-size:clamp(32px,4vw,56px);line-height:1.1;letter-spacing:-.02em;max-width:16ch;margin:0 auto}
.int-grid{list-style:none;margin:48px auto 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-width:1000px}
.int-grid li{display:grid;place-items:center;min-height:64px;border:1px solid var(--hairline);border-radius:12px;font-size:15px;color:#3c3b3b;background:#fff}

/* ---------- partner ---------- */
.partner{padding:0 0 clamp(56px,7vw,80px);background:#fff}
.partner-card{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;background:var(--charcoal);color:#fff;border-radius:30px;padding:clamp(28px,4vw,48px)}
.partner-card p{font-size:clamp(20px,2.4vw,32px);line-height:1.3;max-width:24ch}
.partner-btn{background:#fff;color:#171717;border-color:#fff}
.partner-btn:hover{background:var(--violet);color:#fff;border-color:var(--violet)}

/* ---------- final cta ---------- */
.f-cta{background:linear-gradient(120deg,#101014 0%,#1b1226 55%,#2a1740 100%);color:#fff;padding:clamp(72px,9vw,120px) 0;overflow:hidden}
.f-cta-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.f-cta h2{font-size:clamp(36px,4.6vw,64px);line-height:1.08;letter-spacing:-.02em;max-width:14ch}
.f-cta-actions{display:flex;gap:12px;margin-top:32px;flex-wrap:wrap}
.btn-outline-dark{background:transparent;border-color:rgba(255,255,255,.45);color:#fff}
.btn-outline-dark:hover{background:#fff;color:#171717;border-color:#fff}
.cta-panel{background:#fbfbfd;color:#171717;border-radius:18px;padding:16px;box-shadow:0 40px 80px -40px rgba(0,0,0,.8);transform:rotate(-3deg)}
.cta-tabs{display:flex;gap:6px;flex-wrap:wrap;font-size:10px;margin-bottom:14px}
.cta-tabs span{padding:5px 9px;border-radius:999px;background:#eceaf4;color:#5b5570}
.cta-tabs .on{background:#171717;color:#fff}
.cta-body{background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:12px;padding:14px}
.cta-body small{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#7b8494}
.cta-body b{display:block;font-size:16px;margin:4px 0 12px}
.cta-line{display:flex;justify-content:space-between;font-size:11px;padding:7px 0;border-top:1px solid rgba(0,0,0,.07);color:#4a4949}
.cta-line em{font-style:normal;color:#171717}
.cta-rule{margin-top:12px;font-size:11px;line-height:1.5;background:#f4f1ff;border-radius:8px;padding:9px 10px;color:#413a63}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .more-grid,.more-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .int-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .f-cta-inner{grid-template-columns:1fr}
  .f-cta-art{max-width:620px}
  .iso-grid{right:-30%;opacity:.55}
}
@media (max-width:820px){
  .f-hero{min-height:auto;padding-bottom:24px}
  .f-hero-art{position:relative;width:100%;height:320px;order:2;margin-top:24px}
  .iso-grid{width:560px;grid-template-columns:repeat(5,100px);gap:10px;right:-14%;top:0}
  .iso-grid i{height:100px;border-radius:10px}
  .iso-app{width:86px;height:86px;font-size:28px;border-radius:18px}
  .a1{top:6%;right:38%}.a2{top:32%;right:14%}.a3{top:52%;right:44%}
  .f-hero-inner{padding-bottom:0}
  .f-hero-top{margin:0;padding-top:32px;max-width:none}
  .f-hero h1{margin-top:28px;max-width:16ch}
  .feature-cols{grid-template-columns:1fr;gap:28px}
  .feature-cta p{max-width:none}
  .mock-shop{grid-template-columns:1fr}
  .mock-dash{grid-template-columns:1fr}
  .dash-side{flex-direction:row;flex-wrap:wrap}
  .mock-editor{display:none}
}
@media (max-width:560px){
  .feature{padding:56px 0 48px}
  .feature-title{margin-top:20px}
  .feature-stage{border-radius:20px;padding:10px}
  .more-grid,.more-grid.four{grid-template-columns:1fr}
  .int-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .partner-card{border-radius:22px}
  .f-hero-actions .btn{flex:1 1 auto}
  .flow-canvas{height:340px}
  .node{width:170px}
  .n1{left:2%;top:10px}.n2{left:22%;top:120px}.n3{right:2%;top:230px}
  .dash-kpis{grid-template-columns:1fr 1fr}
  .dash-kpis>div:last-child{grid-column:1/-1}
}
