:root {
  --bg: #fffaf3;
  --soft: #f5eadb;
  --ink: #1d2430;
  --muted: #5d6674;
  --brand: #c56b32;
  --brand-dark: #94481e;
  --deep: #18202b;
  --card: #ffffff;
  --line: rgba(29, 36, 48, 0.12);
  --shadow: 0 18px 45px rgba(29, 36, 48, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-spacer-small {
  width: 2px;
  display: inline-block;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: start;
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 3vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 2vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  margin: 0 0 18px;
}

.lead {
  font-size: 1.1rem;
  color: #3c4654;
}

.lead-small {
  font-size: 1rem;
  color: #3c4654;
}

.price-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 12px 18px;
  margin: 12px 0 26px;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.center-buttons {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn.secondary:hover {
  border-color: rgba(29, 36, 48, 0.25);
}

.btn.full {
  width: 100%;
  margin-top: 16px;
}

.center-card {
  text-align: center;
}

.center-card img {
  margin-left: auto;
  margin-right: auto;
}

.app-card.center-card {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.centred-card {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  grid-column: 1 / -1;
}

.equal-buttons {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.equal-buttons .btn {
  width: 400px;
  text-align: center;
  white-space: normal;
}

.card-image img,
.image-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ddd;
}

.soft-bg {
  background: var(--soft);
}

.dark-section {
  background: var(--deep);
  color: white;
}

.dark-section p {
  color: rgba(255, 255, 255, 0.74);
}

.dark-section .eyebrow {
  color: #f1b282;
}

.dark-section article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-box,
.pricing-card,
.split-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #354052;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-dark);
  font-weight: 900;
}

.check-list.compact li {
  margin-bottom: 8px;
}

.center {
  text-align: center;
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 38px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.step-card,
.app-card,
.benefit-grid article,
.roadmap-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(29, 36, 48, 0.07);
}

.step-card img,
.app-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #ddd7cc;
  margin-bottom: 16px;
}

.step-card h3,
.app-card h3 {
  margin-bottom: 8px;
}

.step-card p,
.app-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.top-space {
  margin-top: 34px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.quote-line {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.roadmap-grid article {
  min-height: 160px;
}

.roadmap-grid .card,
.roadmap-grid article,
.roadmap-grid div {
  color: #162331;
}

.roadmap-grid h3,
.roadmap-grid h4 {
  color: #162331;
}

.roadmap-grid p,
.roadmap-grid li {
  color: #334155;
}

.price {
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: var(--ink);
}

.per {
  margin-top: 4px;
  font-weight: 700;
  color: var(--brand-dark);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.split-card {
  display: grid;
  gap: 22px;
}

.final-cta {
  background: linear-gradient(135deg, #fffaf3 0%, #f2dfca 100%);
}

.final-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin: 10px 0 24px;
}

.site-footer {
  background: #121820;
  color: white;
  padding: 48px 0;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  margin: 0 0 12px;
}

.site-footer a:not(.logo) {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

/* Apps Library page */

.featured-app-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.featured-app-card img {
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ddd7cc;
}

.featured-copy p:last-of-type {
  margin-bottom: 22px;
}

.top-space-small {
  margin-top: 22px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.library-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(29, 36, 48, 0.07);
}

.library-card.flagship {
  border-color: rgba(197, 107, 50, 0.38);
  box-shadow: 0 18px 45px rgba(197, 107, 50, 0.14);
}

.library-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: #ddd7cc;
  margin-bottom: 16px;
}

.card-meta {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: #fffaf3;
}

.library-card ul {
  margin: 0 0 18px 18px;
  padding: 0;
  color: #354052;
  font-size: 0.92rem;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 900;
}

.dark-on-light {
  color: var(--ink);
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mini-card-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(29, 36, 48, 0.07);
}

.roadmap-light article {
  background: white;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(197, 107, 50, 0.12);
}

.hidden-field {
  display: none !important;
}

/* Single-column page sections */

.single-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.single-col-form {
  width: min(720px, 100%);
  margin: 0 auto;
}

.max-slide-img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 0 24px 0;
}

/* Responsive rules */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .two-col,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-app-card {
    grid-template-columns: 1fr;
  }

  .library-grid,
  .mini-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1140px);
  }

  .section-pad {
    padding: 58px 0;
  }

  .nav-cta {
    display: none;
  }

  .steps-grid,
  .app-grid,
  .roadmap-grid,
  .benefit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .library-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .equal-buttons {
    flex-direction: column;
  }

  .equal-buttons .btn {
    width: 100%;
  }

  h1 {
    font-size: 3.15rem;
  }

  .price {
    font-size: 4rem;
  }
}

/* Member experience page fixed-layout scaling */
/* This is intentionally placed at the end so it overrides normal responsive card behaviour. */

.member-fit-wrap {
  width: 100%;
  overflow-x: auto;
}

.member-fit {
  width: 1140px;
  max-width: 1140px;
  margin: 0 auto;
  zoom: 1;
}

.member-fit .container {
  width: 1140px;
  max-width: 1140px;
}

.member-fit .library-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Scale down, but never above 100% */

@media (max-width: 1180px) {
  .member-fit {
    zoom: 0.9;
  }
}

@media (max-width: 1040px) {
  .member-fit {
    zoom: 0.8;
  }
}

@media (max-width: 920px) {
  .member-fit {
    zoom: 0.7;
  }
}

@media (max-width: 800px) {
  .member-fit {
    zoom: 0.6;
  }
}