/* Count My Cart website. Tokens mirror the app's src/global.css. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Coolvetica';
  src: url('assets/fonts/Coolvetica.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --background: hsl(180 20% 97%);
  --foreground: hsl(195 35% 11%);
  --card: #fff;
  --primary: #0f766e;
  --primary-light: #14a394;
  --primary-soft: hsl(168 70% 91%);
  --secondary: hsl(180 25% 90%);
  --muted: hsl(180 16% 94%);
  --muted-foreground: hsl(211 16% 41%);
  --accent: #f26b5b;
  --accent-ink: #c2362b;
  --accent-soft: hsl(10 100% 94%);
  --warning: #f5a524;
  --warning-soft: hsl(48 90% 95%);
  --border: hsl(175 25% 84%);
  --radius: 16px;
  --shadow: 0 18px 40px -18px hsl(175 60% 20% / 0.28);
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: 'Coolvetica', 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

/* The cart mark, tinted with the current text colour. */
.mark {
  display: inline-block;
  width: 54px;
  aspect-ratio: 2406 / 2648;
  background: currentColor;
  -webkit-mask: url('assets/logo-mark.svg') center / contain no-repeat;
  mask: url('assets/logo-mark.svg') center / contain no-repeat;
  flex: none;
}

.wordmark {
  font-family: 'Coolvetica', sans-serif;
  font-size: 36px;
  line-height: 0.86;
  transform: skewX(-8deg);
  text-transform: lowercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-ghost {
  border-color: hsl(0 0% 100% / 0.55);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--foreground);
  color: hsl(180 15% 88%);
  font-size: 14px;
  line-height: 1.4;
}
.announce .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}
.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.announce-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--foreground);
  animation: announce-pulse 1.8s ease-in-out infinite;
}
@keyframes announce-pulse {
  50% {
    opacity: 0.25;
  }
}
.announce a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 4px;
}
.announce a::after {
  content: ' \2192';
}

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

/* No top offset, so the header sits just below the announcement bar when there is one. */
.site-header {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.92;
}
.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav .btn {
  min-height: 42px;
  padding: 0 20px;
  opacity: 1;
  color: var(--primary);
}
.nav .btn:hover {
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 45%, var(--primary-light) 100%);
  padding: 150px 0 0;
  /* Curved bottom edge, like the app's headers. */
  border-radius: 0 0 50% 50% / 0 0 70px 70px;
}
.hero::before {
  content: '';
  position: absolute;
  right: -160px;
  top: -80px;
  width: 620px;
  aspect-ratio: 2406 / 2648;
  background: #fff;
  opacity: 0.07;
  -webkit-mask: url('assets/logo-mark.svg') center / contain no-repeat;
  mask: url('assets/logo-mark.svg') center / contain no-repeat;
  transform: rotate(-12deg);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.hero-copy {
  padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.14);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
}
.hero .lede {
  margin-top: 22px;
  max-width: 30em;
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.95;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fineprint {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.85;
}
.hero-phone {
  justify-self: center;
  margin-bottom: -90px;
}

/* ---------- Phone frame ---------- */

.phone {
  width: min(310px, 78vw);
  border: 9px solid hsl(195 35% 11%);
  border-radius: 46px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 70px -30px hsl(195 60% 8% / 0.55);
}
.phone img {
  width: 100%;
  height: auto;
}

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

section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(34px, 4.6vw, 52px);
}
.section-head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: 19px;
}

/* Intro strip under the hero */
.strip {
  padding: 150px 0 40px;
}
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  background: var(--card);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 1px 0 var(--border);
}
.stat h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.stat p {
  color: var(--muted-foreground);
  font-size: 16px;
}
.stat .dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}
.stat .dot.coral {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.stat .dot.amber {
  background: var(--warning-soft);
  color: hsl(28 80% 34%);
}
.stat svg {
  width: 22px;
  height: 22px;
}

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature + .feature {
  margin-top: 110px;
}
.feature.flip .feature-media {
  order: 2;
}
.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  border-radius: 40px;
  background: var(--primary-soft);
}
.feature-media.coral {
  background: var(--accent-soft);
}
.feature-media.cream {
  background: var(--warning-soft);
}
.feature-media .phone {
  width: min(280px, 70vw);
}
.feature h3 {
  font-size: clamp(30px, 3.6vw, 42px);
}
.feature p {
  margin-top: 16px;
  color: var(--muted-foreground);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* How it works */
.how {
  background: var(--card);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  padding: 30px;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  background: var(--background);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Coolvetica', sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
}
.steps h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.steps p {
  color: var(--muted-foreground);
  font-size: 16px;
}

/* Stores */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.stores li {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 14px 18px;
  border-radius: 24px;
  background: var(--card);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.store-logo {
  display: grid;
  place-items: center;
  height: 56px;
}
.store-logo img {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 52px;
  border-radius: 8px;
}
.note {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  padding-bottom: 20px;
  color: var(--muted-foreground);
}

/* Download band */
.band {
  padding: 0 0 96px;
}
.band-inner {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.band-inner::after {
  content: '';
  position: absolute;
  left: -70px;
  bottom: -120px;
  width: 320px;
  aspect-ratio: 2406 / 2648;
  background: #fff;
  opacity: 0.08;
  -webkit-mask: url('assets/logo-mark.svg') center / contain no-repeat;
  mask: url('assets/logo-mark.svg') center / contain no-repeat;
  transform: rotate(14deg);
}
.band-inner > * {
  position: relative;
  z-index: 1;
}
.band-inner p {
  max-width: 32em;
  margin: 16px auto 0;
  opacity: 0.95;
}
.band-inner .cta-row {
  justify-content: center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.contact-list span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.contact-list a,
.contact-list strong {
  font-weight: 600;
  font-size: 18px;
}
.form {
  background: var(--card);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.form input,
.form textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--foreground);
}
.form textarea {
  border-radius: 22px;
  min-height: 130px;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: 3px solid var(--primary-soft);
  border-color: var(--primary);
}
.form small {
  color: var(--muted-foreground);
}

.placeholder-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: hsl(28 80% 30%);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

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

.site-footer {
  background: hsl(195 35% 11%);
  color: hsl(180 15% 88%);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand {
  color: #fff;
}
.site-footer p {
  margin-top: 16px;
  max-width: 26em;
  opacity: 0.8;
}
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.legal-line {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid hsl(190 15% 25%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  opacity: 0.75;
}

/* ---------- Legal pages ---------- */

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 140px 0 80px;
  border-radius: 0 0 50% 50% / 0 0 50px 50px;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.page-hero p {
  margin-top: 12px;
  opacity: 0.9;
}
.prose {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 96px;
}
.prose h2 {
  font-size: 30px;
  margin: 44px 0 12px;
}
.prose p,
.prose li {
  color: hsl(195 20% 24%);
}
.prose p + p {
  margin-top: 14px;
}
.prose ul {
  padding-left: 22px;
  margin: 12px 0 0;
}
.prose li + li {
  margin-top: 6px;
}
.callout {
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--warning-soft);
  border: 1.5px solid hsl(40 80% 80%);
  color: hsl(28 80% 26%);
  font-weight: 500;
}

.glance {
  background: var(--card);
  border-radius: 32px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.prose .glance h2 {
  margin: 0 0 8px;
  font-size: 26px;
}
.glance dl {
  margin: 0;
}
.glance dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.glance dl > div:first-child {
  border-top: 0;
}
.glance dt {
  font-weight: 700;
  color: var(--primary);
}
.glance dd {
  margin: 0;
  color: hsl(195 20% 24%);
}
.prose .glance + h2 {
  margin-top: 56px;
}
.prose .callout,
.prose .note {
  margin: 14px 0;
}
.note {
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--primary-soft);
  border: 1.5px solid hsl(168 45% 80%);
  color: hsl(175 60% 18%);
  font-weight: 500;
}
@media (max-width: 520px) {
  .glance {
    padding: 22px;
    border-radius: 24px;
  }
  .glance dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav a:not(.btn) {
    display: none;
  }
  .hero {
    padding-top: 120px;
    border-radius: 0 0 50% 50% / 0 0 36px 36px;
  }
  .hero .wrap,
  .feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-bottom: 8px;
  }
  .feature {
    gap: 32px;
  }
  .feature + .feature {
    margin-top: 72px;
  }
  .feature.flip .feature-media {
    order: 0;
  }
  .strip .wrap,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  section {
    padding: 72px 0;
  }
  .strip {
    padding-top: 130px;
  }
  .band-inner {
    padding: 48px 24px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .mark {
    width: 46px;
  }
  .wordmark {
    font-size: 30px;
  }
  .stores {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrap {
    padding: 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-row .btn {
    width: 100%;
  }
  .form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .announce-tag::before {
    animation: none;
  }
}

/* ---------- About page ---------- */

.about-intro {
  padding-bottom: 32px;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.about-copy {
  display: grid;
  gap: 16px;
  color: hsl(195 20% 24%);
  font-size: 18px;
}
.team-section {
  background: var(--card);
}
.team {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.person {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px 28px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  background: var(--background);
}
.avatar,
.person img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin-bottom: 14px;
  object-fit: cover;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: 'Coolvetica', sans-serif;
  font-size: 44px;
}
.person h3 {
  font-size: 28px;
}
.person .role {
  font-weight: 700;
  color: var(--primary);
}
.person .bio {
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 16px;
}
.linkedin {
  margin-top: 10px;
  font-weight: 600;
}
.company {
  padding-top: 72px;
}
.company-card {
  display: grid;
  gap: 28px;
  padding: 40px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.company-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.company-facts dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.company-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 18px;
}
.company-note {
  color: var(--muted-foreground);
  font-size: 15px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .company-card {
    padding: 28px 22px;
  }
}
