/* Static product illustrations, intentionally separate from operational app UI. */
.hero-glimpses {
  display: flex;
  gap: 12px;
}
.glimpse-card {
  width: 258px;
  background: var(--card);
  color: var(--cream);
  border: 1px solid #344333;
  border-radius: 6px;
  padding: 22px;
}
.glimpse-icon {
  display: block;
  color: #c2cfb3;
  margin-bottom: 20px;
}
.glimpse-card h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.glimpse-card p {
  color: #c3ccba;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 11px;
}
.glimpse-status {
  border-top: 1px solid #405039;
  margin-top: 21px;
  padding-top: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c7d3bc;
  font-size: 12px;
}
.glimpse-status .icon {
  width: 15px;
  height: 15px;
}
.essentials {
  border-top: 1px solid #3a4935;
  margin-top: 45px;
  padding-top: 27px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-size: 13px;
}
.essentials > span {
  color: #aebba3;
}
.essentials ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.story-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  scroll-margin-top: 110px;
}
.story-card {
  overflow: hidden;
  border: 1px solid #ffffff40;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
}
.story-art {
  height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sale-art {
  background: #d8dbc8;
}
.paper-slip {
  position: absolute;
  width: 145px;
  height: 180px;
  border-radius: 3px;
  background: #f8f7ee;
  border: 1px solid #d0d4c0;
  box-shadow: 0 15px 25px #2d48391a;
  padding: 17px;
}
.paper-back {
  transform: rotate(-11deg) translate(-12px, -6px);
  background: #ebeedd;
}
.paper-front {
  transform: rotate(5deg) translate(9px, -4px);
}
.slip-brand {
  display: block;
  text-align: center;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 600;
}
.slip-rule {
  display: block;
  border-bottom: 1px dashed #bcc5ac;
  margin-block: 12px;
}
.slip-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-block: 8px;
}
.slip-line i,
.slip-line b {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #ced3bf;
  width: 50px;
}
.slip-line b {
  width: 20px;
}
.slip-line:nth-child(4) i {
  width: 35px;
}
.slip-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: var(--forest);
}
.slip-check .icon {
  width: 16px;
  height: 16px;
}
.art-note {
  position: absolute;
  bottom: 22px;
  padding: 7px 12px;
  border-radius: 4px;
  color: #e8eddc;
  background: var(--forest);
  font-size: 12px;
  transform: rotate(-3deg);
}
.stock-art {
  background: #dce0d4;
}
.stock-sheet {
  width: calc(100% - 46px);
  max-width: 270px;
  padding: 18px 15px 0;
  background: #f4f4e9;
  border: 1px solid #c5cfb5;
  border-radius: 8px;
  box-shadow: 0 12px 28px #234b2920;
  transform: rotate(-3deg);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 550;
  padding-bottom: 15px;
}
.sheet-heading .icon {
  width: 17px;
  height: 17px;
  color: #5d7152;
}
.stock-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #dbe0cf;
  font-size: 14px;
}
.stock-symbol {
  background: #e0e6d4;
  padding: 7px;
  border-radius: 4px;
  color: #60734f;
}
.stock-symbol .icon {
  width: 19px;
  height: 19px;
}
.stock-item small {
  display: block;
  font-size: 11px;
  color: #5e6d55;
  margin-top: 2px;
}
.stock-level {
  margin-left: auto;
  width: 31px;
  height: 5px;
  border-radius: 3px;
  background: #668353;
}
.stock-level.low {
  width: 12px;
  background: #a47746;
  margin-right: 19px;
}
.stock-sheet-footer {
  margin-inline: -15px;
  background: #e6eadc;
  border-top: 1px solid #d2dac5;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: #4c6241;
  border-radius: 0 0 8px 8px;
}
.close-art {
  background: #cdd5c3;
  flex-direction: column;
  gap: 16px;
}
.closing-orbit {
  width: 90px;
  height: 90px;
  border: 1px solid #aebda3;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.closing-orbit > span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #e9ebde;
  background: var(--forest);
  box-shadow: 0 8px 18px #32523226;
}
.closing-orbit .icon {
  width: 29px;
  height: 29px;
}
.closing-summary {
  display: grid;
  gap: 7px;
}
.closing-summary > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #374e31;
}
.closing-summary .icon {
  width: 14px;
  height: 14px;
}
.story-copy {
  padding: 26px 25px 30px;
}
.story-moment {
  display: block;
  font-size: 12px;
  color: #607054;
  margin-bottom: 15px;
}
.story-copy h3 {
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -1px;
  line-height: 1.13;
}
.story-copy p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #53624b;
}
#plan-dialog .section-kicker {
  margin-bottom: 18px;
}
.hero-stage {
  min-height: 380px;
}
.hero-device {
  left: 42%;
  perspective: 900px;
  --device-rx: 0deg;
  --device-ry: 0deg;
}
.hero-bottom {
  pointer-events: none;
}
.hero-bottom > * {
  pointer-events: auto;
}
.device-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 30%;
  transform: rotateX(var(--device-rx)) rotateY(var(--device-ry));
  transition: transform 240ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.device-button:active {
  transform: rotateX(var(--device-rx)) rotateY(var(--device-ry)) scale(0.96);
}
.device-button:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.device-callout,
.device-shadow {
  pointer-events: none;
}
.device-hint {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--forest);
}
.device-hint .icon {
  width: 13px;
  height: 13px;
}
.device-button:hover .device-hint,
.device-button:focus-visible .device-hint {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.device-rings {
  position: absolute;
  inset: 12%;
  pointer-events: none;
}
.device-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid #8e986f;
  border-radius: 50%;
  opacity: 0;
}
.hero-device.is-pulsing .device-rings i {
  animation: device-signal 1100ms ease-out both;
}
.hero-device.is-pulsing .device-rings i + i {
  animation-delay: 170ms;
}
.hero-device.is-pulsing .mfl-led {
  animation: device-light 1000ms ease-out both;
}
@keyframes device-signal {
  from {
    transform: scale(0.7);
    opacity: 0.6;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}
@keyframes device-light {
  0% {
    opacity: 0.4;
  }
  20% {
    opacity: 1;
    filter: drop-shadow(0 0 7px var(--mfl-glow));
  }
  100% {
    opacity: 1;
    filter: none;
  }
}
@media (max-width: 1150px) {
  .glimpse-card {
    width: 234px;
    padding: 20px;
  }
  .glimpse-card h2 {
    font-size: 21px;
  }
  .hero-device {
    left: 48%;
    bottom: 225px;
  }
  .hero {
    min-height: 990px;
  }
  .essentials {
    flex-direction: column;
    gap: 17px;
  }
  .story-grid {
    gap: 12px;
  }
  .story-copy {
    padding: 24px 20px;
  }
  .story-copy h3 {
    font-size: 26px;
  }
  .story-art {
    height: 237px;
  }
}
@media (max-width: 900px) {
  .hero-glimpses {
    justify-content: center;
  }
  .glimpse-card {
    width: min(320px, 50%);
  }
  .hero-stage {
    min-height: 530px;
  }
  .hero-device {
    left: 50%;
    bottom: 250px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    max-width: 660px;
  }
  .story-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
  }
  .story-art {
    height: 100%;
    min-height: 262px;
  }
  .story-copy {
    align-self: center;
    padding: 26px;
  }
  .stock-sheet {
    width: calc(100% - 32px);
  }
}
@media (max-width: 680px) {
  .hero {
    min-height: 0;
  }
  .hero-stage {
    min-height: 0;
    padding-top: 283px;
  }
  .hero-device {
    top: 14px;
    bottom: auto;
  }
  .hero-glimpses {
    gap: 10px;
  }
  .glimpse-card {
    width: calc(50% - 5px);
    padding: 17px 13px 15px;
  }
  .glimpse-icon {
    margin-bottom: 14px;
  }
  .glimpse-card h2 {
    font-size: 19px;
    line-height: 1.16;
    letter-spacing: -0.4px;
  }
  .glimpse-card p {
    font-size: 12px;
    margin-top: 10px;
  }
  .glimpse-card p br {
    display: none;
  }
  .glimpse-status {
    margin-top: 15px;
    padding-top: 12px;
    font-size: 10px;
    gap: 5px;
    line-height: 1.5;
  }
  .glimpse-status .icon {
    width: 12px;
    height: 12px;
  }
  .essentials {
    margin-top: 12px;
    font-size: 13px;
    padding-top: 24px;
  }
  .essentials ul {
    gap: 12px 18px;
  }
  .story-grid {
    margin-top: 32px;
    width: calc(100% - 28px);
    gap: 17px;
    scroll-margin-top: 100px;
  }
  .story-card {
    display: block;
  }
  .story-art {
    height: 240px;
    min-height: 0;
  }
  .story-copy {
    padding: 25px;
  }
  .story-copy h3 {
    font-size: 29px;
  }
  .story-copy p {
    margin-top: 15px;
  }
  .story-moment {
    margin-bottom: 13px;
  }
  .stock-sheet {
    width: calc(100% - 56px);
  }
  .nav-actions .button,
  .menu-toggle {
    min-height: 44px;
  }
  .menu-toggle {
    width: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paper-slip,
  .stock-sheet,
  .art-note {
    transition: none;
  }
  .device-button,
  .device-button:active {
    transform: none;
    transition: none;
  }
  .hero-device.is-pulsing .device-brand {
    filter: brightness(.75);
  }
  .hero-device.is-pulsing .device-hint {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* Kasnara identity and the founder-selected sample report cards. */
.brand {
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-wordmark {
  font-size: clamp(64px, 20.5vw, 290px);
}
.slip-brand {
  font-size: 22px;
}
.report-card h2 {
  font-size: 16px;
  line-height: 1.3;
}
.report-card header p {
  font-size: 12px;
}
.report-period {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
  cursor: default;
}
.report-amount {
  font-size: 31px;
}
.report-detail {
  font-size: 12px;
  line-height: 1.5;
}
.report-legend > span,
.report-legend b {
  font-size: 12px;
  line-height: 1.5;
}
.report-legend i {
  margin-top: 6px;
}
.sales-donut {
  background: conic-gradient(#e6e4d5 0 66.15%, #a8b098 66.15% 88.33%, #bb8e69 88.33%);
}
.income-donut {
  background: conic-gradient(#e6e4d5 0 75.95%, #a8b098 75.95%);
}
@media (min-width: 681px) and (max-width: 1150px) {
  .hero-stage {
    min-height: 590px;
  }
  .hero-device {
    bottom: 312px;
  }
  .report-bottom {
    gap: 10px;
  }
  .donut {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 680px) {
  .nav-actions .button .icon {
    display: none;
  }
  .report-card {
    display: block;
    padding: 22px;
  }
  .report-card h2 {
    font-size: 18px;
  }
  .report-amount {
    font-size: 34px;
    margin-top: 22px;
  }
  .report-detail {
    font-size: 13px;
  }
  .report-bottom {
    border-top: 1px solid #3c4937;
    padding-top: 18px;
    margin-top: 20px;
    gap: 18px;
    justify-content: flex-start;
  }
  .donut {
    width: 52px;
    height: 52px;
  }
  .donut:after {
    inset: 8px;
  }
  .report-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    gap: 10px;
  }
}


/* Kasnara's K mark: a stable spine, orderly records, and an ascending arm. */
:root {
  --brand-gold: #b79862;
  --brand-gold-light: #d2b27b;
}
.brand-mark,
.footer .brand-mark {
  background: transparent;
  color: var(--forest);
  --logo-accent: var(--brand-gold);
}
.brand-symbol {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}
.brand-dot {
  color: var(--brand-gold);
}
.footer .brand-mark {
  color: var(--cream);
  --logo-accent: var(--brand-gold-light);
}
.footer .brand-dot {
  color: var(--brand-gold-light);
}
.floating-tile .brand-symbol {
  width: 28px;
  height: 28px;
  --logo-accent: var(--brand-gold);
}
.closing-mark {
  color: var(--cream);
  --logo-accent: var(--brand-gold-light);
}
.closing-mark .brand-symbol {
  width: 39px;
  height: 39px;
}

/* Entry point to the separate frontend-only owner prototype. */
.app-demo-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;color:var(--forest);font-size:14px;font-weight:550;white-space:nowrap}
.app-demo-link:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:680px){.nav-actions>.button-small{display:none}.app-demo-link{padding:8px;}}
