/* Landing page (/ and /en/). Tokens, nav, buttons and the mobile install bar come from site.css. */

/* =========================
   PRIMITIVES
========================= */

main > section {
  padding: 96px 0;
}

.btn-lg {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  font-weight: 650;
}

.btn-light:hover {
  background: var(--bg-muted);
  border-color: var(--bg-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.pill-brand {
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.pill-live-soft {
  color: var(--live);
  background: var(--live-bg);
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

.sub {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.src {
  color: var(--brand-hover);
  font-weight: 600;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--brand-ink);
}

/* =========================
   NAV: language toggle
========================= */

.nav-inner {
  height: 68px;
  gap: 24px;
}

.nav-links {
  flex-grow: 1;
  gap: 24px;
  font-size: 15px;
}

.lang-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
}

.lang-toggle a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.lang-toggle a:hover {
  color: var(--ink);
}

.lang-toggle a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 72px 0 40px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-sub {
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-muted);
}

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

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 20px;
}

.hero-checks svg {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--live);
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.works-with-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.works-with-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.works-with-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 20px;
}

.works-with-list img {
  display: block;
  flex: none;
  width: auto;
  height: 24px;
}

/* App preview */
.shot {
  flex: 1 1 460px;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}

.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.shot-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.shot-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.shot-head .pill {
  align-self: flex-start;
}

.shot-title {
  font-size: 18px;
  font-weight: 700;
}

.shot-meta {
  font-size: 13px;
  color: var(--ink-subtle);
}

.shot-summary {
  font-size: 14px;
  color: var(--ink-muted);
}

.shot-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot-step {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.shot-step-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-subtle);
}

/* "You need" strip */
.hero-needs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 48px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.hero-needs-title {
  font-weight: 700;
  color: var(--ink);
}

.hero-needs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.hero-needs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-needs svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* =========================
   HOW IT WORKS
========================= */

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 32px;
}

.step-list {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.step-tab:hover {
  border-color: var(--brand-line);
}

.step-tab[aria-selected="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  font-weight: 700;
}

.step-tab[aria-selected="true"] .step-num {
  background: var(--brand);
  color: #fff;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-text b {
  font-size: 18px;
}

.step-text span {
  font-size: 15px;
  color: var(--ink-muted);
}

.step-text small {
  font-size: 13px;
  font-weight: 500;
  color: var(--chat);
}

.step-stage {
  flex: 1 1 460px;
  min-width: 0;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step-panel {
  /* Keep a tapped panel clear of the sticky header and the phone install bar when it scrolls into view. */
  scroll-margin: 80px 0 96px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Up to 968px the cards stack (the list and the stage no longer fit side by side).
   There the panel opens directly under the card that was tapped, not below all three:
   both wrappers dissolve into one grid and each card/panel pair gets adjacent order values.
   Update the three pairs if a step is added. */
@media (max-width: 968px) {
  .steps {
    display: grid;
    gap: 12px;
  }

  .step-list,
  .step-stage {
    display: contents;
  }

  .step-tab:nth-child(1) { order: 1; }
  .step-panel:nth-child(1) { order: 2; }
  .step-tab:nth-child(2) { order: 3; }
  .step-panel:nth-child(2) { order: 4; }
  .step-tab:nth-child(3) { order: 5; }
  .step-panel:nth-child(3) { order: 6; }

  .step-panel:not([hidden]) {
    padding: 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
}

.step-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-card-narrow {
  max-width: 380px;
  padding: 28px;
}

.step-card-flush {
  max-width: 400px;
  gap: 0;
  padding: 0;
}

.step-card p {
  font-size: 13px;
  color: var(--ink-muted);
}

.store-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-head b {
  display: block;
  font-size: 17px;
}

.store-head small {
  font-size: 13px;
  color: var(--ink-subtle);
}

.store-mark {
  width: 48px;
  height: 48px;
}

.store-btn {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.store-btn:hover {
  background: #1765cc;
}

.signin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signin-title {
  font-size: 20px;
}

.field {
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-subtle);
}

.field-center {
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

.field-brand {
  border-color: var(--brand);
  background: var(--brand);
  text-align: center;
  font-weight: 600;
  color: #fff;
}

.signin-or {
  text-align: center;
  font-size: 12px;
  color: var(--ink-subtle);
}

.signin p {
  font-weight: 500;
  color: var(--live);
}

.capture-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.capture-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13px;
}

.feed-line {
  display: flex;
  gap: 10px;
}

.feed-line time {
  flex: none;
  font-family: var(--font-mono);
  color: var(--ink-subtle);
}

.feed-line b {
  display: block;
}

.capture-tip {
  padding: 12px 16px;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-ink);
}

/* =========================
   FEATURES + ROLES
========================= */

.features {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.card h3 {
  font-size: 20px;
  font-weight: 650;
}

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

.roles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

.roles-title {
  font-size: 24px;
  font-weight: 650;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.role-tab:hover {
  background: var(--bg-muted);
}

.role-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.role-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.role-copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-copy h4 {
  font-size: 22px;
  font-weight: 650;
}

.role-copy p {
  color: var(--ink-muted);
}

.role-mock {
  flex: 1 1 340px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.role-mock-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.role-mock-head span {
  color: var(--ink-subtle);
}

.role-mock ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
}

.role-mock li {
  display: flex;
  gap: 8px;
}

.role-mock svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--brand);
}

/* =========================
   PRIVACY
========================= */

.privacy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.privacy-intro {
  flex: 1 1 320px;
  min-width: 0;
}

.privacy-list {
  flex: 2 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.privacy-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.privacy-list span {
  font-size: 15px;
  color: var(--ink-muted);
}

/* =========================
   FAQ
========================= */

.faq {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.faq-aside {
  flex: 1 1 300px;
  min-width: 0;
}

.faq-aside .sub {
  font-size: 16px;
}

.faq-aside a {
  color: var(--brand-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--ink-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer a {
  color: var(--brand-hover);
  text-decoration: underline;
}

.faq-plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 18px;
}

/* =========================
   CTA BAND
========================= */

.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 56px 40px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  max-width: 20em;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

.cta-band p {
  color: #c9ccd8;
}

/* =========================
   FOOTER
========================= */

.site-foot {
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--ink-muted);
}

.site-foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 860px) {
  main > section {
    padding: 72px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-grid {
    gap: 40px;
  }

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

  .privacy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* The sticky install bar already carries this button on phones; repeating it just stacks two identical buttons. */
  .hero-actions .btn-primary,
  .cta-band .btn {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-sub {
    font-size: 17px;
  }

  .step-tab {
    padding: 16px;
  }

  .step-stage {
    padding: 20px;
  }

  .role-panel {
    padding: 20px;
  }

  .cta-band {
    padding: 40px 24px;
  }
}
