/* CouldU marketing site — plain CSS, no build step.
   Palette comes from couldu-brand-assets/README.md. --teal-deep is a darker teal added for text,
   because the brand teal on white is only 2.5:1 contrast. */

@font-face {
  font-family: 'Quicksand';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/quicksand-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/quicksand-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/quicksand-700.woff2') format('woff2');
}

:root {
  --teal: #14b8a6;
  --teal-deep: #0f766e;
  --teal-light: #5eead4;
  --navy: #14213d;
  --navy-deep: #0b2530;
  --slate: #5b6b80;
  --bg: #f4fbfa;
  --surface: #ffffff;
  --line: #d6ebe8;
  /* Task status colours, same as the apps: Backlog red (the teal's complement), In progress logo
     teal, Done navy. */
  --status-backlog: #d4283f;
  --status-progress: #14b8a6;
  --status-done: #14213d;
  --radius: 16px;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Quicksand', var(--font-body);
}

*,
*::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img {
  height: 34px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 22px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.975rem;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}
.site-nav a[aria-current='page'] {
  color: var(--teal-deep);
}

/* ---------- Buttons ---------- */

/* Navy on teal is 6.4:1; white on teal would only be 2.5:1. */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--teal-light);
  color: var(--navy);
}
.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}
.btn-small {
  padding: 9px 20px;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
}
.hero h1 .accent {
  color: var(--teal-deep);
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 34em;
  margin: 20px 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--slate);
}

/* Phone mock-up: pure CSS/HTML, decorative. Mirrors the real Android app. */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  background: var(--navy);
  border-radius: 40px;
  padding: 11px;
  box-shadow: 0 24px 50px -18px rgba(20, 33, 61, 0.45);
}
.phone-screen {
  background: #f1f3f5;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}
.phone-top {
  background: #fff;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e5e7eb;
}
.phone-top img {
  height: 22px;
  width: auto;
}
.phone-chips {
  background: #fff;
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.66rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
}
.phone-chips span {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 9px;
}
.phone-list {
  flex: 1;
  background: #fff;
  margin: 0;
  padding: 0;
  list-style: none;
}
.phone-list li {
  padding: 11px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
}
.phone-list small {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  font-size: 0.68rem;
  color: #6b7280;
}
.phone-list .backlog {
  color: var(--status-backlog);
}
.phone-list .progress {
  color: var(--status-progress);
}
.phone-list .done {
  color: var(--status-done);
}
.phone-composer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 7px;
  padding: 10px 12px 14px;
  align-items: center;
}
.phone-composer .field {
  flex: 1;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: #9ca3af;
}
.phone-composer .send {
  background: var(--teal);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}
.section-head {
  max-width: 46em;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.section-head p {
  color: var(--slate);
  font-size: 1.1rem;
  margin: 14px 0 0;
}

.features {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}
.feature .tick {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal);
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}
.feature .tick svg {
  width: 20px;
  height: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal-light);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  color: var(--slate);
}
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-weight: 700;
  font-family: var(--font-display);
}
.status-legend span::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.status-legend .backlog::before {
  background: var(--status-backlog);
}
.status-legend .progress::before {
  background: var(--status-progress);
}
.status-legend .done::before {
  background: var(--status-done);
}

.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  max-width: 18em;
  margin: 0 auto;
}
.cta h2 .accent {
  color: var(--teal-light);
}
.cta p {
  color: #c7d4e6;
  max-width: 34em;
  margin: 16px auto 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #c7d4e6;
  padding: 44px 0 36px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer img {
  height: 30px;
  width: auto;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: var(--teal-light);
}
.site-footer .copy {
  flex-basis: 100%;
  margin: 0;
  color: #9fb0c6;
}

/* ---------- Legal / prose pages ---------- */

.prose-page {
  padding: 56px 0 80px;
}
.prose-page .wrap {
  max-width: 760px;
}
.prose-page h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}
.prose-page .updated {
  color: var(--slate);
  margin: 10px 0 32px;
}
.prose-page h2 {
  font-size: 1.5rem;
  margin: 40px 0 10px;
}
.prose-page h3 {
  font-size: 1.15rem;
  margin: 24px 0 6px;
}
.prose-page p,
.prose-page li {
  color: #26344f;
}
.prose-page ul {
  padding-left: 1.3em;
}
.prose-page li {
  margin: 6px 0;
}
.prose-page .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}
.prose-page .callout p {
  margin: 0;
}
.prose-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.98rem;
}
.prose-page th,
.prose-page td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose-page th {
  font-family: var(--font-display);
  color: var(--navy);
  width: 32%;
}

.not-found {
  text-align: center;
  padding: 96px 0 120px;
}
.not-found img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}
.not-found h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.not-found p {
  color: var(--slate);
  margin: 0 0 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 48px;
  }
  section {
    padding: 52px 0;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .site-header .wrap {
    justify-content: center;
  }
  .site-nav {
    justify-content: center;
  }
}
