/* ---------------------------------------------------------------
   Orvane marketing site — design tokens
   Ported from apps/web (globals.css). Warm/cream brand.
   --------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #f6efe3;
  --surface: #ffffff;

  /* Text */
  --ink: #1c1a15;
  --muted: #7a7065;

  /* Brand */
  --brand: #1f5a5e;
  --brand-soft: #cfe0dd;

  /* Accent (used sparingly) */
  --accent: #c8643b;

  /* Lines & shadows */
  --hairline: #1c1a151a;
  --shadow-sm: 0 1px 0 #1c1a1508;

  --radius-card: 12px;
  --radius-control: 8px;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;

  --maxw: 72rem; /* 1152px, matches max-w-6xl */
  --maxw-legal: 48rem; /* 768px, matches max-w-3xl */
}

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

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

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  /* Faint grain overlay (~3% opacity), identical asset to the web app */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSIyIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDAgIDAgMCAwIDAgMCAgMCAwIDAgMCAwICAwIDAgMCAwLjYgMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC41Ii8+PC9zdmc+Cg==");
  background-repeat: repeat;
  background-size: 120px 120px;
  background-blend-mode: multiply;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-legal {
  max-width: var(--maxw-legal);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container,
  .container-legal {
    padding-inline: 2.5rem;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: "opsz" 48;
}

.brand__mark {
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--ink);
}

/* Language switcher (header + footer) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch__link {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch__link:hover {
  color: var(--ink);
}

.lang-switch__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #b4582f;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: #1c1a150a;
}

.btn--sm {
  height: 2.25rem;
  padding-inline: 0.875rem;
  font-size: 14px;
}

.btn--lg {
  height: 3rem;
  padding-inline: 1.5rem;
  font-size: 16px;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero__title {
  font-weight: 500;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 50;
}

.hero__flourish {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand);
  font-size: clamp(19px, 3vw, 22px);
  line-height: 1.375;
  max-width: 36rem;
  font-variation-settings: "opsz" 36;
}

.hero__lede {
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.7;
  max-width: 36rem;
}

.hero__cta {
  margin-top: 2.5rem;
}

.hero__media {
  position: relative;
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 #1c1a1508;
}

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

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(
    180deg,
    rgba(28, 26, 21, 0) 60%,
    rgba(28, 26, 21, 0.12) 100%
  );
}

@media (min-width: 768px) {
  .hero {
    padding-top: 7rem;
    padding-bottom: 8rem;
  }
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
  .hero__copy {
    padding-top: 3rem;
  }
}

/* fade-up entrance, ported from the web landing */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-1 {
  animation: fadeUp 700ms ease-out both;
}
.fade-2 {
  animation: fadeUp 900ms ease-out both;
}
.fade-3 {
  animation: fadeUp 1000ms ease-out both;
}
.fade-4 {
  animation: fadeUp 1100ms ease-out both;
}
.fade-5 {
  animation: fadeUp 1200ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-1,
  .fade-2,
  .fade-3,
  .fade-4,
  .fade-5 {
    animation: none;
  }
}

/* ---------------------------------------------------------------
   Features
   --------------------------------------------------------------- */
.features {
  padding-block: 5rem;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 2rem;
  box-shadow: 0 1px 0 #1c1a1508;
}

.feature-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.feature-card__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}

.feature-card__body {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .features {
    padding-block: 7rem;
  }
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
  .feature-card {
    padding: 2.25rem;
  }
  .feature-card--offset-1 {
    margin-top: 2.5rem;
  }
  .feature-card--offset-2 {
    margin-top: 1rem;
  }
}

/* ---------------------------------------------------------------
   How it works
   --------------------------------------------------------------- */
.how {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.how__inner {
  padding-block: 5rem;
}

.how__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 36rem;
  font-variation-settings: "opsz" 48;
}

.steps {
  margin-top: 3.5rem;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
}

.step__num {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: clamp(72px, 10vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}

.step__text {
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  max-width: 28ch;
}

@media (min-width: 768px) {
  .how__inner {
    padding-block: 7rem;
  }
  .steps {
    margin-top: 5rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* ---------------------------------------------------------------
   Closing CTA
   --------------------------------------------------------------- */
.closing {
  padding-block: 7rem;
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}

.closing__subtitle {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand);
  font-size: 18px;
  font-variation-settings: "opsz" 36;
}

.closing__cta {
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .closing {
    padding-block: 9rem;
  }
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer__inner {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--ink);
}

@media (min-width: 640px) {
  .site-footer__inner {
    height: 4rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0;
  }
}

/* ---------------------------------------------------------------
   Legal pages
   --------------------------------------------------------------- */
.legal-main {
  padding-block: 4rem;
  width: 100%;
}

.legal-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 96;
}

.legal-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 3rem;
}

.legal-lede {
  color: var(--ink);
  font-size: clamp(18px, 2.5vw, 19px);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 58ch;
}

.legal-section {
  margin-top: 2.5rem;
  max-width: 58ch;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-variation-settings: "opsz" 36;
}

.legal-section p {
  color: rgba(28, 26, 21, 0.85);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.legal-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-right: 0.75rem;
}

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.legal-section a:hover {
  text-decoration-color: var(--ink);
}

.legal-contact-note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .legal-main {
    padding-block: 6rem;
  }
}
