/* Oga Manager landing — colors match React tokens; layout replaces Tailwind utilities */

:root {
  --palette-brand: #7d1fc7;
  --palette-brand-hover: #6a2eb7;
  --palette-brand-deep: #4b1476;
  --palette-chrome-header: #3c2d58;
  --color-text: #111827;
  --color-border: #e5e7eb;
  --landing-accent: var(--palette-brand);
  --landing-btn-signup: var(--palette-chrome-header);
  --landing-btn-login: #806f91;
  --landing-blob: #f3edff;
  --landing-page: #f8f4fc;
  --landing-ink: #323232;
  --landing-curve: #d6bced;
  --landing-rule: #d9d2e3;
  --landing-cta-ink: #292d32;
  --landing-cta-headline: #d9c3ff;
  --landing-cta-gradient: linear-gradient(
    89.64deg,
    #3c2d58 0.18%,
    rgba(60, 45, 88, 0.8) 22.75%,
    rgba(60, 45, 88, 0.6) 30.36%,
    rgba(60, 45, 88, 0.4) 37.18%,
    rgba(60, 45, 88, 0.2) 42.66%,
    rgba(134, 126, 144, 0) 51.21%
  );
}

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

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--landing-page);
  font-family: Inter, system-ui, sans-serif;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button,
a {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-page {
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--landing-page);
}

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--landing-page);
}

.landing-header-inner {
  margin-inline: auto;
  display: flex;
  height: 3.5rem;
  max-width: 480px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1rem;
}

.landing-brand {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.landing-brand img {
  height: 33px;
  width: 30px;
}

.landing-brand span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.landing-menu-toggle {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0.25rem;
}

.landing-menu-toggle img {
  height: 1.5rem;
  width: 1.5rem;
  display: block;
}

.landing-header-desktop-nav {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.landing-mobile-menu {
  display: none;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  background: var(--landing-page);
  padding: 0.75rem 1rem;
}

.landing-mobile-menu.is-open {
  display: block;
}

.landing-mobile-menu.is-open[hidden] {
  display: block;
}

.landing-mobile-menu-inner {
  margin-inline: auto;
  display: flex;
  max-width: 480px;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-menu-signup {
  cursor: pointer;
  border-radius: 0.5rem;
  background: var(--landing-btn-signup);
  padding: 0.625rem 0.75rem;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.landing-menu-login {
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--palette-brand-deep);
  text-decoration: none;
}

.landing-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  cursor: pointer;
  border: 0;
  background: rgba(0, 0, 0, 0.2);
}

.landing-menu-backdrop.is-open,
.landing-menu-backdrop.is-open[hidden] {
  display: block;
}

@media (min-width: 1024px) {
  .landing-menu-toggle,
  .landing-mobile-menu,
  .landing-menu-backdrop {
    display: none !important;
  }

  .landing-header-desktop-nav {
    display: flex;
  }
}

/* Buttons */
.landing-btn {
  display: flex;
  height: 35px;
  width: 114px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.landing-btn-signup {
  background: var(--landing-btn-signup);
}

.landing-btn-login {
  background: var(--landing-btn-login);
}

/* Hero */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.5rem 2.5rem;
  text-align: center;
}

.landing-hero-title {
  margin: 0;
  max-width: 280px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--palette-brand-deep);
}

.landing-hero-body {
  margin: 0.75rem 0 0;
  max-width: 280px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}

.landing-hero-visual {
  margin-top: 1.75rem;
}

.landing-hero-painter {
  display: block;
  height: 240px;
  width: 217px;
}

.landing-hero-actions {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Problem */
.landing-problem {
  width: 100%;
}

.landing-problem-copy {
  background: var(--landing-blob);
  padding: 1.75rem 1.5rem 2.5rem;
}

.landing-problem-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--landing-ink);
}

.landing-problem-title .accent {
  color: var(--palette-brand-hover);
}

.landing-problem-body {
  margin: 0.875rem 0 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--landing-ink);
}

.landing-problem-rule {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--landing-rule);
}

.landing-problem-why {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--palette-brand-hover);
}

.landing-problem-tagline {
  margin: 0.25rem 0 0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--landing-ink);
}

/* Animation initial states (anime.js reveals) */
[data-animate]:not(.is-animated) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Landing marketing page — zigzag features track */

.landing-features {
  background: var(--landing-page);
  padding: 32px 0 40px;
  /* Do not set overflow-x:hidden here — with overflow-y:visible the browser
     computes Y as auto and this section becomes its own scrollport (link curves).
     Horizontal clip stays on body / .landing-page. */
  overflow: visible;
}

.landing-features-track {
  position: relative;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  padding: 0 18px;
}

.landing-feature-block {
  position: relative;
}

.landing-feature-blob {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 0;
  opacity: 1;
}

.landing-feature-blob img {
  display: block;
  max-width: none;
  opacity: 1;
}

.landing-feature-blob--work,
.landing-feature-blob--work img {
  width: 360px;
  height: 294px;
}

.landing-feature-blob--insights,
.landing-feature-blob--insights img {
  width: 402.63382854190246px;
  height: 311.85871055463286px;
}

.landing-feature-blob--notes,
.landing-feature-blob--notes img {
  width: 387px;
  height: 287px;
  margin-top: -4px;
}

.landing-feature-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
}

.landing-feature-row--reverse {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.landing-feature-row--reverse .landing-feature-photo-wrap {
  order: 2;
}

.landing-feature-row--reverse .landing-feature-copy {
  order: 1;
}

.landing-feature-photo-wrap {
  width: 170px;
  height: 189px;
  max-width: 170px;
  max-height: 189px;
  flex-shrink: 0;
  border-radius: 15px;
  box-shadow: 5px 7px 15px 0 #00000040;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.landing-feature-photo {
  width: 170px;
  height: 189px;
  display: block;
  object-fit: fill;
}

.landing-feature-copy {
  min-width: 0;
  padding-right: 2px;
}

.landing-feature-title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--palette-brand-deep);
}

.landing-feature-body {
  margin: 8px 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--landing-ink);
}

.landing-feature-link {
  position: relative;
  z-index: 2;
  display: flex;
  pointer-events: none;
  margin: -6px 0;
  line-height: 0;
  overflow: visible;
}

.landing-feature-link img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: none;
}

.landing-feature-link--1{
  justify-content: flex-end;
  margin-right: 80px;
}

.landing-feature-link--2 {
  justify-content: flex-start;
  margin-left: 27px;
  margin-top: -16px;
  margin-bottom: 2px;
}

.landing-feature-link--3 {
  justify-content: flex-start;
  margin-left: 30px;
}

.landing-feature-link--4 {
  justify-content: flex-end;
  margin-right: 65px;
}

.landing-feature-link--5 {
  justify-content: flex-end;
  margin-right: 52px;
  margin-top: -30px;
  margin-bottom: 0px;
}

@media (min-width: 768px) {
  .landing-features-track {
    margin-inline: auto;
  }
}

.landing-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 48px;
  text-align: center;
}

.landing-coming-title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--palette-brand-deep);
}

.landing-coming-subtitle {
  margin: 6px 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--palette-brand-deep);
}

.landing-coming-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 360px;
  max-width: 100%;
  height: 102px;
  margin-top: 28px;
  background: var(--landing-blob);
}

.landing-coming-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.landing-coming-item img {
  display: block;
  width: 50px;
  height: 50px;
}

.landing-coming-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #5b5c5c;
}

.landing-coming-footer {
  margin: 28px 0 0;
  padding: 0 12px;
  width: 100%;
  max-width: 360px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: #000;
  text-align: center;
}

.landing-problem-media {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.landing-problem-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.landing-cta {
  width: 100%;
}

.landing-cta-hero {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.landing-cta-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.landing-cta-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--landing-cta-gradient);
}

.landing-cta-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 24px 24px;
  pointer-events: none;
}

.landing-cta-headline {
  margin: 0;
  max-width: 160px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
  color: var(--landing-cta-headline);
}

.landing-cta-body {
  margin: 14px 0 0;
  max-width: 140px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: #fff;
}

.landing-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 48px;
  background: var(--landing-page);
}

.landing-cta-start {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--landing-cta-ink);
  text-align: center;
}

.landing-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.landing-footer {
  background: #fff;
  padding: 36px 24px 40px;
}

.landing-footer-inner {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}

.landing-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.landing-footer-heading {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  color: var(--landing-ink);
}

.landing-footer-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-footer-link {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  color: var(--landing-ink);
  text-decoration: none;
}

.landing-footer-link:hover {
  text-decoration: underline;
}

.landing-footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.landing-footer-social-link {
  display: inline-flex;
  color: #111;
}

.landing-footer-social-link img {
  display: block;
  width: 20px;
  height: 20px;
}

/* Desktop adaptation — mobile base rules above stay unchanged */
@media (min-width: 1024px) {
  .landing-header-inner {
    max-width: 1120px;
    padding-inline: 40px;
    height: 64px;
  }

  .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'title visual'
      'body visual'
      'actions visual';
    align-items: center;
    column-gap: 48px;
    max-width: 1120px;
    margin-inline: auto;
    padding: 56px 40px 72px;
    text-align: left;
  }

  .landing-hero-title {
    grid-area: title;
    max-width: 420px;
    font-size: 42px;
    line-height: 1.12;
    justify-self: start;
  }

  .landing-hero-body {
    grid-area: body;
    max-width: 420px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.45;
    justify-self: start;
  }

  .landing-hero-visual {
    grid-area: visual;
    margin-top: 0;
    justify-self: center;
  }

  .landing-hero-painter {
    width: 280px;
    height: 310px;
  }

  .landing-hero-actions {
    grid-area: actions;
    margin-top: 28px;
    justify-content: flex-start;
    justify-self: start;
    gap: 16px;
  }

  .landing-btn {
    width: 130px;
    height: 42px;
    font-size: 13px;
  }

  .landing-problem-media {
    max-width: 1120px;
    margin-inline: auto;
    height: auto;
    max-height: none;
  }

  .landing-problem-photo {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center top;
  }

  .landing-problem-copy {
    max-width: 1120px;
    margin-inline: auto;
    padding: 40px 40px 56px;
  }

  .landing-problem-title {
    font-size: 28px;
    line-height: 1.25;
    max-width: 640px;
  }

  .landing-problem-body {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 640px;
  }

  .landing-problem-why,
  .landing-problem-tagline {
    font-size: 14px;
  }

  .landing-features {
    padding: 56px 0 72px;
  }

  .landing-features-track {
    max-width: 720px;
    padding: 0 24px;
  }

  .landing-feature-row {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 24px;
  }

  .landing-feature-row--reverse {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .landing-feature-copy {
    max-width: 280px;
  }

  .landing-feature-row:not(.landing-feature-row--reverse) .landing-feature-copy {
    justify-self: start;
  }

  .landing-feature-row--reverse .landing-feature-copy {
    justify-self: end;
  }

  .landing-feature-photo-wrap {
    width: 240px;
    height: 266px;
    max-width: 240px;
    max-height: 266px;
    border-radius: 18px;
  }

  .landing-feature-photo {
    width: 240px;
    height: 266px;
  }

  .landing-feature-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .landing-feature-body {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  /* ~track scale (720/375 ≈ 1.92) so blobs still frame reverse rows like mobile */
  .landing-feature-blob--work,
  .landing-feature-blob--work img {
    width: 690px;
    height: 564px;
  }

  .landing-feature-blob--insights,
  .landing-feature-blob--insights img {
    width: 770px;
    height: 598px;
  }

  .landing-feature-blob--notes,
  .landing-feature-blob--notes img {
    width: 740px;
    height: 550px;
    margin-top: -8px;
  }

  .landing-feature-link {
    margin-block: -18px;
  }

  /* Explicit SVG size (not transform) so layout height matches the drawn curve */
  .landing-feature-link--1 svg {
    width: 490px;
    height: 204px;
  }

  .landing-feature-link--2 svg {
    width: 488px;
    height: 202px;
  }

  .landing-feature-link--3 svg {
    width: 480px;
    height: 230px;
  }

  .landing-feature-link--4 svg {
    width: 446px;
    height: 265px;
  }

  .landing-feature-link--5 svg {
    width: 442px;
    height: 257px;
  }

  .landing-feature-link--1 {
    margin-right: 154px;
  }

  .landing-feature-link--2 {
    margin-left: 52px;
    margin-top: -30px;
    margin-bottom: 4px;
  }

  .landing-feature-link--3 {
    margin-left: 58px;
  }

  .landing-feature-link--4 {
    margin-right: 125px;
  }

  .landing-feature-link--5 {
    margin-right: 100px;
    margin-top: -58px;
    margin-bottom: 0;
  }

  .landing-coming-soon {
    padding: 64px 40px 72px;
  }

  .landing-coming-title {
    font-size: 22px;
  }

  .landing-coming-subtitle {
    margin-top: 10px;
    font-size: 18px;
  }

  .landing-coming-bar {
    width: 640px;
    height: 140px;
    margin-top: 36px;
    gap: 72px;
  }

  .landing-coming-item {
    gap: 10px;
  }

  .landing-coming-item img {
    width: 64px;
    height: 64px;
  }

  .landing-coming-label {
    font-size: 14px;
  }

  .landing-coming-footer {
    margin-top: 36px;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.55;
  }

  .landing-cta-hero {
    max-width: 1120px;
    margin-inline: auto;
    height: auto;
    max-height: none;
  }

  .landing-cta-hero-img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center right;
  }

  .landing-cta-copy {
    position: absolute;
    inset: 0;
    max-width: none;
    margin-inline: 0;
    padding: 56px 40px;
    width: 100%;
  }

  .landing-cta-headline {
    max-width: 320px;
    font-size: 32px;
    line-height: 1.2;
  }

  .landing-cta-body {
    margin-top: 20px;
    max-width: 280px;
    font-size: 15px;
    line-height: 1.5;
  }

  .landing-cta-actions {
    padding: 72px 40px 64px;
  }

  .landing-cta-start {
    font-size: 20px;
  }

  .landing-cta-buttons {
    margin-top: 28px;
    gap: 20px;
  }

  .landing-footer {
    padding: 56px 40px 64px;
  }

  .landing-footer-inner {
    max-width: 800px;
  }

  .landing-footer-cols {
    column-gap: 120px;
  }

  .landing-footer-heading {
    font-size: 15px;
  }

  .landing-footer-links {
    margin-top: 18px;
    gap: 14px;
  }

  .landing-footer-link {
    font-size: 15px;
  }

  .landing-footer-social {
    margin-top: 48px;
    gap: 22px;
  }

  .landing-footer-social-link img {
    width: 24px;
    height: 24px;
  }
}
