/* Port City Sites — plain CSS, no build step. Tokens from SPEC section 6. */

:root {
  --bg: #F4F6F5;       /* fog white page */
  --ink: #0F1F2B;      /* harbor ink: text, footer band */
  --line: #2F6F8F;     /* chart blue: rules, contour motif, links, focus ring */
  --muted: #5B6B73;    /* secondary text */
  --signal: #C8372D;   /* channel-marker red: call button, sample tag, concept banner accent ONLY */
  --signal-hover: #AE2D24;
  --signal-active: #98251D;
  --surface: #E3E9EA;  /* concept frame chrome, FAQ dividers */

  --radius: 4px;
  --radius-frame: 12px;
  --max: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

[data-phone-text] { white-space: nowrap; }

a { color: var(--line); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--ink); }
a:focus-visible,
.btn:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--line);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.top { padding-block: 1.25rem 0; position: relative; z-index: 2; }

.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--line); }

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

.hero { position: relative; padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem); }

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; display: block; }
/* Fade the hero's contour lines out before the section's top and bottom edges so none ends in a flat cut. */
.hero-bg { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 78%, transparent 100%); }

.contour {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.25;
  stroke-opacity: 0.17;
  vector-effect: non-scaling-stroke;
}
.contour path { vector-effect: non-scaling-stroke; }
.contour-rule { stroke-opacity: 0.45; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  /* 4–4.2× body on desktop, still ≥ 2.5× body on a 380px screen */
  font-size: clamp(2.75rem, 1.4rem + 5.2vw, 4.5rem);
  font-stretch: 118%;
  line-height: 1.03;
  text-wrap: balance;
}

.sub {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 31rem;
}

.cta { margin-top: 2rem; }

.btn {
  display: inline-block;
  text-align: center;
  padding: 1.05rem 1.6rem;
  background: var(--signal);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--signal-hover); color: #fff; }
.btn:active { background: var(--signal-active); transform: translateY(1px); }

/* Placeholder phone number: the link has no href, so it cannot dial. Shown as inert. */
.btn.is-disabled,
.btn.is-disabled:hover,
.btn.is-disabled:active {
  background: var(--signal);
  transform: none;
  cursor: not-allowed;
  outline: 2px dashed rgba(255, 255, 255, 0.6);
  outline-offset: -7px;
}

.under { margin-top: 1rem; color: var(--muted); font-size: 1rem; }

/* ---------- Sample concept frame (the one symmetry break) ---------- */

.hero-frame {
  /* bleeds past the right column edge of the page container */
  margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter) - 1.25rem));
  min-width: 0;
}

.frame-wrap {
  --ptop: 3.8rem;   /* room above the frame for the top labels */
  --pbot: 3.8rem;   /* room below the frame for the bottom labels */
  position: relative;
  container-type: inline-size;
  padding-block: var(--ptop) var(--pbot);
}

.frame {
  background: #fff;
  border: 1px solid var(--surface);
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 31, 43, 0.04), 0 18px 40px -18px rgba(15, 31, 43, 0.35);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 2cqw;
  height: max(5.4cqw, 2.4rem);
  padding-inline: 2.2cqw;
  background: var(--surface);
}
.dots { display: flex; gap: 0.9cqw; flex: none; }
.dots i { display: block; width: 1.2cqw; min-width: 6px; height: 1.2cqw; min-height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
.urlbar { flex: 1 1 0; max-width: 24cqw; height: 2.8cqw; min-height: 1rem; background: #fff; border-radius: var(--radius); }
.frame-tag {
  flex: none;
  margin: 0;
  background: var(--signal);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
}

/* The sample homepage. All sizes are in cqw so it scales as one picture. */
.cx { padding: 2.4cqw; display: grid; gap: 2.2cqw; color: var(--ink); }

.cx-head { display: flex; justify-content: space-between; align-items: center; }
.cx-name {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.3cqw;
  letter-spacing: -0.02em;
}
.cx-call { display: grid; place-items: center; width: 12cqw; height: 3.8cqw; background: var(--ink); border-radius: var(--radius); }
.cx-call svg { width: 2.2cqw; height: 2.2cqw; fill: #fff; }

.cx-main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.2cqw; }
.cx-left { display: grid; gap: 1.6cqw; align-content: start; }
.cx-h {
  margin: 0;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 3.5cqw;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.cx-btn {
  justify-self: start;
  background: var(--line);
  color: #fff;
  font-weight: 700;
  font-size: 1.75cqw;
  line-height: 1;
  padding: 1.2cqw 2.2cqw;
  border-radius: var(--radius);
}
.cx-art { height: 18cqw; border-radius: var(--radius); overflow: hidden; }
.cx-art svg { display: block; width: 100%; height: 100%; }

.cx-side { display: grid; gap: 2.2cqw; align-content: start; }
.cx-form {
  display: grid;
  align-content: start;
  gap: 1.2cqw;
  padding: 1.8cqw;
  background: var(--bg);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
}
.cx-form .field { display: block; height: 3cqw; background: #fff; border: 1px solid var(--surface); border-radius: var(--radius); }
.cx-form .field.tall { height: 6cqw; }
.cx-form .fg { display: grid; gap: 0.5cqw; }
.cx-form .lab { font-size: 1.8cqw; font-weight: 600; line-height: 1.2; }
.cx-form .submit { display: block; padding: 1cqw 0; text-align: center; background: var(--line); color: #fff; font-size: 1.8cqw; font-weight: 700; line-height: 1.2; border-radius: var(--radius); }

.cx-review { padding: 1.6cqw; background: var(--bg); border: 1px solid var(--surface); border-radius: var(--radius); }
.cx-q { margin: 0; font-size: 1.55cqw; line-height: 1.4; font-weight: 500; }
.cx-q .stars { color: var(--line); letter-spacing: 0.08em; }
.cx-sample { margin: 0.9cqw 0 0; font-size: 1.2cqw; line-height: 1.2; color: var(--muted); }

.cx-foot { display: flex; flex-wrap: wrap; gap: 0.6cqw 3cqw; padding-top: 1.8cqw; border-top: 1px solid var(--surface); }
.cx-foot p { margin: 0; font-size: 1.7cqw; font-weight: 600; line-height: 1.3; }

/* Callouts: labels sit outside the frame (above and below) with thin leader lines to a pin.
   --tx/--ty: pin position in cqw from the frame's left/top edge (--by: from the bottom edge).
   --cx: left edge of a left-anchored label, in cqw. */
.callouts { list-style: none; margin: 0; padding: 0; }

.co {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: 36cqw;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
}
.co::before, .co::after { content: ""; position: absolute; }
.co::before { width: 1px; background: var(--ink); }
.co::after { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }

.co-a { left: var(--cx); }
.co-a::before { left: calc(var(--tx) - var(--cx)); }
.co-a::after  { left: calc(var(--tx) - var(--cx) - 0.35rem); }
.co-r { right: 0; }
.co-r::before { right: calc(100cqw - var(--tx)); }
.co-r::after  { right: calc(100cqw - var(--tx) - 0.35rem); }

.co-up { bottom: calc(100% - var(--ptop) + 0.8rem); }
.co-up::before { top: 100%; height: calc(0.8rem + var(--ty)); }
.co-up::after  { top: calc(100% + 0.8rem + var(--ty) - 0.35rem); }
.co-down { top: calc(100% - var(--pbot) + 0.8rem); }
.co-down::before { bottom: 100%; height: calc(0.8rem + var(--by)); }
.co-down::after  { bottom: calc(100% + 0.8rem + var(--by) - 0.35rem); }

.co-call  { --tx: 87.4cqw; --ty: calc(max(5.4cqw, 2.4rem) + 2.4cqw); }
.co-form  { --tx: 80cqw; --cx: 48cqw; --ty: calc(max(5.4cqw, 2.4rem) + 8.4cqw); }
.co-proof { --tx: 93cqw; --by: 9cqw; }
.co-seo   { --tx: 20cqw; --cx: 0cqw; --by: 2.6cqw; max-width: 44cqw; }

/* One motion moment: frame settles in, then callouts appear with a 40ms stagger. */
@media (prefers-reduced-motion: no-preference) {
  .frame {
    animation: settle 400ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .co {
    animation: appear 200ms ease-out both;
    animation-delay: calc(400ms + var(--i) * 40ms);
  }
}
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.divider { height: 64px; line-height: 0; overflow: hidden; }
.divider svg { width: 100%; height: 100%; display: block; }
.divider-flip svg { transform: scaleY(-1); }

.band { padding-block: clamp(2.75rem, 6vw, 5rem); }

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.band h2 {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem);
  font-stretch: 115%;
  line-height: 1.1;
  text-wrap: balance;
}

.gains { list-style: none; margin: 0; padding: 0; }
.gains li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.3125rem;
  line-height: 1.4;
  font-weight: 500;
}
.gains li:last-child { border-bottom: 1px solid var(--line); }
.gains li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.8rem;
  width: 1.25rem;
  height: 2px;
  background: var(--line);
}

.steps { margin: 0; padding-left: 2.25rem; }
.steps li { padding: 0.4rem 0 0.8rem 0.4rem; }
.steps li::marker {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--line);
}
.steps-note {
  margin-top: 1.25rem;
  padding: 1rem 0 0 2.65rem;
  border-top: 1px solid var(--surface);
  font-weight: 600;
}

.who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: start; }
.who:has(.portrait[hidden]) { grid-template-columns: minmax(0, 1fr); }
.who p { max-width: 40rem; }
.portrait { margin: 0; }
.portrait img { display: block; width: 10rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.faq { margin: 0; }
.faq > div { padding: 1.25rem 0; border-top: 1px solid var(--surface); }
.faq > div:last-child { border-bottom: 1px solid var(--surface); }
.faq dt { font-weight: 700; font-size: 1.1875rem; }
.faq dd { margin: 0.35rem 0 0; max-width: 40rem; }

/* ---------- Closing call to action ---------- */

.close { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.close-body { grid-column: 2; }
.close .cta { margin-top: 0; }

/* ---------- Footer ---------- */

.foot { background: var(--ink); color: var(--bg); padding-block: 2.5rem; font-size: 1rem; }
.foot a { color: var(--bg); text-decoration: underline; }
.foot a.is-disabled { text-decoration: none; cursor: default; }
.foot a:hover { text-decoration-thickness: 2px; }
.foot a:active { color: #fff; }

/* ---------- 404 ---------- */

.is-404 { min-height: 100vh; display: flex; flex-direction: column; }
.is-404 .lost { flex: 1 0 auto; width: 100%; }
.lost { position: relative; min-height: 70vh; display: grid; align-content: center; padding-block: 4rem; }
.lost-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lost p, .lost a { position: relative; }
.lost p { font-family: var(--display); font-stretch: 118%; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2.2rem, 1rem + 5vw, 3.75rem); line-height: 1.08; }
.lost a { display: inline-block; margin-top: 1.5rem; font-size: 1.25rem; font-weight: 600; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 76rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero-frame { margin-right: calc(-1 * (var(--gutter) - 0.75rem)); max-width: 46rem; }
}

@media (max-width: 62rem) {
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .close-body { grid-column: 1; }
}

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .sub { font-size: 1.125rem; }
  .btn { display: block; width: 100%; }

  .hero-frame { margin-right: 0; }
  .frame-wrap { --ptop: 0rem; --pbot: 0rem; }

  /* Callouts become a short list under the frame. */
  .callouts { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
  .co {
    position: static;
    width: auto;
    max-width: none;
    background: none;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    padding: 0 0 0 1.75rem;
    border-radius: 0;
  }
  .co::after { display: none; }
  .co::before { position: absolute; left: 0; right: auto; top: 0.8em; bottom: auto; width: 1.1rem; height: 2px; background: var(--line); }

  .gains li { font-size: 1.1875rem; padding-left: 2rem; }
  .gains li::before { top: 1.65rem; width: 1rem; }
  .who { grid-template-columns: minmax(0, 1fr); }
  .portrait img { width: 8rem; }

  /* Footer: each item on its own line, on purpose. */
  .foot .wrap { display: grid; gap: 0.4rem; }
  .foot-sep { display: none; }
}
