/* Cinch marketing site — plain CSS, no build step */
:root {
  --blue: #027dc5;
  --orange: #faa225;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--blue);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Quicksand", system-ui, sans-serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; color: var(--blue); padding: .6rem 1rem; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.btn {
  display: inline-block; cursor: pointer;
  font-family: "Quicksand", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.2;
  color: #fff; background: var(--orange);
  border: 1px solid #fff; border-radius: 300px;
  padding: 1.1rem 2.6rem; text-decoration: none;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--small { font-size: 1rem; padding: .8rem 1.6rem; }

/* Header sits on top of the hero */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: clamp(1rem, 3vw, 2.25rem) clamp(1rem, 4vw, 3.5rem);
  color: #fff;
}
.site-header .login { justify-self: start; align-self: center; text-decoration: none; font-size: .95rem; }
.site-header .btn { justify-self: end; align-self: center; }
.logo img { width: clamp(88px, 11vw, 140px); }

/* Hero */
.hero {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  min-height: 100vh; min-height: min(100svh, 920px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 1.25rem 3.5rem; background: var(--blue);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../img/hero.jpg) center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(2 125 194 / .9); }
.hero h1 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .4em; }
.hero__sub { font-family: "Quicksand", system-ui, sans-serif; font-size: clamp(1.25rem, 3vw, 2.1rem); margin-bottom: 1.8rem; }
.pillars {
  list-style: none; margin: 3.5rem auto 0; padding: 0; width: 100%; max-width: var(--max);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
}
.pillars li { display: flex; flex-direction: column; align-items: center; gap: .8rem; font-family: "Quicksand", system-ui, sans-serif; font-size: 1.15rem; }
.pillars img { width: 104px; }

/* "Managing a marina can be chaotic." */
.chaos { background: var(--orange); color: #fff; text-align: center; padding: clamp(4rem, 9vw, 7rem) 1.25rem; }
.chaos__row { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem); max-width: var(--max); margin: 0 auto; }
.chaos h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.chaos h2 span { display: block; white-space: nowrap; }
.waves { width: clamp(70px, 10vw, 140px); flex: none; }
.lead { font-family: "Quicksand", system-ui, sans-serif; font-size: clamp(1.2rem, 2.4vw, 2rem); line-height: 1.3; max-width: 34ch; margin: 1.6rem auto 0; }
@media (max-width: 640px) { .waves { display: none; } }

/* "Welcome to the Marina Revolution" */
.revolution {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(580px, 62vw, 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(clamp(130px, 19vw, 260px) + 2rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem) clamp(1.75rem, 10vw, 9rem);
}
.revolution::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../img/revolution-bg.jpg) center / cover no-repeat; }
.revolution::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(2 125 194 / .5); }
.marquee { position: absolute; top: 2%; left: -5%; width: 110%; transform: rotate(-4deg); pointer-events: none; }
.marquee svg { display: block; width: 100%; height: clamp(130px, 19vw, 260px); }
.marquee text { font-family: "Quicksand", system-ui, sans-serif; font-size: 64px; fill: var(--orange); }
.revolution__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.revolution h3 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.35; margin-bottom: 1.2rem; }
/* Each line stays on one line; it only wraps if the screen is too narrow for it. */
.revolution h3 span {
  display: block; width: fit-content; max-width: 100%; margin-bottom: .16em;
  line-height: 1.12; background: rgb(255 255 255 / .28); border-radius: .65em; padding: .04em .45em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.revolution p { max-width: 34rem; font-size: 1.1rem; margin-bottom: 1.8rem; }

/* 3 Easy Steps */
.steps { text-align: center; padding: clamp(4rem, 8vw, 6.5rem) 1.25rem; }
.steps h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.steps .lead { color: var(--blue); font-family: "Montserrat", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 3rem; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); max-width: var(--max); margin: 0 auto; }
.steps article img { width: min(100%, 320px); margin: 0 auto 1rem; }
.steps h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.steps article p { max-width: 28ch; margin-left: auto; margin-right: auto; }
@media (max-width: 820px) { .steps__grid { grid-template-columns: 1fr; } }

/* Story + app screenshots */
.story { position: relative; isolation: isolate; color: #fff; text-align: center; padding: clamp(4rem, 8vw, 6rem) 1.25rem clamp(3rem, 6vw, 5rem); }
.story::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../img/story-bg.jpg) center / cover no-repeat; }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(2 125 194 / .85); }
.story__inner { max-width: 720px; margin: 0 auto; }
.story__wheel { width: 112px; margin: 0 auto 1.5rem; }
.story h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; font-weight: 700; }
.story p { font-size: 1.15rem; }
.shots {
  list-style: none; margin: 3rem auto 0; padding: 0; max-width: var(--max);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
}
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / .28); }
.shots figcaption { margin-top: 1rem; font-family: "Quicksand", system-ui, sans-serif; font-size: 1.15rem; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; max-width: 460px; } }

/* Take the plunge */
.plunge { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.plunge__photo { position: relative; min-height: 420px; }
.plunge__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plunge__photo::after { content: ""; position: absolute; inset: 0; background: rgb(2 125 194 / .75); }
.plunge__copy { padding: clamp(2.5rem, 6vw, 5rem); max-width: 680px; align-self: center; }
.plunge h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .6em; font-weight: 700; }
.plunge .btn { margin-top: .8rem; }
@media (max-width: 820px) { .plunge { grid-template-columns: 1fr; } .plunge__photo { min-height: 300px; } }

/* Contact form */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 5rem); max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 1.25rem; scroll-margin-top: 1rem; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.contact__intro p { font-family: "Quicksand", system-ui, sans-serif; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--orange); }
.form fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: .3rem; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .3rem; }
.form small { font-size: .78rem; opacity: .8;  font-weight: 400; }
.form legend, .form > .field > label { font-weight: 700; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"] {
  width: 100%; font: inherit; color: #123; background: #fff;
  border: 1px solid #b9c2c8; border-radius: 0; padding: .7rem;
}
.form input:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.check { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1.4rem; font-size: .95rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { border-color: var(--orange); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form__status { margin: 1rem 0 0; min-height: 1.5em; font-weight: 700; }
.form__status.is-ok { color: #0a7a3d; }
.form__status.is-error { color: #b3261e; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__pair { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 4rem; font-size: .95rem;
  border-top: 1px solid rgb(2 125 194 / .18);
}
.site-footer p { margin: 0 0 .6rem; }
.site-footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer__legal { text-align: right; }
@media (max-width: 560px) { .site-footer__legal { text-align: left; } }

/* Simple 404 page */
.notfound { min-height: 100vh; display: grid; place-content: center; gap: 1rem; text-align: center; background: var(--blue); color: #fff; padding: 2rem; }
.notfound h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
