/* daysli.com/maritime-business-page (founder's brief, 16 Nov 2026): a premium maritime business page, its own sheet,
   loaded by that page alone (scripts/build.mjs PAGE_SHEETS, prefix "mb"). Deep ocean bands for the opening, the work
   and the close; a warm paper ground between them; Evergreen is Daysli Shore's colour, brass a restrained accent.
   Source Serif 4 sets the headlines, the system face the text, as on the rest of the site. Motion is a gentle reveal
   only, never for people who ask for less. */

.mb-page {
  --ocean: #061b25;
  --ocean-2: #0a2a37;
  --on-ocean: #ecf2f1;
  --on-ocean-muted: #b3c6c8;
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --ink: #13232b;
  --muted: #4c5c64;
  --line: #d9d4c8;
  --ever: #245c4f;
  --ever-ink: #1d4d42;
  --glass: #a4d0c3;
  --brass: #75561f;
  --brass-on-ocean: #d6b47c;
  --serif: 'Source Serif 4', 'Source Serif 4 Fallback', Georgia, serif;
  --gutter: max(1.25rem, env(safe-area-inset-left, 0px));
  background: var(--paper);
  color: var(--ink);
}

/* Dark exactly when the rest of the site is: the system's dark without the living theme, the night phase, or dark chosen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-phase]) .mb-page {
    --paper: #0c2531;
    --paper-2: #0f2d3b;
    --ink: #e7eeee;
    --muted: #a8b9be;
    --line: #234252;
    --ever-ink: #93c7b8;
    --brass: #d6b47c;
  }
}

:root[data-phase='night'] .mb-page,
:root[data-theme='dark'] .mb-page {
  --paper: #0c2531;
  --paper-2: #0f2d3b;
  --ink: #e7eeee;
  --muted: #a8b9be;
  --line: #234252;
  --ever-ink: #93c7b8;
  --brass: #d6b47c;
}

.mb-wrap {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mb-section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.mb-alt {
  background: var(--paper-2);
}

.mb-ocean {
  background: var(--ocean);
  color: var(--on-ocean);
}

.mb-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ever-ink);
}

.mb-ocean .mb-eyebrow {
  color: var(--brass-on-ocean);
}

.mb-h1,
.mb-h2,
.mb-h3,
.mb-big {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.mb-h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.25rem);
  line-height: 1.04;
}

.mb-h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.1;
}

.mb-h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.2;
  font-weight: 500;
}

.mb-lede {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.mb-text {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.mb-ocean .mb-text {
  color: var(--on-ocean-muted);
}

.mb-ocean .mb-lede {
  color: var(--on-ocean);
}

.mb-rule {
  width: 3.5rem;
  height: 2px;
  margin: 0 0 1.75rem;
  border: 0;
  background: var(--brass);
}

.mb-ocean .mb-rule {
  background: var(--brass-on-ocean);
}

/* Calls to action ------------------------------------------------------------------------------------------------- */

.mb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

.mb-page .mb-primary,
.mb-page .mb-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.mb-page .mb-primary {
  background: var(--ever);
  color: #fff;
}

.mb-page .mb-primary:hover {
  background: #1b4a3f;
}

.mb-page .mb-ocean .mb-primary {
  background: var(--on-ocean);
  color: var(--ocean);
}

.mb-page .mb-ocean .mb-primary:hover {
  background: #fff;
}

.mb-page .mb-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.mb-page .mb-secondary:hover {
  border-color: var(--ever);
}

.mb-page .mb-ocean .mb-secondary {
  border-color: rgb(236 242 241 / 0.4);
  color: var(--on-ocean);
}

.mb-page .mb-ocean .mb-secondary:hover {
  border-color: var(--on-ocean);
}

.mb-fine {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.mb-ocean .mb-fine {
  color: var(--on-ocean-muted);
}

.mb-page .mb-link {
  color: var(--ever-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.mb-page .mb-ocean .mb-link {
  color: var(--glass);
}

/* The opening ---------------------------------------------------------------------------------------------------- */

.mb-hero {
  position: relative;
  overflow: hidden;
}

.mb-heroPhoto {
  position: absolute;
  inset: 0;
}

.mb-heroPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
}

/* The words sit on the deep water; the photograph shows through toward the port. */
.mb-hero::after,
.mb-close::after {
  content: '';
  position: absolute;
  inset: 0;
}

.mb-hero::after {
  background: linear-gradient(90deg, rgb(6 27 37 / 0.96) 0%, rgb(6 27 37 / 0.9) 42%, rgb(6 27 37 / 0.4) 72%, rgb(6 27 37 / 0.2) 100%);
}

.mb-heroInner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem);
}

.mb-heroText {
  max-width: 41rem;
}

.mb-heroText p {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--on-ocean-muted);
}

.mb-heroText .mb-lede {
  color: var(--on-ocean);
}

.mb-trades {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgb(236 242 241 / 0.16);
}

.mb-tradeRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  margin: 0;
  padding-block: 1.25rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--on-ocean-muted);
}

.mb-tradeRow li::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--brass-on-ocean);
  vertical-align: middle;
}

@media (max-width: 760px) {
  .mb-hero::after {
    background: linear-gradient(180deg, rgb(6 27 37 / 0.62) 0%, rgb(6 27 37 / 0.93) 42%, rgb(6 27 37 / 0.98) 100%);
  }

  .mb-heroPhoto img {
    object-position: 75% 30%;
  }
}

/* Editorial splits --------------------------------------------------------------------------------------------------- */

.mb-split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.mb-split > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .mb-split {
    grid-template-columns: 1.05fr 1fr;
  }
}

.mb-photo {
  margin: 0;
}

.mb-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Four tools ------------------------------------------------------------------------------------------------------------ */

.mb-tools {
  display: grid;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.mb-tools > li {
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .mb-tools {
    grid-template-columns: 1fr 1fr;
  }

  .mb-tools > li:nth-child(odd) {
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
    border-right: 1px solid var(--line);
  }

  .mb-tools > li:nth-child(even) {
    padding-left: clamp(1.5rem, 4vw, 3.5rem);
  }
}

.mb-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--brass);
}

.mb-tools p {
  max-width: 32rem;
  margin: 0.75rem 0 0;
  line-height: 1.65;
  color: var(--muted);
}

/* The trades ------------------------------------------------------------------------------------------------------------ */

.mb-tradeGrid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 760px) {
  .mb-tradeGrid {
    grid-template-columns: 1fr 1fr;
  }
}

.mb-trade {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
}

.mb-trade .mb-h3 {
  margin-bottom: 0.4rem;
}

.mb-tagline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ever-ink);
}

.mb-trade p {
  line-height: 1.65;
  color: var(--muted);
}

.mb-page .mb-trade .mb-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
}

/* The journey --------------------------------------------------------------------------------------------------------- */

.mb-journey {
  display: grid;
  gap: 2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .mb-journey {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.mb-journey > li {
  padding-top: 1.5rem;
  border-top: 2px solid var(--brass-on-ocean);
}

.mb-journey strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.mb-journey p {
  margin: 0.6rem 0 0;
  line-height: 1.6;
  color: var(--on-ocean-muted);
}

.mb-note {
  max-width: 46rem;
  margin: 2.75rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--brass-on-ocean);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-ocean);
}

.mb-note + .mb-note {
  margin-top: 1rem;
}

/* See it: real screens and an example form --------------------------------------------------------------------------- */

.mb-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
}

.mb-screen {
  margin: 0;
}

.mb-screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgb(6 27 37 / 0.45);
}

.mb-screen:nth-child(2) {
  margin-top: 3rem;
}

.mb-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.mb-form {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mb-formTitle {
  margin: 0;
  font-weight: 600;
}

.mb-fields {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.mb-fields li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
}

.mb-fields span {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Getting started ---------------------------------------------------------------------------------------------------- */

.mb-steps {
  display: grid;
  gap: 2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .mb-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.mb-steps p {
  margin: 0.6rem 0 0;
  line-height: 1.65;
  color: var(--muted);
}

/* The price -------------------------------------------------------------------------------------------------------- */

.mb-price {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.mb-price > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .mb-price {
    grid-template-columns: 1fr 1fr;
  }
}

.mb-big {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
}

.mb-plan {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid rgb(236 242 241 / 0.2);
  border-radius: 8px;
  background: var(--ocean-2);
}

.mb-planName {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.mb-amount {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  color: var(--on-ocean);
}

.mb-amount strong {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
}

.mb-plan ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.mb-plan li {
  padding: 0.55rem 0;
  border-top: 1px solid rgb(236 242 241 / 0.14);
  color: var(--on-ocean-muted);
}

/* Questions --------------------------------------------------------------------------------------------------------------- */

.mb-faq {
  max-width: 52rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.mb-faq details {
  border-bottom: 1px solid var(--line);
}

.mb-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
}

.mb-faq summary::-webkit-details-marker {
  display: none;
}

.mb-faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass);
}

.mb-faq details[open] summary::after {
  content: '–';
}

.mb-faq p {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--muted);
}

/* The close ------------------------------------------------------------------------------------------------------------ */

.mb-close {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.mb-close .mb-heroPhoto img {
  object-position: 50% 45%;
}

.mb-close::after {
  background: rgb(6 27 37 / 0.85);
}

.mb-closeInner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.mb-closeInner .mb-lede {
  margin-inline: auto;
}

.mb-closeInner .mb-actions {
  justify-content: center;
}

.mb-aiNote {
  margin: 0;
  padding-block: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Motion: a quiet reveal as sections come into view, where the browser can do it without a script. ---------------------- */

.mb-reveal {
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .mb-reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
