/* ===== Brand variables ===== */
:root {
  --cg-brand:        #1F4B59;
  --cg-accent:       #3C979B;
  --cg-accent-dark:  #2d8488;
  --cg-accent-light: #56B3B5;
  --cg-white:        #FFFFFF;
  --cg-black:        #0F1923;
  --cg-dark:         #192530;
  --cg-dark-grey:    #374151;
  --cg-mid-grey:     #6B7280;
  --cg-light-grey:   #9CA3AF;
  --cg-pale-grey:    #F3F4F6;
  --cg-border:       #E5E7EB;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(31, 75, 89, 0.12);
  --shadow-lg:  0 8px 32px rgba(31, 75, 89, 0.16);
  --shadow-xl:  0 20px 60px rgba(31, 75, 89, 0.2);
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --max-w:      1100px;
  --max-w-wide: 1320px;
  --section-v:  5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--cg-dark-grey);
  background: var(--cg-white);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
details { margin: 0; }
button { font-family: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cg-brand) 0%, var(--cg-accent) 100%);
  color: var(--cg-white);
  box-shadow: 0 2px 8px rgba(60, 151, 155, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 4px 18px rgba(60, 151, 155, 0.42);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--cg-brand);
  border-color: var(--cg-accent);
}
.btn--outline:hover {
  background: rgba(60, 151, 155, 0.06);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--cg-dark-grey);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--cg-brand);
  background: rgba(60, 151, 155, 0.07);
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
}

.btn--full { width: 100%; }

/* ===== Logo ===== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cg-brand);
  text-decoration: none;
}
.logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav--scrolled {
  border-color: var(--cg-border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}
.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cg-dark-grey);
  transition: color 0.15s;
}
.nav__link:hover { color: var(--cg-accent); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (min-width: 48rem) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: 0; }
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(31,75,89,0.08), rgba(60,151,155,0.11));
  color: var(--cg-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.375rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(60, 151, 155, 0.22);
  margin-bottom: 1.375rem;
}

/* ===== Hero ===== */
.hero {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero__content {
  text-align: center;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--cg-black);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--cg-mid-grey);
  margin-bottom: 2rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero__small {
  font-size: 0.8125rem;
  color: var(--cg-light-grey);
}

.hero__visual {
  width: 100%;
  max-width: 880px;
}

@media (min-width: 64rem) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 5rem 1.5rem 4rem;
    gap: 3.5rem;
  }
  .hero__content {
    text-align: left;
    flex: 0 0 36%;
    max-width: none;
  }
  .hero__tagline { margin-left: 0; margin-right: 0; }
  .hero__ctas { justify-content: flex-start; }
  .hero__small { text-align: left; }
  .hero__visual { flex: 1; max-width: none; }
}

/* ===== App frame ===== */
.app-frame {
  background: var(--cg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--cg-border);
  overflow: hidden;
}
.app-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--cg-pale-grey);
  border-bottom: 1px solid var(--cg-border);
}
.app-frame__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cg-border);
  flex-shrink: 0;
}
.app-frame__url {
  font-size: 0.75rem;
  color: var(--cg-light-grey);
  background: var(--cg-white);
  border: 1px solid var(--cg-border);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  margin: 0 auto;
  font-family: monospace;
}
.app-frame__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Hero demo (image ↔ video swap) ===== */
.hero-demo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cg-pale-grey);
}
.hero-demo__img,
.hero-demo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 360ms ease;
}
.hero-demo__img { opacity: 1; z-index: 1; }
.hero-demo__video { opacity: 0; z-index: 2; pointer-events: none; }
.hero-demo[data-state="playing"] .hero-demo__img { opacity: 0; }
.hero-demo[data-state="playing"] .hero-demo__video { opacity: 1; pointer-events: auto; }
.hero-demo[data-state="ended"] .hero-demo__img { opacity: 1; z-index: 3; }
.hero-demo[data-state="ended"] .hero-demo__video { opacity: 0; }

.hero-demo__btn {
  position: absolute;
  bottom: 0.875rem;
  right: 0.875rem;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  color: var(--cg-white);
  background: rgba(15, 25, 35, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
}
.hero-demo__btn:hover {
  background: rgba(15, 25, 35, 0.92);
  transform: translateY(-1px);
}
.hero-demo[data-state="playing"] .hero-demo__btn--skip { display: inline-flex; }
.hero-demo[data-state="ended"] .hero-demo__btn--replay { display: inline-flex; }

/* ===== Feature screenshots ===== */
.feature-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--cg-border);
  box-shadow: var(--shadow-md);
  background: var(--cg-white);
}
.feature-img--mobile {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

/* ===== Proof bar ===== */
.proof-bar {
  border-top: 1px solid var(--cg-border);
  border-bottom: 1px solid var(--cg-border);
  background: var(--cg-pale-grey);
  padding: 1.125rem 1.5rem;
}
.proof-bar__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1.5rem;
}
.proof-bar__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cg-light-grey);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.proof-bar__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
}
.proof-bar__item {
  font-size: 0.9375rem;
  color: var(--cg-dark-grey);
  font-weight: 500;
}
.proof-bar__sep {
  color: var(--cg-light-grey);
}

/* ===== Section header ===== */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--cg-black);
  margin-bottom: 0.875rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--cg-mid-grey);
  line-height: 1.65;
}

/* ===== Features ===== */
.features {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--section-v) 1.5rem;
}

.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 5rem;
}
.feature-row:last-child { margin-bottom: 0; }

@media (min-width: 48rem) {
  .feature-row { grid-template-columns: 1fr 2fr; gap: 3rem; }
  .feature-row--flip { grid-template-columns: 2fr 1fr; }
  .feature-row--flip .feature-row__text { order: 2; }
  .feature-row--flip .feature-row__visual { order: 1; }
}

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cg-accent);
  margin-bottom: 0.75rem;
}
.feature-row__text h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--cg-black);
  margin-bottom: 0.875rem;
}
.feature-row__text p {
  font-size: 1rem;
  color: var(--cg-mid-grey);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-list li {
  font-size: 0.9375rem;
  color: var(--cg-dark-grey);
  padding-left: 1.375rem;
  position: relative;
  line-height: 1.45;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cg-accent);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== Beta benefits ===== */
.beta-benefits {
  padding: var(--section-v) 1.5rem;
  background: linear-gradient(180deg, rgba(60,151,155,0.04) 0%, var(--cg-white) 100%);
}
.beta-benefits__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.beta-benefits__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 48rem) {
  .beta-benefits__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.benefit-card {
  background: var(--cg-white);
  border: 1px solid var(--cg-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.benefit-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31,75,89,0.08), rgba(60,151,155,0.16));
  color: var(--cg-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cg-black);
}
.benefit-card p {
  font-size: 0.9375rem;
  color: var(--cg-mid-grey);
  line-height: 1.6;
}
.beta-benefits__cta {
  margin-top: 2.5rem;
  text-align: center;
}
.beta-benefits__cta-note {
  font-size: 0.8125rem;
  color: var(--cg-light-grey);
  margin-top: 0.75rem;
}

/* ===== FAQ ===== */
.faq {
  padding: var(--section-v) 1.5rem;
  background: var(--cg-pale-grey);
}
.faq__inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--cg-white);
  border: 1px solid var(--cg-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cg-black);
  padding: 1.125rem 1.375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--cg-accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--cg-accent); }
.faq-item p {
  font-size: 0.9375rem;
  color: var(--cg-dark-grey);
  line-height: 1.65;
  padding: 0 1.375rem 1.25rem;
}
.faq-item p a { color: var(--cg-accent); text-decoration: underline; }

/* ===== Final CTA ===== */
.cta-final {
  background: linear-gradient(135deg, var(--cg-brand) 0%, #2a6b7a 100%);
  padding: var(--section-v) 1.5rem;
  text-align: center;
}
.cta-final__inner {
  max-width: 560px;
  margin: 0 auto;
}
.cta-final h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--cg-white);
  margin-bottom: 1rem;
}
.cta-final p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.cta-final .btn--primary {
  background: var(--cg-white);
  color: var(--cg-brand);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.cta-final .btn--primary:hover {
  background: var(--cg-pale-grey);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
}
.cta-final__small {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--cg-dark);
  color: rgba(255, 255, 255, 0.7);
}
.footer__top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 48rem) {
  .footer__top { grid-template-columns: 1fr auto; }
}
.footer__brand .logo {
  color: var(--cg-white);
  margin-bottom: 0.875rem;
}
.footer__strapline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__col h4 {
  font-size: 0.7125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
  margin-bottom: 0.25rem;
}
.footer__col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--cg-white); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.32);
}

/* ===== Expression of interest ===== */
.interest {
  padding: var(--section-v) 1.5rem;
  background: linear-gradient(180deg, var(--cg-white) 0%, rgba(60, 151, 155, 0.04) 100%);
}
.interest__inner {
  max-width: 640px;
  margin: 0 auto;
}
.interest__form {
  background: var(--cg-white);
  border: 1px solid var(--cg-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
}
@media (min-width: 48rem) {
  .interest__form { padding: 2.5rem; }
}
.interest__row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 36rem) {
  .interest__row--2 { grid-template-columns: 1fr 1fr; }
}
.interest__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.interest__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cg-dark-grey);
}
.interest__label span {
  font-weight: 400;
  color: var(--cg-light-grey);
  margin-left: 0.25rem;
}
.interest__input,
.interest__select,
.interest__textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--cg-black);
  background: var(--cg-white);
  border: 1px solid var(--cg-border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.interest__input:focus,
.interest__select:focus,
.interest__textarea:focus {
  border-color: var(--cg-accent);
  box-shadow: 0 0 0 3px rgba(60, 151, 155, 0.14);
}
.interest__input::placeholder,
.interest__textarea::placeholder {
  color: var(--cg-light-grey);
}
.interest__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.interest__textarea {
  resize: vertical;
  min-height: 100px;
}
.interest__honeypot {
  display: none;
}
.interest__submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.875rem;
}
.interest__status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  margin-top: 1rem;
}
.interest__status--success {
  display: block;
  background: rgba(60, 151, 155, 0.08);
  border: 1px solid rgba(60, 151, 155, 0.3);
  color: var(--cg-brand);
}
.interest__status--error {
  display: block;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}
.interest__form--submitted .interest__submit { display: none; }

/* ===== Print ===== */
@media print {
  .nav, .proof-bar, .cta-final, .footer__nav { display: none; }
  .hero { flex-direction: column; }
  .hero__visual { display: none; }
  .feature-img { box-shadow: none; }
  .benefit-card, .faq-item { box-shadow: none; border: 1px solid #ddd; }
}
