/* Digital Pat — site styles on Ease. Only tokens from ease.css; the pixel-pet demo below is the one site-specific thing. */

/* Page rhythm on Ease. Every value here is a token from ease.css (loaded first). */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-1) var(--s-2); }
.nav-links a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: var(--r-control); color: var(--ink-2); font: var(--t-secondary); }
.nav-links a:hover { color: var(--ink); }

.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { max-width: 22ch; margin: var(--s-4) auto var(--s-5); }
h1 em { font-style: normal; color: var(--lilac-txt); }
.lede { max-width: 640px; margin: 0 auto; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.hero > .ease-btn, .get > .ease-btn { margin-top: var(--s-8); padding: 12px 22px; font-size: 15px; }
.ease-btn small { font: inherit; font-weight: 400; color: inherit; opacity: 0.8; }
.sub { margin: var(--s-4) auto 0; max-width: 640px; font: var(--t-secondary); color: var(--ink-3); }
.sub a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
/* inline text links keep their layout but get a 24 px hit box */
.sub a, .footer a, .faq a { display: inline-block; padding: 5px 0; margin: -5px 0; }
.sub kbd { margin-right: 1px; }

.sect { padding: var(--s-14) 0 0; }
.sect .ease-card { padding: 38px 42px; }
.sect h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--s-3); }
h2 .quiet { color: var(--ink-3); font-weight: 500; }
.sect .ease-card > p { color: var(--ink-2); font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.grid + .grid { margin-top: var(--s-4); }
.ease-tile h3 { margin: 0 0 var(--s-1); }
.ease-tile p { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

ol.steps { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); counter-reset: s; }
ol.steps li { position: relative; padding: var(--s-4) var(--s-5) var(--s-4) 60px; border-radius: var(--r-row); background: var(--card-2); border: 1px solid var(--hair); }
ol.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: var(--s-5); top: var(--s-4); width: 24px; height: 24px; border-radius: 50%;
  background: var(--lilac-tint); color: var(--lilac-txt); font: var(--t-caption); font-weight: 600; display: flex; align-items: center; justify-content: center; }
ol.steps h3 { margin: 0 0 var(--s-1); }
ol.steps p { margin: 0; color: var(--ink-2); }

.faq details { border-top: 1px solid var(--hair); padding: var(--s-4) 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }

.get { text-align: center; padding: 70px 0 30px; }
.get h2 { font-size: 46px; letter-spacing: -0.02em; margin: 0 0 var(--s-2); }
.get .lede { font-size: 17px; }
.get .alt { margin-top: var(--s-4); }
.footer { text-align: center; padding: var(--s-8) 0 48px; font: var(--t-secondary); color: var(--ink-3); }
.footer p { margin: var(--s-1) auto; max-width: none; }
.footer a { color: var(--ink-2); }

kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--hair-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--card);
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink); }
pre { margin: var(--s-3) 0 0; padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-row);
  overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink); }
pre code { background: none; padding: 0; font-size: 12px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .sect .ease-card { padding: 28px 22px; }
  .get h2 { font-size: 38px; }
}

/* ---- the pet demo: sprites stay pixel art; everything around them is Ease ---- */
.sprite { image-rendering: pixelated; image-rendering: crisp-edges; }
.demo { margin: 54px auto 0; max-width: 900px; }
.desk { position: relative; height: 320px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--card-2)); border: 1px solid var(--hair); box-shadow: var(--shadow-card); }
.desk .menubar { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: var(--card); border-bottom: 1px solid var(--hair); }
.desk .doc { position: absolute; left: 8%; top: 76px; width: 50%; bottom: 0; background: var(--card); border: 1px solid var(--hair); border-radius: 12px 12px 0 0; }
.desk .doc .bar { height: 34px; border-bottom: 1px solid var(--hair); background: var(--card-2); border-radius: 12px 12px 0 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.desk .doc .bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--hair-strong); }
.desk .doc .lines { padding: 26px 24px 0; }
.desk .doc .lines b { display: block; height: 9px; width: 60%; border-radius: 3px; background: var(--hair); margin-bottom: 13px; }
.desk .doc .lines b.h { height: 18px; width: 42%; background: var(--hair-strong); margin-bottom: 20px; }
.desk .pet { position: absolute; right: 40px; top: 44px; width: 168px; height: 168px; animation: breathe 5s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.caption { text-align: center; margin-top: var(--s-4); font: var(--t-secondary); color: var(--ink-3); }

.moods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-6); }
.mood { background: var(--card-2); border: 1px solid var(--hair); border-radius: var(--r-card); padding: var(--s-3) var(--s-2); text-align: center; }
.mood img { width: 72px; height: 72px; }
.mood .m { font: var(--t-heading); margin-top: var(--s-1); }
.mood .a { font: var(--t-caption); font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 760px) {
  .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desk { height: 260px; }
  .desk .doc { width: 46%; }
  .desk .pet { width: 120px; height: 120px; right: 24px; top: 48px; }
}
