/* Erq Marketplace download page — elegant premium, brand green, serif accents */

:root {
  --green: #598c60;
  --green-dark: #436e4b;
  --green-deep: #2f5136;
  --green-soft: #e9f2ea;
  --accent: #2f5136; /* deep brand green */
  --ink: #141a15;
  --ink-soft: #45514a;
  --muted: #7f8b83;
  --line: #e2e9e3;
  --bg: #f1f7f2;
  --card: #ffffff;
  --radius: 20px;
  --shadow-soft: 0 14px 34px rgba(20, 26, 21, 0.07);
  --shadow-pop: 0 22px 48px rgba(20, 26, 21, 0.14);
  --font-body: "Inter", "Noto Sans Ethiopic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", "Noto Sans Ethiopic", Georgia, "Times New Roman", serif;
}

/* Amharic mode: Ethiopic glyphs come via Noto Sans Ethiopic; the Latin
   italic serif accents keep Playfair, Ethiopic text falls back to Noto. */
body.lang-am .serif { font-style: normal; font-weight: 600; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); }
::selection { background: rgba(89, 140, 96, 0.28); }

/* Serif cursive accents inside headings */
h1 .serif, h2 .serif, .brand-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

/* ---------- Moving background ---------- */

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.glow-a {
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  top: -16vw; right: -10vw;
  background: radial-gradient(circle, rgba(89, 140, 96, 0.30), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.glow-b {
  width: 44vw; height: 44vw;
  max-width: 600px; max-height: 600px;
  bottom: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(89, 140, 96, 0.14), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3vw, 2.5vw, 0) scale(1.1); }
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 4px 14px rgba(20, 26, 21, 0.07);
  text-decoration: none;
}
.brand-logo { display: block; height: 32px; width: 32px; object-fit: contain; }
.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name .brand-serif { font-size: 1.05rem; color: var(--green-dark); margin-left: 2px; }

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.92rem;
  background: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(20, 26, 21, 0.05);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.nav a:hover { color: var(--green-dark); box-shadow: 0 5px 14px rgba(20, 26, 21, 0.09); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(20, 26, 21, 0.05);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-toggle svg { color: var(--green-dark); }
.lang-toggle:hover {
  color: var(--green-dark);
  border-color: var(--green);
  box-shadow: 0 5px 14px rgba(89, 140, 96, 0.16);
}

/* ---------- Hero ---------- */

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px) 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(20, 26, 21, 0.05);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  letter-spacing: -0.028em;
  line-height: 1.05;
  font-weight: 800;
}
.hero h1 .serif { font-size: 0.96em; color: var(--green-dark); padding-right: 0.06em; }
.dot { color: var(--accent); }

/* Rotating typewriter line under the headline */
.type-line {
  margin: 12px 0 0;
  min-height: 1.7em; /* reserve space: typing/deleting never shifts the layout */
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  font-weight: 600;
  color: var(--green-deep);
  display: flex;
  align-items: center;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--green);
  border-radius: 1px;
  animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
body.lang-am .type-line { font-weight: 500; }

/* Phrase swaps: gentle fade + slide; reduced motion keeps the fade only */
#typewriter {
  display: inline-block;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
#typewriter.swap-out { opacity: 0; transform: translateY(-7px); }
#typewriter.swap-in { transition: none; opacity: 0; transform: translateY(8px); }

.tagline {
  margin: 18px 0 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  border-radius: 12px;
  background: #0d0f0e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(13, 15, 14, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(13, 15, 14, 0.34); }
.store-badge:active { transform: translateY(0); }

.sb-icon { display: grid; place-items: center; color: #fff; }
.sb-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.sb-text small { font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.72; }
.sb-text strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

.sb-disabled { background: #3d453f; box-shadow: none; cursor: not-allowed; opacity: 0.92; }
.sb-disabled:hover { transform: none; box-shadow: none; }

/* Hero facts */
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 28px 0 0;
  padding: 0;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-facts span { color: var(--muted); font-size: 0.8rem; }

/* ---------- Two tilted phones ---------- */

.hero-phones {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
}

.phone {
  position: absolute;
  width: 252px;
  border-radius: 40px;
  background: #101413;
  padding: 10px;
  box-shadow: var(--shadow-pop), inset 0 0 0 2px rgba(255, 255, 255, 0.07);
}
.phone-front {
  transform: rotate(-7deg);
  z-index: 2;
  animation: swayA 8s ease-in-out infinite;
  touch-action: pan-y; /* horizontal swipes go to the carousel, vertical scroll stays native */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.phone-front:active { cursor: grabbing; }
.phone-back {
  transform: rotate(6deg) translate(52%, -3%);
  z-index: 1;
  animation: swayB 9s ease-in-out infinite;
}
@keyframes swayA {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5.5deg) translateY(-10px); }
}
@keyframes swayB {
  0%, 100% { transform: rotate(6deg) translate(52%, -3%); }
  50% { transform: rotate(7.5deg) translate(52%, calc(-3% - 12px)); }
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  border-radius: 999px;
  background: #101413;
  z-index: 2;
}

.phone-screen {
  border-radius: 32px;
  background: #fff;
  min-height: 480px;
  padding: 44px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.screen-tight { background: #f5f8f5; gap: 8px; padding-top: 40px; }

/* Android frame: real app screenshots */
.phone-punch {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0b0d0c;
  box-shadow: inset 0 0 0 2px #1d2320, 0 0 0 2px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.phone-screen.screen-shot {
  position: relative;
  padding: 0;
  min-height: 0;
  height: 500px;
  gap: 0;
  background: #fff;
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.shot.is-on { opacity: 1; }

.shot-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.sdot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(20, 26, 21, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.sdot.on {
  width: 16px;
  background: var(--green);
}

/* Decorative blobs */
.blob { position: absolute; border-radius: 50%; z-index: 0; animation: blobFloat 9s ease-in-out infinite; }
.blob-1 { width: 40px; height: 40px; top: 4%; left: 5%; background: radial-gradient(circle at 30% 30%, #83b889, var(--green)); }
.blob-2 { width: 26px; height: 26px; bottom: 8%; left: 11%; background: radial-gradient(circle at 30% 30%, #8fbb96, var(--green)); animation-delay: 2.4s; }
.blob-3 { width: 20px; height: 20px; top: 12%; right: 3%; background: radial-gradient(circle at 30% 30%, #9fd3a6, var(--green-dark)); animation-delay: 4.2s; }
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.06); }
}

/* ---------- Desktop mockup ---------- */

.desktop-show {
  text-align: center;
  padding: clamp(44px, 7vw, 84px) 0 clamp(20px, 3vw, 30px);
}
.desktop-show h2, .features h2, .cats h2, .guide h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  margin: 0;
  letter-spacing: -0.024em;
  font-weight: 800;
}
.desktop-show h2 .serif, .features h2 .serif, .cats h2 .serif, .guide h2 .serif {
  color: var(--green-dark);
  font-size: 0.98em;
  padding-right: 0.05em;
}
.desktop-sub { color: var(--ink-soft); max-width: 54ch; margin: 14px auto 0; }

.laptop { max-width: 880px; margin: clamp(26px, 4vw, 46px) auto 0; }

.laptop-screen {
  background: #131a17;
  border-radius: 18px 18px 0 0;
  padding: 12px 12px 0;
  box-shadow: var(--shadow-pop);
}

.ltop { display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px; }
.ltop-dot { width: 9px; height: 9px; border-radius: 50%; background: #35443c; }
.ltop-dot:first-child { background: var(--accent); }
.ltop-url {
  margin-left: 10px;
  background: #1d2721;
  color: #9db4a2;
  font-size: 0.66rem;
  border-radius: 6px;
  padding: 3px 14px;
}

/* Live-site chip (shown when the iframe loads successfully) */
.live-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd3a6;
  background: rgba(89, 140, 96, 0.18);
  border: 1px solid rgba(127, 184, 137, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6fce7c;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* Screen area: scaled live iframe over the CSS fallback */
.lscreen-wrap {
  position: relative;
  height: 430px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #f5f8f5;
}
.lsite-iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--site-scale, 0.55));
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
  pointer-events: none;
  background: #fff;
}
.lsite-iframe.is-live { opacity: 1; }
.lscreen-wrap.is-live .lbody { visibility: hidden; }

.lbody {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  background: #f5f8f5;
  padding: 12px;
  text-align: left;
}

.lside { display: flex; flex-direction: column; gap: 6px; }
.lnav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.lnav.on { background: var(--green); color: #fff; }

.lsearch {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.lcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lcard {
  background: #fff;
  border-radius: 12px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 4px 12px rgba(20, 26, 21, 0.05);
}
.lcard strong { font-size: 0.69rem; line-height: 1.3; }
.lcard small { color: var(--green-dark); font-size: 0.62rem; font-weight: 700; }
.lstar { color: var(--green-deep); font-size: 0.62rem; font-weight: 700; }

.lthumb {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  margin-bottom: 4px;
}
.lthumb.th-b { background: #e9f2ea; color: var(--green-dark); }
.lthumb.th-c { background: #e2e9e3; color: var(--green-deep); }
.lthumb.th-d { background: #f1f7f2; color: var(--green-dark); }

.lrow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.lchart {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
}
.lchart span {
  flex: 1;
  height: var(--v);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--green), #83b889);
  animation: barGrow 1.2s ease both;
}
.lchart span:nth-child(even) { background: linear-gradient(180deg, var(--green-dark), var(--green)); }
@keyframes barGrow { from { height: 0; } }

.linbox {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  color: var(--green-dark);
}
.linbox strong { display: block; font-size: 0.77rem; color: var(--ink); margin-top: 4px; }
.linbox small { color: var(--muted); font-size: 0.66rem; }

.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #26302a, #141c17);
  border-radius: 0 0 16px 16px;
  margin: 0 -28px;
  box-shadow: 0 16px 30px rgba(20, 26, 21, 0.2);
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.db-icon { color: var(--green-dark); display: grid; place-items: center; }

/* ---------- Features ---------- */

.features { padding: clamp(44px, 7vw, 80px) 0 10px; text-align: center; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 30px;
  text-align: left;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: rgba(89, 140, 96, 0.4); }

/* Staggered cascade (features, category pills) — assigned by script.js in reveal order */
.stag {
  opacity: 0;
}
.stag.in {
  animation: stagIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--d, 0) * 70ms);
}
@keyframes stagIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

.f-ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.04rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Categories ---------- */

.cats { padding: clamp(40px, 6vw, 64px) 0 6px; text-align: center; }

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(20, 26, 21, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.cat svg { color: var(--green-dark); }
.cat:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 6px 16px rgba(89, 140, 96, 0.16);
}
.cat.stag.in { transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }

/* ---------- Details cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 32px 0 8px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card-primary { border-color: rgba(89, 140, 96, 0.4); }

.card-head { display: flex; align-items: flex-start; gap: 14px; }
.card-head h2 { margin: 0; font-size: 1.28rem; letter-spacing: -0.015em; }
.card-head .sub { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

.platform-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
}
.card-muted .platform-icon { background: #eef2ee; color: #6b756d; }

.badge {
  margin-left: auto;
  flex: none;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid rgba(89, 140, 96, 0.3);
}

.meta { list-style: none; margin: 22px 0; padding: 0; }
.meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.meta li:last-child { border-bottom: 0; }
.meta span { color: var(--muted); }
.meta strong { font-weight: 600; }

.muted-text { color: var(--muted); margin: 22px 0; }

/* ---------- Buttons ---------- */

.btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(89, 140, 96, 0.38); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-disabled { background: #eef2ee; color: #6b756d; border-color: var(--line); cursor: not-allowed; }

.hint { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.hint code { background: var(--green-soft); color: var(--green-dark); padding: 1px 7px; border-radius: 6px; }

/* ---------- Gallery ---------- */

.gallery { padding: clamp(30px, 5vw, 50px) 0 0; text-align: center; }
.gallery h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.45rem);
  margin: 0;
  letter-spacing: -0.024em;
  font-weight: 800;
}
.gallery h2 .serif { color: var(--green-dark); font-size: 0.98em; padding-right: 0.05em; }
.gallery-sub { color: var(--ink-soft); margin: 12px auto 0; max-width: 52ch; }

.gal-track {
  display: flex;
  gap: 18px;
  margin: 30px calc(clamp(20px, 4vw, 48px) * -1) 0;
  padding: 6px clamp(20px, 4vw, 48px) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}
.gal-track::-webkit-scrollbar { height: 6px; }
.gal-track::-webkit-scrollbar-track { background: transparent; }
.gal-track::-webkit-scrollbar-thumb { background: var(--green); border-radius: 999px; }

.gal-card {
  flex: 0 0 min(320px, 78vw);
  margin: 0;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.gal-shot {
  border-radius: 15px;
  overflow: hidden;
  background: #101413;
  aspect-ratio: 619 / 1280;
}
.gal-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gal-card figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.gal-hint {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 8px;
}

/* ---------- Install guide ---------- */

.guide { padding: clamp(42px, 6vw, 66px) 0; }
.guide h2 { margin-bottom: 24px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 20px 60px;
  position: relative;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 17px;
  top: 18px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.65);
}
.foot-social { display: flex; justify-content: center; gap: 18px; margin-bottom: 12px; }
.foot-social a { color: var(--ink-soft); transition: color 0.2s ease, transform 0.2s ease; display: inline-flex; }
.foot-social a:hover { color: var(--green-dark); transform: translateY(-2px); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-phones { min-height: 540px; margin-top: 10px; }
  .lcards { grid-template-columns: repeat(2, 1fr); }
  .lrow { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { text-align: center; }
  .hero-facts { justify-content: center; }
  .store-badges { justify-content: center; }
  .hero-phones { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .phone { position: static; }
  .phone-front { transform: rotate(-4deg); }
  .phone-back { transform: rotate(4deg); }
  .blob { display: none; }
  .lside { display: none; }
  .lbody { grid-template-columns: 1fr; }
  .laptop-base { margin: 0 -12px; }
  .card { padding: 22px; }
  .badge { position: static; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stag { opacity: 1; }
  .stag.in { animation: none; }
  .glow, .phone-front, .phone-back, .blob, .lchart span { animation: none; }
  .shot { transition: none; }
  .caret { animation: none; }
  #typewriter.swap-out, #typewriter.swap-in { transform: none; }
}
