/* ============================================================
   hola.money - shared site styles
   Blend: holagestoria brand (pink-on-white + near-black sections)
   × reference layout energy (hero arc, overlapping cards, squares)
   ============================================================ */

:root {
  --bg:          oklch(99% 0.004 330);
  --surface:     oklch(100% 0 0);
  --fg:          oklch(18% 0.018 320);
  --muted:       oklch(52% 0.02 320);
  --border:      oklch(92% 0.008 330);
  --accent:      oklch(66% 0.23 0.5);   /* hola pink ~ #FF2E84 */
  --accent-ink:  oklch(55% 0.21 358);   /* pink for text on white */
  --accent-soft: oklch(96% 0.03 350);   /* pink tint wash */
  --ink-deep:    oklch(16% 0.018 320);  /* near-black plum */
  --ink-soft:    oklch(24% 0.02 320);

  --font-display: 'Space Grotesk', 'Inter Tight', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20,16,28,0.04), 0 14px 40px -24px rgba(20,16,28,0.30);
  --shadow-float: 0 30px 70px -34px rgba(20,16,28,0.45);
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow.on-dark { color: #ff7bb0; }
.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px var(--accent); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost.on-dark:hover { border-color: rgba(255,255,255,.6); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: default; box-shadow: none; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

/* Visible keyboard focus (WCAG 2.4.7 / 2.4.13) — keyboard only, mouse clicks stay clean */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.foot a:focus-visible, .hero a:focus-visible, .cta-card a:focus-visible, .btn-ghost.on-dark:focus-visible {
  outline-color: #ff7bb0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tlink { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.tlink .arr { transition: transform .2s ease; }
.tlink:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.brand .mark { height: 32px; width: auto; display: block; }
.foot .brand .mark { height: 34px; }
.brand .coin {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ff9cc4, var(--accent) 60%);
  display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.brand .dot { color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 13px; border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: color-mix(in oklab, var(--fg) 5%, transparent); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }
.lang {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 10px; cursor: pointer; background: transparent;
}
.lang:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 0; }
.sec-head .lead { margin-top: 16px; }

/* ---------- hero ---------- */
.hero { background: var(--ink-deep); color: #fff; overflow: clip; position: relative; isolation: isolate; }
.hero::before { /* arc glow - echoes reference circular backdrop */
  content: ""; position: absolute; z-index: -1; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 70% at 78% 18%, color-mix(in oklab, var(--accent) 60%, transparent), transparent 60%),
    radial-gradient(40% 50% at 12% 90%, color-mix(in oklab, var(--accent) 28%, transparent), transparent 60%);
  filter: saturate(120%);
}
.hero::after { /* faint grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(color-mix(in oklab,#fff 5%,transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in oklab,#fff 5%,transparent) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.hero-in { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(150px, 18vw, 230px); position: relative; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.035em; max-width: 15ch; }
.hero h1 .hl { color: #ff7bb0; }
.hero .lead { color: rgba(255,255,255,.72); margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 52px; }
.hero-meta .hm { }
.hero-meta .hm b { font-family: var(--font-display); font-size: 26px; display: block; letter-spacing: -0.02em; }
.hero-meta .hm span { color: rgba(255,255,255,.55); font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
/* stepped squares accent (reference move) */
.squares { position: absolute; top: clamp(60px,11vw,120px); right: var(--pad); display: grid; grid-template-columns: repeat(3, 26px); grid-auto-rows: 26px; gap: 8px; opacity: .9; }
.squares i { display: block; border-radius: 5px; }
.squares i:nth-child(1){ background: var(--accent); }
.squares i:nth-child(2){ background: rgba(255,255,255,.14); }
.squares i:nth-child(3){ background: rgba(255,255,255,.08); grid-column: 3; }
.squares i:nth-child(4){ background: rgba(255,255,255,.10); }
.squares i:nth-child(5){ background: var(--accent); opacity:.5; }
@media (max-width: 760px){ .squares { display: none; } }

/* ---------- overlapping product cards ---------- */
.portfolio { margin-top: clamp(-130px, -14vw, -170px); position: relative; z-index: 5; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pf-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; min-height: 230px;
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden;
}
.pf-card:hover { transform: translateY(-5px); box-shadow: 0 40px 80px -36px rgba(20,16,28,.5); }
.pf-logo { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; display:flex; align-items:center; gap:8px; }
.pf-logo .tag { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pf-card p { color: var(--muted); font-size: 14.5px; margin-top: 10px; flex: 1; }
.pf-card .pf-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.pf-card .host { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }

/* ---------- generic card grids ---------- */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin-top: 9px; font-size: 15px; }
.idx { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); letter-spacing: .1em; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.stats .st { background: var(--surface); padding: 28px 24px; }
.stats .st b { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; display: block; }
.stats .st span { color: var(--muted); font-size: 13.5px; margin-top: 6px; display: block; }
.stats .st .accentnum { color: var(--accent-ink); }

/* ---------- product detail rows ---------- */
.prow { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.prow + .prow { margin-top: clamp(56px, 8vw, 100px); }
.prow.flip .pr-media { order: -1; }
.pr-copy .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.chip { font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .02em; color: var(--muted); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 5px 12px; }
.pr-copy h3 { font-size: clamp(26px, 3vw, 36px); }
.pr-copy p { color: var(--muted); margin: 12px 0 20px; max-width: 48ch; }

/* product mock window */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 60%, var(--surface)); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar .url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.mock-body { padding: 18px; min-height: 220px; }

/* mock primitives */
.m-row { display:flex; align-items:center; gap:10px; }
.m-input { flex:1; height: 38px; border: 1px solid var(--border); border-radius: var(--r-pill); display:flex; align-items:center; padding: 0 14px; color: var(--muted); font-size: 13px; }
.m-btn { height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: var(--accent); color:#fff; font-size:13px; font-weight:600; display:grid; place-items:center; }
.m-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; display:flex; align-items:center; gap:12px; }
.m-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); flex:none; display:grid; place-items:center; color: var(--accent-ink); font-weight:700; font-size:13px; font-family: var(--font-display); }
.m-line { height: 9px; border-radius: 5px; background: var(--border); }
.m-grow { flex:1; display:flex; flex-direction:column; gap:7px; }
/* chat */
.bub { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 13px; }
.bub.in { background: var(--accent-soft); color: var(--accent-ink); align-self:flex-start; border-bottom-left-radius: 4px; }
.bub.out { background: var(--ink-deep); color:#fff; align-self:flex-end; border-bottom-right-radius: 4px; }
/* board */
.board { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; }
.board .col { background: color-mix(in oklab,var(--bg) 60%,var(--surface)); border:1px solid var(--border); border-radius: var(--r-sm); padding:8px; }
.board .col h6 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); margin-bottom:7px; }
.board .tk { background: var(--surface); border:1px solid var(--border); border-radius:7px; padding:8px; margin-bottom:7px; box-shadow: 0 1px 2px rgba(20,16,28,.04); }
.board .tk .pill { display:inline-block; height:6px; width: 30px; border-radius:4px; background: var(--accent); margin-bottom:6px; }
.board .tk .pill.b2 { background: #8b5; } .board .tk .pill.b3 { background:#5ab; }
/* chart */
.chart { display:flex; align-items:flex-end; gap:9px; height:120px; }
.chart .bar { flex:1; background: linear-gradient(var(--accent), color-mix(in oklab,var(--accent) 50%, #fff)); border-radius: 6px 6px 0 0; }

/* ---------- dark feature band ---------- */
.dark { background: var(--ink-deep); color: #fff; }
.dark .lead { color: rgba(255,255,255,.66); }
.dark .sec-head h2 { color: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.feat {
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-md); padding: 24px;
  background: color-mix(in oklab, #fff 3%, transparent);
}
.feat .ic { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in oklab, var(--accent) 22%, transparent); display:grid; place-items:center; color:#ff9cc4; margin-bottom: 16px; }
.feat h3 { font-size: 18px; color:#fff; }
.feat p { color: rgba(255,255,255,.6); font-size: 14.5px; margin-top: 8px; }

/* ---------- pink location/quote band ---------- */
.band { background: var(--accent-soft); border-block: 1px solid color-mix(in oklab, var(--accent) 18%, var(--border)); }
.band-in { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,64px); align-items:center; }
.band q, .band .q { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.2; display:block; }
.band .by { margin-top: 18px; color: var(--accent-ink); font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; }
.map-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-card); }
.map-card .loc { display:flex; align-items:center; gap:12px; }
.map-card .loc .pin { width:38px;height:38px;border-radius:11px;background:var(--accent);display:grid;place-items:center;color:#fff; flex:none; }

/* ---------- CTA band ---------- */
.cta-card {
  background: var(--ink-deep); color:#fff; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px);
  position: relative; overflow:hidden; isolation:isolate;
}
.cta-card::before { content:""; position:absolute; z-index:-1; inset:auto -10% -60% 40%; height: 120%;
  background: radial-gradient(50% 60% at 60% 20%, color-mix(in oklab,var(--accent) 55%, transparent), transparent 65%); }
.cta-card h2 { font-size: clamp(30px, 4.5vw, 54px); max-width: 16ch; }
.cta-card p { color: rgba(255,255,255,.7); margin-top: 16px; max-width: 50ch; }
.cta-card .hero-cta { margin-top: 28px; }

/* ---------- footer ---------- */
.foot { background: var(--ink-deep); color: rgba(255,255,255,.7); }
.foot-in { padding-block: 64px 40px; }
.foot-top { display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot .brand { color:#fff; }
.foot p.small { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 14px; max-width: 32ch; }
.foot h5 { color:#fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.foot ul { list-style: none; display:flex; flex-direction:column; gap: 10px; }
.foot ul a { color: rgba(255,255,255,.66); font-size: 15px; }
.foot ul a:hover { color:#fff; }
.foot-bottom { display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: rgba(255,255,255,.5); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e0245e; }
.field .err { color: #c81c52; font-size: 12.5px; display: none; }
.field.invalid .err { display: block; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-ok {
  display:none; align-items:center; gap:12px; background: var(--accent-soft);
  border:1px solid color-mix(in oklab,var(--accent) 30%, var(--border)); color: var(--accent-ink);
  padding: 16px 18px; border-radius: var(--r-md); font-weight: 600;
}
.form-ok.show { display:flex; }

/* contact split */
.contact-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px,5vw,56px); align-items:start; }
.contact-aside .ci { display:flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-aside .ci:last-child { border-bottom: 0; }
.contact-aside .ci .ic { width: 40px; height:40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display:grid; place-items:center; flex:none; }
.contact-aside .ci b { display:block; font-family: var(--font-display); }
.contact-aside .ci span { color: var(--muted); font-size: 14.5px; }

/* page hero (sub pages) */
.phero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(40px, 6vw, 72px); }
.phero h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.035em; max-width: 16ch; }
.phero .lead { margin-top: 18px; font-size: clamp(18px,1.6vw,21px); }

/* values list */
.vlist { display:grid; gap: 0; border-top: 1px solid var(--border); }
.vrow { display:grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--border); align-items: start; }
.vrow .n { font-family: var(--font-mono); color: var(--accent-ink); font-size: 14px; letter-spacing: .1em; padding-top: 4px; }
.vrow h3 { font-size: clamp(22px, 2.6vw, 30px); }
.vrow p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .band-in { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .cols-3, .feat-grid { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .prow, .prow.flip { grid-template-columns: 1fr; }
  .prow.flip .pr-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px var(--pad) 20px; gap: 4px;
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-toggle { display: inline-grid; place-items:center; width: 42px; height: 42px; margin-left: auto; border:1px solid var(--border); border-radius: var(--r-sm); background: transparent; cursor: pointer; }
  .nav-cta, .lang { display: none; }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: 1fr; gap: 6px; }
}

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