/* miappai — industrial, plain-spoken. */

@font-face{
  font-family:'Schibsted Grotesk';
  src:url('/assets/fonts/schibsted.woff2') format('woff2');
  font-weight:400 600;
  font-style:normal;
  font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --bg:#faf9f6;
  --bg-alt:#f1f5f9;
  --ink:#0f233c;
  --muted:#475569;
  --rule:#cbd5e1;
  --accent:#1e40af;
  --accent-ink:#ffffff;
  --wrap:1180px;
  --pad:clamp(20px,4vw,40px);
  --section:clamp(52px,7vw,68px);
  --radius:4px;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
::selection{ background:var(--accent); color:#fff; }
[hidden]{ display:none !important; }

html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Schibsted Grotesk','Helvetica Neue',Arial,sans-serif;
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; }
.final :focus-visible{ outline-color:#93c5fd; }

h1,h2,h3{
  font-weight:600;
  line-height:1.06;
  letter-spacing:-.03em;
  text-wrap:balance;
}
h1{ font-size:clamp(2.3rem,4.5vw,3.7rem); }
h2{ font-size:clamp(1.7rem,3vw,2.4rem); letter-spacing:-.025em; }
h3{ font-size:1.3rem; letter-spacing:-.02em; }
p{ text-wrap:pretty; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--pad); }
.skip{ position:absolute; left:-9999px; top:0; background:var(--ink); color:#fff; padding:12px 18px; z-index:200; }
.skip:focus{ left:12px; top:12px; }

/* header */
.site-header{ position:sticky; top:0; z-index:70; border-bottom:1px solid var(--rule); background:var(--bg); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:28px; min-height:76px; }
.brand{
  display:inline-flex; align-items:center; gap:10px;
  font-size:1.25rem; font-weight:600; letter-spacing:-.03em;
}
.brand-mark{
  width:30px; height:30px; background:var(--accent); color:var(--accent-ink);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:23px; font-weight:600; line-height:1; padding-bottom:3px; border-radius:2px;
}
.nav{ display:flex; gap:26px; font-size:15px; }
.nav a{ display:inline-flex; align-items:center; min-height:44px; color:var(--muted); }
.nav a:hover{ color:var(--ink); }

.contact-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:15px; }
.contact-row a{ display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
.contact-row .sep{ color:var(--rule); }
.header-contact{ font-size:14px; }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:13px 22px; border-radius:var(--radius);
  border:1px solid transparent; font-size:16px; font-weight:600; line-height:1.2;
  text-decoration:none; cursor:pointer; transition:background .15s, color .15s, border-color .15s;
}
.btn-primary{ background:var(--accent); color:var(--accent-ink); }
.btn-primary:hover{ background:#1e3a8a; }
.btn-outline{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn-outline:hover{ background:var(--ink); color:#fff; }
.btn-submit{ width:100%; margin-top:4px; }
.btn[aria-busy="true"]{ opacity:.7; cursor:progress; }

/* hero */
.hero{ padding:clamp(36px,5vw,64px) 0 0; }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:clamp(28px,4vw,48px); align-items:start; }
@media (min-width:900px){ .hero-grid{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); } }
.hero h1{ max-width:19ch; margin-bottom:20px; }
.sub{ font-size:clamp(1.08rem,1.5vw,1.25rem); color:var(--muted); max-width:46ch; margin-bottom:26px; }
.cta-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.small{ font-size:15px; color:var(--muted); margin-top:14px; }
.hero-contact{ margin-top:18px; }

.hero-photo{ margin:0; max-width:400px; }
.hero-photo picture{ display:block; }
.hero-photo img{ width:100%; height:auto; border-radius:var(--radius); }
.hero-photo figcaption{ margin-top:8px; font-size:14px; color:var(--muted); }
.photo-plate{ border:1px solid var(--ink); background:var(--bg); }
.photo-plate img{ width:100%; height:auto; border-radius:0; }
.photo-plate figcaption{ border-top:1px solid var(--ink); padding:8px 10px; margin:0; }
.who-grid{ display:grid; grid-template-columns:1fr; gap:clamp(28px,4vw,48px); align-items:start; }
@media (min-width:900px){ .who-grid{ grid-template-columns:minmax(0,1fr) 300px; } }
.who-photo{ margin:0; max-width:300px; }
.also{ display:flex; align-items:center; gap:12px; margin-top:20px; padding-top:14px; border-top:1px solid var(--rule); }
.also img{ width:32px; height:32px; border-radius:6px; flex-shrink:0; }
.also p{ font-size:15px; color:var(--muted); margin:0; }
.also a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }


.trust-line{
  margin-top:clamp(32px,4vw,48px); padding:14px 0;
  border-top:1px solid var(--rule); border-bottom:1px solid var(--rule);
  font-size:15px; color:var(--muted);
}

/* sections */
.section{ padding:var(--section) 0; }
section[id], .privacy{ scroll-margin-top:96px; }
@media (max-width:899px){ section[id], .privacy{ scroll-margin-top:76px; } }
.section-alt{ background:var(--bg-alt); }
.intro{ font-size:1.08rem; color:var(--muted); max-width:62ch; margin-top:16px; }
.section h2 + .intro{ margin-top:16px; }

/* timeline */
.method-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.tl-toggle{
  background:none; border:1px solid var(--rule); border-radius:2px; min-height:40px;
  padding:8px 12px; font-size:13px; font-weight:500; color:var(--muted); cursor:pointer;
}
.tl-toggle:hover{ border-color:var(--ink); color:var(--ink); }
.timeline{ margin-top:32px; max-width:900px; }
.timeline-rail{ position:relative; height:2px; background:var(--rule); margin-bottom:12px; }
.timeline-progress{ position:absolute; left:0; top:0; height:2px; background:var(--accent); width:0; transition:width .45s ease; }
.timeline-marker{
  position:absolute; left:0; top:50%; width:14px; height:14px; border-radius:50%;
  background:var(--accent); transform:translate(-50%,-50%); transition:left .45s ease;
}
.timeline.is-live .timeline-marker{ animation:tl-pulse 2.2s ease-out infinite; }
@keyframes tl-pulse{
  0%{ box-shadow:0 0 0 0 rgba(30,64,175,.45); }
  70%{ box-shadow:0 0 0 10px rgba(30,64,175,0); }
  100%{ box-shadow:0 0 0 0 rgba(30,64,175,0); }
}
.timeline-stages{ display:grid; grid-template-columns:repeat(4,1fr); gap:4px; }
.tl-tab{
  display:flex; align-items:center; gap:8px; min-height:48px; padding:4px 0;
  color:var(--muted); font-size:15px; font-weight:600; text-decoration:none;
}
.tl-num{
  display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px;
  border:1px solid var(--rule); border-radius:50%; font-size:12px; font-weight:500; color:var(--muted);
  flex-shrink:0;
}
.tl-tab[aria-selected="true"]{ color:var(--ink); }
.tl-tab[aria-selected="true"] .tl-num{ background:var(--ink); border-color:var(--ink); color:#fff; }
.timeline-panels{ margin-top:16px; border:1px solid var(--rule); background:var(--bg); padding:22px 24px; min-height:132px; }
.tl-panel h3{ font-size:1.2rem; margin-bottom:6px; }
.tl-panel p{ color:var(--muted); max-width:64ch; }
.audit-proof{ margin-top:44px; }
.audit-proof h3{ font-size:1.35rem; margin-bottom:14px; }

/* audit */
.audit{ margin-top:36px; max-width:900px; }
.audit table{ width:100%; border-collapse:collapse; }
.audit th,.audit td{ text-align:left; padding:14px 16px 14px 0; border-bottom:1px solid var(--rule); vertical-align:baseline; }
.audit thead th{ font-size:14px; font-weight:500; color:var(--muted); border-bottom:1px solid var(--ink); }
.audit tbody th{ font-weight:500; }
.audit td:nth-child(2){ font-size:22px; font-weight:600; white-space:nowrap; }
.audit td:last-child{ color:var(--muted); font-size:16px; }
.audit tr.total th,.audit tr.total td{ border-top:2px solid var(--ink); border-bottom:none; font-weight:600; }
.table-note{ font-size:14px; color:var(--muted); margin-top:10px; }
.money{
  margin-top:22px; padding:16px 18px; border-left:4px solid var(--accent);
  background:var(--bg); font-size:1.08rem; font-weight:600; max-width:720px;
}

/* method steps */
.method-steps{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:44px; }
@media (min-width:820px){ .method-steps{ grid-template-columns:repeat(3,1fr); gap:36px; } }
.method-steps h3{ margin-bottom:8px; }
.method-steps p{ color:var(--muted); font-size:1rem; }
.callout{
  margin-top:36px; padding-top:22px; border-top:1px solid var(--rule);
  font-size:clamp(1.3rem,2.2vw,1.6rem); font-weight:600; letter-spacing:-.02em; max-width:24ch;
}

/* pricing */
.price-table{
  width:100%; border-collapse:collapse; margin-top:28px;
  border:1px solid var(--ink); background:var(--bg); font-size:16px;
}
.price-table th,.price-table td{
  border:1px solid var(--rule); padding:14px 16px; text-align:left; vertical-align:top;
}
.price-table thead th{
  font-size:12px; font-weight:500; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted); border-bottom:1px solid var(--ink);
}
.price-table tbody th{ font-size:1.15rem; font-weight:600; min-width:190px; vertical-align:middle; }
.price-table .price-cell,.price-table td:last-child{ vertical-align:middle; }
.price-table .price-cell{ font-size:1.15rem; font-weight:600; white-space:nowrap; min-width:170px; }
.price-table .price-cell small{
  display:block; font-size:13px; font-weight:400; color:var(--muted);
  white-space:normal; margin-top:4px;
}
.price-table ul{ list-style:none; }
.price-table li{ position:relative; padding:2px 0 2px 14px; font-size:14px; color:var(--muted); }
.price-table li::before{ content:""; position:absolute; left:0; top:9px; width:6px; height:6px; background:var(--accent); }
.price-table tr.core th,.price-table tr.core td{ background:#eff6ff; }
.plan-badge{
  display:inline-block; background:var(--accent); color:var(--accent-ink);
  font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  padding:3px 7px; border-radius:2px; margin-left:8px; vertical-align:middle;
}
.plan-note{ margin-top:16px; padding-top:16px; border-top:1px solid var(--rule); font-size:1.02rem; }
.pricing-cta{
  margin-top:32px; padding:24px; background:var(--bg); border:1px solid var(--rule); border-radius:var(--radius);
  display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px;
}
.pricing-cta p{ font-weight:600; }
.pricing-cta .contact-row{ margin-left:auto; }

@media (max-width:760px){
  .price-table{ border:none; background:none; }
  .price-table thead{ display:none; }
  .price-table tbody,.price-table tr,.price-table th,.price-table td{ display:block; width:100%; }
  .price-table tr{ border:1px solid var(--ink); margin-bottom:18px; background:var(--bg); }
  .price-table tbody th,.price-table td{ border:none; border-top:1px solid var(--rule); padding:12px 14px; }
  .price-table tbody th{ border-top:none; }
  .price-table td::before{
    content:attr(data-label); display:block; font-size:11px; letter-spacing:.07em;
    text-transform:uppercase; color:var(--muted); margin-bottom:3px; font-weight:500;
  }
  .price-table .price-cell{ white-space:normal; }
  .price-table tr.core th,.price-table tr.core td{ background:transparent; }
  .price-table tr.core{ background:#eff6ff; }
}

/* testimonials */
.quotes{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:32px; }
@media (min-width:820px){ .quotes{ grid-template-columns:repeat(3,1fr); gap:32px; } }
.quote{ border-top:1px solid var(--ink); padding-top:18px; }
.quote blockquote{ font-size:1.05rem; line-height:1.5; }
.quote figcaption{ margin-top:14px; font-size:15px; color:var(--ink); }
.quote .name{ color:var(--ink); font-weight:600; }

/* FAQ */
.faq{ margin-top:28px; max-width:820px; border-top:1px solid var(--rule); }
.faq details{ border-bottom:1px solid var(--rule); }
.faq summary{
  list-style:none; cursor:pointer; padding:16px 34px 16px 0; position:relative;
  font-weight:600; font-size:1.05rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+"; position:absolute; right:4px; top:50%; transform:translateY(-50%);
  font-size:22px; font-weight:400; color:var(--muted);
}
.faq details[open] summary::after{ content:"\2212"; }
.faq details p{ color:var(--muted); padding:0 34px 18px 0; max-width:62ch; }

/* recent work (hidden while empty) */
.cases{ display:grid; grid-template-columns:1fr; gap:28px; margin-top:32px; }
@media (min-width:820px){ .cases{ grid-template-columns:1fr 1fr; } }
.case h3{ font-size:1.2rem; margin-bottom:4px; }
.case-client{ color:var(--muted); font-size:15px; margin-bottom:12px; }
.case dl{ display:grid; gap:8px; }
.case dt{ font-weight:600; font-size:14px; }
.case dd{ color:var(--muted); font-size:15px; }

/* callback */
.callback-grid{ display:grid; grid-template-columns:1fr; gap:32px; align-items:start; }
@media (min-width:900px){ .callback-grid{ grid-template-columns:.9fr 1.1fr; gap:56px; } }
.callback-copy .contact-row{ margin-top:20px; }
.form-wrap{ display:block; }
.form{
  background:var(--bg); border:1px solid var(--rule); border-radius:var(--radius);
  padding:clamp(18px,3vw,28px); display:grid; gap:16px; scroll-margin-top:92px;
}
.field{ display:grid; gap:6px; }
.field-row{ display:grid; gap:16px; }
@media (min-width:620px){ .field-row{ grid-template-columns:1fr 1fr; } }
.field label{ font-size:15px; font-weight:500; }
.field .req{ color:var(--accent); }
.field input,.field select,.field textarea{
  font:inherit; font-size:16px; color:var(--ink); background:var(--bg);
  border:1px solid #64748b; border-radius:var(--radius); padding:11px 12px; width:100%;
  min-height:48px;
}
.field textarea{ resize:vertical; min-height:88px; }
.field input::placeholder,.field textarea::placeholder{ color:#64748b; opacity:1; }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(30,64,175,.32);
}
.field-hint{ font-size:14px; color:var(--muted); margin-top:-6px; }
.form-note{ font-size:14px; color:var(--muted); }
.form-note a{ text-decoration:underline; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-error{ border:1px solid #b3261e; background:#fdecea; color:#7a1d17; padding:12px 14px; font-size:15px; border-radius:var(--radius); }
.form-error a{ font-weight:600; }
.form-success{ border:1px solid var(--ink); border-radius:var(--radius); padding:clamp(22px,3vw,32px); background:var(--bg); }
.form-success h3{ font-size:1.4rem; margin-bottom:8px; }
.form-success p{ color:var(--muted); }
.form-success a{ text-decoration:underline; font-weight:600; }

/* final */
.final{ background:var(--ink); color:#fff; padding:clamp(44px,6vw,72px) 0; }
.final-inner{ display:grid; grid-template-columns:1fr; gap:24px; align-items:end; }
@media (min-width:820px){ .final-inner{ grid-template-columns:1.3fr .7fr; } }
.final h2{ color:#fff; }
.final p{ color:#c9cdd2; margin-top:10px; max-width:46ch; }
.final .cta-row{ justify-content:flex-start; }
@media (min-width:820px){ .final .cta-row{ justify-content:flex-end; } }
.final .contact-row{ color:#fff; }
.final .contact-row a{ color:#fff; }
.final .contact-row .sep{ color:#5b6067; }
.final .btn-primary{ border-color:#93c5fd; }

/* footer */
.site-footer{ padding:34px 0 40px; border-top:1px solid var(--rule); }
.footer-inner{ display:flex; flex-wrap:wrap; align-items:center; gap:16px 28px; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:20px; font-size:15px; color:var(--muted); }
.footer-nav a{ display:inline-flex; align-items:center; min-height:44px; }
.legal{ width:100%; border-top:1px solid var(--rule); padding-top:14px; margin-top:8px; font-size:13px; color:var(--muted); }
.legal .sep{ color:var(--rule); }

/* sticky mobile bar */
.sticky-bar{ display:none; }
@media (max-width:899px){
  body{ padding-bottom:64px; }
  .site-header .nav,.header-contact{ display:none; }
  .sticky-bar{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:80;
    background:var(--bg); border-top:1px solid var(--ink);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .sticky-bar a{
    flex:1; min-height:56px; display:flex; align-items:center; justify-content:center;
    font-size:15px; font-weight:600; text-decoration:none;
  }
  .sticky-bar a + a{ border-left:1px solid var(--rule); }
}

/* privacy */
.privacy{ max-width:760px; padding-top:clamp(36px,5vw,56px); padding-bottom:var(--section); }
.privacy h1{ font-size:clamp(2rem,4vw,2.8rem); margin-bottom:8px; }
.privacy .updated{ color:var(--muted); font-size:15px; margin-bottom:28px; }
.privacy h2{ font-size:1.3rem; margin-top:30px; margin-bottom:8px; }
.privacy p{ color:var(--muted); margin-bottom:10px; }
.privacy strong{ color:var(--ink); }
.privacy a{ text-decoration:underline; }
.privacy .back{ margin-top:36px; }

/* small screens */
@media (max-width:600px){
  body{ font-size:17px; }
  .header-inner{ min-height:64px; }
  .hero h1{ max-width:none; }
  .audit th,.audit td{ padding-right:8px; font-size:15px; }
  .audit td:nth-child(2){ font-size:19px; }
  .audit td:last-child{ font-size:14px; }
  .pricing-cta .contact-row{ margin-left:0; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}
