/* Optimaly landing page. Ported from the Claude Design source "Landing page.dc.html".
   The site's CSP has no 'unsafe-inline' for styles, so nothing here may move to a
   style attribute in the markup. */

:root {
  --paper: #FBFAF7;
  --ink: #23262B;
  --ink-soft: #4C5058;
  --ink-dim: #5A5E66;
  --ink-hover: #3A3E46;
  --rule: #E2E0DA;
  --field-border: #7E8088;
  --hero-bg: #ECEAE4;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: clip; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-soft); }

img { display: block; }

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

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

/* ---------- header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark { height: 15px; width: auto; }

.lang-toggle {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  border: 1px solid rgba(35, 38, 43, .4);
  background: rgba(251, 250, 247, .6);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.lang-toggle:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  animation: fade 1.2s ease-out both;
}

.hero-veil-side,
.hero-veil-foot {
  position: absolute;
  inset: 0;
}

.hero-veil-side {
  background: linear-gradient(90deg,
    rgba(251, 250, 247, .9) 0%,
    rgba(251, 250, 247, .75) 30%,
    rgba(251, 250, 247, .25) 55%,
    rgba(251, 250, 247, 0) 72%);
}

.hero-veil-foot {
  background: linear-gradient(180deg,
    rgba(251, 250, 247, .4) 0%,
    rgba(251, 250, 247, 0) 22%,
    rgba(251, 250, 247, 0) 48%,
    rgba(251, 250, 247, .86) 74%,
    var(--paper) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: max(38svh, 140px) var(--gutter) clamp(40px, 7vh, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vh, 30px);
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 13ch;
  text-wrap: balance;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) .2s both;
}

.hero-sub {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 30em;
  text-wrap: pretty;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) .4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) .6s both;
}

/* ---------- buttons ---------- */

.btn {
  flex: 1 1 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.btn-solid:hover {
  background: var(--ink-hover);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(35, 38, 43, .45);
}

.btn-outline {
  color: var(--ink);
  border: 1px solid rgba(35, 38, 43, .35);
  background: rgba(251, 250, 247, .5);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(251, 250, 247, .95);
  transform: translateY(-1px);
}

/* ---------- difference ---------- */

.difference {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 160px) var(--gutter) clamp(64px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 72px);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, calc(2.4vw + 18px), 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .25em;
}

.section-title > span { display: inline-block; }

/* Collapses to 0 below the breakpoint (centring the title) and expands above it
   (pushing the title to the left edge). */
.title-spacer {
  flex: 1 1 0;
  max-width: clamp(0px, calc((100% - 900px) * 999), 100%);
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 48px;
}

.pillar {
  flex-grow: 1;
  flex-basis: calc((900px - 100%) * 999);
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding: clamp(24px, 4vh, 40px) 0;
}

.pillar-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.body-text {
  margin: 0;
  font-size: clamp(17px, 1.25vw, 18px);
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- offer ---------- */

.offer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}

.offer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 4.5vh, 44px);
}

.offer-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.5vh, 24px);
}

.offer-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, calc(2.4vw + 18px), 56px);
  line-height: 1.04;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.offer-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.offer-price > span {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
}

.offer-price .per { color: var(--ink-dim); }

.offer-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.offer-included {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-align: left;
}

.offer-item {
  margin: 0;
  padding: clamp(16px, 2.5vh, 22px) 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(17px, 1.25vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
  text-wrap: pretty;
  text-align: left;
}

.offer-item strong {
  font-weight: 600;
  color: var(--ink);
}

.offer-list-end { border-top: 1px solid var(--rule); }

.offer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: clamp(8px, 2vh, 20px);
}

.tagline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 4.8vw, 28px);
  line-height: 1.25;
  white-space: nowrap;
}

.join-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 580px;
}

.text-input {
  min-height: 52px;
  background: #FFFFFF;
  border: 1px solid var(--field-border);
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  font-family: inherit;
}

.text-input::placeholder { color: var(--ink-dim); }

.text-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(35, 38, 43, .15);
}

.join-input {
  flex: 1 1 220px;
  min-width: 0;
}

.join-form .btn-solid:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
  box-shadow: none;
  background: var(--ink);
}

.turnstile:empty { display: none; }

.footnote {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-dim);
  text-align: left;
  text-wrap: pretty;
}

.footnote a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status {
  margin: 0;
  min-height: 1.5em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- contact page ---------- */

/* The page column keeps the footer at the bottom on a short message. */
.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header-flow {
  position: static;
  background: var(--paper);
}

.site-header-flow .lang-toggle {
  background: transparent;
  backdrop-filter: none;
}

.site-header-flow .lang-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.wordmark-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(72px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4.5vh, 44px);
}

.contact-title {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, calc(2.4vw + 18px), 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) .1s both;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) .3s both;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 16px;
  font-weight: 500;
}

.textarea-input {
  min-height: 180px;
  resize: vertical;
  border-radius: 22px;
  padding: 16px 22px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.form-actions .btn-solid {
  flex: 0 0 auto;
  width: 100%;
  max-width: 320px;
}

.status-centered { text-align: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 48px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-inner .wordmark { height: 14px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
}

.footer-copy {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-dim);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Optional signup dialog: native focus trap and Escape support. */
.enrichment-dialog { position: relative; width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 32px); overflow-y: auto; border: 1px solid var(--rule); border-radius: 20px; padding: 28px; color: var(--ink); background: var(--paper); }
.enrichment-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.enrichment-dialog h2 { margin: 0 32px 16px 0; }
.enrichment-dialog .field { margin-top: 14px; }
.enrichment-dialog .field-row { gap: 12px; }
.profile-call { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.profile-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: inherit; font-size: 28px; cursor: pointer; }
@media (max-width: 480px) { .enrichment-dialog { padding: 20px; } .enrichment-dialog .field-row { flex-direction: column; } }

.form-notice { width: 100%; font-size: 14px; line-height: 1.55; }
.form-notice p { margin: 0 0 10px; }
.legal-content { width: min(800px, calc(100% - 40px)); margin: 40px auto 64px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-content h1 { line-height: 1.2; }.legal-content h2 { margin-top: 36px; line-height: 1.3; }
.legal-content a, .form-notice a { text-decoration: underline; }

.profile-email-notice { color: #292c2e; margin-top: 20px; }
.profile-email-notice .profile-call { margin: 0 0 10px; }
