/* App card button layout */
.btn-app-main {
  width: 100%;
  margin-bottom: 10px;
  font-size: 16px;
  padding: 15px 0;
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.btn-app-main:hover {
  background: var(--card);
  border-color: var(--border-strong);
}
.actions-app {
  width: 100%;
}
.btn-app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.btn-app-half {
  width: 100%;
  font-size: 15px;
  padding: 13px 0;
}
@media (max-width: 640px) {
  .btn-app-half {
    font-size: 13px;
    padding: 12px 8px;
  }
}
/* ZameFlow Site Styles
   Shared stylesheet for landing + per-app pages.
   Designed for static hosting (GitHub Pages / Vercel).
*/

:root{
  --bg: #050505;
  --bg-elev: #0b0b0b;
  --card: #111111;
  --border: #222222;
  --border-strong: rgba(255,255,255,.18);
  --text: #ffffff;
  --muted: #a1a1aa;
  --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -20px rgba(0,0,0,.85);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-display: "Inter", var(--font);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 72px;

  --focus: rgba(255,255,255,.65);
}

/* Base */
*{ box-sizing: border-box; }
*{ cursor: default; }
html,body{ height: 100%; }
html{ color-scheme: dark; scroll-behavior: smooth; }
html.i18n-pending body{ visibility: hidden; }
body{
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
img{ max-width: 100%; height: auto; display:block; }
a{ color: inherit; text-decoration: none; }
a, button, .btn, .lang-btn, .lang-list a{ cursor: pointer; }
a:hover{ text-decoration: none; }
p{ margin: 0 0 1em 0; color: var(--muted); }
strong{ color: var(--text); font-weight: 650; }
ul,ol{ margin: 0 0 1em 0; padding-left: 1.1em; color: var(--muted); }
li{ margin: .35em 0; }
hr{ border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

/* Focus */
:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ transition: none !important; animation: none !important; }
}

/* Layout */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.stack > * + *{ margin-top: var(--space-3); }

.section{ padding: var(--space-7) 0; }
.section-tight{ padding: var(--space-6) 0; }
.home-hero{ padding-bottom: var(--space-4); }
.home-apps{ padding-top: var(--space-4); }
#apps{ scroll-margin-top: 96px; }

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  align-items: stretch;
}
.grid-2 > *{
  grid-column: span 6;
}
@media (max-width: 980px){
  .grid{ gap: 14px; }
  .grid-2 > *{
    grid-column: span 12;
  }
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus{ left: 12px; }

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .container{
  padding-left: 32px;
  padding-right: 24px;
}
.nav{
  height: 64px;
  display: flex;
  align-items: center;
}
.header-main{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  white-space: nowrap;
  overflow: visible;
}
.header-left{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-right{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
}
.brand-name{
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}

.brand-name--app{
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-mark--back{
  font-weight: 800;
  letter-spacing: 0;
}
.nav-group-right{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.header-right .lang-dropdown{
  position: relative;
  top: auto;
  right: auto;
  margin-left: 6px;
  z-index: 120;
}
.nav-link{
  color: var(--muted);
  transition: color .18s ease;
}
.nav-link:hover{ color: var(--text); }
.nav-link.is-active{ color: var(--text); }

@media (max-width: 760px){
  .site-header .container{
    padding-left: 20px;
    padding-right: 12px;
  }
  .nav{
    height: 60px;
    min-height: 60px;
    padding: 0;
  }
  .header-main{
    gap: 8px;
  }
  .header-left{
    gap: 8px;
  }
  .header-right{
    gap: 6px;
  }
  .brand-name{
    font-size: 12px;
    letter-spacing: .1em;
  }
  .nav-link{
    font-size: 12px;
  }
  .lang-btn{
    min-width: 36px;
    min-height: 36px;
    padding: 5px 7px;
  }
  .header-right .lang-dropdown{
    position: relative;
    top: auto;
    right: auto;
  }
}

/* Hero */
.kicker{
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.h1{
  margin: 12px 0 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead{
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  max-width: 62ch;
}
.h1-compact{
  font-size: clamp(34px, 4.5vw, 54px);
}
.section-title{
  margin: 10px 0 0 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.lead-tight{
  margin-top: 12px;
}
.mt-10{ margin-top: 10px; }
.mt-14{ margin-top: 14px; }
.mt-18{ margin-top: 18px; }
.mt-22{ margin-top: 22px; }
.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.back-row{
  margin: 0 0 14px 0;
  display: flex;
  justify-content: flex-start;
}
.btn-back{
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.badge{
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* Cards */
.card{
  grid-column: span 4;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  height: 100%;
}
.card:hover{
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.card-title{
  margin: 8px 0 0 0;
  font-size: clamp(34px, 4.2vw, 42px);
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-desc{
  margin: 0;
  color: var(--muted);
}
.card-actions{
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.apps-groups{
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.apps-group-title{
  margin: 0 0 12px 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-logo-slot{
  width: 76px;
  height: 76px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.app-logo-slot--lg{
  width: 136px;
  height: 136px;
  border-radius: 24px;
}
.app-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.app-hero-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.app-hero-copy{
  min-width: 0;
}
.app-hero-copy .kicker{
  margin: 0 0 4px 0;
}
.app-hero-copy .h1{
  margin: 0;
  font-size: clamp(58px, 8vw, 94px);
  line-height: 0.98;
}
.legal-head{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.apps-grid .card{
  grid-column: span 12;
}
@media (max-width: 980px){
  .card{ grid-column: span 6; }
}
@media (max-width: 640px){
  .card{ grid-column: span 12; }
  .app-logo-slot{
    width: 58px;
    height: 58px;
  }
  .app-logo-slot--lg{
    width: 92px;
    height: 92px;
  }
  .app-hero-head{
    gap: 10px;
  }
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active{ transform: scale(.98); }
.btn-primary{
  background: #ffffff;
  color: #000000;
}
.btn-primary:hover{ background: #e5e5e5; }
.btn-secondary{
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover{ border-color: var(--border-strong); }
.btn.btn-app-main{
  background: var(--bg-elev);
  border-color: var(--border);
  color: var(--text);
}
.btn.btn-app-main:hover{
  background: var(--card);
  border-color: var(--border-strong);
}
.btn-link{
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.btn-link:hover{ color: var(--text); text-decoration: underline; }

/* Panels */
.panel{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-title{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* Legal / Prose */
.article{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.article h1{
  margin: 0 0 10px 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.article h2{
  margin: 22px 0 10px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.article p{ color: var(--muted); }
.article a{ color: var(--text); text-decoration: underline; }
.article code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
.footer-inner{
  display: grid;
  justify-items: center;
  align-items: center;
  row-gap: 12px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}
.footer-links{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px 18px;
}
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--text); text-decoration: underline; }
@media (max-width: 760px){
  .footer-links{
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* Contact page list */
.list{ display:flex; flex-direction:column; gap:10px; }
.item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 8px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  text-decoration:none;
  box-shadow: none;
  overflow: hidden;
}
.item:hover{ border-color: var(--border-strong); }
.item::-webkit-scrollbar{
  display: none;
}
.item-title{
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 750;
  color: var(--text);
  line-height: 1.2;
}
.item-sub{
  display: inline-flex;
  color: var(--muted);
  font-size: clamp(9px, 1.1vw, 13px);
  text-align: right;
  margin-left: auto;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  flex: 0 1 auto;
  min-width: 0;
}
@media (max-width: 640px){
  .item{
    gap: 6px;
    padding: 10px 12px;
  }
  .item-sub{
    font-size: clamp(8px, 3.2vw, 11px);
  }
}
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

a[href^="mailto:"]{
  white-space: nowrap;
}

/* Language Dropdown (flag button) */
.lang-dropdown {
  position: fixed;
  top: 12px;
  right: 24px;
  margin-left: 0;
  display: flex;
  align-items: center;
  z-index: 10000;
}
.lang-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font-display);
  padding: 6px 10px;
  border-radius: 10px;
  transition: background .15s;
}
.lang-btn:focus, .lang-btn:hover {
  background: var(--card);
}
.lang-list {
  --lang-cols: 3;
  --lang-cell: 34px;
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  z-index: 100;
  padding: 6px;
  width: max-content;
  max-width: min(92vw, 520px);
  max-height: min(70vh, 420px);
  overflow: auto;
  grid-template-columns: repeat(var(--lang-cols), minmax(var(--lang-cell), var(--lang-cell)));
  gap: 6px;
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--lang-cell);
  min-height: var(--lang-cell);
  padding: 0;
  color: var(--text);
  font-size: 18px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font-display);
  text-decoration: none;
  transition: background .12s;
  border-radius: 4px;
}
.lang-list a:hover {
  background: var(--bg-elev);
}
.lang-dropdown.open .lang-list {
  display: grid;
}
.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font-display);
  line-height: 1;
  margin-right: 0;
  position: relative;
  width: 22px;
  height: 22px;
}
.flag-inner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 22px;
  height: 22px;
}
.flag-image{
  position: relative;
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.lang-list a .flag-inner{
  width: 20px;
  height: 20px;
}
.lang-list a .flag-image{
  width: 20px;
  height: 20px;
}
@media (max-width: 640px) {
  .lang-dropdown {
    top: 10px;
    right: 12px;
  }
  .lang-list {
    --lang-cell: 32px;
    max-width: min(94vw, 420px);
    font-size: 14px;
  }
}
