/* PlankByte: single-page site styles */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours, sampled from logo.png */
  --navy: #0b2444;
  --navy-700: #12315a;
  --navy-600: #1c4170;
  --teal: #0d9a96;        /* the logo's square: decoration and large shapes */
  --teal-ink: #0b7f7b;    /* teal dark enough for text on cream */
  --teal-bright: #3cc8c2; /* teal for use on navy */
  --cream: #fefdf5;       /* logo background */
  --cream-alt: #f7f4e6;
  --line: #e7e2cf;
  --ink: #0b2444;
  --ink-2: #3d4f68;
  --white: #ffffff;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 68, 0.06), 0 4px 12px -6px rgba(11, 36, 68, 0.12);
  --shadow-lg: 0 2px 4px rgba(11, 36, 68, 0.04), 0 24px 56px -18px rgba(11, 36, 68, 0.28);
  --max: 1140px;
  --header-h: 68px;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--teal-ink);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* The hidden <svg> that holds the brand-mark <symbol>. */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-600);
}

.btn-ghost {
  border-color: rgba(11, 36, 68, 0.22);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--navy);
}

.btn-bright {
  background: var(--teal-bright);
  color: var(--navy);
}

.btn-bright:hover {
  background: #5fd6d0;
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(254, 253, 245, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36.2px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--navy);
}

@media (max-width: 760px) {
  nav {
    display: none;
  }
}

/* ---------- Shared section pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
}

.band {
  padding-block: clamp(64px, 9vw, 112px);
}

.band-tight {
  padding-block: clamp(48px, 7vw, 88px);
}

.band-alt {
  border-block: 1px solid var(--line);
  background: var(--cream-alt);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

h2 {
  margin-top: 14px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(72px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

h1 {
  margin-block: 18px 22px;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hl {
  background: linear-gradient(transparent 68%, rgba(13, 154, 150, 0.35) 68%, rgba(13, 154, 150, 0.35) 92%, transparent 92%);
}

.lead {
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Hero app mock-up ---------- */

.mock {
  position: relative;
  isolation: isolate;
  max-width: 540px;
  justify-self: center;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
}

.mock::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  right: -28px;
  width: 132px;
  height: 132px;
  border-radius: 20px;
  background: var(--teal);
}

.window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #edf0f3;
  background: #f8f9fb;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dde2e8;
}

.url {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #edf0f3;
  color: #6a7a90;
  font-size: 12px;
}

.app {
  display: flex;
}

.app-side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 56px;
  padding: 16px 0;
  background: var(--navy);
}

.side-logo {
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--teal-bright);
}

.side-item {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.side-item.is-active {
  background: rgba(60, 200, 194, 0.45);
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 18px 18px 44px;
}

.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.app-kicker {
  color: #6a7a90;
  font-size: 12px;
}

.app-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-btn {
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 9px 10px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fbfcfd;
}

.stat-label {
  color: #6a7a90;
  font-size: 11px;
}

.stat-value {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1px solid #f0f2f5;
}

.row:first-child {
  border-top: 0;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.a1 { background: #e6edf9; color: var(--navy-600); }
.a2 { background: #fdf0d5; color: #8a5a00; }
.a3 { background: #dcf3f2; color: #0b6f6b; }
.a4 { background: #ece8fb; color: #4a3a9a; }

.row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.row-text b {
  overflow: hidden;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-text small {
  color: #6a7a90;
  font-size: 12px;
}

.pill {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.pill-blue { background: #e6edf9; color: var(--navy-600); }
.pill-amber { background: #fdf0d5; color: #8a5a00; }
.pill-teal { background: #dcf3f2; color: #0b6f6b; }

.toast {
  position: absolute;
  bottom: -26px;
  left: -28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.toast b {
  display: block;
  font-size: 13.5px;
}

.toast small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.toast-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--teal-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M9 15.5l4 4 8-9' fill='none' stroke='%230b2444' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
}

@media (max-width: 900px) {
  .mock {
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .mock::before {
    top: -16px;
    right: -10px;
    width: 96px;
    height: 96px;
  }

  .toast {
    left: 12px;
    right: auto;
    bottom: -30px;
  }

  .stat-value {
    font-size: 16px;
  }
}

/* ---------- Problems ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quotes li {
  position: relative;
  padding: 52px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.quotes li::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 22px;
  color: var(--teal);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 560px) {
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

.card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 154, 150, 0.12);
  color: var(--teal-ink);
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 24px;
  }
}

/* ---------- Process ---------- */

.band-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.band-navy h2,
.band-navy h3 {
  color: var(--white);
}

.band-navy .eyebrow {
  color: var(--teal-bright);
}

.band-navy .eyebrow::before {
  background: var(--teal-bright);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid rgba(255, 255, 255, 0.14);
}

.step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal-bright);
}

.step-num {
  color: var(--teal-bright);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-top: 6px;
  font-size: 1.3rem;
}

.step p {
  margin-top: 10px;
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- Why ---------- */

.principles {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  position: relative;
  padding: 22px 0 22px 34px;
  border-top: 1px solid var(--line);
}

.principles li:last-child {
  border-bottom: 1px solid var(--line);
}

.principles li::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal);
}

.principles h3 {
  font-size: 1.2rem;
}

.principles p {
  margin-top: 6px;
  color: var(--ink-2);
}

/* ---------- Contact ---------- */

.cta {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 24px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
}

.cta::after {
  content: "";
  position: absolute;
  top: -64px;
  right: -64px;
  width: 180px;
  height: 180px;
  border-radius: 28px;
  background: var(--teal);
  opacity: 0.28;
}

.cta-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 26rem;
  max-width: 40rem;
}

.cta h2 {
  margin-top: 0;
  color: var(--white);
}

.cta p {
  margin-top: 14px;
  font-size: 1.125rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .cta::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .cta-actions .btn {
    white-space: normal;
  }
}

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

.site-footer {
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
}

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

.brand-sm {
  font-size: 1.05rem;
}

.brand-sm .brand-mark {
  width: 30.16px;
  height: 20px;
}

.footer-tag {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.footer-meta a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-meta {
    margin-left: 0;
  }
}
