/* =========================================================
   Chennai Mobile App — Stylesheet
   Design system: Cream + Chocolate Brown + Smartphone UI
   ========================================================= */

:root {
  --cream: #FCF8F3;
  --white: #FFFFFF;
  --dark-brown: #4A2C20;
  --brown: #6B4226;
  --caramel: #B7794B;
  --text: #241914;
  --muted: #75665E;
  --line: #E8DED2;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --container: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--dark-brown);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
  color: var(--text);
}

p.lede {
  color: var(--muted);
  font-size: 1.1rem;
}

a {
  color: var(--brown);
  text-decoration: none;
}

a:hover {
  color: var(--dark-brown);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark-brown);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--primary {
  background: var(--dark-brown);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brown);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--dark-brown);
  border-color: var(--dark-brown);
}

.btn--secondary:hover {
  background: var(--dark-brown);
  color: var(--white);
}

.btn--caramel {
  background: var(--caramel);
  color: var(--white);
}

.btn--caramel:hover {
  background: var(--dark-brown);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.text-link {
  font-weight: 600;
  border-bottom: 1.5px solid var(--caramel);
  padding-bottom: 2px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark-brown);
  font-size: 1.1rem;
}

.brand__mark {
  display: inline-flex;
}

.brand__mark img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 9px;
}

.brand--footer .brand__mark img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(252, 248, 243, 0.15);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--dark-brown);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--caramel);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--dark-brown);
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .site-header__actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 76px;
  background: var(--cream);
  z-index: 49;
  padding: 32px 24px;
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--dark-brown);
  font-family: var(--font-display);
  font-weight: 500;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu__footer a:first-child {
  font-weight: 600;
  color: var(--brown);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 20px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
}

/* ---------- Flash message ---------- */
.flash {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.flash--success {
  background: #EEF4E9;
  color: #3B5A2C;
  border: 1px solid #CFE1C1;
}

.flash--error {
  background: #FBEBE8;
  color: #7A2F22;
  border: 1px solid #F2C9C0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* Three-column hero: platforms list / animated phones / contact form.
   Center column is the widest so the phone mockups stay the hero's focal
   point, with the platform list and contact form as slimmer side rails. */
.hero__inner--split {
  grid-template-columns: 0.82fr 1.3fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.hero__col--contact {
  position: sticky;
  top: 100px;
}

.hero__title {
  font-size: 3rem;
  max-width: none;
  white-space: nowrap;
}

.hero__inner--split .hero__title {
  font-size: 1.9rem;
  white-space: normal;
}

.hero__inner--split .hero__subtitle {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.hero__inner--split .hero__text {
  max-width: 38ch;
  font-size: 0.92rem;
}

.hero__inner--split .hero__actions {
  gap: 10px;
  margin-top: 18px;
}

.hero__inner--split .hero__actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.hero__platforms {
  margin-top: 28px;
}

.hero__platforms-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin: 0 0 10px;
  color: var(--text);
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-10px);
  animation: tile-in-left 500ms ease-out forwards;
  animation-delay: var(--d, 0ms);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.platform-list__item:hover {
  transform: translateX(4px);
  border-color: var(--caramel);
  box-shadow: 0 14px 26px -18px rgba(36, 25, 20, 0.4);
}

.platform-list__item:hover .platform-list__icon {
  background: var(--caramel);
}

@keyframes tile-in-left {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.platform-list__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--dark-brown);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms ease;
}

.platform-list__icon svg {
  width: 14px;
  height: 14px;
}

.platform-list__label {
  flex: 1;
}

.platform-list__arrow {
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.platform-list__item:hover .platform-list__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--caramel);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero__text {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__stage {
  position: relative;
  background: transparent;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  animation: stage-reveal 700ms ease-out both;
}

/* Wider center column in the 3-col hero gives the phone stage room to run
   at its full, detailed size — same animation and content as elsewhere. */
.hero__inner--split .hero__stage {
  min-height: 460px;
}

@keyframes stage-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-mock {
  width: 220px;
  height: 440px;
  background: var(--white);
  border-radius: 32px;
  border: 8px solid var(--text);
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(36, 25, 20, 0.55);
}

.phone-mock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: var(--text);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-mock__screen {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 22px 12px 12px;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.app-statusbar__time {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.app-statusbar__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-statusbar__signal,
.app-statusbar__wifi {
  width: 12px;
  height: 8px;
  border-radius: 1px;
  background: var(--text);
  opacity: 0.8;
}

.app-statusbar__wifi {
  border-radius: 50% 50% 2px 2px;
  width: 10px;
}

.app-statusbar__battery {
  width: 16px;
  height: 8px;
  border: 1px solid var(--text);
  border-radius: 2px;
  position: relative;
  opacity: 0.8;
}

.app-statusbar__battery::after {
  content: '';
  position: absolute;
  inset: 1px;
  right: 3px;
  background: var(--text);
  border-radius: 1px;
}

/* App header: avatar + greeting + bell */
.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.app-header__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--caramel), var(--dark-brown));
}

.app-header__avatar--sm {
  width: 24px;
  height: 24px;
}

.app-header__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.app-header__line {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  display: block;
}

.app-header__line--sm {
  width: 50%;
}

.app-header__line--md {
  width: 70%;
}

.app-header__line--lg {
  width: 85%;
  background: var(--caramel);
}

.app-header__line--text {
  height: auto;
  width: auto;
  border-radius: 0;
  background: none;
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.app-header__line--brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.app-header__line--tag {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--muted);
}

.app-header__bell {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}

.app-header__bell::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -55%);
  border: 1.4px solid var(--muted);
  border-bottom: none;
  border-radius: 5px 5px 2px 2px;
}

.app-header__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--caramel);
}

/* Stat cards */
.app-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.app-stat {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-stat__value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.app-stat__star {
  color: var(--caramel);
  font-size: 12px;
}

.app-stat__label {
  font-size: 9px;
  color: var(--muted);
}

.app-stat--accent {
  border-color: var(--caramel);
}

/* Weekly bar chart card */
.app-chart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.app-chart__title {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.app-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
}

.app-chart__bars i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  background: var(--line);
  height: var(--h);
  transform-origin: bottom;
  font-style: normal;
}

/* Activity list */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.app-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-list__icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--caramel);
  flex-shrink: 0;
}

.app-list__icon--alt {
  background: var(--dark-brown);
}

.app-list__line {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  flex: 1;
}

.app-list__line--text {
  height: auto;
  background: none;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-list__time {
  font-size: 9px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Search bar (used on the back phone) */
.app-search {
  height: 28px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.app-search::before {
  content: '';
}

/* Bottom nav */
.app-navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  flex-shrink: 0;
}

.app-navbar__icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--line);
}

.app-navbar__icon--active {
  background: var(--dark-brown);
}

/* ---------- Hero phone animation (front / right-hand phone) ---------- */
@keyframes float-front {

  0%,
  100% {
    transform: translate(calc(-50% + 55px), calc(-50% - 15px)) rotate(-4deg);
  }

  50% {
    transform: translate(calc(-50% + 55px), calc(-50% - 33px)) rotate(-2deg);
  }
}

@keyframes float-back {

  0%,
  100% {
    transform: translate(calc(-50% - 95px), calc(-50% + 25px)) rotate(6deg) scale(0.82);
  }

  50% {
    transform: translate(calc(-50% - 95px), calc(-50% + 9px)) rotate(8deg) scale(0.82);
  }
}

@keyframes float-front-sm {

  0%,
  100% {
    transform: translate(calc(-50% + 40px), calc(-50% - 11px)) rotate(-4deg);
  }

  50% {
    transform: translate(calc(-50% + 40px), calc(-50% - 24px)) rotate(-2deg);
  }
}

@keyframes float-back-sm {

  0%,
  100% {
    transform: translate(calc(-50% - 70px), calc(-50% + 18px)) rotate(6deg) scale(0.82);
  }

  50% {
    transform: translate(calc(-50% - 70px), calc(-50% + 6px)) rotate(8deg) scale(0.82);
  }
}

.hero__stage .phone-mock {
  position: absolute;
  top: calc(50% + 45px);
  left: 50%;
}

.hero__stage .phone-mock:nth-child(1) {
  transform: translate(calc(-50% + 55px), calc(-50% - 15px)) rotate(-4deg);
  z-index: 2;
  animation: float-front 6s ease-in-out infinite;
}

.hero__stage .phone-mock:nth-child(2) {
  transform: translate(calc(-50% - 95px), calc(-50% + 25px)) rotate(6deg) scale(0.82);
  opacity: 0.85;
  z-index: 1;
  animation: float-back 6s ease-in-out infinite;
  animation-delay: -3s;
}

/* The brand tagline gets a subtle color shimmer, since it's now real text, not a loading bar */
@keyframes text-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.hero__stage .phone-mock:nth-child(1) .app-header__line--brand {
  background-image: linear-gradient(90deg, var(--text) 0%, var(--caramel) 50%, var(--text) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: text-shimmer 3.2s ease-in-out infinite;
}

/* Avatar breathes gently */
@keyframes avatar-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.hero__stage .phone-mock:nth-child(1) .app-header__avatar {
  animation: avatar-pulse 3.4s ease-in-out infinite;
}

/* Notification bell rings + its dot pings */
@keyframes bell-ring {

  0%,
  85%,
  100% {
    transform: rotate(0deg);
  }

  88% {
    transform: rotate(-12deg);
  }

  91% {
    transform: rotate(10deg);
  }

  94% {
    transform: rotate(-6deg);
  }

  97% {
    transform: rotate(0deg);
  }
}

@keyframes dot-ping {

  0%,
  74% {
    box-shadow: 0 0 0 0 rgba(183, 121, 75, 0.6);
  }

  90% {
    box-shadow: 0 0 0 6px rgba(183, 121, 75, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(183, 121, 75, 0);
  }
}

.hero__stage .phone-mock:nth-child(1) .app-header__bell {
  animation: bell-ring 4.5s ease-in-out infinite;
}

.hero__stage .phone-mock:nth-child(1) .app-header__dot {
  animation: dot-ping 4.5s ease-out infinite;
}

/* Accent stat card glows as if just refreshed */
@keyframes card-pulse {

  0%,
  100% {
    box-shadow: none;
    border-color: var(--caramel);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 14px 26px -12px rgba(183, 121, 75, 0.45);
    transform: translateY(-3px);
  }
}

.hero__stage .phone-mock:nth-child(1) .app-stat--accent {
  animation: card-pulse 3.4s ease-in-out infinite;
}

/* Weekly chart bars grow up as if the data just loaded */
@keyframes bar-grow {

  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.7;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i {
  animation: bar-grow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(1) {
  --i: 1;
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(2) {
  --i: 2;
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(3) {
  --i: 3;
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(4) {
  --i: 4;
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(5) {
  --i: 5;
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(6) {
  --i: 6;
}

.hero__stage .phone-mock:nth-child(1) .app-chart__bars i:nth-child(7) {
  --i: 7;
}

/* Activity icons take turns highlighting, like new items arriving */
@keyframes icon-highlight {

  0%,
  70%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  85% {
    transform: scale(1.12);
    filter: brightness(1.15);
  }
}

.hero__stage .phone-mock:nth-child(1) .app-list__icon {
  animation: icon-highlight 3.6s ease-in-out infinite;
}

.hero__stage .phone-mock:nth-child(1) .app-list__icon--alt {
  animation-delay: 1.8s;
}

/* Bottom nav: active tab gently bounces */
@keyframes nav-active {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.hero__stage .phone-mock:nth-child(1) .app-navbar__icon--active {
  animation: nav-active 2.4s ease-in-out infinite;
}

/* Notification badge popping onto the corner of the front phone */
.phone-mock__badge {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px -8px rgba(183, 121, 75, 0.65);
  opacity: 0;
  transform: scale(0.4) rotate(-15deg);
  animation: badge-pop 6s ease-in-out infinite;
}

.phone-mock__badge-check {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

@keyframes badge-pop {

  0%,
  54% {
    opacity: 0;
    transform: scale(0.4) rotate(-15deg);
  }

  62% {
    opacity: 1;
    transform: scale(1.15) rotate(0deg);
  }

  68% {
    transform: scale(0.95) rotate(0deg);
  }

  74%,
  92% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: scale(0.7) rotate(0deg);
  }
}

/* ---------- Back phone (portfolio preview) animations ---------- */

/* Small avatar breathes gently, offset from the front phone's rhythm */
.hero__stage .phone-mock:nth-child(2) .app-header__avatar--sm {
  animation: avatar-pulse 3.8s ease-in-out infinite;
  animation-delay: 0.6s;
}

/* Search bar: a soft highlight sweeps across it, like results are refreshing */
.app-search {
  position: relative;
  overflow: hidden;
}

@keyframes search-sweep {
  0% {
    transform: translateX(-100%);
  }

  60%,
  100% {
    transform: translateX(220%);
  }
}

.hero__stage .phone-mock:nth-child(2) .app-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(183, 121, 75, 0.28), transparent);
  animation: search-sweep 3.6s ease-in-out infinite;
}

/* Portfolio list rows take turns rising into place, as if newly loaded */
@keyframes list-item-in {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }

  50% {
    transform: translateY(2px);
    opacity: 0.75;
  }

  60% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero__stage .phone-mock:nth-child(2) .app-list__item {
  animation: list-item-in 3s ease-in-out infinite;
}

.hero__stage .phone-mock:nth-child(2) .app-list__item:nth-child(1) {
  animation-delay: 0s;
}

.hero__stage .phone-mock:nth-child(2) .app-list__item:nth-child(2) {
  animation-delay: 0.4s;
}

.hero__stage .phone-mock:nth-child(2) .app-list__item:nth-child(3) {
  animation-delay: 0.8s;
}

/* Portfolio icons highlight in turn too, matching the front phone's effect */
.hero__stage .phone-mock:nth-child(2) .app-list__icon {
  animation: icon-highlight 3.6s ease-in-out infinite;
  animation-delay: 0.2s;
}

.hero__stage .phone-mock:nth-child(2) .app-list__icon--alt {
  animation-delay: 2s;
}

/* Front phone status-bar clock colon blinks like a live clock */
@keyframes clock-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0.35;
  }
}

.hero__stage .phone-mock .app-statusbar__time {
  position: relative;
  animation: clock-blink 2s steps(1, end) infinite;
}

/* Front phone "Call" row gives a soft tap-ripple, like it's ready to be tapped */
@keyframes call-ripple {

  0%,
  70%,
  100% {
    box-shadow: 0 0 0 0 rgba(183, 121, 75, 0);
  }

  80% {
    box-shadow: 0 0 0 8px rgba(183, 121, 75, 0.18);
  }

  90% {
    box-shadow: 0 0 0 14px rgba(183, 121, 75, 0);
  }
}

.hero__stage .phone-mock:nth-child(1) .app-list__item:first-child {
  border-radius: 10px;
  animation: call-ripple 4.5s ease-out infinite;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__col--contact {
    position: static;
  }

  .hero__inner--split .hero__title {
    font-size: 2rem;
  }

  .hero__inner--split .hero__stage {
    margin: 8px 0;
  }

  .hero__title {
    font-size: 2.2rem;
    max-width: none;
    white-space: normal;
  }

  .hero__stage {
    min-height: 340px;
  }

  .phone-mock {
    width: 160px;
    height: 320px;
  }

  .hero__stage .phone-mock:nth-child(1) {
    transform: translate(calc(-50% + 40px), calc(-50% - 11px)) rotate(-4deg);
    animation-name: float-front-sm;
  }

  .hero__stage .phone-mock:nth-child(2) {
    transform: translate(calc(-50% - 70px), calc(-50% + 18px)) rotate(6deg) scale(0.82);
    animation-name: float-back-sm;
  }

  .phone-mock__screen {
    padding: 16px 10px 10px;
    gap: 0;
  }

  .app-chart,
  .app-list {
    display: none;
  }

  .app-header {
    margin-bottom: 10px;
  }

  .app-stats {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero__stage,
  .hero__stage .phone-mock,
  .hero__stage .phone-mock__screen *,
  .hero__stage .app-search::before,
  .phone-mock__badge {
    animation: none !important;
  }
}

/* ---------- Section headings ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Services (alternating rows, not cards) ---------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-row--reverse {
  direction: rtl;
}

.service-row--reverse>* {
  direction: ltr;
}

.service-row__points {
  padding-left: 18px;
  margin: 16px 0;
  color: var(--muted);
}

.service-row__points li {
  margin-bottom: 6px;
}

.service-row__visual {
  display: flex;
  justify-content: center;
}

.ui-crop {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.ui-crop::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 14px;
  border-radius: 4px;
  background: var(--line);
}

.ui-crop::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 8px;
  background: repeating-linear-gradient(180deg, var(--cream), var(--cream) 34px, var(--white) 34px, var(--white) 40px);
  border: 1px solid var(--line);
}

@media (max-width: 820px) {

  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-row__visual {
    order: -1;
  }
}

/* ---------- Why us ---------- */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}

.why-us__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.why-us__item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why-us__item p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .why-us__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process timeline ---------- */
.process-timeline {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.process-step {
  flex: 1 0 200px;
  position: relative;
  padding: 0 24px 0 0;
}

.process-step__index {
  font-family: var(--font-display);
  color: var(--caramel);
  font-weight: 700;
  font-size: 0.95rem;
}

.process-step__line {
  height: 2px;
  background: var(--line);
  margin: 14px 0 18px;
  position: relative;
}

.process-step__line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-brown);
}

.process-step:last-child .process-step__line::after {
  display: none;
}

.process-step h3 {
  font-size: 1.05rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.portfolio-item__stage {
  background: var(--dark-brown);
  border-radius: 18px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.phone-mock--sm {
  width: 90px;
  height: 180px;
  border-width: 5px;
  border-radius: 18px;
}

.phone-mock--sm::before {
  width: 40px;
  height: 8px;
}

.phone-mock--offset {
  position: absolute;
  transform: translate(24px, 12px) rotate(6deg);
  opacity: 0.85;
}

.portfolio-item__meta h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.portfolio-item__platform {
  color: var(--brown);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 2px;
}

.portfolio-item__stack {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.portfolio-item__tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--dark-brown);
  background: var(--line);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Technology ---------- */
.tech-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.tech-list li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--dark-brown);
}

/* ---------- Build-your-app widget ---------- */
.builder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
}

.builder__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.builder fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.builder legend {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 12px;
  padding: 0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
}

.chip label {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 140ms ease;
}

.chip input:checked+label {
  background: var(--dark-brown);
  border-color: var(--dark-brown);
  color: var(--white);
}

.chip input:focus-visible+label {
  outline: 2px solid var(--caramel);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .builder__grid {
    grid-template-columns: 1fr;
  }

  .builder {
    padding: 28px;
  }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-tier {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  background: var(--white);
}

.pricing-tier--featured {
  border-color: var(--dark-brown);
  background: var(--cream);
}

.pricing-tier h3 {
  margin-bottom: 8px;
}

.pricing-tier p {
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-tier ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
}

.pricing-tier li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.pricing-tier li:first-child {
  border-top: none;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark-brown);
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark-brown);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2,
.cta-band p {
  color: var(--cream);
}

.cta-band p {
  color: #E7D9C9;
  margin: 0;
}

.cta-band h2 {
  margin-bottom: 8px;
}

/* ---------- Platforms + quick enquiry ---------- */
.platforms {
  padding: 88px 0;
  background: var(--white);
}

.platforms__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.platform-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(14px);
  animation: tile-in 600ms ease-out forwards;
  animation-delay: var(--d, 0ms);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, background 250ms ease;
}

.platform-tile:hover {
  transform: translateY(-5px);
  border-color: var(--caramel);
  background: var(--white);
  box-shadow: 0 18px 32px -20px rgba(36, 25, 20, 0.4);
}

.platform-tile:hover .platform-tile__icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--caramel);
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--dark-brown);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 250ms ease, background 250ms ease;
}

.platform-tile__icon svg {
  width: 24px;
  height: 24px;
}

.quick-enquiry {
  background: var(--dark-brown);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 30px 60px -30px rgba(36, 25, 20, 0.55);
  max-width: 320px;
}

.quick-enquiry h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.quick-enquiry > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 16px;
}

.quick-enquiry__form .form-row {
  margin-bottom: 12px;
}

.quick-enquiry__form label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.quick-enquiry__form input,
.quick-enquiry__form textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 9px 11px;
  font-size: 0.85rem;
}

.quick-enquiry__form textarea {
  min-height: 64px;
}

.quick-enquiry__form .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.quick-enquiry__form label {
  color: rgba(255, 255, 255, 0.85);
}

.quick-enquiry__form input,
.quick-enquiry__form textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.quick-enquiry__form input::placeholder,
.quick-enquiry__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.quick-enquiry__form input:focus,
.quick-enquiry__form textarea:focus {
  outline-color: var(--caramel);
  border-color: var(--caramel);
}

.quick-enquiry__phone {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.quick-enquiry__phone-code {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.quick-enquiry__phone input {
  border: none;
  background: transparent;
}

.quick-enquiry__phone input:focus {
  outline: none;
}

.quick-enquiry .form-row--split {
  gap: 12px;
}

@media (max-width: 900px) {
  .platforms__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .platform-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Forms ---------- */
.form-row {
  margin-bottom: 20px;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark-brown);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--caramel);
  outline-offset: 1px;
  border-color: var(--caramel);
}

@media (max-width: 620px) {
  .form-row--split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact page layout ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero__eyebrow {
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 6px;
}

.page-hero__text {
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.about-block h3 {
  font-size: 1.1rem;
}

.about-block p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-brown);
  color: #E7D9C9;
  padding: 72px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: #C9B6A4;
  font-size: 0.92rem;
  max-width: 32ch;
}

.brand--footer {
  color: var(--cream);
  margin-bottom: 12px;
}

.site-footer h3 {
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: #C9B6A4;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--cream);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #B49D89;
}

.footer__bottom ul {
  flex-direction: row;
  gap: 20px;
}

@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--dark-brown);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: #E7D9C9;
  margin: 0;
  max-width: 62ch;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--cream);
  border-bottom: 1px solid var(--caramel);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner .btn--secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.4);
}

.cookie-banner .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

/* ---------- Cookie preferences modal ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 25, 20, 0.55);
}

.cookie-modal__panel {
  position: relative;
  background: var(--cream);
  border-radius: 16px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px -20px rgba(36, 25, 20, 0.45);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cookie-modal__header h2 {
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.cookie-modal__close:hover {
  color: var(--dark-brown);
}

.cookie-modal__intro {
  color: var(--muted);
  margin-bottom: 24px;
}

.cookie-category {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cookie-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cookie-category h3 {
  font-size: 1rem;
  margin: 0;
}

.cookie-category p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  border-radius: 100px;
  background: var(--line);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 140ms ease;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-toggle__dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 140ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked~.cookie-toggle__dot {
  transform: translateX(18px);
}

.cookie-toggle input:checked+.cookie-toggle__dot,
.cookie-toggle:has(input:checked) {
  background: var(--dark-brown);
}

.cookie-toggle input:focus-visible~.cookie-toggle__dot {
  outline: 2px solid var(--caramel);
  outline-offset: 2px;
}

.cookie-toggle--locked {
  background: var(--dark-brown);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle--locked .cookie-toggle__dot {
  transform: translateX(18px);
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 620px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-modal__actions {
    justify-content: stretch;
  }

  .cookie-modal__actions .btn {
    flex: 1;
  }
}