/* Mail Otter public site: shared styles. Harbor brand tokens match the client dashboards. */
:root {
  --primary: #0F4C5C; --primary-hover: #0B3B48; --primary-soft: #E3EEF0; --primary-deep: #0A2F39;
  --accent: #F2A65A; --accent-ink: #7A4A12; --accent-soft: #FCEBD7;
  --ink: #1B2A30; --muted: #5C6E74; --faint: #8A9A9F; --line: #DCE3E4; --line-warm: #E7E0D4;
  --page: #F6F1E9; --card: #FFFFFF; --card-warm: #FBF8F3;
  --nav-muted: #A9C4C9;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px; --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(27, 42, 48, 0.06), 0 2px 8px -2px rgba(27, 42, 48, 0.06);
  --shadow-lg: 0 1px 2px rgba(27, 42, 48, 0.05), 0 24px 48px -20px rgba(15, 76, 92, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); letter-spacing: -0.025em; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 12px; }
.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; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Mono section label, e.g. [02] Journeys */
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.label b { font-weight: 500; color: var(--accent-ink); }
/* Second half of a headline, set quieter */
.quiet { color: var(--primary); }

/* Buttons: pills with a sliding arrow */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out); }
.btn .arr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); transition: transform 0.25s var(--ease-out); }
.btn .arr svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 20px -8px rgba(15, 76, 92, 0.7); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { border-color: #CFC7B9; color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 0.93rem; }

/* Floating pill header */
.site-header { position: sticky; top: 12px; z-index: 20; padding: 0 12px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; max-width: 1080px; padding: 0 10px 0 14px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(220, 227, 228, 0.9); border-radius: 999px; box-shadow: var(--shadow-sm); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; transition: transform 0.4s var(--ease-spring); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.wordmark { font: 800 1.6rem/1 "Manrope", var(--body); letter-spacing: -0.045em; color: var(--ink); }
.wordmark i { font-style: normal; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; transition: background 0.2s; }
.site-nav a:not(.btn):hover { background: var(--page); color: var(--ink); }
.site-nav .btn { margin-left: 8px; }
@media (max-width: 820px) { .site-nav a:not(.btn) { display: none; } .site-header .wrap { padding-left: 16px; } }

section { scroll-margin-top: 90px; }

/* Moving card rows */
.marquee { display: grid; gap: 16px; margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 75s linear infinite; }
.marquee-row.reverse .marquee-track { animation-duration: 65s; animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.dup { display: flex; }
@keyframes marquee { to { transform: translateX(-50%); } }
.jcard { flex: none; width: 300px; margin-right: 16px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line-warm); border-radius: 20px; box-shadow: var(--shadow-sm); }
.jcard .num { display: block; font: 500 0.78rem/1 var(--mono); color: var(--accent-ink); margin-bottom: 16px; }
.jcard .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.jcard .ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jcard h3 { font-size: 1.15rem; margin-bottom: 6px; }
.jcard p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 600px) { .jcard { width: 260px; } .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-row { overflow-x: auto; }
  .dup { display: none; }
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line-warm); border-radius: 18px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6v10M6 11h10' stroke='%230F4C5C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0; padding: 0 24px 22px; max-width: 44em; }

/* Form */
.form-card { background: var(--card); border: 1px solid var(--line-warm); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
@media (max-width: 480px) { .form-card { padding: 24px 18px; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: 0.93rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--card-warm); border: 1px solid #CFD8DA; border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, background 0.2s; }
input:hover, select:hover, textarea:hover { border-color: #AEBDC0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242, 166, 90, 0.5); outline-offset: 0; border-color: var(--primary); background: #fff; }
[aria-invalid="true"] { border-color: #B3261E !important; }
.err { color: #A3221B; font-size: 0.86rem; }
.err:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.radios label { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 14px; border: 1px solid #CFD8DA; border-radius: 999px; background: var(--card-warm); transition: border-color 0.2s, background 0.2s; }
.radios label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.consent label { font-weight: 400; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.consent input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-foot small { color: var(--muted); }
.status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; }
.status:empty { display: none; }
.status.ok { background: var(--primary-soft); border: 1px solid #B9D3D8; }
.status.bad { background: var(--accent-soft); border: 1px solid #EBC9A2; }
.status h3 { margin-bottom: 6px; }
.status p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--primary-deep); color: #B9CDD1; padding: 64px 0 40px; font-size: 0.95rem; }
.site-footer a { color: #E9EEEF; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand img { width: 40px; height: 40px; }
.foot-brand .wordmark { color: var(--page); }
.site-footer h2 { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--nav-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(169, 196, 201, 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Legal pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: 100px; font-size: 0.93rem; }
.doc-nav h2 { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.doc-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; color: var(--ink); text-decoration: none; border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--primary); }
.doc-nav a[aria-current="page"] { border-left-color: var(--accent); color: var(--primary); font-weight: 600; }
@media (max-width: 900px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 28px; }
  .doc-nav { position: static; order: 2; }
}
.prose { max-width: 46em; background: var(--card); border: 1px solid var(--line-warm); border-radius: var(--radius-lg); padding: 48px 52px; min-width: 0; }
@media (max-width: 600px) { .prose { padding: 26px 18px; } }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: 0.93rem; margin-bottom: 28px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--card-warm); font-weight: 600; }
.prose code { font: 0.88em var(--mono); background: var(--primary-soft); color: var(--primary); padding: 1px 5px; border-radius: 4px; }
.prose .summary { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: 10px; margin-bottom: 24px; }
.prose .summary p:last-child { margin: 0; }

/* Scroll-in motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Page atmosphere: tinted light fields, slow drift and fine grain instead of flat cream */
body { background:
  radial-gradient(60vw 50vw at 100% 0%, rgba(242, 166, 90, 0.10), transparent 60%),
  radial-gradient(55vw 45vw at 0% 35%, rgba(15, 76, 92, 0.07), transparent 60%),
  radial-gradient(60vw 50vw at 100% 75%, rgba(15, 76, 92, 0.06), transparent 60%),
  radial-gradient(50vw 40vw at 10% 100%, rgba(242, 166, 90, 0.08), transparent 60%),
  var(--page); }
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmos i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: drift 38s ease-in-out infinite alternate; }
.atmos i:nth-child(1) { background: rgba(242, 166, 90, 0.22); top: -12vw; left: -8vw; }
.atmos i:nth-child(2) { background: rgba(26, 100, 117, 0.14); bottom: -16vw; right: -10vw; animation-duration: 46s; animation-delay: -12s; }
.atmos i:nth-child(3) { background: rgba(227, 238, 240, 0.9); top: 30vh; left: 35vw; width: 34vw; height: 34vw; animation-duration: 54s; animation-delay: -24s; }
@keyframes drift { to { transform: translate(8vw, 6vh) scale(1.12); } }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.16 0 0 0 0 0.19 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .atmos i { animation: none; } }

.site-nav .btn { white-space: nowrap; }
@media (max-width: 400px) {
  .site-header .wrap { padding: 0 6px 0 12px; height: 58px; }
  .logo-mark { width: 34px; height: 34px; }
  .wordmark { font-size: 1.35rem; }
  .site-nav .btn { padding: 9px 13px; font-size: 0.88rem; }
}
