:root {
  --rose: #c75a6b;
  --rose-deep: #a83d50;
  --blush: #e899a1;
  --soft-pink: #f8d7dc;
  --dusty: #b98a94;
  --light-blush: #fdf2f4;
  --warm-white: #fffbfa;
  --ink: #3e2930;
  --muted: #765f66;
  --gold: #bd865d;
  --line: rgba(199, 90, 107, 0.18);
  --shadow: 0 22px 65px rgba(116, 51, 66, 0.13);
  font-family: "Avenir Next", "Century Gothic", Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--warm-white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--warm-white); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .7rem 1rem; border-radius: 999px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.concept-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 20px;
  background: var(--ink);
  color: white;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.concept-bar span { color: #f5c8cf; font-weight: 500; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 92px;
  padding: 12px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 250, .92);
  backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand img { width: 128px; height: 57px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.brand span { max-width: 70px; color: var(--rose-deep); font-size: .63rem; font-weight: 800; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.desktop-nav { display: flex; gap: clamp(18px, 2.7vw, 40px); align-items: center; }
.desktop-nav a { position: relative; padding: 12px 0; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; border-radius: 2px; background: var(--rose); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after, .desktop-nav a.active::after { transform: scaleX(1); }
.header-action { justify-self: end; display: inline-flex; gap: 10px; align-items: center; padding: 13px 18px; border: 1px solid var(--rose); border-radius: 999px; color: var(--rose-deep); font-size: .76rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; transition: .2s ease; }
.header-action:hover, .header-action:focus-visible { background: var(--rose); color: white; transform: translateY(-2px); }
.menu-button, .mobile-nav { display: none; }

#app { min-height: 70vh; outline: none; }
.page { animation: page-in .35s ease both; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.kicker { margin: 0 0 14px; color: var(--rose-deep); font-size: .72rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.display-title, .page-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.display-title { max-width: 680px; font-size: clamp(3.6rem, 7vw, 6.8rem); }
.display-title em { color: var(--rose); font-weight: 400; }
.page-title { font-size: clamp(2.8rem, 5vw, 5rem); }
.lede { max-width: 630px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.75; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid var(--rose); border-radius: 999px; background: var(--rose); box-shadow: 0 14px 30px rgba(199,90,107,.2); color: white; font-size: .84rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(199,90,107,.28); }
.button.secondary { background: transparent; box-shadow: none; color: var(--rose-deep); }
.button.secondary:hover, .button.secondary:focus-visible { background: var(--light-blush); }
.button[disabled] { border-color: #d8c8cc; background: #d8c8cc; box-shadow: none; cursor: not-allowed; transform: none; }

.home-hero { padding: clamp(56px, 9vw, 120px) 0 84px; overflow: hidden; background: radial-gradient(circle at 12% 20%, var(--light-blush), transparent 31rem), linear-gradient(135deg, white, var(--warm-white)); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 6vw, 84px); align-items: center; }
.hero-visual { position: relative; min-height: 510px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 42% 42% 10% 10% / 20% 20% 8% 8%; object-fit: cover; box-shadow: var(--shadow); }
.hero-stamp { position: absolute; right: -18px; bottom: 34px; display: grid; width: 138px; aspect-ratio: 1; padding: 22px; border: 8px solid white; border-radius: 50%; background: var(--rose); box-shadow: 0 18px 45px rgba(134,55,73,.24); color: white; font-size: .7rem; font-weight: 800; letter-spacing: .12em; line-height: 1.55; text-align: center; text-transform: uppercase; place-items: center; transform: rotate(8deg); }
.hero-stamp b { display: block; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; line-height: 1; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.trust-row span::before { margin-right: 7px; color: var(--rose); content: "✓"; }

.section { padding: 88px 0; }
.section.soft { background: var(--light-blush); }
.section-head { display: flex; gap: 30px; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.section-head h2 { max-width: 650px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 400; letter-spacing: -.035em; }
.text-link { color: var(--rose-deep); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tutorial-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 12px 40px rgba(116,51,66,.08); transition: transform .22s ease, box-shadow .22s ease; }
.tutorial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-image-link { position: relative; display: block; height: 260px; overflow: hidden; background: var(--soft-pink); }
.card-image-link img { width: 300%; height: 100%; object-fit: cover; max-width: none; }
.tutorial-card.pos-left img { transform: translateX(0); }
.tutorial-card.pos-center img { transform: translateX(-33.333%); }
.tutorial-card.pos-right img { transform: translateX(-66.666%); }
.card-badge { position: absolute; top: 16px; left: 16px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--rose-deep); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-body { padding: 23px; }
.card-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--dusty); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-body h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.card-body h3 a { text-decoration: none; }
.card-body p { min-height: 53px; margin: 12px 0 20px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.price { color: var(--rose-deep); font-size: 1.05rem; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: steps; }
.step { position: relative; padding: 32px; border-radius: 20px; background: white; counter-increment: steps; }
.step::before { display: grid; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 50%; background: var(--soft-pink); color: var(--rose-deep); font-family: Georgia, serif; font-size: 1.2rem; content: counter(steps); place-items: center; }
.step h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero .lede { margin: 22px auto 0; }
.catalog-tools { display: flex; gap: 10px; justify-content: center; margin: 28px 0 38px; }
.filter-chip { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .78rem; font-weight: 700; }
.filter-chip.active { border-color: var(--rose); background: var(--rose); color: white; }

.detail { padding: 62px 0 92px; }
.detail-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(38px, 6vw, 76px); align-items: start; }
.detail-image { position: sticky; top: 128px; height: 620px; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.detail-image img { width: 300%; height: 100%; max-width: none; object-fit: cover; }
.detail-image.pos-left img { transform: translateX(0); }
.detail-image.pos-center img { transform: translateX(-33.333%); }
.detail-image.pos-right img { transform: translateX(-66.666%); }
.detail-copy h1 { margin: 10px 0 16px; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 400; letter-spacing: -.05em; line-height: .98; }
.detail-price { color: var(--rose-deep); font-size: 1.25rem; font-weight: 800; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.detail-facts div { padding: 17px; background: white; text-align: center; }
.detail-facts span { display: block; margin-bottom: 5px; color: var(--dusty); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-copy h2 { margin: 34px 0 15px; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.lesson-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.lesson-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--light-blush); color: var(--muted); }
.lesson-list li::before { color: var(--rose); content: "♡"; font-size: 1.1rem; }
.notice { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--blush); background: var(--light-blush); color: var(--muted); font-size: .83rem; line-height: 1.6; }

.form-shell, .empty-library, .faq-shell, .admin-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto 90px; }
.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.form-aside { padding: 42px; background: linear-gradient(145deg, var(--rose), #d7828f); color: white; }
.form-aside h2 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.form-aside p { line-height: 1.7; opacity: .9; }
.form-aside ol { display: grid; gap: 18px; padding-left: 20px; font-size: .88rem; line-height: 1.5; }
.redeem-form { display: grid; align-content: center; padding: 42px; }
.redeem-form label { margin-bottom: 10px; font-size: .8rem; font-weight: 800; }
.redeem-form input { width: 100%; height: 58px; padding: 0 18px; border: 1px solid #d9c8cc; border-radius: 14px; outline: none; color: var(--ink); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.redeem-form input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(199,90,107,.1); }
.redeem-form .button { margin-top: 14px; }
.form-help { color: var(--dusty); font-size: .75rem; line-height: 1.5; }
.form-result { margin-top: 18px; padding: 16px; border-radius: 14px; background: #f3faf5; color: #366145; font-size: .86rem; line-height: 1.55; }
.form-error { background: #fff0f2; color: #98394a; }

.empty-library { padding: 58px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); text-align: center; }
.empty-icon { display: grid; width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; background: var(--light-blush); color: var(--rose); font-size: 2rem; place-items: center; }
.empty-library h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.empty-library p { max-width: 520px; margin: 15px auto 0; color: var(--muted); line-height: 1.7; }
.library-card { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; text-align: left; }
.library-card-image { min-height: 190px; background: url('/assets/learn-hero.webp') left center / 300% 100% no-repeat; }
.library-card-body { display: grid; align-content: center; padding: 28px; }
.library-card-body h2 { margin: 0 0 8px; }
.progress { height: 7px; margin: 18px 0 10px; overflow: hidden; border-radius: 999px; background: var(--soft-pink); }
.progress span { display: block; width: 18%; height: 100%; border-radius: inherit; background: var(--rose); }

.faq-shell { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: white; }
.faq-item summary { padding: 20px 22px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-item summary::after { float: right; color: var(--rose); content: "+"; font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.7; }

.admin-shell { width: min(1120px, calc(100% - 40px)); }
.admin-banner { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 17px 20px; border: 1px solid #e5c28f; border-radius: 14px; background: #fff8eb; color: #76522a; font-size: .84rem; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metric { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.metric span { color: var(--dusty); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metric b { display: block; margin-top: 10px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.admin-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--dusty); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: #d09a48; content: ""; }
.status.ready::before { background: #56a66c; }

.not-found { display: grid; min-height: 62vh; text-align: center; place-items: center; }
.not-found h1 { margin: 0; font-family: Georgia, serif; font-size: 5rem; font-weight: 400; color: var(--rose); }
.not-found p { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; padding: 46px clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); background: var(--light-blush); color: var(--muted); font-size: .78rem; }
.site-footer > p { justify-self: end; }
.footer-brand { margin: 0 0 6px; color: var(--rose-deep); font-family: Georgia, serif; font-size: 1.2rem; }
.footer-brand span { display: block; font-family: inherit; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-action { display: none; }
  .menu-button { display: block; padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--rose-deep); font-size: .75rem; font-weight: 800; }
  .mobile-nav { position: sticky; top: 92px; z-index: 39; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); background: var(--warm-white); box-shadow: 0 14px 30px rgba(116,51,66,.08); }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 700; text-decoration: none; }
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .home-hero { text-align: center; }
  .display-title, .lede { margin-inline: auto; }
  .button-row, .trust-row { justify-content: center; }
  .hero-visual { min-height: 500px; }
  .detail-image { position: relative; top: auto; height: 520px; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .site-footer > p { justify-self: center; }
}

@media (max-width: 720px) {
  .concept-bar { display: grid; gap: 2px; font-size: .64rem; text-align: center; }
  .concept-bar span { font-size: .58rem; }
  .site-header { min-height: 78px; padding: 8px 16px; }
  .brand { gap: 6px; }
  .brand img { width: 108px; height: 48px; }
  .brand span { font-size: .55rem; }
  .mobile-nav { top: 78px; }
  .container { width: min(100% - 28px, 1180px); }
  .home-hero { padding-top: 48px; }
  .display-title { font-size: clamp(3rem, 15vw, 4.9rem); }
  .hero-visual { min-height: 410px; margin-top: 20px; }
  .hero-image { border-radius: 28px; }
  .hero-stamp { right: 5px; bottom: 18px; width: 112px; border-width: 6px; font-size: .58rem; }
  .hero-stamp b { font-size: 1.4rem; }
  .tutorial-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .section-head { display: grid; }
  .card-image-link { height: 300px; }
  .catalog-tools { flex-wrap: wrap; }
  .detail { padding-top: 36px; }
  .detail-image { height: 430px; }
  .detail-facts { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .form-aside, .redeem-form { padding: 30px 24px; }
  .empty-library { padding: 42px 22px; }
  .library-card { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { overflow-x: auto; }
  .admin-panel { min-width: 680px; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
