/* Ritrova — matches iOS RitrovaTheme */
:root {
  --peach: #ffac8f;
  --peach-elevated: #f39e80;
  --peach-mist: #e69074;
  --cream: #f4e6da;
  --cream-soft: rgba(244, 230, 218, 0.88);
  --ink: #0a1220;
  --ink-soft: rgba(10, 18, 32, 0.58);
  --ink-faint: rgba(10, 18, 32, 0.1);
  --cta: #ffffff;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--peach);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.72;
}

/* ── Nav / footer ──────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.site-nav--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
}

.site-nav__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav__links {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--ink);
  opacity: 1;
}

.site-footer {
  padding: 2.25rem 1.5rem 2.75rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--ink-faint);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

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

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn--cta {
  background: var(--cta);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(10, 18, 32, 0.06);
}

.btn--cta:hover {
  background: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.2rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  font-weight: 500;
}

.btn--ghost:hover {
  transform: none;
  opacity: 0.65;
}

/* ── Hero: live map ────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--peach-mist);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(320px, 0.92fr) 1.2fr;
  }
}

.hero__copy {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.65rem;
  padding: 5.5rem 1.5rem 2.5rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 172, 143, 0.55) 0%, var(--peach) 38%, var(--peach-elevated) 100%);
}

@media (min-width: 960px) {
  .hero__copy {
    justify-content: center;
    padding: 5.5rem 2.25rem 4rem 2.35rem;
    background:
      linear-gradient(105deg, var(--peach) 0%, var(--peach) 78%, rgba(255, 172, 143, 0.4) 100%);
  }
}

/* Login-style stacked wordmark: Ri / tro / va + white bar */
.hero__brand-mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--cta);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.55rem, 5.2vw, 3.55rem);
  line-height: 0.86;
  letter-spacing: -0.042em;
  color: var(--ink);
  user-select: none;
}

.hero__brand-mark span {
  display: block;
}

.hero__copy-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero__copy-main h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  max-width: 20em;
}

.hero__copy-main > p {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 26rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.hero__stage {
  position: relative;
  min-height: 52vh;
  z-index: 1;
  background: #e8d5c8;
}

@media (min-width: 960px) {
  .hero__stage {
    min-height: 100%;
  }
}

.hero__map {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero__map .maplibregl-map {
  width: 100%;
  height: 100%;
  font: inherit;
}

.hero__map .maplibregl-ctrl-attrib {
  background: rgba(244, 230, 218, 0.82) !important;
  color: var(--ink-soft);
  font-size: 10px;
}

.hero__map .maplibregl-ctrl-group {
  border: 0 !important;
  box-shadow: 0 2px 10px rgba(10, 18, 32, 0.12) !important;
  overflow: hidden;
}

.hero__map .maplibregl-ctrl-group button {
  background: var(--cream) !important;
  width: 32px !important;
  height: 32px !important;
}

.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--peach) 0%, transparent 18%),
    linear-gradient(0deg, rgba(230, 144, 116, 0.2) 0%, transparent 22%);
}

@media (max-width: 959px) {
  .hero__fade {
    background: linear-gradient(0deg, var(--peach) 0%, transparent 28%);
  }
}

/* Folio map pins */
.folio-marker {
  background: transparent;
  border: 0;
}

.folio-pin {
  position: relative;
  width: 78px;
  height: 92px;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(10, 18, 32, 0.22));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.folio-pin:hover,
.folio-pin.is-active {
  transform: translateY(-4px) scale(1.05);
  z-index: 5;
}

.folio-pin__stack {
  position: relative;
  width: 58px;
  height: 72px;
  margin: 0 auto;
}

.folio-print {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 6px;
  padding: 3.5px 3.5px 8px;
  box-shadow: 0 2px 8px rgba(10, 18, 32, 0.14);
  transform: rotate(var(--r, 0deg));
}

.folio-print:nth-child(1) {
  --r: -8deg;
  left: -7px;
  top: 4px;
  z-index: 1;
}

.folio-print:nth-child(2) {
  --r: -1deg;
  z-index: 2;
}

.folio-print:nth-child(3) {
  --r: 7deg;
  left: 7px;
  top: -2px;
  z-index: 3;
}

.folio-print img {
  width: 100%;
  height: calc(100% - 4px);
  object-fit: cover;
  border-radius: 3px;
}

.folio-pin__stem {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 2px;
  height: 14px;
  background: var(--ink);
  opacity: 0.45;
  transform: translateX(-50%);
}

.folio-pin__dot {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(10, 18, 32, 0.25);
}

.folio-pin--sm {
  width: 56px;
  height: 70px;
}

.folio-pin--sm .folio-pin__stack {
  width: 42px;
  height: 52px;
}

.folio-pin--sm .folio-print:nth-child(3) {
  display: none;
}

/* ── Narrative sections ────────────────────────────────────── */

.section {
  padding: 4.75rem 1.5rem;
}

.section--cream {
  background: var(--cream);
}

.section--peach {
  background:
    radial-gradient(80% 70% at 100% 0%, var(--peach-elevated) 0%, transparent 55%),
    linear-gradient(180deg, var(--peach) 0%, var(--peach-elevated) 100%);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__label {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 16em;
}

.section__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 34rem;
}

.split {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split--reverse .split__visual {
    order: -1;
  }
}

/* Large folio showcase */
.folio-hero {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .folio-hero {
    height: 340px;
  }
}

.folio-hero__card {
  position: absolute;
  width: min(42vw, 168px);
  aspect-ratio: 3 / 3.75;
  background: #fff;
  border-radius: 10px;
  padding: 7px 7px 16px;
  box-shadow: 0 12px 36px rgba(10, 18, 32, 0.16);
  transform: rotate(var(--r, 0deg)) translate(var(--x, 0), var(--y, 0));
}

.folio-hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.folio-hero__card:nth-child(1) {
  --r: -11deg;
  --x: -58%;
  --y: 10px;
  z-index: 1;
}

.folio-hero__card:nth-child(2) {
  --r: -1.5deg;
  --x: 0;
  --y: 0;
  z-index: 2;
}

.folio-hero__card:nth-child(3) {
  --r: 9deg;
  --x: 58%;
  --y: -8px;
  z-index: 3;
}

@media (prefers-reduced-motion: no-preference) {
  .folio-hero__card {
    animation: folioFloat 7s ease-in-out infinite;
  }

  .folio-hero__card:nth-child(2) {
    animation-delay: -2.2s;
  }

  .folio-hero__card:nth-child(3) {
    animation-delay: -4.4s;
  }
}

@keyframes folioFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

/* Feature list (not cards — editorial rows) */
.features {
  display: grid;
  gap: 0;
  margin-top: 2.75rem;
  border-top: 1px solid var(--ink-faint);
}

.feature {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ink-faint);
}

@media (min-width: 700px) {
  .feature {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
  }
}

.feature__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 38rem;
}

.feature p + p {
  margin-top: 0.75rem;
}

/* Privacy closing */
.privacy-close {
  max-width: 36rem;
}

.privacy-close .btn {
  margin-top: 1.75rem;
}

/* ── Document pages (same language as home) ────────────────── */

.doc-page {
  min-height: 100svh;
  background: var(--cream);
}

.doc-hero {
  position: relative;
  padding: calc(5.25rem + env(safe-area-inset-top, 0px)) 1.5rem 2.75rem;
  background:
    radial-gradient(90% 80% at 100% 0%, var(--peach-elevated) 0%, transparent 55%),
    linear-gradient(165deg, var(--peach) 0%, var(--peach-elevated) 100%);
}

.doc-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.doc-hero .section__label {
  margin-bottom: 0.55rem;
}

.doc-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.doc-hero .muted {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.doc-body {
  padding: 2.75rem 1.5rem 1rem;
}

.doc-body__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.doc-body > .doc-body__inner > p:first-child {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.doc-body .features {
  margin-top: 1.5rem;
}

.doc-body .feature p,
.doc-body .feature li {
  color: var(--ink-soft);
}

.doc-body .feature ul {
  margin: 0;
  padding-left: 1.1rem;
}

.doc-body .feature li + li {
  margin-top: 0.55rem;
}

.doc-body .feature strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-lang-en {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 18, 32, 0.1);
}

.doc-lang-en > p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-copy {
  display: none !important;
}

html:not([data-legal]) .legal-copy[data-legal-lang="tr"],
html[data-legal="tr"] .legal-copy[data-legal-lang="tr"] {
  display: block !important;
}

html[data-legal="en"] .legal-copy[data-legal-lang="en"] {
  display: block !important;
}

html[data-legal="de"] .legal-copy[data-legal-lang="de"] {
  display: block !important;
}

html[data-legal="es"] .legal-copy[data-legal-lang="es"] {
  display: block !important;
}

html[data-legal="fr"] .legal-copy[data-legal-lang="fr"] {
  display: block !important;
}

html[data-legal="ja"] .legal-copy[data-legal-lang="ja"] {
  display: block !important;
}

html[data-legal="pt"] .legal-copy[data-legal-lang="pt-BR"] {
  display: block !important;
}

.legal-copy[hidden] {
  display: none !important;
}

.doc-lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.95rem;
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.doc-lang-switch a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.doc-body .doc__back {
  display: inline-block;
  margin: 2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.doc-body .doc__back::before {
  content: "← ";
}

.doc-page .site-footer {
  border-top-color: rgba(10, 18, 32, 0.08);
}

