:root {
  --ink: #141416;
  --muted: #676c77;
  --soft: #8a8f9a;
  --paper: #ffffff;
  --line: rgba(20, 20, 22, 0.1);
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: #eaf4fa;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: 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;
}

/* ------------------------------- Sky backdrop ------------------------------ */

.landing-page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  background: #eaf4fa;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #edf7fc 0%, #ddecf6 42%, #f4fafc 100%);
}

.sky-sun {
  position: absolute;
  top: -18%;
  left: -8%;
  width: 54vw;
  height: 54vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 248, 214, 0.95) 0%, rgba(255, 244, 196, 0.55) 22%, rgba(255, 250, 230, 0.18) 46%, rgba(255, 255, 255, 0) 70%);
  filter: blur(14px);
  opacity: 0.95;
}

.cloud {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  filter: blur(26px);
  opacity: 0.72;
  animation: cloud-drift 26s ease-in-out infinite alternate;
}

.cloud--one {
  top: -6%;
  left: 24%;
  width: 34vw;
  height: 16vw;
  animation-delay: -4s;
}

.cloud--two {
  top: 2%;
  right: -6%;
  width: 34vw;
  height: 20vw;
  opacity: 0.8;
  animation-delay: -11s;
}

.cloud--three {
  top: 30%;
  left: -10%;
  width: 28vw;
  height: 18vw;
  opacity: 0.48;
  filter: blur(34px);
  animation-delay: -18s;
}

.cloud--four {
  bottom: -10%;
  right: 12%;
  width: 46vw;
  height: 22vw;
  opacity: 0.56;
  filter: blur(38px);
  animation-delay: -8s;
}

.cloud--five {
  top: 58%;
  right: -12%;
  width: 24vw;
  height: 18vw;
  opacity: 0.4;
  filter: blur(30px);
  animation-delay: -22s;
}

@keyframes cloud-drift {
  from { transform: translate3d(-1.5%, 0, 0) scale(0.98); }
  to { transform: translate3d(2.5%, 1.2%, 0) scale(1.04); }
}

/* ------------------------------ Floating tiles ----------------------------- */

.icon-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.float-icon {
  --r: -4deg;
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(48px, 4.3vw, 84px);
  aspect-ratio: 1;
  border-radius: clamp(13px, 1.35vw, 24px);
  box-shadow:
    0 18px 34px rgba(46, 68, 90, 0.16),
    0 3px 8px rgba(46, 68, 90, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(var(--r));
  animation: icon-drift 8s ease-in-out infinite alternate;
}

.float-icon img {
  width: 42%;
  height: 42%;
  object-fit: contain;
  display: block;
}

.float-icon--blur {
  filter: blur(2.6px);
  opacity: 0.72;
}

.float-icon--slate { background: linear-gradient(145deg, #5d616b, #3f434b); }
.float-icon--violet { background: linear-gradient(145deg, #8b6bff, #6f4df0); }
.float-icon--green { background: linear-gradient(145deg, #4ade80, #22b861); }
.float-icon--ink { background: linear-gradient(145deg, #33353c, #18191d); }
.float-icon--paper { background: linear-gradient(145deg, #ffffff, #eef1f4); border: 1px solid rgba(20, 20, 22, 0.08); }
.float-icon--orange { background: linear-gradient(145deg, #ff6a2b, #f14c17); }
.float-icon--lime { background: linear-gradient(145deg, #edff57, #d9f22c); }
.float-icon--magenta { background: linear-gradient(145deg, #c13b92, #9f2374); }
.float-icon--cyan { background: linear-gradient(145deg, #7fe7f3, #4cc9dd); }
.float-icon--pearl { background: linear-gradient(145deg, #f5f1fb, #ddd7ee); }

.float-icon--1 { top: 8%; left: 3.5%; width: clamp(42px, 3.8vw, 72px); --r: -8deg; animation-delay: -2s; }
.float-icon--2 { top: 12%; left: 22.5%; width: clamp(58px, 5.1vw, 96px); --r: -13deg; animation-delay: -5s; }
.float-icon--3 { top: 8%; left: 35.5%; width: clamp(48px, 4.2vw, 78px); --r: -7deg; animation-delay: -1s; }
.float-icon--4 { top: 9.5%; left: 63%; width: clamp(42px, 3.6vw, 66px); --r: 8deg; animation-delay: -7s; }
.float-icon--5 { top: 14%; left: 74%; width: clamp(54px, 4.7vw, 88px); --r: 14deg; animation-delay: -3s; }
.float-icon--6 { top: 21%; left: 90.5%; width: clamp(46px, 4vw, 74px); --r: 3deg; animation-delay: -6s; }
.float-icon--7 { top: 34%; left: 16.5%; width: clamp(48px, 4.2vw, 78px); --r: -4deg; animation-delay: -4s; }
.float-icon--8 { top: 37%; left: 81%; width: clamp(54px, 4.7vw, 86px); --r: 9deg; animation-delay: -8s; }
.float-icon--9 { top: 52%; left: 5.5%; width: clamp(62px, 5.4vw, 100px); --r: -10deg; animation-delay: -2.5s; }
.float-icon--10 { top: 50%; left: 89.5%; width: clamp(56px, 4.9vw, 90px); --r: 7deg; animation-delay: -5.5s; }
.float-icon--11 { top: 61%; left: 19.5%; width: clamp(46px, 4vw, 74px); --r: -6deg; animation-delay: -1.5s; }
.float-icon--12 { top: 61.5%; left: 78.5%; width: clamp(48px, 4.2vw, 76px); --r: 6deg; animation-delay: -7.5s; }
.float-icon--13 { top: 79%; left: 9.5%; width: clamp(48px, 4.2vw, 78px); --r: -5deg; animation-delay: -3.5s; }
.float-icon--14 { top: 83%; left: 27%; width: clamp(48px, 4.2vw, 76px); --r: -4deg; animation-delay: -6.5s; }
.float-icon--15 { top: 86%; left: 40.5%; width: clamp(54px, 4.7vw, 86px); --r: 5deg; animation-delay: -2.2s; }
.float-icon--16 { top: 86%; left: 56.5%; width: clamp(48px, 4.2vw, 76px); --r: -3deg; animation-delay: -4.8s; }
.float-icon--17 { top: 81%; left: 70%; width: clamp(42px, 3.6vw, 66px); --r: 7deg; animation-delay: -1.2s; }
.float-icon--18 { top: 77%; left: 88.5%; width: clamp(48px, 4.2vw, 76px); --r: 4deg; animation-delay: -5.8s; }

@keyframes icon-drift {
  from { transform: translate3d(0, -7px, 0) rotate(var(--r)); }
  to { transform: translate3d(0, 9px, 0) rotate(calc(var(--r) + 3deg)); }
}

/* --------------------------------- Brand ---------------------------------- */

.landing-header {
  position: fixed;
  top: clamp(18px, 2.4vh, 30px);
  left: max(20px, calc((100vw - 1400px) / 2 - 34px));
  z-index: 5;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.landing-brand img {
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(24, 74, 112, 0.18));
}

.landing-brand-copy {
  display: grid;
  line-height: 1;
}

.landing-brand-copy strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.landing-brand-copy small {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.landing-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(100px, 12vh, 132px) 20px clamp(64px, 10vh, 118px);
  text-align: center;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 2.8vh, 30px);
  padding: 5px 15px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 2px 8px rgba(38, 64, 84, 0.08),
    0 10px 28px rgba(38, 64, 84, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: clamp(12px, 0.95vw, 14px);
  color: #343944;
  animation: fade-rise 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.proof-avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 4px;
}

.proof-avatars img {
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #cfe4f2;
}

.proof-avatars img:first-child {
  margin-left: 0;
}

.landing-title {
  margin: 0 0 clamp(34px, 4.8vh, 52px);
  font-family: var(--serif);
  font-size: clamp(52px, 5.8vw, 100px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #121214;
  animation: fade-rise 0.8s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-title span {
  display: block;
  white-space: nowrap;
}

.landing-search {
  display: flex;
  align-items: center;
  width: min(680px, 92vw);
  min-height: 70px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 2px 10px rgba(38, 64, 84, 0.08),
    0 18px 50px rgba(38, 64, 84, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: fade-rise 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-search-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-left: 2px;
  border-radius: 50%;
  background: #f2f8fc;
}

.landing-search-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.landing-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(14px, 1.1vw, 17px);
}

.landing-search input::placeholder {
  color: #8e939d;
}

.landing-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #0c0c0e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.landing-search button svg {
  width: 16px;
  height: 16px;
}

.landing-search button:hover,
.landing-search button:focus-visible {
  background: #232327;
  transform: translateX(2px);
}

.landing-note {
  margin: 14px 0 clamp(24px, 3.2vh, 34px);
  font-size: clamp(12px, 0.95vw, 14px);
  color: #737986;
  animation: fade-rise 0.8s 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: clamp(12px, 0.95vw, 14px);
  color: #737986;
  animation: fade-rise 0.8s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-alt-or {
  color: #a0a4ad;
}

.landing-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2c3038;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-alt-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.landing-alt-link:hover,
.landing-alt-link:focus-visible {
  color: #0d0d0f;
}

.landing-alt-link[data-auth="list"] {
  padding: 8px 13px;
  border: 1px solid rgba(20, 20, 22, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2px 7px rgba(38, 64, 84, 0.06);
}

.landing-alt-link[data-auth="list"]:hover,
.landing-alt-link[data-auth="list"]:focus-visible {
  background: #fff;
  border-color: rgba(20, 20, 22, 0.18);
}

.landing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: clamp(26px, 3.6vh, 40px) 0 0;
  padding: 0;
  list-style: none;
  animation: fade-rise 0.8s 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(38, 64, 84, 0.06);
  font-size: clamp(11px, 0.85vw, 13px);
  color: #2f343b;
}

.trust-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------- Auth ----------------------------------- */

body.auth-open {
  overflow: hidden;
}

.auth-modal {
  width: min(448px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.auth-modal::backdrop {
  background: rgba(26, 40, 52, 0.32);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.auth-modal[open] {
  animation: modal-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-modal.is-closing {
  animation: modal-out 0.2s ease both;
}

.auth-card {
  position: relative;
  max-height: calc(100svh - 28px);
  padding: 30px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 30px 80px rgba(18, 36, 52, 0.24),
    0 4px 16px rgba(18, 36, 52, 0.08);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f7;
  color: #4c525c;
  cursor: pointer;
}

.auth-close svg {
  width: 16px;
  height: 16px;
}

.auth-eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7580;
}

.auth-title {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #737986;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f4f7;
}

.auth-tab {
  padding: 9px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b717c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 20, 22, 0.1);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field[hidden] {
  display: none;
}

.auth-field > span {
  font-size: 11px;
  font-weight: 600;
  color: #5f6570;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dfe5ea;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: #16181c;
  box-shadow: 0 0 0 3px rgba(20, 20, 22, 0.08);
}

.auth-message {
  min-height: 16px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #b42318;
}

.auth-message.is-success {
  color: #15803d;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 6px;
  color: #8a8f99;
  font-size: 11.5px;
  line-height: 1.4;
  cursor: pointer;
}

.auth-remember input {
  width: 15px;
  height: 15px;
  accent-color: #0c0c0e;
  cursor: pointer;
}

.auth-field--consent {
  margin: -2px 0 2px;
}

.auth-consent-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #5b6472;
  cursor: pointer;
}

.auth-consent-line input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: #0c0c0e;
  cursor: pointer;
}

.auth-consent-line a,
.auth-legal-note a {
  color: #0b63d6;
  text-decoration: none;
}

.auth-consent-line a:hover,
.auth-legal-note a:hover {
  text-decoration: underline;
}

.auth-legal-note {
  margin: 8px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  color: #8a8f99;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: #0c0c0e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-submit svg {
  width: 16px;
  height: 16px;
}

.auth-submit:hover:not(:disabled) {
  background: #242428;
  transform: translateX(2px);
}

.auth-submit:disabled {
  background: #9ca3af;
  color: #f9fafb;
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
}

.auth-note {
  margin: 14px 0 0;
  font-size: 11px;
  color: #8a8f99;
  text-align: center;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.985); }
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 1100px) {
  .float-icon--6,
  .float-icon--10,
  .float-icon--18 {
    opacity: 0.45;
  }

  .landing-title {
    max-width: 13ch;
  }
}

@media (max-width: 820px) {
  .icon-field {
    opacity: 0.75;
  }

  .float-icon--1,
  .float-icon--3,
  .float-icon--6,
  .float-icon--12,
  .float-icon--18 {
    display: none;
  }

  .landing-header {
    left: 20px;
  }

  .landing-title {
    font-size: clamp(48px, 10vw, 78px);
  }

  .landing-search {
    min-height: 62px;
  }

  .landing-search button {
    height: 50px;
    padding: 0 18px;
  }

  .landing-search-mark {
    width: 42px;
    height: 42px;
  }

  .landing-search-mark img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 560px) {
  .landing-hero {
    padding: 96px 16px 34px;
  }

  .proof-pill {
    max-width: 92vw;
    font-size: 11px;
    line-height: 1.25;
    text-align: left;
  }

  .proof-avatars img {
    width: 21px;
    height: 21px;
  }

  .landing-title {
    font-size: clamp(42px, 12.6vw, 58px);
    line-height: 1;
  }

  .landing-search {
    width: 100%;
    min-height: 58px;
    padding: 5px;
  }

  .landing-search-mark {
    display: none;
  }

  .landing-search input {
    height: 48px;
    padding: 0 12px;
    font-size: 13px;
  }

  .landing-search button {
    height: 48px;
    padding: 0 16px;
    font-size: 13px;
  }

  .landing-search button svg {
    width: 14px;
    height: 14px;
  }

  .landing-note {
    max-width: 34ch;
    font-size: 12px;
  }

  .landing-alt {
    gap: 6px;
    font-size: 12px;
  }

  .landing-alt-link[data-auth="list"] {
    padding: 7px 10px;
  }

  .landing-alt-or {
    display: none;
  }

  .landing-trust {
    gap: 7px;
  }

  .landing-trust li {
    font-size: 10px;
    padding: 6px 9px;
  }

  .trust-check {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .float-icon { display: none; }
  .float-icon--2 { display: grid; left: 5%; top: 12%; width: 50px; }
  .float-icon--5 { display: grid; left: 79%; top: 12%; width: 48px; }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-title {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media (max-width: 560px) {
  .landing-title span { white-space: normal; }
  .landing-title { font-size: clamp(40px, 11.5vw, 56px); }
}

/* --------------------------- Scrollable Mandrin site ----------------------- */

.web {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.12;
}

.landing-header.site-header {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  right: auto;
  width: max-content;
  max-width: calc(100vw - 40px);
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: #4a505b;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.78);
  color: #0d0d0f;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: #141416;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #2c3038;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon { fill: #2c3038; stroke: none; }
html[data-theme="dark"] .icon-moon { display: none; }

.orca-main {
  position: relative;
  z-index: 2;
}

.orca-section {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) 0;
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vh, 56px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #4f7b95;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-head h2 em {
  font-style: italic;
}

.section-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 34px);
}

.saas-rotator,
.about-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(46, 68, 90, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.saas-rotator {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 30px;
  background: linear-gradient(145deg, var(--tint-a, #e0ecff), var(--tint-b, #f1f7ff));
  transition: background 0.5s ease;
}

.saas-rotator.is-leaving .saas-rotator-stage { opacity: 0; transform: translateY(8px); }
.saas-rotator-stage { transition: opacity 0.45s ease, transform 0.45s ease; }

.saas-rotator-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(46, 68, 90, 0.14);
}

.saas-rotator-mark,
.saas-rotator-mark-slack,
.saas-rotator-fallback {
  width: 30px;
  height: 30px;
}

.saas-rotator-mark-slack,
.saas-rotator-fallback { display: none; }
.saas-rotator.use-slack .saas-rotator-mark { display: none; }
.saas-rotator.use-slack .saas-rotator-mark-slack { display: block; }
.saas-rotator.no-mark .saas-rotator-mark { display: none; }
.saas-rotator.no-mark .saas-rotator-fallback { display: grid; place-items: center; font-family: var(--serif); font-size: 28px; }

.saas-rotator-body { text-align: center; }
.saas-rotator-title { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.saas-rotator-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.about-card {
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.callout {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 130px;
  color: rgba(79, 123, 149, 0.28);
}

.about-card h3 {
  max-width: 460px;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.about-card > p {
  max-width: 520px;
  margin: 0 0 30px;
  color: #4c525d;
  font-size: 15px;
  line-height: 1.7;
}

.hl-inline {
  padding: 0 3px;
  border-radius: 5px;
  background: rgba(232, 255, 95, 0.6);
  color: #141416;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #0c0c0e;
  border-radius: 999px;
  background: #0c0c0e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible { background: #232327; }

.hero-button--ghost {
  border-color: rgba(20, 20, 22, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #141416;
}

.hero-button--ghost:hover,
.hero-button--ghost:focus-visible { background: #fff; }

.hero-button-arrow { width: 17px; height: 17px; }

.saas-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto 36px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(46, 68, 90, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.saas-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.saas-field input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.saas-ghost {
  position: absolute;
  top: 0;
  left: 18px;
  display: flex;
  align-items: center;
  height: 50px;
  color: #9ca2ac;
  font-size: 15px;
  pointer-events: none;
  opacity: 0;
}

.saas-field.is-ready .saas-ghost { opacity: 1; }
.saas-field:focus-within .saas-ghost { opacity: 0; }

.saas-caret {
  width: 1px;
  height: 17px;
  margin-left: 2px;
  background: #7d8794;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.saas-search > button {
  flex: none;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #0c0c0e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.saas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.saas-card {
  --brand: #5d7cff;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(46, 68, 90, 0.1);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.saas-grid.is-visible .saas-card { opacity: 1; transform: translateY(0); }
.saas-card:hover { box-shadow: 0 22px 44px rgba(46, 68, 90, 0.16); }
.saas-card[hidden] { display: none; }
.saas-card--notion { --brand: #111111; }
.saas-card--figma { --brand: #f24e1e; }
.saas-card--linear { --brand: #5e6ad2; }
.saas-card--stripe { --brand: #635bff; }
.saas-card--loom { --brand: #625df5; }
.saas-card--webflow { --brand: #4353ff; }

.saas-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.saas-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand);
  font-family: var(--serif);
  font-size: 22px;
}

.saas-logo img { width: 22px; height: 22px; object-fit: contain; }

.saas-card-title { flex: 1; min-width: 0; }
.saas-card-title h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.saas-tag { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.saas-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.05);
}

.saas-arrow svg { width: 16px; height: 16px; }
.saas-card > p { margin: 0; color: #4c525d; font-size: 14px; line-height: 1.6; }

.list-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 255, 95, 0.32));
  box-shadow: 0 18px 44px rgba(46, 68, 90, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.list-strip h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.list-strip p:last-child {
  margin: 0;
  color: #4c525d;
  font-size: 15px;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid rgba(20, 20, 22, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a { color: #141416; }

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f6fa 0%, #ffffff 46%);
  color: #141416;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

.legal-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #141416;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.legal-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #111318;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(17, 19, 24, 0.22);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legal-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.legal-nav a:hover {
  background: rgba(17, 19, 24, 0.06);
  color: #141416;
}

.legal-main {
  width: min(880px, calc(100% - 40px));
  margin: 46px auto 76px;
}

.legal-hero,
.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.legal-hero {
  padding: 42px;
  border-radius: 28px;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: #0b63d6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.legal-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
}

.legal-meta {
  margin: 22px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.legal-card {
  margin-top: 18px;
  padding: 34px 38px;
  border-radius: 24px;
}

.legal-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.75;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a,
.legal-footer a {
  color: #0b63d6;
  text-decoration: none;
}

.legal-card a:hover,
.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(17, 19, 24, 0.1);
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 720px) {
  .legal-header {
    top: 8px;
    width: calc(100% - 24px);
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legal-nav {
    flex-wrap: wrap;
  }

  .legal-main {
    width: calc(100% - 24px);
    margin: 28px auto 56px;
  }

  .legal-hero {
    padding: 28px 24px;
  }

  .legal-card {
    padding: 26px 24px;
  }

  .legal-footer {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
  }
}

html[data-theme="dark"] body,
html[data-theme="dark"] .landing-page {
  background: #0b1220;
  color: #e8f2f8;
}

html[data-theme="dark"] .sky {
  background: linear-gradient(180deg, #111c2b 0%, #0b1220 55%, #101a28 100%);
}

html[data-theme="dark"] .landing-title,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .about-card h3,
html[data-theme="dark"] .list-strip h2 { color: #f2f7fb; }

html[data-theme="dark"] .site-nav a { color: #b6c4ce; }
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] .nav-toggle span,
html[data-theme="dark"] .theme-toggle svg { background: #e8f2f8; stroke: #e8f2f8; }
html[data-theme="dark"] .landing-search,
html[data-theme="dark"] .saas-search,
html[data-theme="dark"] .saas-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .saas-rotator,
html[data-theme="dark"] .list-strip,
html[data-theme="dark"] .landing-trust li,
html[data-theme="dark"] .landing-alt-link[data-auth="list"] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 32, 46, 0.82);
  color: #e8f2f8;
}
html[data-theme="dark"] .landing-search input,
html[data-theme="dark"] .saas-field input { color: #e8f2f8; }
html[data-theme="dark"] .landing-note,
html[data-theme="dark"] .section-head > p:last-child,
html[data-theme="dark"] .about-card > p,
html[data-theme="dark"] .saas-card > p,
html[data-theme="dark"] .list-strip p:last-child { color: #a9bac6; }
html[data-theme="dark"] .site-footer { border-color: rgba(255, 255, 255, 0.12); color: #9aabb7; }
html[data-theme="dark"] .site-footer a { color: #e8f2f8; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 54px;
    right: 0;
    display: none;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(46, 68, 90, 0.16);
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { justify-content: flex-start; min-height: 42px; }
  .about-grid { grid-template-columns: 1fr; }
  .saas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .orca-section { width: min(100% - 28px, 1180px); padding: 64px 0; scroll-margin-top: 80px; }
  .saas-grid { grid-template-columns: 1fr; }
  .saas-search { flex-direction: column; align-items: stretch; border-radius: 24px; }
  .saas-search > button { width: 100%; }
  .saas-card { padding: 20px; }
  .list-strip { padding: 26px; border-radius: 24px; }
  .list-strip .hero-button { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; width: min(100% - 28px, 1180px); }
}


.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-logo img {
  height: 80px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  height: 24px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.legal-brand img {
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.saas-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.saas-card {
  min-height: 262px;
  padding: 32px;
  border-radius: 24px;
}

.saas-card-head {
  gap: 16px;
  margin-bottom: 24px;
}

.saas-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 30px;
}

.saas-logo img {
  width: 34px;
  height: 34px;
}

.saas-card-title h3 {
  font-size: 30px;
}

.saas-arrow {
  width: 44px;
  height: 44px;
}

.saas-arrow svg {
  width: 20px;
  height: 20px;
}

.saas-card > p {
  font-size: 16px;
  line-height: 1.65;
}

.saas-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--brand) 22%, white);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.86));
  box-shadow:
    0 18px 44px -28px color-mix(in srgb, var(--brand) 44%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.saas-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--brand), transparent 82%);
  opacity: 0.9;
}

.saas-card:hover {
  box-shadow:
    0 26px 56px -28px color-mix(in srgb, var(--brand) 58%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .saas-card {
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 62%),
    linear-gradient(150deg, rgba(34, 30, 54, 0.9), rgba(20, 18, 38, 0.82));
}

@media (max-width: 640px) {
  .saas-grid {
    grid-template-columns: 1fr;
  }

  .saas-card {
    min-height: 0;
    padding: 24px;
  }

  .saas-logo {
    width: 54px;
    height: 54px;
    font-size: 25px;
  }

  .saas-card-title h3 {
    font-size: 25px;
  }
}

