/* Sublo — marketing site. Same palette and type as the app (SubloColors). */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #f6f3fa;
  --surface: #ffffff;
  --surface-2: #eee8f5;
  --line: #e4dcee;
  --text: #1e1828;
  --text-2: #665c75;
  --text-3: #8f84a0;
  --accent: #6b4ee6;
  --on-accent: #ffffff;
  --ring: rgba(107, 78, 230, 0.16);
  --dot: #f08a2c;
  --phone: #07060a;
  --shadow: 0 30px 60px -28px rgba(30, 24, 40, 0.35);
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15111c;
    --surface: #201a29;
    --surface-2: #2b2436;
    --line: #342c40;
    --text: #f3eef8;
    --text-2: #a99eb8;
    --text-3: #7d728e;
    --accent: #b69cff;
    --on-accent: #1b1326;
    --ring: rgba(182, 156, 255, 0.2);
    --dot: #ffb86b;
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
}

h1,
h2 {
  text-wrap: balance;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---- Header ---- */

.site-header {
  padding-block: 20px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}

.site-nav a:not(.button) {
  color: var(--text-2);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--text);
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
}

/* Official Google Play badge — used unaltered, at least 40px tall. */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
}

.store-badge img {
  height: 60px;
  width: auto;
}

.store-badge:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Hero ---- */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-block: 40px 96px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 12ch;
  text-wrap: balance;
}

.hero .lede {
  margin: 24px 0 32px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 34ch;
}

.hero .note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

/* Phone with the orbit behind it — the one bold element. */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 150%;
  max-width: 720px;
  aspect-ratio: 1;
  color: var(--ring);
}

.orbit .dot {
  fill: var(--dot);
}

.hero .orbit {
  animation: arrive 1.8s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

@keyframes arrive {
  from {
    transform: rotate(-70deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero .orbit {
    animation: none;
  }
}

.phone {
  width: min(320px, 78vw);
  aspect-ratio: 1080 / 2400;
  border-radius: 44px;
  border: 10px solid var(--phone);
  background: var(--phone);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Feature rows ---- */

.section-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-lede {
  margin: 0;
  color: var(--text-2);
  font-size: 19px;
  max-width: 46ch;
}

.features {
  padding-block: 24px 40px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 56px;
}

.feature:nth-child(even) .stage {
  order: -1;
}

.feature h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
  max-width: 40ch;
}

.feature .phone {
  width: min(280px, 70vw);
}

.feature .orbit {
  width: 120%;
  max-width: 520px;
}

/* ---- Everything else, listed ---- */

.more {
  padding-block: 72px;
}

.more ul {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.more li {
  background: var(--surface);
  padding: 24px 26px;
}

.more li strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.more li span {
  color: var(--text-2);
  font-size: 15px;
}

/* ---- Privacy + free bands ---- */

.bands {
  padding-block: 32px 72px;
}

.bands .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.band {
  background: var(--surface);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
}

.band h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.band p {
  margin: 0 0 12px;
  color: var(--text-2);
}

.band p:last-child {
  margin-bottom: 0;
}

/* ---- Closing call ---- */

.closing {
  padding-block: 40px 96px;
  text-align: center;
}

.closing .stage {
  margin-bottom: 8px;
}

.closing .orbit {
  width: 320px;
}

.closing img.icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.closing h2 {
  margin: 36px auto 24px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 16ch;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  font-size: 14px;
  color: var(--text-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

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

/* ---- Legal / support pages (rendered Markdown) ---- */

.doc {
  padding-block: 24px 80px;
}

.doc article {
  max-width: 70ch;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 16px 0 8px;
}

.doc h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 36px 0 8px;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc strong {
  color: var(--text);
}

.doc ul,
.doc ol {
  padding-left: 1.2em;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* ---- Small screens ---- */

@media (max-width: 860px) {
  .hero .wrap,
  .feature,
  .bands .wrap {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    padding-block: 16px 64px;
    gap: 56px;
  }

  .feature {
    gap: 40px;
    padding-block: 40px;
  }

  .feature:nth-child(even) .stage {
    order: 0;
  }

  .more ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav a:not(.button) {
    display: none;
  }

  body {
    font-size: 16px;
  }
}
