/* =====================================================================
   LogicByHeart™ — page-specific styles
   ===================================================================== */

/* ---------- Page header band ---------- */
.pagehead { padding: 72px 0 24px; text-align: center; position: relative; }
.pagehead h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.pagehead .lead { margin: 16px auto 0; max-width: 620px; }
.pagehead .eyebrow { margin-bottom: 8px; }

/* =====================================================================
   HOME — hero
   ===================================================================== */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  letter-spacing: -0.04em; line-height: 1;
}
.hero h1 .tm { font-size: .34em; vertical-align: super; color: var(--ink-faint); font-weight: 700; }
.hero__sub { font-family: var(--hand); font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--ink-soft); margin-top: 14px; line-height: 1.05; }
.hero__desc { margin-top: 22px; max-width: 480px; }
.hero__btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__note { position: absolute; }

/* hero side illustration card */
.hero__panel {
  position: relative;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
}
.hero__panel::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  border: 1px dashed var(--hairline-strong); margin: 8px; pointer-events: none;
}
.mini-sys { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 11px; transition: background .15s; }
.mini-sys:hover { background: var(--cream); }
.mini-sys + .mini-sys { border-top: 1px solid var(--hairline); }
.mini-sys__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.mini-sys__icon svg { width: 22px; height: 22px; }
.mini-sys b { font-size: .98rem; display: block; }
.mini-sys small { color: var(--ink-faint); font-size: .8rem; }
.hero__panel-tape {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 110px; height: 26px; background: rgba(217,138,138,.18); border: 1px solid rgba(217,138,138,.3); border-radius: 3px;
}

/* =====================================================================
   System cards (Home grid + Systems page)
   ===================================================================== */
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sys-grid--lg { grid-template-columns: repeat(2, 1fr); gap: 26px; }

.sys-card { padding: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sys-card__top { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.sys-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.sys-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.sys-card__icon svg { width: 26px; height: 26px; }
.sys-card__title { font-size: 1.22rem; font-weight: 700; }
.sys-card__tag { font-family: var(--hand); font-size: 1.12rem; line-height: 1; }
.sys-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.sys-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: .92rem; }
.sys-card__link svg { width: 16px; }

/* color theming */
.s-green  { --sc: var(--green);  --scd: var(--green-deep);  --scw: var(--green-wash);  }
.s-blue   { --sc: var(--blue);   --scd: var(--blue-deep);   --scw: var(--blue-wash);   }
.s-orange { --sc: var(--orange); --scd: var(--orange-deep); --scw: var(--orange-wash); }
.s-purple { --sc: var(--purple); --scd: var(--purple-deep); --scw: var(--purple-wash); }
.sys-card__top { background: var(--sc); }
.sys-card__icon { background: var(--scw); }
.sys-card__tag { color: var(--scd); }
.sys-card__link { color: var(--scd); }
.sys-card:hover { border-color: var(--sc); }

/* large system card extras */
.sys-card--lg { padding: 32px; }
.sys-card--lg .sys-card__title { font-size: 1.5rem; }
.sys-card--lg .feat-list { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.sys-card__includes {
  margin-top: 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.sys-card__link--soon { color: var(--ink-faint); cursor: default; }
.sys-card__link--soon svg { opacity: .7; }
.sys-card__deco { position: absolute; right: 18px; bottom: 14px; width: 92px; opacity: .9; }

/* =====================================================================
   PHILOSOPHY
   ===================================================================== */
.philo-list { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; }
.philo-row {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.philo-row + .philo-row { margin-top: 10px; }
.philo-row__num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); }
.philo-row__num svg { width: 22px; height: 22px; }
.philo-row h3 { font-size: 1.05rem; margin-bottom: 2px; }
.philo-row p { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.philo-row__step { font-family: var(--hand); font-size: 1.05rem; color: var(--ink-faint); margin-left: 7px; }

.quote-band {
  max-width: 600px; margin: 40px auto 0;
  background: var(--cream); border-radius: var(--radius); border: 1px solid var(--hairline);
  padding: 30px 34px; text-align: center; position: relative;
}
.quote-band__mark { font-family: var(--hand); font-size: 3rem; color: var(--hairline-strong); line-height: 0; position: absolute; top: 26px; left: 24px; }
.quote-band p { font-family: var(--hand); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.25; color: var(--charcoal); }

.quote-band p .q-em { color: var(--orange-deep); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.portrait {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-md); position: relative; transform: rotate(-1.5deg);
}
.portrait svg { width: 100%; }
.portrait__img { width: 100%; height: auto; border-radius: 14px; display: block; }
.about-intro h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.about-intro .about-hi {
  font-family: var(--hand);
  color: var(--heart);
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}
.about-intro p { margin-top: 18px; }

/* =====================================================================
   UPDATES — coming soon
   ===================================================================== */
.coming-wrap {
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 56px 0 72px;
}
.coming { max-width: 600px; }
.coming__art { position: relative; width: 250px; max-width: 86%; margin: 0 auto 18px; }
.coming__art svg, .coming__art img { width: 100%; height: auto; }
.coming h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.coming__body { margin-top: 26px; }
.coming__body p { color: var(--ink-soft); }
.coming__body p + p { margin-top: 16px; }
.coming__lines span { display: block; color: var(--ink-faint); }
.coming__note {
  margin-top: 34px;
  font-family: var(--hand); font-size: 2rem; color: var(--charcoal); line-height: 1;
}
.coming__note-cup { display: block; width: 32px; height: auto; }

/* inline cup with rising steam */
@keyframes steam-rise {
  0%   { opacity: 0; transform: translateY(8px) scaleY(.6); }
  25%  { opacity: .7; }
  60%  { opacity: .45; }
  100% { opacity: 0; transform: translateY(-14px) scaleY(1.25); }
}
.cup { position: relative; display: inline-block; vertical-align: -8px; }
.cup__steam {
  position: absolute; bottom: 84%; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.cup__steam i {
  display: block; width: 3px; height: 12px; border-radius: 3px;
  background: linear-gradient(to top, rgba(111,159,126,0), rgba(111,159,126,.5));
  filter: blur(.5px);
  animation: steam-rise 2.6s ease-in-out infinite;
}
.cup__steam i:nth-child(2) { height: 15px; animation-delay: .5s; }
.cup__steam i:nth-child(3) { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .cup__steam i { animation: none; opacity: .4; }
}
.coming__sub { margin-top: 8px; font-size: 1.25rem; color: var(--ink-faint); }

/* wash backgrounds (hero panel icons + accents) */
.bg-green  { background: var(--green-wash); }  .ink-green  { color: var(--green-deep); }  .chipbg-green  { background: var(--green-wash); color: var(--green-deep); }
.bg-blue   { background: var(--blue-wash); }   .ink-blue   { color: var(--blue-deep); }   .chipbg-blue   { background: var(--blue-wash); color: var(--blue-deep); }
.bg-orange { background: var(--orange-wash); } .ink-orange { color: var(--orange-deep); } .chipbg-orange { background: var(--orange-wash); color: var(--orange-deep); }
.bg-purple { background: var(--purple-wash); } .ink-purple { color: var(--purple-deep); } .chipbg-purple { background: var(--purple-wash); color: var(--purple-deep); }
.bg-cream  { background: var(--cream); }

/* =====================================================================
   Responsive (tablet / smaller desktop)
   ===================================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 420px; }
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-grid--lg { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .nav__links { gap: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .sys-grid { grid-template-columns: 1fr; }
  .foot__statement { flex-direction: column; align-items: flex-start; }
}


@media (max-width: 540px) {
  .peek-cat {
    width: 56px !important;
    right: 4% !important;
  }
}