@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Manrope', system-ui, 'Segoe UI', Arial, sans-serif;
  background: #fff8f4;           
  color: #1f2430;                
  line-height: 1.6;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transform: translateY(-200%);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 10000;
}

.skip-link:focus,
.skip-link:focus-visible,
.skip-link:active {
  transform: translateY(0);
  opacity: 1;
}

#content { scroll-margin-top: 16px; }

.site-header { padding: 28px 0 6px; }
.site-header .wrap {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}
.site-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 6px;
}
.site-header .intro {
  margin: 0;
  color: #5b6270;             
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  max-width: 1100px;
  margin: auto;
  padding: 12px 24px 40px;
}
.sidebar { position: sticky; top: 18px; align-self: start; }

nav.list ul {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(233,199,255,.35), rgba(255,217,199,.35)); 
  border: 1px solid #ffe6db;  
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav.list ul li { margin: 0; }
nav.list ul li a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #1f2430;              
  font-weight: 700;             
  border: 1px solid transparent;
}
nav.list ul li a:hover {
  background: #ffffff;         
  border-color: #ffe6db;       
}
nav.list ul li a:focus {
  outline: 3px solid #a96bff;  
}


.content { min-width: 0; }
.card {
  background: #ffffff;         
  border: 1px solid #ffe6db;   
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(31,36,48,.06);
}


h1, h2, h3 { font-weight: 800; }
h2 {
  font-size: clamp(20px, 3.2vw, 28px);
  margin: 0;
}

.intro {
  font-size: 1.1em;
  max-width: 800px;
  margin-bottom: 20px;
  color: #5b6270;
  line-height: 1.7;
}

a { color: #ff8a7a; }         
a:hover { text-decoration: underline; }


@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  nav.list ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* pop-up */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; border: 0;
  white-space: nowrap;
}

.modal-toggle {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31,36,48,.36);
  cursor: pointer; 
}
.modal-card {
  position: relative;
  max-width: 860px;
  width: min(92vw, 860px);
  background: #ffffff;
  border: 1px solid #ffe6db;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(31,36,48,.22);
  padding: 18px 18px 16px;
  z-index: 1;
}
.modal-h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
}
.modal-actions {
  margin-top: 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
}


.modal-toggle:checked ~ .modal { display: none; }


.btn {
  border: 1px solid #ffe6db;
  background: #ffffff;
  padding: .55rem .9rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #1f2430;
  font-weight: 700;
  display: inline-block;
}

.btn.primary {
  background: #ff8a7a;
  border-color: #ffb3a8; 
  color: #ffffff;
}

.btn.ghost { background: #ffffff; }
.btn.full { width: 100%; text-align: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions.vertical { flex-direction: column; align-items: stretch; }


.emotion-switch {
  margin: 8px 0 6px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #ffe6db;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31,36,48,.06);
}
.tabs {
  display: inline-flex;
  border: 1px solid #ffe6db;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tabs .tab {
  padding: 8px 18px;
  font-size: .95em;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  color: #1f2430;
  user-select: none;
}
.tabs .tab + .tab { border-left: 1px solid #ffe6db; }

.helpful-tab { background: #ffefe9; }
#mode2:checked ~ .tabs .helpful-tab { background: #ffffff; color: #1f2430; }
#mode2:checked ~ .tabs .pushy-tab   { background: #ffd2c5; }

.example-card {
  position: relative;
  padding-top: 6px;
}


.view.helpful { display: block; }
.view.pushy   { display: none; }
#mode2:checked ~ .example-card .view.helpful { display: none; }
#mode2:checked ~ .example-card .view.pushy   { display: block; }

.demo-h4 { margin: 0 0 6px; font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); }

.close-x {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 22px; line-height: 1;
  color: #ff8a7a;     
  opacity: 0.6;      
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.view.helpful .close-x { display: none; } 
.view.pushy  .close-x { display: inline-block; }
.close-x:hover,
.close-x:focus {
  opacity: 1;
  background: #fff3ef;
  border-color: #ffe6db;
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  #mode2:checked ~ .example-card .view.pushy .demo-h4 {
    animation: subtleShake .45s ease-in-out 6 alternate;
  }
  @keyframes subtleShake {
    from { transform: translateX(0); }
    to   { transform: translateX(2px); }
  }
}

.sticky-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  background: radial-gradient(circle at top left, #fff8f4, #fff);
  perspective: 800px;
}

.sticky {
  position: relative;
  width: 260px;
  min-height: 200px;
  padding: 1rem;
  background: #fff9f6;
  border: 1px solid #ffe6db;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(31,36,48,.08);
  transform: rotate(-2deg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sticky:nth-child(2n) {
  background: #fdf7ff;
  transform: rotate(2deg);
}

.sticky:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 12px 24px rgba(31,36,48,.12);
}

.sticky-link {
  text-decoration: none;
  color: #1f2430;
  display: block;
}

.sticky h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ff8a7a;
  margin: 0 0 .4rem;
}

.tagline {
  font-size: .9rem;
  color: #5b6270;
  margin: 0 0 .5rem;
}

.sticky-reason {
  font-size: .92rem;
  color: #5b6270;
  line-height: 1.6;
  margin: 0;
}

.shout-note {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: .95rem;
  color: #5b6270;
}

@media (max-width: 700px) {
  .sticky-wall { flex-direction: column; align-items: center; }
  .sticky { width: 90%; transform: none; }
}

.app-preview {
  display: block;
  text-align: center;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin-block: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

.app-preview img {
  display: block;
  width: 100%;
  height: auto;         
  max-width: 600px;     
  aspect-ratio: auto;   
  object-fit: contain;  
  border-radius: 10px;
  margin: 0 auto .75rem;
}

.app-preview .title { font-weight: 600; margin: 0 0 .25rem; }
.app-preview .meta  { color: #555; line-height: 1.4; margin: 0; }

@media (max-width: 600px) {
  .app-preview { text-align: left; }
  .app-preview img { max-width: 100%; }
}

.inline-note,
.bad-note {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7f3;
  border: 1px solid #ffe6db;
}

.bad-note {
  background: #ffeef0;
  border-color: #ffc4ce;
}

.inline-note h3,
.bad-note h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 800;
}

.pill-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill-list li {
  background: #fff4ef;
  border: 1px solid #ffe6db;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .95rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-block: 14px;
}

.case-card {
  background: #fffdfc;
  border: 1px solid #ffe6db;
  border-radius: 14px;
  padding: 14px;
  line-height: 1.5;
}

.case-card.good {
  background: #f4fff7;
  border-color: #c4f1d0;
}

.case-card.mixed {
  background: #fffdf1;
  border-color: #ffe7ad;
}

.case-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.case-tip {
  margin-top: 6px;
  font-size: .9rem;
  color: #5b6270;
}

.app-preview .title { 
  font-size: 1rem; 
  font-weight: 700; 
}

.app-preview .meta  { 
  font-size: .92rem; 
  color: #555; 
}

.card h3 {
  margin-top: 1rem;
  margin-bottom: .5rem;
  font-weight: 800;
}

.sticky-wall {
  margin-top: 1rem;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.example-card {
  padding: 12px 0;
}

.view p {
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .actions.vertical button.btn.primary {
    width: 100%;
  }
}

.footer {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

.footer a {
    color: #5a5aee;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}