/* Limora marketing site. Colours, fonts and radii follow the app's design tokens
   (limora-app ui/src/styles/tokens.css): slate header gradient, blue primary, sky
   accent, system fonts, and a dark theme that inverts the black logo artwork. */

:root {
  color-scheme: light;

  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-subtle: #f3f4f6;
  --text: #1f2937;
  --heading: #111827;
  --muted: #5b6270;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-text: #2563eb;
  --primary-tint: rgba(37, 99, 235, 0.08);
  --accent: #0ea5e9;
  --accent-text: #0369a1;

  --slate-start: #73808b;
  --slate-end: #c1c4c5;
  --band-start: #2b323a;
  --band-end: #46505a;
  --petal: rgba(115, 128, 139, 0.16);
  --petal-strong: rgba(115, 128, 139, 0.26);
  --glow: rgba(37, 99, 235, 0.16);

  --logo-filter: none;
  --header-bg: rgba(249, 250, 251, 0.82);
  --shadow-card: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-window: 0 30px 70px -20px rgba(17, 24, 39, 0.35), 0 8px 20px rgba(17, 24, 39, 0.08);

  --radius: 12px;
  --radius-lg: 20px;
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #14161a;
    --surface: #1a1d23;
    --surface-subtle: #20242b;
    --text: #e5e7eb;
    --heading: #f3f4f6;
    --muted: #a8afba;
    --border: #2c313a;
    --border-strong: #3d434e;

    --primary-text: #7aa7ff;
    --primary-tint: rgba(122, 167, 255, 0.12);
    --accent-text: #67d4e8;

    --petal: rgba(168, 175, 186, 0.08);
    --petal-strong: rgba(168, 175, 186, 0.13);
    --glow: rgba(37, 99, 235, 0.28);

    --logo-filter: invert(1);
    --header-bg: rgba(20, 22, 26, 0.82);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-window: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--primary-text);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  left: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 1.75rem;
  width: auto;
  filter: var(--logo-filter);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

@media (max-width: 40rem) {
  .nav a:not(.button) {
    display: none;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.65);
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.button.ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border-strong);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.button.light {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.5);
}

.button.light:hover {
  background: #eef2f7;
}

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

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}

/* Shapes borrowed from the logo mark: a quarter-round stem and a leaf. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-art span {
  position: absolute;
  display: block;
}

.hero-art .stem {
  right: -6rem;
  top: -4rem;
  width: 26rem;
  height: 38rem;
  border-radius: 100% 0 0 0;
  background: linear-gradient(160deg, var(--petal-strong), transparent 75%);
}

.hero-art .leaf {
  right: 14rem;
  bottom: -9rem;
  width: 30rem;
  height: 17rem;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(200deg, var(--petal), transparent 80%);
}

.hero-art .glow {
  right: 8%;
  top: 22%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary-text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- Product illustration ------------------------------------------------ */

.shot {
  margin: 0;
  min-width: 0;
}

.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.45;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(135deg, var(--slate-start), var(--slate-end));
}

.window-bar img {
  display: block;
  height: 1.05rem;
  width: auto;
}

.window-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #111827;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 0.15rem;
  padding: 0 0.6rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
  overflow: hidden;
  white-space: nowrap;
}

.tabs span {
  padding: 0.5rem 0.6rem;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.tabs .on {
  color: var(--primary-text);
  border-bottom-color: var(--primary-text);
  font-weight: 600;
}

.chat {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.bubble {
  justify-self: end;
  max-width: 85%;
  background: var(--primary);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: 14px 14px 4px 14px;
}

.answer {
  display: grid;
  gap: 0.65rem;
  max-width: 100%;
  min-width: 0;
}

.answer p {
  color: var(--text);
}

.code {
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text);
  overflow: hidden;
  white-space: pre;
}

.code .k {
  color: var(--primary-text);
}

.code .s {
  color: var(--accent-text);
}

.chart {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem 0.4rem;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart .axis {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.chart .grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.chart .a {
  stroke: var(--primary-text);
}

.chart .b {
  stroke: var(--slate-start);
}

.chart .a,
.chart .b {
  fill: none;
  stroke-width: 2.25;
  stroke-linejoin: round;
}

.chart text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 9px;
}

.chart .title {
  fill: var(--heading);
  font-weight: 600;
  font-size: 10px;
}

.js .chart .a,
.js .chart .b {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.6s 0.5s ease-out forwards;
}

.js .chart .b {
  animation-delay: 0.8s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.shot figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Formats strip ------------------------------------------------------- */

.formats {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.formats .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.75rem;
  padding-block: 1.25rem;
}

.formats p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.formats ul {
  display: contents;
  list-style: none;
}

.formats li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 800;
}

.section-head p:not(.eyebrow) {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

/* How it works */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.steps li:hover {
  transform: translateY(-3px);
  border-color: var(--primary-text);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 1.4rem;
}

.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Features */

.features {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.card {
  grid-column: span 6;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 0;
}

@media (min-width: 48rem) {
  .card {
    grid-column: span 3;
  }
}

@media (min-width: 64rem) {
  .card {
    grid-column: span 2;
  }

  .card.wide {
    grid-column: span 4;
  }

  .card.half {
    grid-column: span 3;
  }
}

.card .icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--primary-text);
  background: var(--primary-tint);
  border-radius: 12px 12px 12px 0;
}

.card .icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card.wide {
  background:
    radial-gradient(40rem 18rem at 100% 0%, var(--primary-tint), transparent 70%),
    var(--bg);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.pills li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--primary-text);
  background: var(--primary-tint);
}

/* Trust band: the app's dark header gradient. */

.trust {
  position: relative;
  color: #e5e7eb;
  background: linear-gradient(135deg, var(--band-start), var(--band-end));
  overflow: hidden;
  isolation: isolate;
}

.trust::before,
.trust::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: rgba(255, 255, 255, 0.05);
}

.trust::before {
  left: -5rem;
  top: -6rem;
  width: 20rem;
  height: 30rem;
  border-radius: 100% 0 0 0;
}

.trust::after {
  right: -6rem;
  bottom: -7rem;
  width: 30rem;
  height: 17rem;
  border-radius: 0 100% 0 100%;
}

.trust h2,
.trust h3 {
  color: #ffffff;
}

.trust .eyebrow {
  color: #8fe1f0;
}

.trust .section-head p:not(.eyebrow) {
  color: #cdd3db;
}

.trust-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-grid li {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.trust-grid p {
  color: #cdd3db;
  font-size: 0.97rem;
}

/* Plain statement of what Limora is for */

.note {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.note blockquote {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--surface);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--heading);
}

.note blockquote strong {
  color: var(--accent-text);
}

/* Closing call to action */

.closing {
  text-align: center;
}

.closing .panel {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(135deg, var(--slate-start), var(--slate-end));
  overflow: hidden;
  isolation: isolate;
}

.closing .panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.3));
}

.closing h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  color: #ffffff;
}

.closing p {
  margin: 1rem auto 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: #e5e7eb;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.site-footer img {
  display: block;
  height: 1.25rem;
  width: auto;
  filter: var(--logo-filter);
  opacity: 0.85;
}

.site-footer .fine {
  flex-basis: 100%;
  font-size: 0.82rem;
}

/* --- 404 ----------------------------------------------------------------- */

.missing {
  min-height: 70vh;
  display: grid;
  align-items: center;
}

.missing h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
}

/* --- Scroll reveal (only when the script has run) ------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .chart .a,
  .js .chart .b {
    animation: none;
    stroke-dashoffset: 0;
  }

  .button,
  .steps li {
    transition: none;
  }
}
