/* Tokens, reset, nav, and buttons come from global.css (linked in each service page HTML).
   This file contains only service-page-specific components. */

/* Service pages use --display and --cream which global.css doesn't define */
:root {
  --cream: #F5F1EA;
  --display: 'Satoshi', 'General Sans', system-ui, sans-serif;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ——— NAV ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: backdrop-filter .3s, background .3s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand-logo { height: 26px; width: auto; display: block; }

.nav-links { display: flex; gap: 6px; background: color-mix(in oklab, var(--bg-2) 70%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 6px; backdrop-filter: blur(10px); }
.nav-links a { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; color: var(--ink-dim); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav-links a.active { color: var(--ink); background: color-mix(in oklab, var(--ink) 8%, transparent); }
@media (max-width: 900px) { .nav-links { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s; font-family: var(--sans); background: none; color: inherit; }
.btn-primary { background: var(--accent); color: #0B0B0F; }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in oklab, var(--accent) 90%, #fff); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.btn-arrow { width: 18px; height: 18px; }

/* ——— SERVICE HERO ——— */
.svc-hero {
  position: relative; padding: 160px 0 100px;
  overflow: hidden; min-height: 90vh;
  display: flex; align-items: center;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.svc-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; width: 100%; }
@media (max-width: 900px) { .svc-hero .container { grid-template-columns: 1fr; } .svc-hero-visual { display: none; } }

.svc-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-dimmer);
  transition: color .2s; padding: 8px 0;
}
.back-link:hover { color: var(--ink-dim); }
.back-link svg { opacity: .6; }
.svc-num-badge {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-dimmer);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px;
}
.svc-label {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-dim); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.svc-label::before { content: ''; width: 24px; height: 1px; background: var(--ink-dimmer); }
.svc-title { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6.5vw, 96px); line-height: 1.02; letter-spacing: -0.04em; }
.svc-title em { font-style: normal; color: var(--accent); }
.svc-title .stroke { -webkit-text-stroke: 1.2px var(--ink); color: transparent; }
.svc-sub { margin-top: 28px; font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 42ch; }
.svc-ctas { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* BROWSER MOCK */
.browser-mock { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-url { flex: 1; background: var(--bg-3); border-radius: 6px; height: 22px; }
.browser-screen { padding: 20px; }
.bscreen-nav { height: 28px; background: var(--line); border-radius: 6px; margin-bottom: 16px; }
.bscreen-hero { padding: 20px; background: var(--bg-3); border-radius: 10px; margin-bottom: 12px; }
.bsh-line { background: var(--line-strong); border-radius: 4px; }
.bsh-btn { width: 80px; height: 28px; background: var(--accent); border-radius: 999px; margin-top: 14px; opacity: .9; }
.bscreen-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.bsc { height: 60px; background: var(--bg-3); border-radius: 8px; }
.score-badge { position: absolute; bottom: -16px; right: -16px; background: var(--accent); color: #0B0B0F; border-radius: 16px; padding: 16px 20px; text-align: center; box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4); }
.score-num { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: -0.04em; }
.score-lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; opacity: .7; }
.svc-hero-visual { position: relative; }

/* PHONE MOCK */
.phone-mock { width: 200px; height: 400px; border-radius: 32px; background: var(--bg-3); border: 2px solid var(--line-strong); overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7); margin: 0 auto; position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 60px; height: 14px; background: var(--bg-2); border-radius: 999px; z-index: 2; }
.phone-screen { padding: 36px 14px 14px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.pline { background: var(--line-strong); border-radius: 4px; }

/* BRAND MOCK */
.brand-mock { padding: 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; }
.bm-logo { font-family: var(--display); font-style: italic; font-size: 56px; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 24px; }
.bm-palette { display: flex; gap: 8px; margin-bottom: 20px; }
.bm-swatch { flex: 1; height: 32px; border-radius: 8px; }
.bm-type { display: flex; flex-direction: column; gap: 6px; }
.bm-t1 { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.bm-t2 { font-size: 13px; color: var(--ink-dim); }

/* AI MOCK */
.ai-mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; max-width: 80%; }
.ai-msg.user { background: var(--accent); color: #0B0B0F; align-self: flex-end; }
.ai-msg.bot { background: var(--bg-3); color: var(--ink-dim); align-self: flex-start; }
.ai-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dimmer); animation: aitype 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aitype { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

/* SAAS MOCK */
.saas-mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.saas-sidebar { display: flex; gap: 16px; }
.saas-nav { width: 140px; padding: 16px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.saas-nav-item { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--ink-dimmer); }
.saas-nav-item.active { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--ink); }
.saas-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.saas-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.saas-stat { background: var(--bg-3); border-radius: 8px; padding: 10px; }
.saas-stat .sn { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.saas-stat .sl { font-size: 10px; color: var(--ink-dimmer); margin-top: 2px; }
.saas-chart { background: var(--bg-3); border-radius: 8px; height: 70px; padding: 10px; display: flex; align-items: flex-end; gap: 4px; }
.saas-bar { flex: 1; background: color-mix(in oklab, var(--accent) 30%, transparent); border-radius: 2px; }

/* ——— SECTIONS ——— */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-dim); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.section-title { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.06; letter-spacing: -0.03em; margin-top: 20px; max-width: 18ch; }
.section-title em { font-style: normal; color: var(--accent); }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 46ch; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

/* ——— INCLUDES ——— */
.includes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (max-width: 900px) { .includes-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .includes-grid { grid-template-columns: 1fr; } }
.include-item { background: var(--bg); padding: 36px 28px; display: flex; flex-direction: column; gap: 16px; transition: background .3s; }
.include-item:hover { background: var(--bg-2); }
.include-icon { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in oklab, var(--accent) 12%, var(--bg-2)); border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.include-item h4 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.include-item p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }

/* ——— STACK ——— */
.stack-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 880px) { .stack-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.stack-card:hover { border-color: var(--line-strong); }
.stack-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.stack-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.55; flex: 1; }
.stack-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dimmer); }

/* ——— PROCESS ——— */
.process-list { border-top: 1px solid var(--line); }
.process-row { display: grid; grid-template-columns: 80px 1.2fr 2fr 80px; gap: 32px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); transition: padding .3s; cursor: default; }
.process-row:hover { padding: 48px 0; }
.process-row:hover .process-title em { color: var(--accent); }
.process-num { font-family: var(--mono); font-size: 14px; color: var(--ink-dimmer); }
.process-title { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.process-title em { font-style: normal; transition: color .3s; }
.process-desc { color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
.process-arrow { justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, color .3s; }
.process-row:hover .process-arrow { background: var(--accent); color: #0B0B0F; border-color: var(--accent); }
@media (max-width: 880px) { .process-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 28px 0; } .process-row:hover { padding: 28px 0; } .process-desc { grid-column: 2; } .process-arrow { display: none; } }

/* ——— PRICING ——— */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.pricing-card { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px; display: flex; flex-direction: column; gap: 20px; }
.pricing-featured { background: var(--accent); color: #0B0B0F; border-color: var(--accent); }
.pricing-tier { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-dimmer); }
.pricing-featured .pricing-tier { color: rgba(11,11,15,0.6); }
.pricing-price { font-family: var(--display); font-weight: 900; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.pricing-desc { font-size: 15px; line-height: 1.55; color: var(--ink-dim); }
.pricing-featured .pricing-desc { color: rgba(11,11,15,0.7); }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-list li { font-size: 14px; padding-left: 20px; position: relative; color: var(--ink-dim); }
.pricing-featured .pricing-list li { color: rgba(11,11,15,0.8); }
.pricing-list li::before { content: '—'; position: absolute; left: 0; color: var(--ink-dimmer); }
.pricing-featured .pricing-list li::before { color: rgba(11,11,15,0.4); }
.pricing-featured .btn-primary { background: #0B0B0F; color: var(--accent); }
.pricing-featured .btn-ghost { border-color: rgba(11,11,15,0.3); color: #0B0B0F; }

/* ——— FEATURES LIST ——— */
.features-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px 60px; }
@media (max-width: 700px) { .features-list { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .fi-icon { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in oklab, var(--accent) 10%, var(--bg-2)); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.feature-item h4 { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 6px; }
.feature-item p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }

/* ——— CTA ——— */
.cta {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: #F5F1EA; color: #0B0B0F;
  padding: 64px 56px;
}
.cta h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em; line-height: 1.06;
  max-width: 18ch;
}
.cta p {
  margin-top: 16px; max-width: 48ch;
  font-size: 15px; line-height: 1.6;
  color: rgba(11,11,15,0.65);
}
.cta-row {
  display: flex; justify-content: space-between;
  align-items: end; flex-wrap: wrap;
  gap: 32px; margin-top: 40px;
}
.cta .btn-primary { background: #0B0B0F; color: var(--accent); }
.cta .btn-primary:hover { background: #1B1B22; }
.cta .btn-ghost { border-color: rgba(11,11,15,0.25); color: #0B0B0F; }
.cta-info { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(11,11,15,0.5); }
.cta-info a { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; color: #0B0B0F; text-transform: none; letter-spacing: -0.02em; margin-top: 4px; }
.cta-orb { position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: #0B0B0F; opacity: .05; pointer-events: none; }
section#contact { padding: 60px 32px; max-width: 1384px; margin: 0 auto; }
@media (max-width: 720px) { section#contact { padding: 48px 20px; } .cta { padding: 48px 28px; } }

/* ——— FOOTER ——— */
footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand-logo { height: 40px; }
.footer-brand p { margin-top: 24px; max-width: 32ch; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
.footer-col h5 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-dimmer); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--ink-dim); transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dimmer); flex-wrap: wrap; gap: 16px; }
.footer-bottom > div { min-width: 0; }
@media (max-width: 720px) {
  footer { padding: 48px 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-brand p { margin-top: 16px; font-size: 14px; max-width: none; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 14px; }
  .footer-bottom { justify-content: flex-start; align-items: flex-start; padding-top: 18px; gap: 8px; font-size: 11px; letter-spacing: 0.08em; }
}
