/* DOA Labs — design system. See README for the rules. */
:root {
  --ground: #F2F0EA;
  --surface: #FFFFFF;
  --ink: #121412;
  --dark-surface: #1C1F1D;
  --muted: #575C57;
  --body-muted: #3B403C;
  --on-dark: #F2F0EA;
  --on-dark-muted: #A9AEA8;
  --on-dark-body: #CFD3CD;
  --lines: #D9D6CC;
  --dark-lines: #2E332F;
  --accent: #FF6A2B;
  --live: #2E9E5B;
  --beta: #C98A00;
  --dev: #3D6FE0;
  --paused: #8A8F89;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 5px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 10px 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark a { color: var(--on-dark); }
.dark a:hover { color: var(--on-dark-muted); }

/* Type */
.label { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dark .label { color: var(--on-dark-muted); }
h1, h2, h3 { margin: 0; font-weight: 800; }
.h1 { font-size: clamp(46px, 8vw, 118px); line-height: 0.94; letter-spacing: -0.045em; max-width: 1150px; }
.h1-sm { font-size: clamp(44px, 7vw, 100px); line-height: 0.95; letter-spacing: -0.045em; max-width: 1050px; }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.035em; max-width: 960px; }
.h3 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; max-width: 680px; }
.dark .lead { color: var(--on-dark-body); }
.accent-text { color: var(--accent); }
.muted { color: var(--body-muted); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dark .mono { color: var(--on-dark-muted); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.mk { display: inline-flex; gap: 3px; }
.mk i { font-style: normal; width: 26px; height: 26px; border-radius: 5px; box-sizing: border-box; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; line-height: 1; }
.mk i.o { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.mk i.a { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.dark .mk i.a, .site-footer .mk i.a { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.logo .lw { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.dark .logo, .dark .logo:hover { color: var(--on-dark); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-end { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; }
.langs span { color: var(--on-dark-muted); }
.langs a { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.1; }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-accent, .dark .btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover, .dark .btn-accent:hover { color: var(--ink); filter: brightness(1.06); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { color: var(--on-dark); background: #2a2e2b; }
.btn-line { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.dark .btn-line { border-color: var(--on-dark); color: var(--on-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 120px) 56px; }
.hero .label { margin-bottom: 24px; }
.hero .lead { margin: 32px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--dark-lines); }
.stat { padding: 28px 24px 24px 0; border-bottom: 1px solid var(--dark-lines); }
.stat b { display: block; font-size: clamp(48px, 5.5vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--on-dark-muted); max-width: 290px; }
.names { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Cards and grids */
.grid { display: grid; gap: 24px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--lines); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.1; }
.card p { margin: 0; color: var(--body-muted); }
a.card { text-decoration: none; color: var(--ink); min-height: 260px; }
a.card:hover { border-color: var(--ink); color: var(--ink); }
a.card .mono { margin-top: auto; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--lines); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.steps li b { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.steps li p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body-muted); }
.steps li.is-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.steps li.is-dark p, .steps li.is-dark .mono { color: var(--on-dark-body); }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 48px; }
.pain { background: var(--surface); border: 1px solid var(--lines); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.pain p { margin: 0; }
.pain-q { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.pain-a { color: var(--body-muted); border-top: 1px solid var(--lines); padding-top: 16px; }
.pain-a::before { content: "→ "; color: var(--ink); font-weight: 700; }

/* Before / after */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.compare-col { border: 1.5px solid var(--ink); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.compare-col.is-dark { background: var(--ink); color: var(--on-dark); }
.compare-col.is-dark .label { color: var(--accent); }
.compare ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.compare li { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.compare-col:not(.is-dark) li { color: var(--body-muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }

/* Projects */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .h2 { margin-top: 12px; }
.more { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 44px 28px; margin-top: 48px; }
.project { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.project:hover { color: var(--ink); }
.project:hover .shot { transform: translateY(-3px); }
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--dark-surface); border-radius: 18px; overflow: hidden; transition: transform .2s ease; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot .fallback { position: absolute; inset: 0; padding: 22px; display: flex; align-items: flex-end; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--on-dark); }
.shot-web, .shot-tauler { background: var(--dark-surface); padding: 28px 28px 0; }
.shot-web img, .shot-tauler img { object-position: left top; border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.shot-tauler { background: #2A2F2B; }
.shot-mobil { background: var(--dark-surface); display: flex; justify-content: center; align-items: flex-start; padding-top: 22px; }
.shot-mobil .phone { display: block; height: calc(100% + 40px); aspect-ratio: 9 / 18.5; border: 7px solid #0B0C0B; border-bottom: 0; border-radius: 30px 30px 0 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #3A3F3B; }
.shot-mobil .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.format-tag { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); background: rgba(18,20,18,.82); border: 1px solid #3A3F3B; padding: 4px 8px; border-radius: 999px; z-index: 2; }
.demo-tag { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--accent); padding: 9px 14px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .2s ease; }
.project.has-demo:hover .demo-tag { transform: translateY(-2px); }
.shot.paused { background: var(--lines); }
.shot.paused .fallback { color: var(--ink); }
.shot.paused img { filter: grayscale(1); opacity: .75; }
.project h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.project p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; flex: none; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip span { font-family: var(--mono); font-size: 12px; opacity: .7; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Modules */
.rows { margin-top: 48px; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--lines); align-items: baseline; }
.row-title { display: flex; gap: 18px; align-items: baseline; }
.row-title b { font-size: 24px; letter-spacing: -0.02em; }
.row p { margin: 0; color: var(--body-muted); }

/* Ownership band */
.own { display: flex; flex-wrap: wrap; gap: 48px; padding-block: clamp(64px, 8vw, 104px); }
.own > div { flex: 1 1 380px; }
.own .table { flex: 1 1 480px; border-top: 1px solid var(--dark-lines); }
.own .h2 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -0.04em; }
.own p { color: var(--on-dark-body); font-size: 19px; max-width: 460px; margin: 24px 0 0; }
.own-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--dark-lines); }
.own-row b { font-size: 19px; }
.own-row span { font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); }

/* Prices */
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; }
.pill::before { content: ""; width: 10px; height: 10px; background: var(--accent); display: block; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 48px; }
.price { background: var(--surface); border: 1px solid var(--lines); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.price.is-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.price-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price-head b { font-size: 26px; letter-spacing: -0.02em; }
.price-head span { font-family: var(--mono); font-size: 13px; opacity: .75; }
.amount { font-size: 64px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price p { margin: 0; font-size: 16px; opacity: .85; }
.price ul { margin: 4px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--lines); display: flex; flex-direction: column; gap: 10px; }
.price.is-dark ul { border-color: var(--dark-lines); }
.price li { font-size: 16px; line-height: 1.4; display: flex; gap: 10px; }
.price li::before { content: "—"; }
.price .time { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 12px; opacity: .75; }
.notes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; color: var(--body-muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.about figure { flex: 1 1 340px; margin: 0; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; filter: saturate(.55) sepia(.12); }
.about .text { flex: 1.3 1 440px; display: flex; flex-direction: column; gap: 20px; }
.about .text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body-muted); }
.statement { font-size: 24px !important; line-height: 1.35 !important; font-weight: 700; letter-spacing: -0.015em; color: var(--ink) !important; border-top: 2px solid var(--ink); padding-top: 20px; margin-top: 8px !important; }

/* CTA */
.cta { margin-block: var(--section); background: var(--accent); border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta > div:first-child { flex: 1 1 520px; }
.cta .h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: 0.98; letter-spacing: -0.04em; }
.cta p { margin: 20px 0 0; font-size: 19px; max-width: 560px; }
.cta-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 15px; }
.band-accent { background: var(--accent); }
.band-accent .wrap { padding-block: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }

/* Case study */
.page-head { padding-block: 56px 72px; }
.page-head .h1, .page-head .h1-sm { margin-top: 20px; }
.page-head .lead { margin-top: 28px; }
.crumb { font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); }
.crumb a { color: var(--on-dark-muted); }
.case-title { font-size: clamp(56px, 10vw, 150px); line-height: .9; letter-spacing: -0.05em; }
.case-sub { margin: 28px 0 0; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; max-width: 860px; }
.facts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--dark-lines); }
.facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--dark-lines); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); }
.facts dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
.case-shot { margin-top: 56px; aspect-ratio: 16 / 9; border-radius: 24px 24px 0 0; overflow: hidden; background: var(--dark-surface); border: 1px solid var(--dark-lines); border-bottom: 0; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.split { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.split > .label { flex: 1 1 280px; }
.split > div { flex: 2.4 1 560px; display: flex; flex-direction: column; gap: 20px; }
.split p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body-muted); }
.list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.list li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--lines); }
.list li > span:last-child { display: flex; flex-direction: column; gap: 6px; }
.list b { font-size: 21px; letter-spacing: -0.015em; }
.list p { font-size: 17px !important; }
.num { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; }
.num small { font-size: 24px; letter-spacing: -0.01em; }
.card.is-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.card.is-dark p, .card.is-dark .mono { color: var(--on-dark-body); }
.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; text-decoration: none; border-top: 2px solid var(--ink); padding-top: 28px; margin-block: var(--section); }
.next b { display: block; margin-top: 10px; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.045em; line-height: 1; }
.next > span:last-child { font-size: 40px; font-weight: 800; }

/* Booking */
.booking { margin-top: 48px; background: var(--surface); border: 1px solid var(--lines); border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.booking iframe { width: 100%; min-height: 680px; border: 0; border-radius: 12px; }

/* Prose (legal) */
.prose { max-width: 760px; padding-block: 56px var(--section); }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--body-muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); }
.site-footer .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; line-height: 1.7; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .logo { font-size: 18px; color: var(--on-dark); }
.site-footer .mk i { width: 22px; height: 22px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shot { transition: none; } }

/* Mètode DOA */
.steps-doa li { min-height: 260px; }
.doa-letter { font-size: clamp(64px, 7vw, 96px); font-weight: 800; line-height: .85; letter-spacing: -0.05em; color: var(--accent); }
.steps-doa li b { font-size: 26px; }
.steps-doa li p { font-size: 17px; }
.split .h2 { margin-bottom: 4px; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 48px; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; background: var(--lines); }

/* Light top band (home, method) */
.top { background: var(--ground); color: var(--ink); }
.top .langs span { color: var(--muted); }
.top .lead { color: var(--body-muted); }
.top .page-head { padding-block: 40px 64px; }
.hero-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: clamp(32px, 5vw, 72px) 48px; }
.hero-text { flex: 1.15 1 480px; }
.hero-split .h1 { font-size: clamp(44px, 6.2vw, 92px); }
.hero-split .lead { margin: 28px 0 36px; }
.hero-photo { flex: 1 1 380px; margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% center; border-radius: 24px; }
.top .stats { margin-top: 24px; border-top: 2px solid var(--ink); }
.top .stat { border-bottom: 1px solid var(--lines); }
.top .stat span { color: var(--body-muted); }
.top .stats + * { }
.top > .wrap { padding-bottom: 8px; }
.photos-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.photos-3 .photo img { aspect-ratio: 4 / 5; }
.photo figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--body-muted); }

/* Stacked demo cards */
.stack { margin-top: 48px; display: flex; flex-direction: column; gap: 32px; }
.stack-card { position: sticky; top: calc(24px + var(--i) * 22px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 48px; align-items: center;
  border-radius: 32px; padding: clamp(32px, 5vw, 64px); min-height: 560px; box-shadow: 0 -1px 0 rgba(0,0,0,.04); }
.stack-card h3 { font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 0; }
.stack-card p { margin: 20px 0 0; font-size: 19px; line-height: 1.5; max-width: 520px; }
.stack-tag { display: inline-flex; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.stack-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stack-steps li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.stack-steps li span { width: 26px; height: 26px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.stack-btn { margin-top: 32px; }
.stack-media { display: flex; justify-content: center; align-items: center; border-radius: 24px; padding: 32px; min-height: 440px; }
.stack-phone { width: min(230px, 60vw); aspect-ratio: 9 / 18.5; border: 8px solid #0B0C0B; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.stack-phone img, .stack-browser img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stack-browser { width: 100%; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--dark-surface); padding-top: 26px; position: relative; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.stack-browser i { position: absolute; left: 14px; top: 9px; width: 8px; height: 8px; border-radius: 4px; background: #555a56; box-shadow: 14px 0 0 #555a56, 28px 0 0 #555a56; }
/* colourways (brand only) */
.stack-card.is-accent { background: var(--accent); color: var(--ink); }
.is-accent .stack-tag, .is-accent .stack-steps li { background: rgba(18,20,18,.1); }
.is-accent .stack-steps li span { background: var(--ink); color: var(--accent); }
.is-accent .stack-media { background: rgba(255,255,255,.28); }
.is-accent .stack-btn { background: var(--ink); color: var(--on-dark); }
.stack-card.is-ink { background: var(--ink); color: var(--on-dark); }
.is-ink p, .is-dark p { color: var(--on-dark-body); }
.is-ink .stack-tag, .is-ink .stack-steps li, .is-dark .stack-tag, .is-dark .stack-steps li { background: rgba(242,240,234,.1); }
.is-ink .stack-steps li span, .is-dark .stack-steps li span { background: var(--accent); color: var(--ink); }
.is-ink .stack-media, .is-dark .stack-media { background: rgba(242,240,234,.06); }
.is-ink .stack-btn, .is-dark .stack-btn { background: var(--accent); color: var(--ink); }
.stack-card.is-white { background: var(--surface); border: 1px solid var(--lines); }
.stack-card.is-dark { background: var(--dark-surface); color: var(--on-dark); }
.stack-card.is-ground { background: #E7E3D8; }
.is-white p, .is-ground p { color: var(--body-muted); }
.is-white .stack-tag, .is-white .stack-steps li, .is-ground .stack-tag, .is-ground .stack-steps li { background: rgba(18,20,18,.06); }
.is-white .stack-steps li span, .is-ground .stack-steps li span { background: var(--ink); color: var(--on-dark); }
.is-white .stack-media { background: var(--ground); }
.is-ground .stack-media { background: rgba(255,255,255,.55); }
.is-white .stack-btn, .is-ground .stack-btn { background: var(--ink); color: var(--on-dark); }
.stack-btn:hover { filter: brightness(1.08); }
@media (max-width: 860px) {
  .stack { gap: 20px; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; gap: 16px; top: calc(10px + var(--i) * 10px); padding: 24px 22px; border-radius: 26px; }
  .stack-card h3 { font-size: clamp(26px, 7.4vw, 36px); margin-top: 12px; }
  .stack-card p { font-size: 16px; margin-top: 10px; }
  .stack-tag { font-size: 12.5px; padding: 7px 12px; }
  .stack-steps { display: none; }
  .stack-btn { margin-top: 16px; }
  .stack-media { min-height: 0; padding: 14px; border-radius: 18px; }
  .stack-phone { width: clamp(96px, 15vh, 140px); border-width: 6px; border-radius: 22px; }
  .stack-browser { width: 92%; }
}
