/* ====== MyNotebook site — pastel notebook theme ====== */
:root {
  --pink: #f7b7cc; --pink-strong: #e87ba3; --pink-soft: #fde8f0;
  --blue: #a8d8ea; --blue-strong: #5a9fc0; --blue-soft: #e9f6fb;
  --purple: #c9b8f0; --purple-strong: #8f6cc9;
  --mint: #b0e3c9; --mint-strong: #3f9a6e;
  --lemon: #f9e79b;
  --ink: #3b3542; --ink-soft: #7d7687;
  --paper: #fffdfa;
  --card: #ffffff;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 80% -100px, var(--blue-soft), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, var(--pink-soft), transparent 55%),
    var(--paper);
}
img { max-width: 100%; }
a { color: var(--blue-strong); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 22px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--pink);
}
nav .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--pink-strong); text-decoration: none; font-weight: bold; }
nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
nav .links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
nav .links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
nav .links a:hover { color: var(--pink-strong); }
nav .buy-mini { background: var(--pink-strong); color: #fff !important; padding: 7px 16px; border-radius: 999px; }

/* buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 17px;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, #f194b9, var(--pink-strong));
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 123, 163, 0.45);
}
.btn-ghost {
  background: #fff;
  color: var(--blue-strong);
  border: 2px solid var(--blue);
}

/* hero */
.hero { display: flex; align-items: center; gap: 40px; padding: 60px 0 40px 0; flex-wrap: wrap; }
.hero-text { flex: 1 1 380px; }
.hero-text .logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-text .logo-row img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 6px 16px rgba(180,120,150,0.35); }
.hero-text .logo-row span { font-size: 30px; color: var(--pink-strong); font-weight: bold; letter-spacing: 0.03em; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--pink-strong); }
.hero p.sub { font-size: 18px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 26px; max-width: 44ch; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.price-tag { font-size: 15px; color: var(--ink-soft); }
.price-tag b { color: var(--mint-strong); font-size: 22px; }
.hero-demo { flex: 1 1 420px; display: flex; justify-content: center; }

/* ====== animated demo book ====== */
.demo-stage {
  width: min(520px, 92vw);
  height: 380px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1600px;
  position: relative;
}
.demo-book {
  position: relative;
  width: 440px; height: 310px;
  transform-style: preserve-3d;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.demo-book.on { opacity: 1; }

.demo-pages {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #f9c7d6, #f5b3c8);
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 24px 50px rgba(90, 40, 60, 0.35), 0 0 40px rgba(255,255,255,0.35);
  display: flex; gap: 0;
}
.dp {
  flex: 1;
  background: #fff;
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
}
.dp.left  { border-radius: 8px 2px 2px 8px; box-shadow: inset -12px 0 16px -12px rgba(150,110,130,0.4); }
.dp.right { border-radius: 2px 8px 8px 2px; box-shadow: inset 12px 0 16px -12px rgba(150,110,130,0.4); }

.demo-cover {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(150deg, #f9c7d6, #f2a2c0);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.7), 0 24px 50px rgba(90,40,60,0.4);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.6, 0.05, 0.35, 1);
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
  backface-visibility: hidden;
}
.demo-book.open .demo-cover { transform: rotateY(-150deg); }
.demo-cover .cov {
  text-align: center; color: #b3527a;
  border: 2px dashed rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.35);
  padding: 22px 34px; border-radius: 12px;
}
.demo-cover .cov .gem { color: var(--blue-strong); }
.demo-cover .cov h3 { font-size: 24px; letter-spacing: 0.05em; }

/* demo tabs */
.demo-tabs { position: absolute; left: -34px; top: 34px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.dtab {
  width: 44px; height: 30px;
  border-radius: 9px 0 0 9px;
  display: flex; align-items: center; padding-left: 8px;
  font-size: 13px;
  background: var(--tc, #eee);
  box-shadow: -2px 1px 5px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateX(46px);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.3s ease;
}
.demo-book.tabs-out .dtab { transform: translateX(0); }
.dtab.lit { transform: translateX(-8px) !important; box-shadow: -3px 2px 8px rgba(0,0,0,0.3), 0 0 0 2px #fff, 0 0 10px 2px var(--tc); }

/* demo page content */
.dp .dhead { font-size: 15px; color: var(--pink-strong); font-weight: bold; padding-bottom: 6px; border-bottom: 2px dotted var(--blue); margin-bottom: 8px; min-height: 22px; }
.dp .dline { height: 9px; border-radius: 5px; background: #efe9ee; margin: 9px 0; opacity: 0; transform: translateX(-8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.dp .dline.show { opacity: 1; transform: none; }
.dp.left .chip {
  display: inline-block;
  font-size: 12px; color: #fff;
  background: var(--pink-strong);
  border-radius: 999px; padding: 3px 11px;
  margin: 4px 4px 0 0;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.dp.left .chip.show { opacity: 1; transform: scale(1); }
.dp.right .dtext { font-size: 12.5px; line-height: 20px; color: var(--ink); min-height: 120px; white-space: pre-wrap;
  background: repeating-linear-gradient(transparent, transparent 19px, rgba(150,150,168,0.25) 19px, rgba(150,150,168,0.25) 20px); }
.dcaret { display: inline-block; width: 1.5px; height: 13px; background: var(--pink-strong); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.dmic {
  position: absolute; right: 12px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #e0524d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dmic.show { opacity: 1; transform: scale(1); animation: micGlow 1.1s ease-in-out infinite; }
@keyframes micGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(224,82,77,0.5); } 50% { box-shadow: 0 0 0 9px rgba(224,82,77,0); } }

.dsaved {
  position: absolute; left: 14px; bottom: 10px;
  font-size: 12px; color: #2e7d32; background: rgba(90,170,100,0.16);
  padding: 3px 11px; border-radius: 999px; font-weight: bold;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dsaved.show { opacity: 1; transform: none; }

.demo-caption { position: absolute; bottom: -6px; width: 100%; text-align: center; font-size: 13.5px; color: var(--ink-soft); font-style: italic; }

/* reduced motion: static open book */
@media (prefers-reduced-motion: reduce) {
  .demo-book, .demo-book * { transition: none !important; animation: none !important; }
}

/* ====== sections ====== */
section { padding: 54px 0; }
section h2 { font-size: clamp(24px, 3.6vw, 34px); text-align: center; margin-bottom: 8px; }
section .lead { text-align: center; color: var(--ink-soft); margin-bottom: 34px; font-size: 17px; }
.tilt1 h2 { color: var(--pink-strong); } .tilt2 h2 { color: var(--blue-strong); } .tilt3 h2 { color: var(--purple-strong); } .tilt4 h2 { color: var(--mint-strong); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fcard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 20px 18px 20px;
  border: 2px solid var(--edge, var(--pink-soft));
  box-shadow: 0 6px 18px rgba(160, 120, 150, 0.12);
}
.fcard .fi { font-size: 26px; }
.fcard h3 { font-size: 17px; margin: 8px 0 6px 0; }
.fcard p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.shots figure { background: #241f2a; padding: 10px; border-radius: var(--radius); box-shadow: 0 10px 26px rgba(60,40,70,0.3); }
.shots img { border-radius: 10px; display: block; }
.shots figcaption { color: #d8cfe0; font-size: 13.5px; text-align: center; padding: 9px 4px 2px 4px; }

.sysreq { display: flex; justify-content: center; }
.sysreq ul { background: var(--card); border: 2px solid var(--blue-soft); border-radius: var(--radius); padding: 22px 34px; list-style: none; box-shadow: 0 6px 18px rgba(120,150,170,0.12); }
.sysreq li { padding: 6px 0; font-size: 15.5px; }
.sysreq li::before { content: "✓ "; color: var(--mint-strong); font-weight: bold; }

.faq-item { background: var(--card); border: 2px solid var(--pink-soft); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-size: 16px; font-weight: bold; color: var(--ink); list-style: none; }
.faq-item summary::before { content: "🎀 "; }
.faq-item p { padding: 0 18px 15px 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.contact-box { max-width: 560px; margin: 0 auto; background: var(--card); border: 2px solid var(--blue-soft); border-radius: var(--radius); padding: 26px; text-align: center; }
.contact-box p { color: var(--ink-soft); margin-bottom: 14px; }

.buy-band {
  text-align: center;
  background: linear-gradient(150deg, var(--pink-soft), var(--blue-soft));
  border-radius: 26px;
  padding: 44px 24px;
  margin: 20px 0 30px 0;
}
.buy-band h2 { color: var(--pink-strong); }
.buy-band .small { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

footer { border-top: 2px dashed var(--pink); padding: 26px 20px 36px 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }
footer .flinks { margin-bottom: 10px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--blue-strong); text-decoration: none; }

/* policy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px 20px; line-height: 1.65; }
.doc h1 { color: var(--pink-strong); margin-bottom: 18px; }
.doc h2 { font-size: 20px; margin: 26px 0 8px 0; color: var(--blue-strong); }
.doc p, .doc li { color: var(--ink); font-size: 15.5px; margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 24px; }

@media (max-width: 640px) {
  .hero { padding-top: 30px; }
  .demo-stage { height: 320px; }
  .demo-book { transform: scale(0.78); }
  nav .links a:not(.buy-mini) { display: none; }
}
