:root {
  color-scheme: dark;
  --bg: #0f1419;
  --text: #f2f4f7;
  --muted: #9aa3ad;
  --accent: #3d9a7a;
  --accent-ink: #06150f;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(18, 28, 32, 0.72);
  --header-bg: rgba(15, 20, 25, 0.88);
  --nav-bg: #12181e;
  --atmosphere: #1a3d32;
  --atmosphere-2: #243044;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --btn-border: rgba(255, 255, 255, 0.22);
  --chip-ink: #b7e4d2;
  --warn-ink: #e2b86a;
  --hero-visual-a: rgba(36, 48, 68, 0.9);
  --hero-visual-b: rgba(15, 20, 25, 0.4);
  --how-panel: rgba(12, 16, 20, 0.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --header-h: 4rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6f8;
    --text: #0f1419;
    --muted: #5c6670;
    --line: rgba(15, 20, 25, 0.12);
    --panel: rgba(255, 255, 255, 0.82);
    --header-bg: rgba(244, 246, 248, 0.92);
    --nav-bg: #ffffff;
    --atmosphere: #d7ece4;
    --atmosphere-2: #dce6f0;
    --shadow: 0 12px 32px rgba(15, 20, 25, 0.12);
    --btn-border: rgba(15, 20, 25, 0.18);
    --chip-ink: #0d4a38;
    --warn-ink: #8a6208;
    --hero-visual-a: rgba(220, 230, 236, 0.95);
    --hero-visual-b: rgba(244, 246, 248, 0.4);
    --how-panel: rgba(255, 255, 255, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 18% 8%, var(--atmosphere) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 78%, var(--atmosphere-2) 0%, transparent 50%),
    var(--bg);
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo actions";
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-height: var(--header-h);
  padding: 0.12rem clamp(0.65rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  justify-self: start;
}

.logo picture,
.brand picture,
.footer-logo picture {
  display: contents;
}

.logo-mark {
  display: block;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 0.55rem;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.logo-wordmark {
  line-height: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  animation: rise 0.7s ease both;
}

.brand .logo-mark {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.65rem;
}

.logo .brand-flat,
.brand .brand-flat {
  color: var(--text);
}

.logo .brand-turno,
.brand .brand-turno {
  color: var(--accent);
}

.nav-main {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: clamp(0.75rem, 3vw, 2.5rem);
  left: auto;
  z-index: 50;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  min-width: 0;
  max-width: min(16rem, calc(100vw - 1.5rem));
  padding: 0.35rem;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  box-shadow: var(--shadow);
  max-height: min(calc(100dvh - 4.25rem), 90vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-main.open {
  display: flex;
}

.nav-main > a,
.nav-menu > summary,
.nav-drawer-tools .nav-signin {
  padding: 0.5rem 0.65rem;
  min-height: 0;
  display: flex;
  align-items: center;
  border-bottom: none;
}

.nav-menu {
  position: relative;
  width: 100%;
}

.nav-menu > summary {
  list-style: none;
  cursor: pointer;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.75;
}

.nav-menu .dropdown {
  position: static;
  display: none;
  margin: 0;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  max-width: none;
  padding: 0 0 0.2rem 0.7rem;
}

.nav-menu[open] .dropdown {
  display: block;
}

.nav-menu .dropdown a {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-radius: 0.3rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-main > a,
.nav-menu > summary,
.nav-signin {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-main > a:hover,
.nav-main > a[aria-current="page"],
.nav-menu[open] > summary,
.nav-menu.is-active > summary,
.nav-menu > summary:hover,
.nav-signin:hover,
.nav-menu .dropdown a:hover,
.nav-menu .dropdown a[aria-current="page"] {
  color: var(--text);
}

.nav-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.2rem;
}

.customer-menu {
  position: relative;
}

.customer-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
}

.lang-menu summary,
.lang-menu .dropdown a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  line-height: 1;
}

.lang-menu .dropdown a {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-code {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.customer-menu summary::-webkit-details-marker {
  display: none;
}

.customer-menu[open] summary,
.customer-menu summary:hover {
  color: var(--text);
}

.customer-menu .dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 10rem;
  max-width: min(16rem, calc(100vw - 1.5rem));
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--nav-bg);
  box-shadow: var(--shadow);
  z-index: 60;
}

.customer-menu .dropdown a {
  display: block;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 0.3rem;
  font-size: 0.92rem;
}

.customer-menu .dropdown a:hover {
  background: rgba(61, 154, 122, 0.15);
}

.lang-menu .dropdown {
  min-width: 0;
  width: max-content;
  max-width: none;
  padding: 0.3rem;
}

.lang-menu .dropdown a {
  display: flex;
  width: auto;
  padding: 0.4rem 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0.4rem;
  width: auto;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle-bars {
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.4rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--btn-border);
  font-size: 0.95rem;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
}

.btn.small {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.header-get-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  min-height: 1.75rem;
  padding: 0 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-get-app-icon {
  display: none;
  width: 1rem;
  height: 1rem;
}

.header-get-app:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}

.site-header.header-cta-icon .header-get-app {
  width: 1.75rem;
  min-width: 1.75rem;
  padding: 0;
}

.site-header.header-cta-icon .header-get-app-label {
  display: none;
}

.site-header.header-cta-icon .header-get-app-icon {
  display: block;
}

/* First paint on phones: icon until site.js measures the real collision. */
@media (max-width: 26rem) {
  .site-header:not(.header-cta-ready) .header-get-app {
    width: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
  }

  .site-header:not(.header-cta-ready) .header-get-app-label {
    display: none;
  }

  .site-header:not(.header-cta-ready) .header-get-app-icon {
    display: block;
  }
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:focus-visible,
  .nav-main > a:focus-visible,
  .nav-menu > summary:focus-visible,
  .nav-signin:focus-visible,
  .nav-toggle:focus-visible,
  .header-get-app:focus-visible,
  .customer-menu summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 4rem;
}

.hero-home {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-home--solo {
  grid-template-columns: 1fr;
  max-width: 40rem;
}

.hero-home--solo .hero-text {
  max-width: 36rem;
}

.hero-home h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  animation: rise 0.75s ease 0.05s both;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 32rem;
  animation: rise 0.8s ease 0.1s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  animation: rise 0.85s ease 0.15s both;
}

.hero-visual {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 1.1rem;
  animation: rise 0.9s ease 0.12s both;
}

.hero-visual .app-shot:nth-child(2) {
  margin-bottom: 2.25rem;
}

.hero-visual .label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-visual .board-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.75rem 0 0.35rem;
}

.hero-visual .board-line {
  color: var(--muted);
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.hero-visual .pill {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(61, 154, 122, 0.2);
  color: var(--chip-ink);
  font-size: 0.85rem;
}

.hero-visual.download-block {
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  min-height: 16rem;
}

.hero-visual.download-block #apk-qr {
  width: 180px;
  height: 180px;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem;
}

.hero-visual.download-block .download-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 14rem;
  line-height: 1.35;
}

.hero-visual.download-block .download-path {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  word-break: break-all;
}

.apk-soft-state {
  margin: 0.85rem 0 0;
  color: var(--warn-ink);
  font-size: 0.95rem;
  max-width: 28rem;
}

.apk-build-meta {
  margin: 0.5rem 0 0;
  color: var(--muted, #8aa399);
  font-size: 0.95rem;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  pointer-events: none;
}

.telegram-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.telegram-note a {
  color: var(--chip-ink);
  text-decoration: none;
}

.telegram-note a:hover {
  text-decoration: underline;
}

.companies-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(61, 154, 122, 0.08);
}

.companies-band p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.desk-note-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(59, 130, 196, 0.35);
  border-radius: 0.6rem;
  background: rgba(59, 130, 196, 0.1);
}

.desk-note-band p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.desk-note-band strong {
  color: var(--text);
}

#setup {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 0 0 0.6rem;
}

.section .sub {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

/* How it works — Flatmate | Desk × channels */
.how-audience {
  --how-accent: #3d9a7a;
  --how-accent-ink: #06150f;
  --how-glow: #1a3d32;
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 3vw, 1.75rem);
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, color-mix(in srgb, var(--how-glow) 75%, transparent) 0%, transparent 60%),
    var(--how-panel);
  transition: background 0.35s ease;
}

.how-audience[data-theme="flatmate"] {
  --how-accent: #3d9a7a;
  --how-accent-ink: #06150f;
  --how-glow: #1a3d32;
}

.how-audience[data-theme="desk"] {
  --how-accent: #3b82c4;
  --how-accent-ink: #061018;
  --how-glow: #1a2f44;
}

.how-audience .steps .n {
  color: var(--how-accent);
}

.how-audience .btn.primary {
  background: var(--how-accent);
  color: var(--how-accent-ink);
}

.how-audience .how-panel[hidden],
.how-audience .how-subpanel[hidden],
.how-audience .how-product-body[hidden] {
  display: none !important;
}

.how-subchannels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.how-subchannel {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
}

.how-subchannel:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--how-accent) 45%, var(--line));
}

.how-subchannel[aria-selected="true"] {
  color: var(--how-accent-ink, var(--text));
  border-color: transparent;
  background: var(--how-accent);
}

.how-subchannel:focus-visible {
  outline: 2px solid var(--how-accent);
  outline-offset: 2px;
}

.eco-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.5rem;
  align-items: flex-start;
  margin: 0 0 1.15rem;
}

.app-shot {
  margin: 0;
  width: 232px;
  max-width: 100%;
}

.app-phone {
  background: #070b0e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 12px 9px 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.app-screen {
  background: #0f1419;
  color: #f2f4f7;
  border-radius: 18px;
  padding: 10px 10px 12px;
  font-size: 11px;
  line-height: 1.25;
}

.app-shot figcaption {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.ap-status {
  display: flex;
  justify-content: space-between;
  color: #9aa3ad;
  font-size: 10px;
  margin: 0 4px 8px;
}

.ap-h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.ap-label {
  color: #9aa3ad;
  font-size: 10px;
  font-weight: 600;
}

.ap-balance {
  background: rgba(61, 154, 122, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.ap-big {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
}

.ap-neg {
  color: #f85149;
}

.ap-pair,
.ap-actions {
  display: flex;
  gap: 6px;
}

.ap-card,
.ap-row,
.ap-buy,
.ap-line {
  background: #1a2229;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.ap-card {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
}

.ap-card .ap-label,
.ap-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.ap-mid {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.ap-count {
  color: #9aa3ad;
}

.ap-actions {
  margin: 8px 0;
}

.ap-btn,
.ap-save {
  flex: 1;
  text-align: center;
  background: #222b34;
  color: #3d9a7a;
  border-radius: 8px;
  padding: 8px 4px;
  font-weight: 700;
  font-size: 10px;
}

.ap-hot,
.ap-save {
  background: #3d9a7a;
  color: #06150f;
}

.ap-save {
  display: block;
  margin-top: 8px;
  padding: 9px 4px;
  font-size: 12px;
}

.ap-head {
  margin: 2px 0 5px;
  font-weight: 700;
}

.ap-link {
  color: #3d9a7a;
  font-weight: 700;
  font-size: 10px;
}

.ap-row,
.ap-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
}

.ap-row span:last-child,
.ap-line span:first-child {
  flex: 1;
  min-width: 0;
}

.ap-box {
  width: 13px;
  height: 13px;
  border: 1.5px solid #9aa3ad;
  border-radius: 3px;
  flex: 0 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ap-box.on {
  background: #3d9a7a;
  border-color: #3d9a7a;
}

.ap-box.on::after {
  content: "";
  width: 3px;
  height: 6px;
  border: solid #06150f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.ap-on {
  color: #3d9a7a;
}

.ap-off,
.ap-month,
.ap-hint {
  color: #9aa3ad;
}

.ap-month {
  font-weight: 700;
  margin: 0 0 6px;
}

.ap-buy {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
}

.ap-buy-name {
  font-weight: 700;
}

.ap-buy-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.ap-split.whole {
  color: #3d9a7a;
}

.ap-split.part {
  color: #e8a23a;
}

.ap-line.ap-drop span:first-child {
  text-decoration: line-through;
  color: #9aa3ad;
}

.ap-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin: 6px 0 4px;
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ap-chip {
  border-radius: 999px;
  padding: 3px 7px;
  background: #222b34;
  color: #9aa3ad;
}

.ap-chip.on {
  background: #3d9a7a;
  color: #06150f;
  font-weight: 700;
}

.ap-cam {
  height: 168px;
  margin-top: 8px;
  border-radius: 12px;
  background: #151c22;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-paper {
  width: 78px;
  height: 108px;
  background: #f4f1ea;
  border-radius: 2px;
  transform: rotate(-7deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ap-paper i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #c9c2b6;
}

.ap-paper i:nth-child(2) {
  width: 78%;
}

.ap-paper i:nth-child(4) {
  width: 62%;
}

.ap-hint {
  margin-top: 8px;
}

.ap-amt {
  unicode-bidi: isolate;
}

.ap-field {
  background: #151c22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  margin: 8px 0 10px;
  font-weight: 700;
}

.ap-field.ghost {
  color: #9aa3ad;
  font-weight: 500;
}

.ap-compose {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.ap-input {
  flex: 1;
  min-width: 0;
  background: #151c22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 7px 10px;
  color: #9aa3ad;
}

.ap-send {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #3d9a7a;
  flex: none;
  position: relative;
}

.ap-send::before {
  content: "";
  position: absolute;
  inset: 7px 8px 9px 8px;
  background: #06150f;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.ap-quiet {
  display: block;
  margin-top: 6px;
  background: #222b34;
  color: #f2f4f7;
  text-align: center;
  border-radius: 8px;
  padding: 9px 4px;
  font-weight: 700;
  font-size: 12px;
}

.steps:has(.step-phone) {
  align-items: start;
}

.step-cta {
  margin: 0.85rem 0 0;
}

.step-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.ap-step {
  color: #9aa3ad;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
  unicode-bidi: isolate;
}

.ap-rooms {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ap-room {
  flex: 1;
  min-width: 0;
  background: #1a2229;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
}

.ap-room.on {
  border-color: #3d9a7a;
}

.ap-room.taken {
  opacity: 0.45;
}

.ap-bubble {
  border-radius: 12px;
  padding: 6px 8px;
  margin: 5px 0;
  max-width: 88%;
  background: #1a2229;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-bubble.mine {
  margin-inline-start: auto;
  background: #2e6b55;
  border-color: transparent;
}

.how-products,
.how-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.how-products {
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.how-product-tab,
.how-channel {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.how-product-tab:hover,
.how-channel:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--how-accent) 45%, var(--line));
}

.how-product-tab[aria-selected="true"],
.how-channel[aria-selected="true"] {
  color: var(--text);
  border-color: var(--how-accent);
  background: color-mix(in srgb, var(--how-accent) 18%, transparent);
}

.how-product-tab:focus-visible,
.how-channel:focus-visible {
  outline: 2px solid var(--how-accent);
  outline-offset: 2px;
}

.how-product-tab {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
}

.how-badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--how-accent);
  opacity: 0.95;
}

.how-panel-sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.how-panel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}

.how-soon {
  font-size: 0.85rem;
  color: var(--how-accent);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .how-audience {
    transition: none;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li,
.feature,
.plan,
.faq details {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--panel);
  padding: 1.15rem 1.2rem;
}

.steps .n {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.steps h3,
.feature h3,
.plan h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.steps p,
.feature p,
.plan p,
.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.feature-shot .feature-copy {
  width: 100%;
}

.feature-shot .app-shot {
  width: min(232px, 100%);
}

.feature-copy h3 {
  margin-top: 0;
}

.feature-grid-one {
  grid-template-columns: 1fr;
}

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.page-hero .lede {
  animation: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.workflow {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wf;
}

.workflow li {
  counter-increment: wf;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
}

.workflow li::before {
  content: counter(wf);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(61, 154, 122, 0.2);
  color: var(--chip-ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.subscription-note {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.plan.featured {
  border-color: rgba(61, 154, 122, 0.55);
  box-shadow: 0 0 0 1px rgba(61, 154, 122, 0.25);
}

.plan .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.4rem 0 0.75rem;
}

.plan ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan li + li {
  margin-top: 0.35rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.contact-panel {
  max-width: 34rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel);
  padding: 1.4rem 1.5rem;
}

.contact-panel a.mail {
  color: var(--chip-ink);
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-panel a.mail:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 34rem;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.contact-form .form-label {
  margin: 0;
  font-weight: 600;
}
.contact-form .form-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-form .seg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  cursor: pointer;
}
.contact-form .form-field {
  display: grid;
  gap: 0.35rem;
}
.contact-form .form-field span {
  font-size: 0.92rem;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  color: var(--text);
}
.contact-form .form-status {
  margin: 0;
  font-weight: 600;
}
.contact-form .hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(0, 2.2fr);
  gap: 1rem clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 14rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-logo .logo-mark {
  width: 1.45rem;
  height: 1.45rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.footer-col-title {
  margin: 0 0 0.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  width: min(72rem, 100%);
  margin: 0.9rem auto 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.legal {
  max-width: 42rem;
}

.legal p {
  color: var(--muted);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

.legal ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  color: var(--chip-ink);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(61, 154, 122, 0.08);
}

.cta-band p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-drawer-tools {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.nav-drawer-tools .nav-signin {
  border-bottom: none;
}

.nav-actions-desktop {
  display: none;
}

@media (max-width: 1160px) {
  .feature-grid-4,
  .steps-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-home,
  .split,
  .pricing-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[dir="rtl"] .customer-menu .dropdown {
  right: auto;
  left: 0;
}

/* Palatino/Georgia have no Arabic shaping — headings would look broken. */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .lede,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .hero-home h1 {
  font-family: var(--font-body);
  letter-spacing: 0;
}

/* Emails are always LTR; otherwise @domain jumps into the Arabic sentence. */
[dir="rtl"] .contact-form input[type="email"],
[dir="rtl"] a.mail {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

[dir="rtl"] .nav-main {
  right: auto;
  left: clamp(0.75rem, 3vw, 2.5rem);
}

[dir="rtl"] .plan ul,
[dir="rtl"] .legal p {
  padding-left: 0;
  padding-right: 1.1rem;
}

[dir="rtl"] .workflow li::before {
  justify-self: end;
}

@media (max-width: 839px) {
  .site-header {
    padding: 0.1rem 0.55rem;
    padding-top: max(0.1rem, env(safe-area-inset-top));
  }

  .logo {
    font-size: 1.9rem;
  }

  .logo-mark {
    width: 3.25rem;
    height: 3.25rem;
  }

  .lang-menu summary {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Phone-first content density */
@media (max-width: 760px) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .page {
    width: min(72rem, calc(100% - 1.25rem));
    padding-bottom: 3rem;
  }

  .page-hero {
    padding: 1.75rem 0 1.1rem;
  }

  .page-hero h1,
  .hero-home h1 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .brand {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .lede {
    font-size: 1.02rem;
    margin-bottom: 1.25rem;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
    min-height: 2.85rem;
    justify-content: center;
  }

  .hero-home {
    min-height: auto;
    padding: 1.5rem 0 2.5rem;
    gap: 1.5rem;
  }

  .hero-visual.download-block #apk-qr {
    display: none;
  }

  .hero-visual.download-block {
    min-height: 0;
    padding: 1.1rem 1.15rem;
  }

  .hero-visual.download-block .label::after {
    content: " — tap Get the app above";
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
  }

  .how-audience {
    padding: 1.15rem 0.85rem 1.35rem;
    margin-inline: -0.15rem;
  }

  .how-products,
  .how-channels {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.15rem;
    overflow: visible;
  }

  .how-products {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }

  .how-product-tab,
  .how-channel {
    flex: 0 1 auto;
    min-height: 2.35rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.86rem;
  }

  .how-panel-sub {
    font-size: 0.98rem;
  }

  .feature-grid {
    gap: 0.75rem;
  }

  .feature,
  .plan {
    padding: 1rem 0.95rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    text-align: left;
  }

  .cta-band .cta,
  .cta-band .btn {
    width: 100%;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* prevent iOS focus zoom */
    min-height: 2.75rem;
  }

  .contact-form textarea {
    min-height: 8rem;
  }

  .contact-form .form-seg {
    flex-direction: column;
  }

  .contact-form .seg {
    min-height: 2.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .footer-nav {
    gap: 0.65rem 0.85rem;
  }

  .footer-brand {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .how-audience {
    padding: 1rem 0.7rem 1.2rem;
  }
}

.download-chooser {
  border-top: none;
  padding-top: 0.5rem;
}

.download-steps-title {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
}
