/* Scoily — Pulse (dynamic) */

:root,
[data-theme="light"] {
  --bg: #f4f7f5;
  --bg-alt: #eaf1ec;
  --surface: #ffffff;
  --surface-2: #f1f6f3;
  --text: #0c2219;
  --text-soft: #4a5f55;
  --muted: #7a8e84;
  --border: rgba(11, 70, 51, 0.12);
  --green: #0b4633;
  --green-2: #13694b;
  --accent: #f0a93e;
  --accent-ink: #0b3326;
  --accent-text: #9a6210;
  --mint: #1c9b69;
  --shadow: 0 1px 2px rgba(11, 70, 51, 0.05), 0 14px 36px rgba(11, 70, 51, 0.09);
  --chip: #e3eee7;
  --bad: #c2462f;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #06190f;
  --bg-alt: #081f16;
  --surface: #0c2a1f;
  --surface-2: #10352a;
  --text: #e7f2ec;
  --text-soft: #a2bcaf;
  --muted: #6f8b7e;
  --border: rgba(255, 255, 255, 0.09);
  --green: #1d7a57;
  --green-2: #2a9a70;
  --accent: #f5b642;
  --accent-ink: #0b2a1f;
  --accent-text: #f5c56f;
  --mint: #4fd1a0;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 44px rgba(0, 0, 0, 0.38);
  --chip: #133b2d;
  --bad: #f08a76;
  color-scheme: dark;
}

:root {
  --hero: #05231a;
  --radius: 18px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.placeholder {
  background: rgba(240, 169, 62, 0.18);
  color: var(--accent-text);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: #fff;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.site-header.scrolled,
.site-header.nav-open {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--border);
  color: var(--text);
}

.site-header.nav-open { background: var(--bg); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.18); transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.links { display: flex; gap: 6px; }
.links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0.82;
  transition: opacity 0.2s, background-color 0.2s;
}
.links a:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.links a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, 0.16); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.28);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: rgba(127, 127, 127, 0.14); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .ico { width: 18px; height: 18px; }

[data-theme="light"] .ico-sun,
[data-theme="dark"] .ico-moon { display: none; }

.menu-btn { display: none; }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.28);
}
.lang-switch a {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 9px;
  border-radius: 9px;
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; background: rgba(127, 127, 127, 0.2); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
}
.mobile-nav a { text-decoration: none; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.nav-open .mobile-nav { display: flex; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(240, 169, 62, 0.28); }
.btn-accent:hover { box-shadow: 0 10px 28px rgba(240, 169, 62, 0.42); transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--green-2); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: #fff;
  padding: 148px 0 110px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.b1 { width: 520px; height: 520px; background: #117a55; top: -160px; left: -120px; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; background: #c98a23; bottom: -200px; right: 8%; opacity: 0.35; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 360px; height: 360px; background: #1fa874; top: 30%; right: -120px; opacity: 0.35; animation: drift3 16s ease-in-out infinite alternate; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}

/* Oversized logo watermark behind every dark hero */
.hero-bg::after {
  content: "";
  position: absolute;
  width: 680px;
  aspect-ratio: 1;
  left: -230px;
  bottom: -330px;
  background: url("assets/mark-white.png") center / contain no-repeat;
  opacity: 0.04;
  transform: rotate(-14deg);
  animation: mark-sway 36s ease-in-out infinite alternate;
}
.page-hero .hero-bg::after { width: 460px; left: auto; right: -90px; bottom: auto; top: 30px; }
@keyframes mark-sway { to { transform: rotate(6deg) scale(1.06); } }

@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-140px, -60px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-80px, 120px) scale(0.9); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 26px;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -2px; margin: 0 0 24px; font-weight: 800; }
.grad {
  background: linear-gradient(90deg, #f5b642, #ffd98a 45%, #7fe0b5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 19px; color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 0 32px; }
.tw { color: #fff; font-weight: 650; border-bottom: 2px solid var(--accent); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 16px; height: 16px; color: #7fe0b5; }

.hero-visual { position: relative; display: flex; justify-content: center; perspective: 1400px; }
/* Pointer tilt — script.js sets --rx/--ry/--tx/--ty on fine pointers only */
.hero-visual .phone { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.hero-visual .float-card { translate: var(--tx, 0px) var(--ty, 0px); transition: translate 0.6s var(--ease); }
.hero-visual .fc2 { translate: calc(var(--tx, 0px) * -1) calc(var(--ty, 0px) * -1); }

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: 46px;
  background: #0a100d;
  padding: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  background: #0a100d;
  border-radius: 20px;
  z-index: 3;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #f3f6f4;
  color: #10261c;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.status-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 22px 0 30px;
  color: #fff;
  font-size: 13px;
  pointer-events: none;
}
.status-bar b { font-weight: 650; letter-spacing: 0.2px; }
.status-bar span { display: flex; align-items: center; gap: 4px; }
.status-bar svg { height: 9.5px; width: auto; }
.batt { position: relative; width: 20px; height: 10.5px; border: 1.4px solid rgba(255, 255, 255, 0.55); border-radius: 3.5px; }
.batt::before { content: ""; position: absolute; inset: 1.2px 4px 1.2px 1.2px; border-radius: 1.5px; background: #fff; }
.batt::after { content: ""; position: absolute; right: -3.6px; top: 2.8px; width: 1.8px; height: 3.6px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.55); }

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 54px 16px 14px;
  background: #0b4633;
  color: #fff;
}
.app-bar img { width: 30px; height: 30px; }
.app-bar strong { display: block; font-size: 14px; }
.app-bar span { font-size: 11.5px; opacity: 0.75; }

.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; overflow: hidden; }
.msg {
  max-width: 84%;
  background: #fff;
  border-radius: 16px 16px 16px 5px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.msg b { font-size: 11px; color: #13694b; margin-bottom: 2px; }
.msg p { margin: 0; line-height: 1.4; }
.msg.me { align-self: flex-end; background: #0b4633; color: #fff; border-radius: 16px 16px 5px 16px; }
.msg.poll { max-width: 92%; gap: 5px; }
.poll-row { display: flex; justify-content: space-between; font-size: 12px; }
.poll-row em { font-style: normal; font-weight: 700; color: #0b4633; }
.bar { height: 7px; border-radius: 99px; background: #e6eee9; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #13694b, #f0a93e); transition: width 1s var(--ease) 0.2s; }

.js [data-chat-demo] .msg { display: none; }
.js [data-chat-demo] .msg.in { display: flex; animation: pop 0.35s var(--ease); }
[data-chat-demo] .msg.in .bar i,
.view.active .bar i { width: var(--w); }

.typing { display: none; align-self: flex-start; gap: 4px; background: #fff; padding: 11px 14px; border-radius: 16px 16px 16px 5px; }
.typing.in { display: flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9ab3a7; animation: bounce 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

.composer {
  margin: 0 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 16px;
  color: #8aa096;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.composer i { width: 30px; height: 30px; border-radius: 50%; background: #0b4633; color: #fff; display: grid; place-items: center; }
.composer .ico { width: 14px; height: 14px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #10261c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13.5px; }
.float-card span { color: #5b6f65; font-size: 12px; }
.float-card > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #fdf1dc; color: #b8761b; }
.fc1 { top: 196px; left: -70px; }
.fc2 { bottom: 64px; right: -64px; animation-delay: -3s; }
.fc2 > .ico { background: #dff3e9; color: #13694b; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }

.head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.head h2, .section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 16px; font-weight: 780; }
.head p { color: var(--text-soft); font-size: 17.5px; margin: 0; }

/* ---------- Showcase ---------- */

.showcase { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; }

.tabs { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tab-caption { display: none; }
.tab {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.tab-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--chip); color: var(--green-2); display: grid; place-items: center; flex-shrink: 0; transition: background-color 0.25s, color 0.25s; }
.tab.active .tab-ico { background: var(--accent); color: var(--accent-ink); }
.tab strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.tab small { display: block; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.playing .tab.active .tab-progress { animation: fill var(--dur, 5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.phone.small { width: 300px; height: 600px; justify-self: center; }
.views { position: relative; flex: 1; }
.view {
  position: absolute;
  inset: 0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.view.active { opacity: 1; transform: none; pointer-events: auto; }
.view h4 { margin: 2px 4px 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #6a8076; }

.card-ui { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.card-ui.pinned { border-left: 4px solid #f0a93e; }
.card-ui strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.card-ui span { font-size: 12px; color: #5f7369; }
.tag-ui { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: #9a6210; background: #fdf1dc; padding: 2px 7px; border-radius: 6px; margin-bottom: 6px; }

.event-date { display: flex; gap: 12px; align-items: center; }
.event-date .day { width: 48px; height: 52px; border-radius: 12px; background: #0b4633; color: #fff; display: grid; place-items: center; text-align: center; line-height: 1.05; font-weight: 800; font-size: 19px; }
.event-date .day small { display: block; font-size: 10px; font-weight: 600; opacity: 0.8; }
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.rsvp span { text-align: center; font-size: 12px; font-weight: 600; padding: 8px 4px; border-radius: 10px; background: #eef3f0; color: #3f5449; }
.rsvp span.on { background: #0b4633; color: #fff; }
.slots { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.avatars { display: flex; }
.avatars i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; background: #f0a93e; }
.avatars i:nth-child(2) { background: #13694b; }
.avatars i.empty { background: #e6eee9; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef2ef; font-size: 13px; }
.check-row:last-child { border-bottom: 0; }
.check-row b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #13694b; color: #fff; }
.check-row b .ico { width: 13px; height: 13px; }
.check-row.pending b { background: #e6eee9; }
.fineprint { font-size: 11px; color: #6a8076; text-align: center; margin-top: auto; padding-bottom: 6px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini .tab-ico { margin-bottom: 18px; }
.mini h3 { margin: 0 0 8px; font-size: 17.5px; }
.mini p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- Compare ---------- */

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; max-width: 1000px; margin: 0 auto; }
.compare-col { border-radius: 24px; padding: 28px 30px 18px; border: 1px solid var(--border); }
.compare-col.before { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.before h3 { color: var(--text-soft); }
.compare-col.after {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.compare-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.compare-head h3 { margin: 0; font-size: 19px; letter-spacing: -0.2px; }
.compare-head img { width: 40px; height: 40px; border-radius: 12px; }
.compare-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--muted); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--border); font-size: 15.5px; line-height: 1.5; color: var(--text-soft); }
.compare li:first-child { border-top: 0; }
.compare li .ico { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; }
.before li .ico { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.after li { color: var(--text); font-weight: 550; }
.after li .ico { color: var(--accent-ink); background: var(--accent); }
.compare-vs {
  align-self: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hero);
  color: #f5c56f;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
/* Rows tick in one after another once the column scrolls into view */
.js .compare li { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .compare .revealed li { opacity: 1; transform: none; }
.compare li:nth-child(2) { transition-delay: 0.08s; }
.compare li:nth-child(3) { transition-delay: 0.16s; }
.compare li:nth-child(4) { transition-delay: 0.24s; }
.compare li:nth-child(5) { transition-delay: 0.32s; }
.compare .after li { transition-delay: calc(0.35s + var(--i, 0) * 0.08s); }
.compare .after li:nth-child(2) { --i: 1; }
.compare .after li:nth-child(3) { --i: 2; }
.compare .after li:nth-child(4) { --i: 3; }
.compare .after li:nth-child(5) { --i: 4; }

/* ---------- Pointer spotlight (added by script.js on fine pointers) ---------- */

.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* ---------- Theme switch reveal (View Transitions) ---------- */

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Steps ---------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps-track { position: absolute; top: 27px; left: 16.66%; right: 16.66%; height: 2px; background: var(--border); }
.steps-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.3s; }
.steps.revealed .steps-track i { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  background: var(--surface);
  color: var(--green-2);
  border: 2px solid var(--border);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.steps.revealed .step-num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps.revealed .step:nth-child(3) .step-num { transition-delay: 0.6s; }
.steps.revealed .step:nth-child(4) .step-num { transition-delay: 1.2s; }
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { color: var(--text-soft); margin: 0; font-size: 15.5px; }

/* ---------- Privacy band ---------- */

.privacy-band .pb { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.privacy-band p.big { color: var(--text-soft); font-size: 17.5px; margin: 0 0 28px; }
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pb-list .tab-ico { margin-bottom: 14px; }
.pb-list strong { display: block; font-size: 16px; margin-bottom: 4px; }
.pb-list span { color: var(--text-soft); font-size: 14.5px; }

/* ---------- CTA ---------- */

.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: 32px;
  background: var(--hero);
  color: #fff;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(240, 169, 62, 0.28), transparent 30%, rgba(31, 168, 116, 0.3), transparent 60%);
  animation: spin 14s linear infinite;
}
.cta-card::after { content: ""; position: absolute; inset: 2px; border-radius: 30px; background: var(--hero); }
.cta-card > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-mark { width: 64px; height: 64px; margin: 0 auto 20px; }
.cta-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 60px rgba(240, 169, 62, 0.25);
  animation: float 6s ease-in-out infinite;
}
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255, 255, 255, 0.75); font-size: 17.5px; max-width: 520px; margin: 0 auto 28px; }
.stores { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.store { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); font-weight: 650; text-align: left; line-height: 1.2; }
.store em { display: block; font-style: normal; font-weight: 500; font-size: 12px; opacity: 0.7; }

/* ---------- Footer ---------- */

.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.foot p { color: var(--text-soft); font-size: 14.5px; max-width: 280px; }
.foot h4 { font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.foot a:not(.brand) { display: block; text-decoration: none; color: var(--text-soft); font-size: 15px; margin-bottom: 10px; }
.foot a:not(.brand):hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; overflow: hidden; background: var(--hero); color: #fff; padding: 140px 0 72px; }
.page-hero .blob { opacity: 0.35; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -1.5px; margin: 0 0 12px; line-height: 1.05; }
.page-hero .meta { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 15px; }
.page-hero .kicker { color: #f5c56f; }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.doc { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding-top: 64px; padding-bottom: 110px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc-title { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-soft);
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); }
.toc a.current { color: var(--text); font-weight: 650; border-left-color: var(--accent); }

.prose { max-width: 720px; }
.prose > p:first-child { font-size: 18.5px; color: var(--text); }
.prose section { padding-top: 12px; margin-bottom: 36px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-size: 23px; letter-spacing: -0.4px; margin: 0 0 14px; }
.prose h2 .num { font-size: 13px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.prose p, .prose li { color: var(--text-soft); font-size: 16.5px; }
.prose strong { color: var(--text); }
.prose a { color: var(--green-2); }
[data-theme="dark"] .prose a { color: var(--mint); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.callout::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--accent), var(--green-2)); }
.prose > .translation-note { font-size: 14.5px; color: var(--muted); border-left: 2px solid var(--border); padding-left: 14px; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Support ---------- */

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: #fff;
  color: #10261c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.search .ico { color: #6a8076; }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 12px 0; background: transparent; color: inherit; min-width: 0; }
.search kbd { font: inherit; font-size: 12px; color: #6a8076; border: 1px solid #d7e2dc; border-radius: 8px; padding: 6px 10px; margin-right: 6px; }

.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: -130px 0 88px; position: relative; }
.help-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.help-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.help-card .tab-ico { margin-bottom: 18px; }
.help-card h3 { margin: 0 0 6px; font-size: 18px; }
.help-card p { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }
.help-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; color: var(--accent-text); }
.help-card .go .ico { width: 16px; height: 16px; transition: transform 0.2s; }
.help-card:hover .go .ico { transform: translateX(4px); }

.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.faq-head h2 { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow 0.3s, border-color 0.3s; }
.faq-item.open { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 650;
}
.plus { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); flex-shrink: 0; transition: transform 0.35s var(--ease), background-color 0.3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.open .plus { transform: rotate(135deg); background: var(--accent); color: var(--accent-ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--text-soft); font-size: 15.5px; }
.open .faq-a { grid-template-rows: 1fr; }
.faq-empty { text-align: center; padding: 40px 20px; color: var(--text-soft); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: var(--hero);
  color: #fff;
}
.contact-card h2 { color: #fff; margin-bottom: 8px; }
.contact-card p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #0c2219;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Irish ---------- */

/* Mutation prefixes stay lower-case in upper-cased labels: "AR dTÚS", "I bPONC" */
.nx { text-transform: none; }
:lang(ga) h1, :lang(ga) h2, :lang(ga) h3 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :lang(ga) .nav-actions .btn { display: none; }
}

@media (max-width: 980px) {
  .hero-inner, .showcase, .privacy-band .pb { grid-template-columns: 1fr; }
  .hero { padding: 124px 0 80px; }
  .hero-visual { margin-top: 24px; }
  /* Feature tabs become swipeable pills above the phone, so the screen they drive stays in view */
  .showcase { gap: 0; }
  .tabs {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -24px;
    padding: 4px 24px 6px;
    scroll-snap-type: x proximity;
    scroll-padding: 0 24px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    border-radius: 999px;
    border-color: var(--border);
    background: var(--surface);
    scroll-snap-align: start;
  }
  .tab.active { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
  .tab small { display: none; }
  .tab strong { margin: 0; font-size: 14.5px; white-space: nowrap; }
  .tab .tab-ico { width: 34px; height: 34px; border-radius: 50%; }
  .tab .tab-ico .ico { width: 17px; height: 17px; }
  .tab-progress { height: 2px; }
  .tab-caption { display: block; min-height: 3em; max-width: 440px; margin: 14px auto 22px; text-align: center; color: var(--text-soft); font-size: 15.5px; }
  .compare { grid-template-columns: 1fr; max-width: 560px; gap: 14px; }
  .compare-vs { justify-self: center; margin: -4px 0; }
  .mini-grid, .help-cards { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 36px 28px; }
}

@media (max-width: 760px) {
  .links, .nav-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-track { display: none; }
  .pb-list { grid-template-columns: 1fr; }
  .fc1 { left: -8px; top: 60px; }
  .fc2 { right: -8px; }
  .section { padding: 80px 0; }
  .help-cards { margin-top: -90px; }
}

@media (max-width: 400px) {
  .phone, .phone.small { width: 272px; height: 560px; }
  .phone::before { width: 78px; height: 24px; }
  .status-bar { padding: 2px 18px 0 26px; }
  .float-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
