/* ============ FRESH DESIGN — arag.studio, 2026-08-10 ============
   Shared by /en, /en/products, /en/workshops.
   Old HY/RU pages use arag.css — this file never touches them.
   Rebrand = edit the :root variables only. */
:root {
  --bg: #101113;           /* dominant (60%) */
  --surface: #1A1C1F;      /* raised panels (30%) */
  --line: #2A2D31;
  --ink: #F2F1EE;          /* text — never pure white */
  --ink-soft: #A8A49C;
  --brand: #8A93A6;        /* steel — supporting */
  --accent: #D9764A;       /* copper — the one saturated moment (10%) */
  --accent-ink: #16110D;   /* text on accent */
  --font-display: 'Jost', 'Noto Sans Armenian', sans-serif;
  --font-body: 'Onest', 'Noto Sans Armenian', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --text-sm: 0.875rem; --text-base: 1.0625rem; --text-lg: 1.33rem;
  --text-xl: 1.66rem; --text-2xl: 2.08rem;
  --text-hero: clamp(2.4rem, 6vw, 3.9rem);
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem;
  --space-4: 2.5rem; --space-5: 4rem; --space-6: 6.5rem;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-3); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { color: var(--ink-soft); }
a { color: var(--ink); }
::selection { background: var(--accent); color: var(--accent-ink); }

.label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--accent); display: block; margin-bottom: var(--space-2);
}
section { padding: var(--space-6) 0; }
.alt { background: var(--surface); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 0.6em 1em; border-radius: var(--radius);
}
.skip-link:focus { left: var(--space-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 17, 19, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* Wordmark — same style as the original arag.studio logo (glyph plate + ARAG Studio) */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
}
.wordmark .glyph {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line);
  display: grid; place-items: center; flex: none;
}
.wordmark .glyph svg { width: 78%; height: 78%; display: block; fill: currentColor; }
.wordmark__rag { color: var(--accent); }
.wordmark .studio { font-weight: 400; color: var(--ink-soft); }

.nav-links { display: flex; gap: var(--space-3); align-items: center; list-style: none; flex: none; white-space: nowrap; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: var(--text-sm); font-weight: 500;
  transition: color 200ms var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.lang { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; flex: none; white-space: nowrap; }
.lang a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.2em; padding: 0.2em 0.35em; }
.lang a:hover, .lang a:focus-visible { color: var(--accent); }
.lang .active { color: var(--ink); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; padding: 0.85em 1.5em; border-radius: var(--radius);
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
  border: 1px solid transparent;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #E5854F; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Arrow link (section teasers → subpages) */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  color: var(--accent); text-decoration: none; margin-top: var(--space-2);
}
.link-arrow::after { content: '→'; transition: transform 200ms var(--ease); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: translateX(4px); }

/* Hero */
.hero { position: relative; padding: var(--space-6) 0 var(--space-5); overflow: hidden; }
.hero-motif { position: absolute; inset: 0; pointer-events: none; opacity: 0.16; }
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { margin-bottom: var(--space-3); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: var(--text-lg); max-width: 620px; margin-bottom: var(--space-4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.hero-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.08em; }

/* Subpage hero (products / workshops) — shorter than home */
.page-hero { padding: var(--space-5) 0 var(--space-4); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: var(--space-2); max-width: 720px; }
.page-hero p { font-size: var(--text-lg); max-width: 640px; }

/* Client strip */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--space-3) 0; }
.clients-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.clients-row .label { margin: 0; color: var(--ink-soft); }
.client-mark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.06em; color: var(--brand);
}
/* EDIT: when real client logo SVG/PNG files arrive, replace .client-mark spans with <img> tags (height 24px, filter: grayscale) */

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4) var(--space-3); box-shadow: var(--shadow);
}
section.alt .card { background: var(--bg); }
.card blockquote {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
  color: var(--ink); margin-bottom: var(--space-2); line-height: 1.35;
}
.card blockquote::before { content: '“'; color: var(--accent); }
.card blockquote::after { content: '”'; color: var(--accent); }
.card p { font-size: var(--text-base); }
.card .node-icon { margin-bottom: var(--space-2); }
.node-icon { width: 40px; height: 40px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.node-icon circle[data-dot] { fill: var(--accent); stroke: none; }

/* Tick lists (product cards, workshop cards) */
.ticks { list-style: none; margin-top: var(--space-2); }
.ticks li { padding-left: 1.4em; position: relative; color: var(--ink-soft); font-size: var(--text-base); margin-bottom: 0.55em; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border: 1.5px solid var(--accent); border-radius: 50%;
}

/* Kill list (homepage #pains) — before → after ledger rows.
   Non-card section: the routine (client's words + its cost) on the left,
   the copper strike "kills" the cost on reveal, node-line arrow → after-state. */
.kill-list { border-top: 1px solid var(--line); }
.kill-row {
  display: grid; grid-template-columns: 1.05fr 72px 1fr;
  gap: var(--space-2) var(--space-4); align-items: center;
  border-bottom: 1px solid var(--line); padding: var(--space-4) 0;
}
.kill-row blockquote {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
  color: var(--ink); line-height: 1.35; margin-bottom: var(--space-1); max-width: 26ch;
}
.kill-row blockquote::before { content: '“'; color: var(--accent); }
.kill-row blockquote::after { content: '”'; color: var(--accent); }
.kill-row .node-icon { margin-bottom: var(--space-2); }
.kill-cost { display: inline-block; position: relative; font-size: var(--text-base); }
.kill-cost s { text-decoration: none; }
.kill-cost::after {
  content: ''; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform 600ms var(--ease) 400ms;
}
.kill-row:not(.reveal-init) .kill-cost::after { transform: scaleX(1); }
.kill-arrow { width: 72px; height: 24px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.kill-arrow circle[data-dot] { fill: var(--accent); stroke: none; }
.kill-after .lead { font-size: var(--text-base); }
.kill-after .lead strong { color: var(--ink); font-weight: 700; }
.kill-after .ticks { margin-top: var(--space-1); }
.kill-after .ticks li:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .kill-cost::after { transition: none; }
}

/* Status pill (products) */
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25em 0.7em; border-radius: 100px; margin-bottom: var(--space-2);
}
.pill-live { color: var(--accent); border: 1px solid var(--accent); }
.pill-pilot { color: var(--ink-soft); border: 1px solid var(--line); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); counter-reset: step; }
.step { position: relative; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.step .num {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  display: block; margin-bottom: var(--space-1);
}
.step h3 { margin-bottom: var(--space-1); }
.step p { font-size: var(--text-base); }

/* Services */
.service {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4); margin-bottom: var(--space-3); box-shadow: var(--shadow);
}
section.alt .service { background: var(--bg); }
.service h3 { font-size: var(--text-xl); }
.service .tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: var(--space-1);
}
.service ul { list-style: none; margin-top: var(--space-2); }
.service li { padding-left: 1.4em; position: relative; color: var(--ink-soft); font-size: var(--text-base); margin-bottom: 0.55em; }
.service li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border: 1.5px solid var(--accent); border-radius: 50%;
}

/* Demo slot — hidden until the synthetic-data video is recorded */
.demo-slot { display: none; }
/* EDIT: when the demo video is ready, set .demo-slot { display: block; } and fill the <video> src */

/* About */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.fact { border-top: 1px solid var(--line); padding-top: var(--space-2); }
.fact .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 0.3em; }
.fact .v { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* Final CTA */
.final { text-align: center; }
.final h2 { max-width: 640px; margin: 0 auto var(--space-3); }
.final .hero-cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: var(--space-4) 0; }
.foot { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; }
.foot p, .foot a { font-size: var(--text-sm); color: var(--ink-soft); }
.foot a { transition: color 200ms var(--ease); }
.foot a:hover, .foot a:focus-visible { color: var(--accent); }

.divider-motif { display: block; margin: 0 auto; opacity: 0.35; }

/* ============ Product rows (/en/products rethink, 2026-08-12) ============ */
.prow { padding: var(--space-5) 0; }
.prow-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-5); align-items: center; }
.prow--flip .prow-visual { order: -1; }
.prow-copy h2 { margin: var(--space-1) 0 var(--space-2); font-size: var(--text-xl); }
.prow-pain {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
  color: var(--ink); line-height: 1.4; margin-bottom: var(--space-2);
}
.prow-copy > p { margin-bottom: var(--space-2); }

/* Schematic mock container — deliberately NOT app chrome */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); box-shadow: var(--shadow);
}
section.alt .mock { background: var(--bg); }
.mock-cap {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft);
  letter-spacing: 0.08em; display: block; margin-top: var(--space-2);
}

/* Chat mock */
.chat { display: flex; flex-direction: column; gap: 0.6rem; }
.chat .bubble {
  max-width: 88%; padding: 0.6em 0.95em; border-radius: var(--radius);
  font-size: var(--text-sm); line-height: 1.45;
}
.chat .from-user {
  align-self: flex-end; background: var(--accent); color: var(--accent-ink);
  border-bottom-right-radius: 3px;
}
.chat .from-bot {
  align-self: flex-start; background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-soft); border-bottom-left-radius: 3px;
}
section.alt .chat .from-bot { background: var(--surface); }
.chat .from-bot strong { color: var(--ink); }

/* Document + timer mock (proposal generator) */
.docmock { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center; }
.doc-sheet {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-2); display: flex; flex-direction: column; gap: 0.55rem;
}
section.alt .doc-sheet { background: var(--surface); }
.doc-line { height: 8px; border-radius: var(--radius); background: var(--line); }
.doc-line.w80 { width: 80%; }
.doc-line.w60 { width: 60%; }
.doc-line.accent { background: var(--accent); width: 40%; }
.timer { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-family: var(--font-mono); }
.timer-was { color: var(--ink-soft); text-decoration: line-through; font-size: var(--text-sm); }
.timer-arrow { color: var(--accent); }
.timer-now { color: var(--accent); font-weight: 700; font-size: var(--text-lg); white-space: nowrap; }

/* Flow mock (calls→CRM, reports) */
.flow { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.flow-arrow { font-family: var(--font-mono); color: var(--accent); font-size: var(--text-lg); }
.wave { width: 110px; flex: none; color: var(--brand); }
.crmcard {
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  padding: var(--space-2); font-size: var(--text-sm); min-width: 200px; flex: 1;
}
section.alt .crmcard { background: var(--surface); }
.crmcard .k {
  font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft); align-self: center;
}
.crmcard .v { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-direction: column; gap: 0.4rem; flex: none; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; border: 1px solid var(--line);
  border-radius: 100px; padding: 0.3em 0.9em; color: var(--ink-soft); text-align: center;
}

/* Products mini-mock strip (homepage teaser) */
.pstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: var(--space-3) 0; }
.pthumb {
  display: flex; flex-direction: column; gap: 0.45rem;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: var(--space-2);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.pthumb:hover, .pthumb:focus-visible { border-color: var(--accent); transform: translateY(-3px); }
.pthumb-status {
  font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--accent);
}
.pthumb-status.pilot { color: var(--ink-soft); }
.pthumb-visual {
  height: 96px; display: flex; flex-direction: column; justify-content: center;
  gap: 0.35rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem;
}
.mini-bubble {
  border-radius: var(--radius); padding: 0.28rem 0.55rem;
  font-size: 0.68rem; line-height: 1.35; max-width: 94%;
}
.mini-bubble.u { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.mini-bubble.b { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.mini-doc {
  display: flex; flex-direction: column; gap: 0.3rem; width: 72%; align-self: center;
  padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.mini-doc .doc-line { height: 6px; }
.mini-metric { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); text-align: center; }
.mini-flow { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.mini-flow .wave { width: 60px; }
.mini-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 0.45rem 0.5rem; width: 64px; display: flex; flex-direction: column; gap: 0.3rem;
}
.mini-card i { display: block; height: 6px; border-radius: var(--radius); background: var(--line); }
.mini-card i.accent { background: var(--accent); width: 60%; }
.mini-chips { display: flex; justify-content: center; gap: 0.35rem; }
.mini-chips .chip { font-size: 0.6rem; padding: 0.12rem 0.45rem; }
.pthumb-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); }
.pthumb-sub { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.45; }

/* Workshops hero photo slot */
.hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-4); align-items: center; }
.photo-slot { margin: 0; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
}
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-frame .motif { color: var(--brand); }

/* Reveal animation — content is visible by default; JS adds .reveal-init
   to hide, so no-JS visitors (and crawlers) always see everything */
.reveal { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.reveal-init { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.reveal-init { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Responsive */
/* HY nav labels are long enough to touch the lang block even at full container
   width — shrink them on the HY pages at every size */
html[lang="hy"] .nav-links { gap: var(--space-2); }
html[lang="hy"] .nav-links a { font-size: 0.8rem; }
/* All locales: shrink before links collide with the lang block,
   hide below 1000px (anchor links; sections remain reachable by scroll + footer) */
@media (max-width: 1200px) {
  .nav-links { gap: var(--space-2); }
  .nav-links a { font-size: 0.8rem; }
}
@media (max-width: 1099px) {
  html[lang="hy"] .nav-links { display: none; }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .kill-row { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-3) 0; }
  .kill-arrow { display: none; }
  .kill-after { border-left: 2px solid var(--accent); padding-left: var(--space-2); }
  .grid-3, .grid-2, .steps, .prow-grid { grid-template-columns: 1fr; }
  .prow-grid { gap: var(--space-3); }
  .prow--flip .prow-visual { order: 0; }   /* mobile: visual always UNDER copy */
  .service { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .pstrip { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }   /* photo slot UNDER copy */
  .photo-frame { max-width: 480px; }
}
@media (max-width: 640px) {
  section { padding: var(--space-5) 0; }
  .hero { padding-top: var(--space-4); }
  .about-grid { grid-template-columns: 1fr; }
  .pstrip { grid-template-columns: 1fr; }
}

/* Mobile sticky CTA — homepage only (markup lives in each locale's index).
   Nav links are hidden on phones, so this is the persistent path to contact. */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: flex; gap: var(--space-1);
    padding: 0.6rem var(--space-2) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(16, 17, 19, 0.92); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; justify-content: center; white-space: nowrap; }
  /* keep the footer readable above the fixed bar */
  body:has(.mobile-cta) footer { padding-bottom: calc(var(--space-4) + 64px); }
}
