/* =========================================================
   ONYAR — styles.css
   Paleta de les façanes de l'Onyar · Bricolage Grotesque + Inter
   ========================================================= */

:root {
  --cream: #F6EFE6;
  --sand: #EFE6DA;
  --paper: #FFFFFF;
  --ink: #23201C;
  --ink-soft: #5A524A;
  --line: #E2D6C6;

  --terra: #B9472A;
  --terra-dark: #8F3620;
  --ochre: #E2A52E;
  --ochre-soft: #FBF3E3;
  --blue: #1E3A5C;
  --blue-2: #2E5378;
  --green: #5E7F5B;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(80px, 11vw, 140px);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 6px 0 -2px var(--terra-dark); }
.btn-primary:hover { background: #A63E23; box-shadow: 0 8px 0 -2px var(--terra-dark), 0 14px 30px -10px rgba(185,71,42,.5); }
.btn-ghost { background: transparent; border-color: rgba(35,32,28,.22); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: #172E4A; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; box-shadow: 0 4px 0 -1px var(--terra-dark); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-solid {
  background: rgba(246,239,230,.92);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(246,239,230,.78); backdrop-filter: blur(14px) saturate(1.2); }
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-login:hover { color: var(--terra); }
.lang { display: inline-flex; background: rgba(35,32,28,.06); border-radius: 10px; padding: 3px; }
.lang-btn { border: 0; background: transparent; padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; color: var(--ink-soft); min-height: 32px; }
.lang-btn.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 140px 0 clamp(170px, 20vw, 240px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--terra-dark); background: var(--paper); padding: 8px 14px; border-radius: 99px; box-shadow: 0 1px 0 var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(185,71,42,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(185,71,42,.45); } 70% { box-shadow: 0 0 0 10px rgba(185,71,42,0); } 100% { box-shadow: 0 0 0 0 rgba(185,71,42,0); } }
.hero-title { font-weight: 800; font-size: clamp(42px, 6.4vw, 88px); letter-spacing: -0.035em; line-height: 1; margin: 26px 0 24px; }
.hl { position: relative; white-space: nowrap; color: var(--terra); }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .18em; background: var(--ochre); opacity: .45; z-index: -1; border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: underline 1s .9s var(--ease) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }

/* Phone mockup */
.hero-phone { position: relative; justify-self: center; }
.phone {
  width: min(330px, 78vw);
  background: var(--ink); border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(35,32,28,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(2.5deg);
  transition: transform .6s var(--ease);
  position: relative;
}
.hero-phone:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: var(--ink); border-radius: 20px; z-index: 2; }
.phone-screen { background: var(--paper); border-radius: 36px; padding: 56px 22px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.ph-top { display: flex; justify-content: space-between; align-items: center; }
.ph-company { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.ph-date { font-size: 13px; color: var(--ink-soft); text-transform: capitalize; }
.ph-hello { font-family: var(--f-display); font-weight: 700; font-size: 27px; line-height: 1.1; }
.ph-shift { display: flex; gap: 10px; align-items: center; background: var(--ochre-soft); border-radius: 14px; padding: 11px 14px; font-size: 14px; }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); flex-shrink: 0; }
.ph-clock { font-family: var(--f-display); font-weight: 800; font-size: 54px; letter-spacing: -0.03em; text-align: center; line-height: 1; padding: 6px 0 0; font-variant-numeric: tabular-nums; }
.ph-btn {
  min-height: 60px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--terra); color: #fff; font-weight: 600; font-size: 17px;
  box-shadow: 0 5px 0 -1px var(--terra-dark);
  transition: transform .15s, background-color .3s, box-shadow .15s;
}
.ph-btn:hover { background: #A63E23; }
.ph-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 -1px var(--terra-dark); }
.ph-btn.is-out { background: var(--blue); box-shadow: 0 5px 0 -1px #10233A; }
.ph-status { text-align: center; font-size: 13px; color: var(--ink-soft); min-height: 20px; }
.ph-status.is-ok { color: var(--green); font-weight: 600; }
.ph-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ph-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #EFE6DA; }
.ph-list li:last-child { border-bottom: 0; }
.ph-list li span:last-child { color: var(--ink-soft); }
.ph-list b { color: var(--blue); }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink-soft); text-align: center; border-top: 1px solid #EFE6DA; padding-top: 10px; }
.ph-tabs span { position: relative; padding-top: 8px; }
.ph-tabs span::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 2px; background: #EFE6DA; }
.ph-tabs .on { color: var(--terra); }
.ph-tabs .on::before { background: var(--terra); }

.hero-badge {
  position: absolute; left: -48px; top: 150px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); padding: 12px 16px; border-radius: 16px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(35,32,28,.35);
  animation: float 5s ease-in-out infinite;
}
.hero-badge svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); color: #fff; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Skyline */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 16vw, 200px); z-index: 1; pointer-events: none; }
.facades { position: absolute; inset: 0 0 26px 0; display: flex; align-items: flex-end; gap: clamp(3px, .5vw, 8px); padding-inline: 0; }
.facades i {
  flex: 1; height: var(--h); background: var(--c);
  border-radius: 4px 4px 0 0;
  transform: translateY(105%);
  animation: rise 1.1s var(--d) var(--ease) forwards;
  position: relative;
}
.facades i::after {
  content: ""; position: absolute; inset: 14% 22% 0 22%;
  background: repeating-linear-gradient(to bottom, rgba(246,239,230,.55) 0 10px, transparent 10px 30px);
  -webkit-mask: linear-gradient(90deg, #000 0 38%, transparent 38% 62%, #000 62%);
          mask: linear-gradient(90deg, #000 0 38%, transparent 38% 62%, #000 62%);
  opacity: .65;
}
@keyframes rise { to { transform: translateY(0); } }
.river { position: absolute; left: 0; bottom: 0; width: 200%; height: 40px; fill: var(--blue); animation: flow 14s linear infinite; }
@keyframes flow { to { transform: translateX(-50%); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--blue); color: var(--cream); overflow: hidden; padding: 18px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); padding: 0 28px; display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.ticker li::after { content: ""; width: 10px; height: 16px; border-radius: 2px 2px 0 0; background: var(--ochre); }
.ticker li:nth-child(3n+2)::after { background: var(--terra); }
.ticker li:nth-child(3n)::after { background: #8FB08B; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; position: relative; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 18px; }
.eyebrow-light { color: var(--ochre); }
.h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 620px; margin-top: 22px; }
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head-center { text-align: center; }
.sec-head-center .lead { margin-inline: auto; }

/* Problem */
.problem { background: var(--paper); }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(44px, 6vw, 72px); }
.pain { padding: 32px; border-radius: var(--r-l); background: var(--cream); position: relative; transition: transform .4s var(--ease); }
.pain:hover { transform: translateY(-4px); }
.pain-num { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--terra); display: block; margin-bottom: 36px; }
.pain h3 { font-size: 24px; margin-bottom: 12px; }
.pain p { color: var(--ink-soft); font-size: 16px; }
.pain::after { content: ""; position: absolute; top: 30px; right: 30px; width: 34px; height: 3px; background: var(--ink); opacity: .25; transform: rotate(-12deg); }
.pain::before { content: ""; position: absolute; top: 30px; right: 30px; width: 34px; height: 3px; background: var(--ink); opacity: .25; transform: rotate(12deg); }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; align-items: end; }
.tool {
  background: var(--tc); color: var(--tf);
  border-radius: 8px 8px var(--r-m) var(--r-m);
  padding: 36px 26px 30px;
  position: relative; min-height: 380px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tool { min-height: 340px; }
.tool:nth-child(2), .tool:nth-child(4) { min-height: 380px; }
.tool:nth-child(6) { min-height: 360px; }
.tool:hover { transform: translateY(-10px); box-shadow: 0 30px 50px -24px rgba(35,32,28,.5); }
.tool-roof { position: absolute; left: 18px; right: 18px; top: -12px; height: 12px; background: var(--tc); border-radius: 6px 6px 0 0; filter: brightness(.82); }
.tool-ico { width: 44px; height: 44px; margin-bottom: 14px; }
.tool h3 { font-size: 32px; letter-spacing: -0.03em; }
.tool-sub { font-size: 14px; font-weight: 600; opacity: .85; }
.tool p:last-child { font-size: 16px; line-height: 1.55; margin-top: auto; }
.soon { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 20px 24px; border-radius: var(--r-m); border: 1.5px dashed rgba(35,32,28,.25); font-size: 15px; color: var(--ink-soft); }
.soon-tag { background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }

/* ---------- Demos ---------- */
.demos { background: var(--paper); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.demo-tab {
  min-height: 46px; padding: 0 18px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 10px;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.demo-tab::before { content: ""; width: 10px; height: 14px; border-radius: 2px 2px 0 0; background: var(--dc); }
.demo-tab:hover { border-color: var(--dc); transform: translateY(-2px); }
.demo-tab.is-on { background: var(--dc); border-color: var(--dc); color: #fff; }
.demo-tab.is-on::before { background: rgba(255,255,255,.75); }
.demo-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; background: var(--cream); border-radius: var(--r-l); padding: clamp(24px, 4vw, 52px); min-height: 520px; }
.demo-panel[hidden] { display: none; }
.demo-panel.is-on { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.demo-copy h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.demo-copy > p { color: var(--ink-soft); }
.demo-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; font-size: 15px; }
.demo-points li { display: flex; gap: 10px; align-items: center; }
.demo-points li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.demo-stage { display: flex; justify-content: center; min-width: 0; }
.demo-copy { min-width: 0; }
.chip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--sand); color: var(--ink-soft); }
.chip.is-work { background: #E4EFE3; color: #3E5C3B; }
.chip.is-pause { background: var(--ochre-soft); color: #7A5410; }
.chip-green { background: #E4EFE3; color: #3E5C3B; }
.mp-label { font-size: 13px; color: var(--ink-soft); }
.mp-btn { min-height: 54px; border: 0; border-radius: 16px; cursor: pointer; font-weight: 600; font-size: 16px; padding: 0 18px; transition: transform .15s, background-color .25s, opacity .25s; }
.mp-btn:active { transform: translateY(2px); }
.mp-btn:disabled { opacity: .45; cursor: not-allowed; }
.mp-btn-main { background: var(--terra); color: #fff; box-shadow: 0 4px 0 -1px var(--terra-dark); }
.mp-btn-main.is-out { background: var(--blue); box-shadow: 0 4px 0 -1px #10233A; }
.mp-btn-alt { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; background: var(--paper); padding: 4px; border-radius: 14px; border: 1px solid var(--line); }
.seg-btn { border: 0; background: transparent; min-height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-soft); }
.seg-btn.is-on { background: var(--ink); color: var(--cream); }

/* Browser + sample sites */
.browser { width: 100%; max-width: 560px; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(35,32,28,.4), 0 0 0 1px var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--sand); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5C8B6; }
.browser-bar em { font-style: normal; font-size: 12px; color: var(--ink-soft); margin-left: 10px; background: var(--paper); padding: 3px 12px; border-radius: 8px; }
.site { padding: 22px 26px 26px; min-height: 360px; display: flex; flex-direction: column; gap: 22px; transition: background-color .5s, color .5s; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.site-nav b { font-size: 17px; }
.site-nav span { opacity: .75; }
.site-hero { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.site-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.02; }
.site-sub { font-size: 15px; opacity: .85; max-width: 360px; }
.site-btn { margin-top: 6px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.site-cards i { height: 64px; border-radius: 10px; }
.site-forn { background: #F3E6CF; color: #3B2414; font-family: Georgia, "Times New Roman", serif; }
.site-forn .site-title { font-style: italic; }
.site-forn .site-kicker { color: #8A4B1F; font-family: var(--f-body); }
.site-forn .site-btn { background: #8A4B1F; color: #FFF6E8; font-family: var(--f-body); }
.site-forn .site-nav span, .site-forn .site-sub { font-family: var(--f-body); }
.site-forn .site-cards i { background: #E3CBA4; }
.site-forn .site-cards i:nth-child(2) { background: #C99A62; }
.site-lluna { background: #1F1A24; color: #F4EDF3; font-family: var(--f-body); }
.site-lluna .site-title { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; }
.site-lluna .site-kicker { color: #E7A6C0; }
.site-lluna .site-btn { background: #E7A6C0; color: #1F1A24; border-radius: 99px; }
.site-lluna .site-cards i { background: #2E2635; border-radius: 99px 99px 10px 10px; }
.site-lluna .site-cards i:nth-child(2) { background: #4A3550; }
.site-taller { background: #E9EEF2; color: #12202D; font-family: var(--f-body); }
.site-taller .site-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.site-taller .site-kicker { color: #B83A1E; }
.site-taller .site-btn { background: #12202D; color: #FFD34D; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.site-taller .site-cards i { background: #CBD5DE; border-radius: 4px; }
.site-taller .site-cards i:nth-child(2) { background: #FFD34D; }

/* Mini phone (fitxar) */
.mini-phone, .cal-card, .docs-card, .loyal {
  width: 100%; max-width: 360px; background: var(--paper); border-radius: 30px; padding: 26px 22px;
  box-shadow: 0 30px 60px -30px rgba(35,32,28,.4), 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.mp-head, .docs-head, .loyal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mp-head b, .docs-head b, .loyal-head b { font-family: var(--f-display); font-size: 19px; }
.mp-timer { font-family: var(--f-display); font-weight: 800; font-size: 56px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mp-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.mp-log { list-style: none; margin: 0; padding: 0; font-size: 14px; max-height: 160px; overflow: auto; }
.mp-log li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #EFE6DA; }
.mp-log li:last-child { border-bottom: 0; }
.mp-log li span:last-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mp-empty { color: var(--ink-soft); justify-content: center !important; }

/* Shift board */
.board { width: 100%; max-width: 600px; background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(35,32,28,.4), 0 0 0 1px var(--line); overflow-x: auto; }
.board table { width: 100%; border-collapse: separate; border-spacing: 5px; font-size: 13px; min-width: 470px; }
.board th { font-weight: 700; color: var(--ink-soft); font-size: 12px; text-align: center; padding: 4px 0; }
.board th:first-child, .board td:first-child { text-align: left; font-weight: 600; color: var(--ink); font-size: 14px; padding-right: 6px; white-space: nowrap; }
.board td.tot { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board td.tot.is-over { color: var(--terra-dark); }
.cell { width: 100%; min-width: 40px; height: 40px; border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .15s, background-color .2s; }
.cell:hover { transform: scale(1.06); }
.sh { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }
.sh-m, .cell-m { background: var(--ochre); color: var(--ink); }
.sh-t, .cell-t { background: var(--terra); color: #fff; }
.sh-f, .cell-f { background: var(--sand); color: var(--ink-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 14px; font-weight: 500; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.board-note { font-size: 13px; color: var(--ink-soft); margin: 8px 6px 0; }
.board-note.is-warn { color: var(--terra-dark); font-weight: 600; }

/* Vacation calendar */
.cal-top { display: flex; justify-content: space-between; align-items: flex-end; }
.cal-big { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--blue); }
.cal-nav b { font-family: var(--f-display); font-size: 17px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11px; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.day { height: 38px; border: 0; border-radius: 9px; background: var(--cream); font-size: 14px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s; }
.day:hover:not(:disabled) { background: #E8EEF5; }
.day:disabled { background: transparent; color: #B9AFA3; cursor: default; }
.day.is-sel { background: var(--ochre); color: var(--ink); font-weight: 700; }
.day.is-pend { background: var(--ochre-soft); color: #7A5410; font-weight: 700; box-shadow: inset 0 0 0 2px var(--ochre); }
.day.is-ok { background: var(--blue); color: #fff; font-weight: 700; }
.cal-status { font-size: 14px; text-align: center; min-height: 22px; font-weight: 600; }
.cal-status.is-pend { color: #7A5410; }
.cal-status.is-ok { color: var(--green); }

/* Docs */
.docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.docs-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--cream); }
.doc-ico { width: 30px; height: 36px; border-radius: 4px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.doc-ico::after { content: ""; position: absolute; left: 7px; right: 7px; top: 10px; height: 14px; background: repeating-linear-gradient(to bottom, #D5C8B6 0 2px, transparent 2px 5px); }
.doc-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.doc-name small { display: block; font-weight: 500; color: var(--green); font-size: 12px; }
.doc-btn { min-height: 38px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--green); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.doc-btn:disabled { background: transparent; color: var(--green); cursor: default; }
.docs-list li.is-signed { background: #EEF4ED; }

/* Loyalty */
.loyal { background: linear-gradient(160deg, #B4532F, #8F3620); color: #fff; }
.loyal-head span { font-weight: 700; font-variant-numeric: tabular-nums; }
.loyal-prize { font-size: 14px; color: #FBE3D9; }
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); display: grid; place-items: center; }
.stamp svg { width: 60%; height: 60%; opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .3s, transform .4s var(--ease); }
.stamp.is-on { background: var(--cream); border: 2px solid var(--cream); color: var(--terra); }
.stamp.is-on svg { opacity: 1; transform: none; }
.stamp.is-gift { border-color: #FBDDA0; }
.loyal-win { background: var(--ochre); color: var(--ink); border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.loyal .mp-btn-main { background: var(--cream); color: var(--terra-dark); box-shadow: 0 4px 0 -1px #D9C9B6; }

/* How */
.how { background: var(--blue); color: var(--cream); overflow: hidden; }
.how .h2 { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); position: relative; z-index: 2; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ochre); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 26px; margin-bottom: 26px; }
.step:nth-child(2) .step-n { background: var(--terra); color: #fff; }
.step:nth-child(3) .step-n { background: #8FB08B; color: var(--ink); }
.step h3 { font-size: 26px; color: #fff; margin-bottom: 12px; }
.step p { color: #D3DAE3; }
.how-river { position: relative; height: 4px; margin-top: 64px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.how-river span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ochre), var(--terra) 50%, #8FB08B); transform-origin: left; transform: scaleX(1); border-radius: 4px; }
.js .how-river span { transform: scaleX(0); }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.why-intro { position: sticky; top: 120px; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.why-list li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list b { font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.2; }
.why-list span { color: var(--ink-soft); }

/* Pricing */
.pricing { background: var(--sand); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { background: var(--paper); border-radius: var(--r-l); padding: 36px 30px 30px; display: flex; flex-direction: column; position: relative; border: 1.5px solid transparent; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(35,32,28,.4); }
.plan-featured { border-color: var(--terra); box-shadow: 0 30px 60px -30px rgba(185,71,42,.45); }
.plan-flag { position: absolute; top: -14px; left: 30px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.plan h3 { font-size: 26px; }
.plan-for { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.plan-price { margin: 26px 0 24px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-family: var(--f-display); font-weight: 800; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { color: var(--ink-soft); font-weight: 500; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--ochre-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F3620' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
.plans-2 .plan ul { margin-top: 26px; }
.fit { list-style: none; margin: 0 auto clamp(40px, 5vw, 56px); padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fit li { background: var(--cream); border-radius: var(--r-m); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--terra); }
.fit li:nth-child(2) { border-top-color: var(--ochre); }
.fit li:nth-child(3) { border-top-color: var(--green); }
.fit b { font-family: var(--f-display); font-size: 19px; line-height: 1.25; }
.fit span { font-size: 15px; color: var(--ink-soft); }
.own { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--cream); border-radius: var(--r-l); padding: 30px 34px; border: 1.5px solid var(--line); }
.own h3 { font-size: 24px; margin-bottom: 6px; }
.own p { color: var(--ink-soft); max-width: 640px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323201C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--ochre-soft); }
.faq summary:hover { color: var(--terra); }
.faq details p { padding: 0 54px 26px 0; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--terra); color: #fff; overflow: hidden; }
.contact .h2 { color: #fff; }
.contact .lead { color: #FBE3D9; }
.contact .eyebrow-light { color: #FBDDA0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact-meta { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-meta li { display: flex; gap: 16px; align-items: baseline; }
.contact-meta span { min-width: 70px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FBDDA0; }
.contact-meta a, .contact-meta b { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-s); background: #FFFCF8;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(185,71,42,.14); }
.field.is-error input { border-color: var(--terra); background: #FFF4F0; }
.form-note { font-size: 13px; color: var(--ink-soft); text-align: center; }
.form-note.is-error { color: var(--terra-dark); font-weight: 600; }
.form-note.is-ok { color: var(--green); font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: #D9D2C9; position: relative; padding-top: 72px; }
.footer-facades { position: absolute; top: 0; left: 0; right: 0; height: 8px; display: grid; grid-template-columns: repeat(4, 1fr); }
.footer-facades i:nth-child(1) { background: var(--terra); }
.footer-facades i:nth-child(2) { background: var(--ochre); }
.footer-facades i:nth-child(3) { background: var(--blue-2); }
.footer-facades i:nth-child(4) { background: var(--green); }
.footer-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
.brand-light .brand-word { color: var(--cream); }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { text-decoration: none; font-size: 15px; color: #D9D2C9; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 32px; font-size: 13px; color: #A9A096; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tool, .tool:nth-child(n) { min-height: 320px; }
}
@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--cream); padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: 16px 0; font-size: 20px; font-family: var(--f-display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-burger { display: block; }
  .nav-login { display: none; }

  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 12px; }
  .hero-badge { display: none; }
  .pain-grid, .steps, .plans, .plans-2, .fit { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin-inline: auto; }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .demo-panel { grid-template-columns: 1fr; min-height: 0; }
  .demo-stage { order: 2; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-actions .btn-sm { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool, .tool:nth-child(n) { min-height: 0; }
  .tool p:last-child { margin-top: 12px; }
  .why-list li { grid-template-columns: 1fr; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hl { white-space: normal; }
  .facades i:nth-child(n+9) { display: none; }
  .hero-badge { display: none; }
}

/* Only truly large motion is softened for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .river, .ticker-track { animation-duration: 60s; }
}
