/* Bidi's website. The colors are the app's theme (src/theme/colors.ts); light only, like the app.
   Layout uses logical properties (start / end), so it follows the page's RTL direction. */

:root {
  --primary: #6c47ff;
  --primary-pressed: #5534e0;
  --primary-soft: #efebff;
  --background: #ffffff;
  --surface: #f6f6f9;
  --text: #14141a;
  --text-secondary: #5f6070;
  --border: #e6e6ee;
  --warning: #8a5300;
  --warning-soft: #fff4e0;
  --radius: 16px;
  --radius-small: 10px;
  --wrap: 1040px;
  --prose: 720px;
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Hebrew', 'Segoe UI', 'Noto Sans Hebrew', Arial,
    sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-pressed);
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  padding: 8px 14px;
  border-radius: var(--radius-small);
  background: var(--primary);
  color: #fff;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 92%);
  position: sticky;
  top: 0;
  z-index: 5;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

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

.mark {
  width: auto;
  height: 28px;
}

.site-header nav a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  margin-top: 64px;
  padding-block: 32px calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-note {
  margin: 0;
}

/* Buttons */

/* inline-block, not flex: a flex container would split the label around its .nowrap spans. */
.button,
.store-button {
  display: inline-block;
  min-height: 50px;
  padding: 12px 24px;
  line-height: 26px;
  text-align: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.store-button:hover {
  background: var(--primary-pressed);
  color: #fff;
}

.button.is-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.store-button {
  background: var(--text);
}

.store-button:hover {
  background: #000;
}

.store-button.is-soon {
  background: var(--text);
  color: #fff;
  cursor: default;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-block: 8px 12px;
}

.store-note {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Home */

.hero {
  padding-block: 56px 48px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--primary-soft) 0%, rgb(239 235 255 / 0%) 100%),
    var(--background);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 12px 32px rgb(85 49 232 / 28%);
  margin-bottom: 24px;
}

.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-inline: auto;
}

.prose .lead {
  margin-inline: 0;
}

.hero-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.section {
  padding-block: 40px;
}

.section-title {
  font-size: clamp(24px, 4vw, 30px);
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.card p,
.feature p {
  margin: 0;
  color: var(--text-secondary);
}

.icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
}

.icon-large {
  width: 40px;
  height: 40px;
}

.band {
  background: var(--primary-soft);
}

.band-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.band-inner p {
  margin: 0;
  max-width: 680px;
}

.features {
  display: grid;
  gap: 24px 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature {
  display: flex;
  gap: 16px;
}

.feature h3 {
  margin-bottom: 4px;
}

.cta {
  text-align: center;
}

.cta-inner {
  padding: 40px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #7c5cff, #5531e8);
  color: #fff;
  max-width: 880px;
}

.cta-inner p {
  color: rgb(255 255 255 / 88%);
}

.cta .store-button,
.cta .store-button.is-soon {
  background: #fff;
  color: var(--text);
}

.cta .store-note {
  color: rgb(255 255 255 / 88%);
}

/* Text pages: support, account deletion, the legal documents */

.prose {
  max-width: var(--prose);
  padding-block: 40px 0;
}

.prose h2 {
  margin-top: 1.6em;
  scroll-margin-top: 80px;
}

.prose h3 {
  margin-top: 1.2em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-inline-start: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-small);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 15px;
}

.contact-cards {
  display: grid;
  gap: 16px;
  margin-block: 24px 8px;
}

.contact-card {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card h2 {
  margin-top: 0;
  font-size: 20px;
}

.contact-card > :last-child {
  margin-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq details > :not(summary) {
  color: var(--text-secondary);
}

.faq details > :last-child {
  margin-bottom: 16px;
}

.see-also {
  margin-top: 32px;
  color: var(--text-secondary);
}

.not-found {
  text-align: center;
  padding-block: 80px 0;
}

.not-found .button {
  margin: 4px;
}

@media (min-width: 720px) {
  .hero {
    padding-block: 88px 72px;
  }

  .section {
    padding-block: 56px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}
