/* Merv parent-brand page and product styles */

:root { --color-teamsync: #5b32d6; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--color-border); background: rgb(243 251 249 / .92); backdrop-filter: blur(14px); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; width: max-content; }
.wordmark__logo { width: auto; height: 2.5rem; }
.wordmark:focus-visible { border-radius: var(--radius-sm); outline: 2px solid var(--color-text-title); outline-offset: 4px; box-shadow: 0 0 0 6px var(--color-primary-soft); }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { position: relative; color: var(--color-text-title); font-size: .86rem; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: -.65rem; left: 0; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin-block: 5px; background: var(--color-primary); transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--color-border); }
.mobile-menu__inner { display: grid; gap: 1rem; padding: 1.25rem 1rem 1.5rem; }

.hero-section { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 8vw, 7rem); border-bottom: 1px solid var(--color-border); }
.hero-atmosphere { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 46%; background: radial-gradient(circle at 58% 32%, rgb(70 185 172 / .13), transparent 45%), radial-gradient(circle at 88% 72%, rgb(185 70 83 / .08), transparent 34%); pointer-events: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(26rem, 1.12fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 12ch; font-size: clamp(3.25rem, 4.7vw, 4.5rem); }
.hero-copy > .section-kicker { margin-bottom: 1rem; }
.hero-copy > p:not(.section-kicker) { max-width: 32rem; margin-top: 1.5rem; font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.1rem; }
.text-link--secondary { color: var(--color-text-title); }

.screen-frame,
.phone-frame,
.screen-thumb {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.screen-frame { border-radius: var(--radius-md); }
.screen-frame--dark { border-color: #26342f; background: #070d18; box-shadow: var(--shadow-product); }
.screen-frame--light { background: #fff; }
.screen-frame img,
.phone-frame img,
.screen-thumb img { display: block; width: 100%; height: auto; }
.screen-frame figcaption,
.screen-thumb figcaption {
  padding: .7rem .85rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: .72rem;
}
.phone-frame {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgb(15 25 20 / .22);
}
.hero-screen-composition {
  display: grid;
  align-items: end;
  min-height: 480px;
}
.hero-screen-main {
  width: min(100%, 760px);
}
.hero-screen-main img {
  aspect-ratio: 1.45;
  object-fit: cover;
  object-position: top left;
}
.hero-screen-phone {
  position: absolute;
  right: -1%;
  bottom: -1rem;
  width: min(25%, 168px);
}
.signature-shape {
  position: relative;
  min-height: 31rem;
  isolation: isolate;
}
.signature-shape__mesh {
  position: absolute;
  inset: 1%;
  border-radius: 57% 43% 38% 62% / 44% 56% 44% 56%;
  background:
    radial-gradient(circle at 76% 68%, rgb(185 70 83 / .46) 0 9%, rgb(185 70 83 / .20) 27%, transparent 48%),
    radial-gradient(circle at 58% 56%, rgb(70 185 172 / .82) 0 24%, rgb(70 185 172 / .48) 55%, transparent 78%),
    radial-gradient(circle at 22% 20%, rgb(70 185 172 / .27) 0, transparent 68%);
  filter: blur(12px);
  transform-origin: center;
  will-change: border-radius, transform;
  animation: shape-morph 12s ease-in-out infinite alternate;
}
@keyframes shape-morph {
  0% { border-radius: 57% 43% 38% 62% / 44% 56% 44% 56%; transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { border-radius: 43% 57% 61% 39% / 58% 42% 58% 42%; transform: translate3d(0, -8px, 0) rotate(1deg); }
  100% { border-radius: 62% 38% 46% 54% / 39% 61% 45% 55%; transform: translate3d(6px, 4px, 0) rotate(3deg); }
}

.product-ui { color: #e8f0eb; background: #0c1c15; border: 1px solid #385045; border-radius: var(--radius-md); box-shadow: var(--shadow-product); font-size: .7rem; }
.ui-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: .65rem .85rem; border-bottom: 1px solid #2d4138; color: #f6faf7; font-weight: 700; }
.ui-dots { display: flex; gap: 4px; }
.ui-dots span { width: 5px; height: 5px; border-radius: 50%; background: #6c8075; }
.ui-chip { padding: .3rem .5rem; border: 1px solid #3d5549; border-radius: 4px; color: #c8d4cd; font-size: .6rem; }
.hero-product { position: relative; min-width: 0; min-height: 480px; }
.hero-calendar { position: absolute; top: 0; right: 0; width: 86%; padding-bottom: .8rem; }
.hero-dashboard { position: absolute; right: 6%; bottom: 0; width: 92%; padding-bottom: .8rem; }
.mini-calendar { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 4px; padding: .8rem; }
.mini-calendar span { min-height: 26px; border-radius: 3px; background: #193026; }
.mini-calendar .person { background: transparent; color: #aabbb2; font-size: .52rem; }
.mini-calendar .available { background: #2d704d; }
.mini-calendar .away { background: #7067ce; }
.mini-calendar .focus { background: repeating-linear-gradient(135deg,#365444 0 3px,#203b2f 3px 6px); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: .8rem .8rem 0; }
.dashboard-metric { padding: .65rem; border: 1px solid #2d4138; }
.dashboard-metric span { display: block; color: #879a90; font-size: .5rem; }
.dashboard-metric strong { color: #eef5f0; font-size: .9rem; }
.line-chart { position: relative; height: 125px; margin: .6rem .8rem; border-left: 1px solid #33473d; border-bottom: 1px solid #33473d; background: repeating-linear-gradient(to bottom, transparent 0 30px, #20362c 30px 31px); overflow: hidden; }
.line-chart svg { position: absolute; inset: 10px 0 0; width: 100%; height: 105px; }

.proof-strip { background: var(--color-bg-card); border-bottom: 1px solid var(--color-border); }
.proof-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { display: grid; gap: .2rem; align-content: center; min-height: 116px; padding: 1.75rem 2rem; border-right: 1px solid var(--color-border); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-item strong, .proof-item span { display: block; }
.proof-item strong { color: var(--color-text-muted); font-size: .9rem; }
.proof-item span { color: var(--color-text-muted); font-size: .76rem; line-height: 1.4; }

.product-stories { background: var(--color-bg-card); }
.product-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); padding-block: clamp(5rem, 9vw, 8rem); border-bottom: 1px solid var(--color-border); }
.product-story.reverse { grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.25fr); }
.product-story.reverse .story-copy { order: -1; }
.story-copy h2 { max-width: 11ch; font-size: clamp(2.5rem, 4vw, 4rem); }
.story-copy h3 { max-width: 15ch; margin-top: .8rem; }
.story-copy p { max-width: 32rem; margin-block: 1.2rem 1.6rem; }
.story-copy .product-endorsement { margin-block: 0 .55rem; }
.product-lockup {
  display: flex;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  margin: 0 0 1rem;
}
.product-lockup--teamsync { gap: .7rem; }
.product-lockup__mark {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  object-fit: contain;
}
.product-lockup__name {
  color: var(--color-teamsync);
  font: 800 1.35rem/1 var(--font-heading);
  letter-spacing: -.035em;
}
.product-lockup--cairn { width: min(100%, 13rem); }
.product-lockup__image {
  display: block;
  width: 100%;
  height: auto;
}
.inverse .product-lockup__image { filter: invert(1); }
.story-copy .product-lockup { margin-block: 0 1rem; }
.story-media { min-width: 0; min-height: 350px; }
.story-media--composition { position: relative; min-height: 440px; padding-bottom: 4rem; }
.story-media--composition > .screen-frame:first-child { width: 92%; }
.story-screen-support { position: absolute; right: 0; bottom: 0; width: 55%; }
.story-screen-support img { aspect-ratio: 1.45; object-fit: cover; object-position: top left; }
.story-screen-phone { position: absolute; bottom: -1rem; left: 4%; width: min(22%, 126px); }
.story-media .product-ui { height: 100%; min-height: 350px; }
.story-media .screen-frame img {
  aspect-ratio: 1.42;
  object-fit: cover;
  object-position: top left;
}
#dashboard-story .story-media .screen-frame img {
  aspect-ratio: 2.25;
}

.availability-board { display: grid; grid-template-columns: 90px 1fr; height: 305px; }
.availability-board__people { display: grid; align-content: space-around; padding: .8rem; border-right: 1px solid #2d4138; color: #c5d1ca; font-size: .55rem; }
.availability-board__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, 1fr); gap: 5px; padding: 1rem; }
.availability-board__grid span { border-radius: 3px; background: #193026; }
.availability-board__grid span:nth-child(3n) { background: #2d704d; }
.availability-board__grid span:nth-child(7n) { background: #7067ce; }

.why-section { padding-block: clamp(4.5rem, 7vw, 6rem); background: var(--color-bg-inverse); }
.why-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 3rem; color: var(--color-text-inverse); }
.why-panel h2 { color: var(--color-text-inverse); }
.why-copy > p { max-width: 42rem; font-size: 1.15rem; }
.why-copy > p + p { margin-top: 1rem; color: var(--color-border); font-size: 1rem; }
.why-copy .why-promise { color: var(--color-text-inverse); font: 700 clamp(1.6rem, 2.4vw, 2.2rem)/1.2 var(--font-heading); letter-spacing: -.035em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.25rem; border-top: 1px solid rgb(255 255 255 / .22); }
.principle { padding-top: 1rem; }
.principle strong { display: block; color: var(--color-text-inverse); font-size: .88rem; }
.principle span { display: block; margin-top: .35rem; color: var(--color-border); font-size: .74rem; }

.impact-section { background: var(--color-bg-base); border-top: 0; }
.impact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); }
.impact-copy h2 { max-width: 10ch; }
.impact-copy p { max-width: 29rem; margin-top: 1.25rem; }
.calculator-panel { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-card); box-shadow: var(--shadow-soft); }
.slider-container { margin-bottom: 1.5rem; }
.slider-label-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; color: var(--color-text-title); font-size: .78rem; font-weight: 700; }
.slider-input { width: 100%; height: 3px; appearance: none; border-radius: 0; background: var(--color-border-strong); }
.slider-input::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; border: 0; border-radius: 50%; background: var(--color-primary); cursor: pointer; }
.calculator-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; border-top: 1px solid var(--color-border); background: var(--color-bg-base); }
.result-val { color: var(--color-text-title); font: 700 clamp(1.75rem, 3vw, 2.8rem)/1 var(--font-heading); letter-spacing: -.045em; }
.calculator-results > div:last-child .result-val { color: var(--color-secondary); }
.result-lbl { margin-top: .5rem; color: var(--color-text-muted); font-size: .72rem; }
.fine-print { margin-top: 1rem; color: var(--color-text-muted); font-size: .7rem; }

.demo-section { padding-block: clamp(4rem, 7vw, 5.5rem); border-top: 1px solid var(--color-border); background: linear-gradient(90deg, var(--color-bg-base) 0 38%, var(--color-bg-card) 38% 100%); }
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.demo-copy p { max-width: 28rem; margin-top: 1.25rem; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cta-form .btn, .form-note { grid-column: 1 / -1; }
.form-note { color: var(--color-text-muted); font-size: .72rem; }
.form-success-message { display: none; padding: 2rem; border: 1px solid var(--color-border); background: var(--color-bg-card); }
.form-success-message h3 { margin-bottom: .5rem; }

.site-footer { padding-block: 3.5rem 1.5rem; background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark__logo { filter: brightness(0) invert(1); }
.site-footer__brand p { max-width: 20rem; margin-top: 1rem; font-size: .82rem; }
.site-footer h4 { margin-bottom: 1rem; color: #fff; font-size: .78rem; letter-spacing: .02em; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { font-size: .78rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #355044; font-size: .7rem; }

/* Products */
.products-hero { padding-block: 5rem 3.5rem; border-bottom: 1px solid var(--color-border); }
.products-hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 4rem; }
.products-hero h1 { font-size: clamp(3rem, 4.4vw, 4.2rem); }
.products-hero p { max-width: 36rem; margin-top: 1.3rem; font-size: 1.15rem; }
.anchor-links { display: flex; gap: 2rem; margin-top: 2rem; }
.walkthrough { padding-block: 6rem; }
#teamsync-section { background: linear-gradient(180deg, var(--color-bg-base) 0%, #fff 100%); }
.walkthrough-grid { display: grid; grid-template-columns: .66fr 1.34fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.walkthrough-grid > * { min-width: 0; }
.walkthrough-copy { position: sticky; top: 110px; }
.walkthrough-copy h2 { margin-bottom: 1.2rem; }
.product-endorsement { margin: .45rem 0 1rem; color: var(--color-text-muted); font-family: var(--font-body); font-size: .78rem; font-weight: 600; }
.capability-list { margin-top: 1.75rem; border-top: 1px solid var(--color-border); }
.capability-list li { padding-block: .9rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-title); font-size: .86rem; }
.privacy-note { margin-top: 1.3rem; color: var(--color-text-muted); font-size: .78rem; }
.showcase-visual { position: relative; width: 100%; min-width: 0; }
.products-hero-screen img {
  aspect-ratio: 1.52;
  object-fit: cover;
  object-position: top left;
}
.screenshot-proof {
  background: transparent;
}
.screenshot-proof__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 1rem;
}
.screenshot-proof__header h3 { font-size: 1.15rem; }
.screenshot-proof__header p { max-width: 34rem; margin-top: .35rem; color: var(--color-text-muted); font-size: .78rem; }
.screenshot-proof__header span {
  flex: 0 0 auto;
  padding: .45rem .6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-title);
  font-size: .68rem;
  font-weight: 700;
}
.screenshot-proof__primary img {
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: top left;
}
.screenshot-proof__primary--wide img { aspect-ratio: 2.25; }
.screenshot-carousel { position: relative; min-width: 0; }
.carousel-stage { position: relative; min-width: 0; }
.carousel-slide { margin: 0; }
.carousel-slide[hidden] { display: none; }
.carousel-frame { border-radius: 14px; }
.carousel-frame img {
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: top left;
}
.carousel-frame--wide img { aspect-ratio: 2.25; }
.carousel-phone {
  width: min(210px, 52%);
  margin-inline: auto;
}
.carousel-phone img {
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
}
.carousel-captions { min-width: 0; }
.carousel-copy {
  display: grid;
  grid-template-columns: minmax(10rem, .42fr) 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: .75rem;
  padding: .85rem 0 0;
  border-top: 1px solid var(--color-border);
}
.carousel-copy[hidden] { display: none; }
.carousel-copy span {
  color: var(--color-text-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.carousel-copy strong {
  color: var(--color-text-title);
  font: 700 clamp(1rem, 1.6vw, 1.25rem)/1.25 var(--font-heading);
  letter-spacing: -.025em;
}
.carousel-copy small {
  color: var(--color-text-muted);
  font-size: .68rem;
  white-space: nowrap;
}
.carousel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}
.carousel-tab {
  min-height: 44px;
  padding: .55rem .72rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: .75rem;
  font-weight: 800;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.carousel-tab:hover,
.carousel-tab.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-title);
}
.carousel-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .75rem;
}
.carousel-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-title);
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(14 27 21 / .08);
}
.carousel-arrow__icon { width: 20px; height: 20px; }
.carousel-arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.screen-thumb {
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.screen-thumb img {
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: top left;
}
.screen-thumb--wide img { aspect-ratio: 2.32; }
.screen-thumb--dark { background: #070d18; border-color: #26342f; }
.mobile-proof {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.mobile-proof .phone-frame { max-height: 360px; }
.mobile-proof .phone-frame img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top center; }
.mobile-proof p { margin: 0; color: var(--color-text-muted); font-size: .86rem; }
.mobile-proof strong { display: block; margin-bottom: .35rem; color: var(--color-text-title); }
.product-app--compact { margin-top: 1.3rem; }
.product-app { overflow: hidden; border-radius: 14px; background: var(--color-bg-inverse); color: #dbe6df; border: 1px solid #3a5045; box-shadow: var(--shadow-product); }
.product-app .btn { min-block-size: 44px; border-radius: 12px; font-size: .8125rem; }
.product-app .leave-select { min-height: 44px; border-radius: 10px; font-size: .8125rem; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid #30453a; }
.app-header h3 { color: #fff; font-size: .875rem; letter-spacing: -.02em; }
.app-subtitle { color: #98aa9f; font-size: .75rem; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: .75rem .8rem .35rem; color: #92a399; font-size: .75rem; text-align: center; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: .3rem .8rem 1rem; }
.calendar-day { position: relative; min-height: 54px; border: 1px solid #2d4338; border-radius: 10px; background: #142b21; color: #e1e9e4; cursor: pointer; font-size: .8125rem; }
.calendar-day:hover { border-color: var(--color-primary); }
.calendar-day.is-weekend { opacity: .38; cursor: default; }
.calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--color-primary); }
.calendar-day.has-leave { background: var(--color-secondary); }
.busy-dot { position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; box-sizing: border-box; }
.product-app .busy-dot.low { background: var(--color-primary); border-radius: 50%; }
.product-app .busy-dot.medium { background: transparent; border: 2px solid var(--color-secondary); border-radius: 50%; }
.product-app .busy-dot.high { background: var(--color-secondary); border-radius: 1px; transform: rotate(45deg); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: .8rem 1rem; border-top: 1px solid #30453a; color: #9eb0a6; font-size: .75rem; }
.leave-request-popover { display: none; position: absolute; right: 1rem; bottom: 1rem; z-index: 3; width: min(330px, calc(100% - 2rem)); flex-direction: column; gap: .8rem; padding: 1rem; border: 1px solid #5c6f64; border-radius: var(--radius-sm); background: #f8f7f2; color: var(--color-text-main); box-shadow: var(--shadow-soft); }
.popover-header { display: flex; justify-content: space-between; color: var(--color-text-title); font-weight: 700; }
.popover-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.calendar-status { padding: .8rem 1rem; background: #12271e; border-top: 1px solid #30453a; color: #aabbb2; font-size: .75rem; }

.dashboard-section { background: var(--color-bg-inverse); }
.dashboard-section h2 { color: #fff; }
.dashboard-section .screenshot-proof h3,
.dashboard-section .carousel-copy strong { color: var(--color-text-inverse); }
.dashboard-section .screenshot-proof__header p,
.dashboard-section .carousel-copy small { color: #b7c8be; }
.dashboard-section .screenshot-proof__header span,
.dashboard-section .carousel-copy { border-color: #3c5b4b; }
.dashboard-section .screenshot-proof__header span { color: var(--color-text-inverse); }
.dashboard-section .walkthrough-copy p, .dashboard-section .privacy-note { color: #b7c8be; }
.dashboard-section .capability-list { border-color: #3c5b4b; }
.dashboard-section .capability-list li { border-color: #3c5b4b; color: #f7faf8; }
.dashboard-simulator { overflow: hidden; border: 1px solid #5a7165; border-radius: 14px; background: var(--color-bg-inverse); color: #dce7e0; }
.dashboard-proof { margin-bottom: 1.3rem; }
.dashboard-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem; border-bottom: 1px solid #30453a; }
.source-selector, .role-toggle-container { display: flex; align-items: center; gap: .45rem; }
.source-btn { min-height: 44px; padding: .55rem .8rem; border: 1px solid #4b6256; border-radius: 10px; background: transparent; color: #c8d5ce; cursor: pointer; font-size: .75rem; font-weight: 700; }
.source-btn.active { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-text-title); }
.role-lbl { color: #84978d; font-size: .75rem; }
.role-lbl.active { color: #fff; }
.role-switch { position: relative; width: 52px; height: 30px; border: 1px solid #566b60; border-radius: 14px; background: #1c3026; cursor: pointer; }
.role-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: transform var(--transition); }
.role-switch.admin-active::after { transform: translateX(22px); background: var(--color-primary); }
.dashboard-metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; padding: 1rem; }
.metric-mini-card { padding: 1rem; border: 1px solid #30453a; border-radius: 10px; }
.metric-mini-val { color: #fff; font: 700 1.45rem/1 var(--font-heading); }
.metric-mini-lbl { margin-top: .35rem; color: #91a49a; font-size: .75rem; }
.dashboard-chart-area { margin: 0 1rem 1rem; padding: 1rem; border: 1px solid #30453a; border-radius: 10px; }
.dashboard-bars { display: flex; align-items: end; justify-content: space-around; height: 160px; border-bottom: 1px solid #385044; }
.dashboard-bar-col { display: flex; align-items: end; gap: 3px; height: 100%; position: relative; padding-top: 1.5rem; }
.dashboard-bar-billable, .dashboard-bar-nonbillable { width: 13px; background: var(--color-primary); transition: height 350ms ease; }.dashboard-bar-nonbillable { background: #4d6b5a; }
.dashboard-bar-lbl { position: absolute; top: 0; left: 50%; color: #9eb0a6; font-size: .75rem; transform: translateX(-50%); white-space: nowrap; }
.dashboard-table-preview { width: calc(100% - 2rem); margin: 0 1rem 1rem; border-collapse: collapse; font-size: .75rem; }
.dashboard-table-preview th, .dashboard-table-preview td { padding: .65rem; border-bottom: 1px solid #2d4338; text-align: left; }
.dashboard-table-preview th { color: #91a49a; font-weight: 600; }

.operating-loop { padding-block: 4.5rem; border-bottom: 1px solid var(--color-border); }
.loop-grid { display: grid; grid-template-columns: .9fr repeat(3, 1fr); }
.loop-intro { padding-right: 2rem; border-right: 1px solid var(--color-border); }
.loop-step { padding-inline: 2rem; border-right: 1px solid var(--color-border); }
.loop-step:last-child { border-right: 0; }
.loop-step b { color: var(--color-text-muted); font: 500 2rem/1 var(--font-heading); }
.inverse .section-kicker,
.inverse .carousel-copy span { color: var(--color-primary); }
.loop-step strong, .loop-step span { display: block; }.loop-step strong { margin-top: .7rem; }.loop-step span { margin-top: .35rem; font-size: .78rem; }
.product-cta { padding-block: 3rem; border-bottom: 1px solid var(--color-border); }
.product-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Design system */
.design-hero { padding-block: clamp(4.5rem, 9vw, 8rem); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.design-hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
.design-hero h1 { max-width: 8ch; }
.design-hero p { max-width: 44rem; margin-top: 1.3rem; color: var(--color-text-muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.brand-index { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.25rem; padding-bottom: .5rem; }
.brand-index a { border-bottom: 1px solid transparent; color: var(--color-text-muted); font-size: .78rem; font-weight: 700; }
.brand-index a:hover { border-color: var(--color-primary); color: var(--color-text-title); }
.design-section { scroll-margin-top: 5rem; padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--color-border); }
.design-section:nth-child(even) { background: var(--color-surface); }
.design-grid { display: grid; grid-template-columns: minmax(13rem, .62fr) minmax(0, 1.38fr); gap: clamp(3rem, 7vw, 7rem); }
.design-grid > * { min-width: 0; }
.design-grid h2 { margin-top: .7rem; font-size: clamp(2.25rem, 4vw, 3.9rem); }
.guideline-copy { display: grid; gap: 1.4rem; }
.brand-statement { max-width: 11ch; color: var(--color-text-title); font: 700 clamp(2.5rem, 5vw, 5rem)/1.02 var(--font-heading); letter-spacing: -.055em; }
.guideline-note { max-width: 25rem; margin-top: 1.3rem; color: var(--color-text-muted); font-size: .9rem; }

.naming-list { border-top: 1px solid var(--color-border); }
.naming-list article { display: grid; grid-template-columns: 9rem minmax(10rem, .8fr) 1fr; gap: 1.25rem; align-items: baseline; padding-block: 1.25rem; border-bottom: 1px solid var(--color-border); }
.naming-list span, .message-list dt, .type-specimens span { color: var(--color-text-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.naming-list strong { font: 700 clamp(1.25rem, 2vw, 1.8rem)/1.2 var(--font-heading); letter-spacing: -.035em; }
.naming-list p { color: var(--color-text-muted); font-size: .85rem; }
.message-list > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding-block: 1.2rem; border-top: 1px solid var(--color-border); }
.message-list > div:last-child { border-bottom: 1px solid var(--color-border); }
.message-list dd { color: var(--color-text-title); font: 600 clamp(1.05rem, 2vw, 1.45rem)/1.35 var(--font-heading); letter-spacing: -.025em; }

.logo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.logo-card { display: grid; grid-template-rows: minmax(11rem, 1fr) auto; min-width: 0; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.logo-card > div { display: grid; min-height: 11rem; place-items: center; padding: 2.2rem; }
.logo-card img { width: min(100%, 18rem); max-height: 4rem; }
.logo-card--wide { grid-column: span 2; }
.logo-card--wide > div { min-height: 14rem; }
.logo-card--inverse { background: var(--color-inverse); border-color: var(--color-inverse); }
.logo-card--symbol img { width: 4rem; max-height: none; }
.logo-card figcaption { padding: .75rem 1rem; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: .72rem; font-weight: 700; }
.logo-card--inverse figcaption { border-color: #35504c; color: var(--color-text-inverse); }
.rule-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.rule-strip p { padding: 1rem; border-left: 3px solid var(--color-primary); background: var(--color-canvas); color: var(--color-text-muted); font-size: .78rem; }
.rule-strip p:last-child { border-color: var(--color-secondary); }
.rule-strip strong { display: block; margin-bottom: .25rem; }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.swatch { display: flex; min-height: 150px; flex-direction: column; justify-content: flex-end; padding: 1rem; border: 1px solid var(--color-border); }
.swatch strong { font-size: .82rem; }
.swatch span { margin-top: .15rem; font: 600 .7rem/1.4 var(--font-body); letter-spacing: .05em; }
.swatch.mint { background: #f3fbf9; }
.swatch.teal { background: #46b9ac; color: #173b37; }
.swatch.coral { background: #b94653; color: #ffffff; }
.swatch.deep-teal { background: #173b37; color: #ffffff; }
.swatch.slate { background: #5c7773; color: #ffffff; }
.swatch.white { background: #ffffff; color: #173b37; }
.swatch.dark-teal { background: #102f2c; color: #ffffff; }
.swatch.border { background: #cfe2df; color: #173b37; }
.swatch.coral strong, .swatch.deep-teal strong, .swatch.slate strong, .swatch.dark-teal strong { color: #ffffff; }

.type-specimens { display: grid; gap: 1rem; }
.type-specimens article { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--color-border); background: var(--color-surface); }
.type-specimens p { margin-block: 2.2rem 1.2rem; color: var(--color-text-title); }
.type-display { font: 700 clamp(2.2rem, 5vw, 4.8rem)/1.02 var(--font-heading); letter-spacing: -.055em; }
.type-body { max-width: 38rem; font: 400 clamp(1.05rem, 1.7vw, 1.3rem)/1.65 var(--font-body); }
.type-specimens small { color: var(--color-text-muted); font-size: .75rem; }

.shape-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.shape-comparison figure { min-width: 0; }
.shape-stage { display: grid; min-height: 18rem; place-items: center; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.shape-stage > img { width: 82%; max-height: 15rem; }
.brand-signature-shape { width: 88%; min-height: 16rem; }
.shape-comparison figcaption { padding-top: .65rem; color: var(--color-text-muted); font-size: .72rem; font-weight: 700; }
.prohibition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.prohibition-grid article { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--color-border); background: var(--color-surface); }
.prohibition-grid article > span { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--color-secondary); color: #ffffff; font-weight: 800; }
.prohibition-grid h3 { font-size: 1rem; letter-spacing: -.02em; }
.prohibition-grid p { margin-top: .35rem; color: var(--color-text-muted); font-size: .78rem; }

.endorsement-example { overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.product-placeholder { min-height: 17rem; padding: clamp(2rem, 6vw, 5rem); background: var(--color-heading); color: var(--color-text-inverse); }
.product-placeholder span { display: block; color: var(--color-primary); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-placeholder strong { display: block; margin-top: 1.5rem; color: #ffffff; font: 700 clamp(2.7rem, 6vw, 5.8rem)/1 var(--font-heading); letter-spacing: -.06em; }
.endorsement-lockup { padding: 1.25rem clamp(1.5rem, 4vw, 3rem); }
.endorsement-lockup img { width: min(100%, 22rem); }

.voice-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--color-border); }
.voice-grid article { min-height: 9rem; padding: 1.4rem 1.4rem 1.4rem 0; border-bottom: 1px solid var(--color-border); }
.voice-grid article:nth-child(odd) { border-right: 1px solid var(--color-border); }
.voice-grid article:nth-child(even) { padding-left: 1.4rem; }
.voice-grid strong { font: 700 1.2rem/1.2 var(--font-heading); letter-spacing: -.025em; }
.voice-grid p { margin-top: .55rem; color: var(--color-text-muted); font-size: .85rem; }
.design-section--downloads { background: var(--color-heading) !important; }
.design-section--downloads h2 { color: #ffffff; }
.design-section--downloads .section-kicker { color: var(--color-primary); }
.design-section--downloads .guideline-note { color: #b8ceca; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #35504c; background: #35504c; }
.download-grid a { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--color-inverse); color: #ffffff; transition: background var(--transition); }
.download-grid a:hover { background: #173b37; }
.download-grid span { font-size: .82rem; font-weight: 700; }
.download-grid small { color: var(--color-primary); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }

.js .reveal { transform: translateY(16px); transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { transform: translateY(0); }

@media (max-width: 980px) {
  .hero-layout, .product-story, .product-story.reverse, .impact-grid, .demo-grid, .design-grid { grid-template-columns: 1fr; }
  .hero-atmosphere { display: none; }
  .signature-shape { width: min(100%, 36rem); min-height: 25rem; justify-self: center; }
  .hero-copy h1 { max-width: 10ch; }
  .product-story.reverse .story-copy { order: 0; }
  .walkthrough-copy { position: static; }
  .impact-grid, .demo-grid { gap: 3rem; }
  .loop-grid { grid-template-columns: 1fr 1fr 1fr; row-gap: 2rem; }.loop-intro { grid-column: 1 / -1; border-right: 0; }
  .design-grid { gap: 2.5rem; }
  .guideline-note { max-width: 38rem; }
}

@media (max-width: 768px) {
  .site-header__inner { grid-template-columns: 1fr auto; }.desktop-nav,.desktop-only-cta { display: none; }.menu-toggle { display: block; }.mobile-menu.is-active { display: block; }
  .wordmark, .text-link, .site-footer a { min-height: 44px; }
  .site-footer a { display: inline-flex; align-items: center; min-width: 44px; }
  .mobile-menu__inner > a { display: flex; align-items: center; min-height: 44px; }
  .slider-input { height: 44px; background: linear-gradient(var(--color-border-strong), var(--color-border-strong)) center / 100% 3px no-repeat; }
  .role-switch { height: 44px; min-height: 44px; border: 0; border-radius: 0; background: transparent; }
  .role-switch::before { content: ""; position: absolute; top: 50%; left: 0; width: 52px; height: 30px; border: 1px solid #566b60; border-radius: 14px; background: #1c3026; transform: translateY(-50%); }
  .role-switch::after { top: 50%; transform: translateY(-50%); }
  .role-switch.admin-active::after { transform: translate(22px, -50%); }
  .signature-shape { width: min(92vw, 27rem); min-height: 19rem; opacity: .92; }
  .product-lockup { min-height: 2.4rem; }
  .product-lockup__mark { width: 2.3rem; height: 2.3rem; }
  .product-lockup__name { font-size: 1.2rem; }
  .product-lockup--cairn { width: min(100%, 11.5rem); }
  .hero-section { padding-block: 3.75rem 3.5rem; }.hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }.hero-copy h1 { max-width: 12ch; font-size: clamp(2.65rem, 12vw, 4.25rem); }.hero-calendar { width: 94%; }.hero-dashboard { right: 0; width: 96%; }
  .proof-strip__grid { grid-template-columns: 1fr; }.proof-item { min-height: 0; padding: 1.15rem 0; border-right: 0; border-bottom: 1px solid var(--color-border); }.proof-item:last-child { border-bottom: 0; }
  .product-story { grid-template-columns: 1fr; padding-block: 4rem; }.product-story.reverse { grid-template-columns: 1fr; }.story-media { min-height: 270px; }.story-media--composition { min-height: 350px; padding-bottom: 3rem; }.story-media .product-ui { min-height: 270px; }
  .product-story h2, .why-panel h2, .impact-copy h2, .demo-copy h2 { font-size: clamp(2.15rem, 9vw, 3.25rem); }
  .why-section { padding-block: 4rem; }.why-panel, .principles, .impact-grid, .calculator-results, .demo-grid, .cta-form { grid-template-columns: 1fr; }.cta-form .btn, .form-note { grid-column: auto; }.impact-section { padding-block: 4.5rem; }.demo-section { padding-block: 4rem; background: linear-gradient(180deg, var(--color-bg-base) 0 34%, var(--color-bg-card) 34% 100%); }
  .site-footer__grid { grid-template-columns: 1fr; }.site-footer__brand { grid-column: auto; }
  .products-hero { padding-block: 4rem 3rem; }.products-hero__grid, .walkthrough-grid { grid-template-columns: 1fr; }.products-hero__grid { gap: 3rem; }.anchor-links { flex-direction: column; gap: 1rem; }
  .dashboard-metrics-grid { grid-template-columns: 1fr; }.calendar-day { min-height: 46px; }
  .design-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-index { justify-content: flex-start; }
  .brand-index a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .naming-list article { grid-template-columns: 8rem 1fr; }
  .naming-list article p { grid-column: 2; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-card--wide { grid-column: auto; }
  .logo-card--wide > div { min-height: 11rem; }
  .shape-stage { min-height: 15rem; }
  .brand-signature-shape { min-height: 13rem; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.25rem, var(--container-max)); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }.signature-shape { min-height: 15rem; }.hero-calendar { width: 100%; }.hero-dashboard { width: 100%; }.mini-calendar { grid-template-columns: 52px repeat(7,1fr); gap: 3px; padding: .55rem; }.mini-calendar span { min-height: 21px; }.dashboard-metrics { gap: 3px; padding: .55rem .55rem 0; }.dashboard-metric { padding: .45rem; }.line-chart { height: 95px; margin: .5rem; }
  .story-media--composition { min-height: 285px; padding-bottom: 2.5rem; }.story-screen-support { width: 58%; }.story-screen-phone { left: 1%; width: min(24%, 88px); }
  .calculator-results, .cta-form { grid-template-columns: 1fr; }.cta-form .btn, .form-note { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
  .calendar-grid { gap: 3px; padding-inline: .5rem; }.calendar-day { min-height: 44px; font-size: .75rem; }
  .dashboard-toolbar { align-items: flex-start; flex-direction: column; }.source-selector { width: 100%; overflow-x: auto; }
  .dashboard-table-preview { display: block; overflow-x: auto; }
  .screenshot-proof { padding: 0; }.screenshot-proof__header, .mobile-proof { grid-template-columns: 1fr; flex-direction: column; }.screenshot-grid { grid-template-columns: 1fr; }.mobile-proof { display: grid; }.mobile-proof .phone-frame { width: min(180px, 70%); margin-inline: auto; }
  .carousel-copy { grid-template-columns: 1fr; gap: .55rem; padding: .85rem 0 0; }.carousel-copy small { white-space: normal; }.carousel-nav { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }.carousel-nav::-webkit-scrollbar { display: none; }.carousel-tab { flex: 0 0 auto; }.carousel-actions { justify-content: flex-end; margin-top: .8rem; }.carousel-phone { width: min(180px, 70%); }
  .loop-grid { grid-template-columns: 1fr; }.loop-intro, .loop-step { grid-column: auto; padding: 0 0 1.5rem; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .product-cta__inner { align-items: flex-start; flex-direction: column; }
  .naming-list article, .message-list > div { grid-template-columns: 1fr; gap: .45rem; }
  .naming-list article p { grid-column: auto; }
  .logo-gallery, .rule-strip, .shape-comparison, .prohibition-grid, .voice-grid, .download-grid { grid-template-columns: 1fr; }
  .logo-card--wide { grid-column: auto; }
  .voice-grid article:nth-child(odd) { border-right: 0; }
  .voice-grid article:nth-child(even) { padding-left: 0; }
  .shape-stage { min-height: 14rem; }
  .brand-signature-shape { min-height: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  .signature-shape__mesh { animation: none; transform: none; }
}
