/*
 * Symbiose marketing site.
 * One stylesheet, no build step, no framework. The tokens mirror
 * apps/mobile/src/design/theme.ts so the site and the app read as one product.
 */

:root {
  --ink: #102a52;
  --ink-soft: #38507a;
  --muted: #647594;
  --background: #ffffff;
  --surface: #f6f9fd;
  --surface-raised: #ffffff;
  --border: #dce6f4;
  --border-strong: #c6d6ec;

  --navy: #061f4b;
  --navy-light: #123f85;
  --mint: #12b8a6;
  --mint-light: #35e2b2;
  --accent: #2675f3;
  --accent-strong: #155ed2;
  --accent-soft: #eaf2ff;

  --radius-control: 14px;
  --radius-panel: 18px;
  --radius-bubble: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 2px 10px rgba(23, 32, 51, 0.06);
  --shadow-raised: 0 18px 48px rgba(23, 32, 51, 0.1);

  --measure: 1120px;
  --gutter: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__head p {
  margin-top: 14px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button--primary {
  background: var(--navy);
  color: #fff;
}

.button--primary:hover {
  background: var(--navy-light);
}

.button--ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* Store badges: custom, brand-neutral marks rather than the vendor artwork. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: var(--radius-control);
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  transition: transform 120ms ease, background-color 160ms ease;
}

.store-badge:hover {
  background: var(--navy-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.store-badge svg {
  flex: none;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge__text small {
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.store-badge__text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto 38%;
  height: 620px;
  background: radial-gradient(
    closest-side,
    rgba(53, 226, 178, 0.22),
    rgba(53, 226, 178, 0)
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 64px;
  align-items: center;
}

.hero h1 .accent {
  background: linear-gradient(96deg, var(--mint) 10%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__copy p.lede {
  margin: 22px 0 30px;
  max-width: 46ch;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

.pill--mint {
  background: rgba(18, 184, 166, 0.12);
  color: #0b7f72;
}

/* ------------------------------------------------------------ phone demo */

.phone {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 380 / 780;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(170deg, #16305f, #061f4b);
  box-shadow: var(--shadow-raised);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.phone__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(150deg, var(--mint-light), var(--mint));
  color: #06342f;
  font-size: 13px;
  font-weight: 700;
}

.phone__who strong {
  display: block;
  font-size: 15px;
}

.phone__who span {
  font-size: 12px;
  color: var(--muted);
}

.phone__thread {
  flex: 1;
  overflow: hidden;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: var(--radius-bubble);
  font-size: 14.5px;
  line-height: 1.45;
  animation: rise 260ms ease both;
}

.msg--them {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 8px;
}

.msg--me {
  align-self: flex-end;
  background: linear-gradient(160deg, #eafaf5, #d8f4ec);
  border: 1px solid rgba(18, 184, 166, 0.3);
  border-bottom-right-radius: 8px;
}

.msg__translation {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 13.5px;
}

.msg__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(38, 117, 243, 0.1);
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 600;
}

.msg__tag--mint {
  background: rgba(18, 184, 166, 0.14);
  color: #0b7f72;
}

.card-note {
  align-self: center;
  width: 92%;
  padding: 12px 14px;
  border-radius: var(--radius-panel);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--ink-soft);
  animation: rise 260ms ease both;
}

.card-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

.card-note em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.phone__composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.phone__input {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
}

.phone__input:empty::before {
  content: "Message";
  color: var(--muted);
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 16px;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.phone__send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  padding-top: 22px;
  border-top: 2px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius-panel);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color 160ms ease, transform 160ms ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------- compare */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.compare__card {
  padding: 28px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  background: #fff;
}

.compare__card--ours {
  border-color: rgba(18, 184, 166, 0.4);
  background: linear-gradient(180deg, #f4fdfa, #ffffff);
}

.compare__card h3 {
  font-size: 17px;
}

.compare__card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.compare__card li {
  padding-left: 24px;
  position: relative;
}

.compare__card li::before {
  content: "–";
  position: absolute;
  left: 4px;
  color: var(--muted);
}

.compare__card--ours li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 700;
}

/* --------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.plan {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  background: #fff;
}

.plan--featured {
  border-color: var(--navy);
  box-shadow: var(--shadow-raised);
}

.plan__flag {
  position: absolute;
  top: -12px;
  left: 30px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.plan__summary {
  color: var(--muted);
  font-size: 15px;
}

.plan ul {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.plan li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

.plan .button {
  width: 100%;
}

.pricing-note {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------- faq */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px 22px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ------------------------------------------------------------------- cta */

.cta {
  padding: 64px 40px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(140deg, var(--navy) 20%, #12457f 90%);
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin: 14px auto 28px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.76);
}

.cta .stores {
  justify-content: center;
}

.cta .store-badge {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.cta .store-badge:hover {
  background: #eaf2ff;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer small {
  color: var(--muted);
}

/* ------------------------------------------------------------------ blog */

.blog-hero {
  padding: 64px 0 40px;
}

.blog-hero h1 {
  font-size: clamp(34px, 4.4vw, 46px);
}

.blog-hero p {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.post-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.post-card__meta {
  font-size: 13.5px;
  color: var(--muted);
}

.post-card__meta span {
  display: block;
}

.post-card__meta .tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 12px;
}

.post-card h2 {
  font-size: 23px;
}

.post-card h2 a {
  color: var(--ink);
}

.post-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 72px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.article h1 {
  font-size: clamp(32px, 4.2vw, 44px);
}

.article__lede {
  margin-top: 18px;
  font-size: 19px;
  color: var(--ink-soft);
}

.article__body {
  margin-top: 36px;
}

.article__body h2 {
  margin: 40px 0 12px;
  font-size: 25px;
}

.article__body h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.article__body p,
.article__body ul,
.article__body ol {
  margin-top: 14px;
  color: var(--ink-soft);
}

.article__body ul,
.article__body ol {
  padding-left: 22px;
}

.article__body li {
  margin-top: 8px;
}

.article__body blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--mint);
  color: var(--ink);
  font-size: 19px;
}

.article__body strong {
  color: var(--ink);
}

.breadcrumb {
  padding-top: 26px;
  font-size: 14px;
  color: var(--muted);
}

.article-cta {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  background: var(--surface);
}

.article-cta h3 {
  font-size: 19px;
}

.article-cta p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.article-cta .stores {
  margin-top: 18px;
}

.related {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 72px;
}

.related h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.related li {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------- queries */

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .steps,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .site-nav {
    display: none;
  }

  .steps,
  .features,
  .compare,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cta {
    padding: 44px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
