:root {
  --bg-deep: #12080c;
  --bg-hero: #1a0a12;
  --bordeaux: #7a1030;
  --wine: #5a1430;
  --rose: #e85a7a;
  --pink: #ff6b8a;
  --pink-soft: #ffb3c4;
  --cream: #fff8f6;
  --mist: #f7eef1;
  --ink: #2b1c24;
  --muted: #8a4a62;
  --mint: #b8ede4;
  --mint-deep: #5e9a8a;
  --card: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 50px rgba(90, 20, 48, 0.18);
  --radius: 22px;
  --header-h: 76px;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Palatino Linotype", Palatino, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--rose); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 80;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(640px, 100%); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, #c2185b, #e85a7a 52%, #ff6b8a);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.site-header.is-stuck {
  background: linear-gradient(90deg, #9a1248, #c2185b 60%, #e85a7a);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.header-inner {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand img { background: transparent; }
.nav-desktop { display: none; gap: 18px; flex: 1; }
.nav-desktop a,
.nav-mobile > a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-desktop a[aria-current="page"], .nav-desktop a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn-ghost {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}
.header-download { display: none; }

.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 8, 0.55);
  z-index: 50;
}
.nav-backdrop.is-open { display: block; }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 92vw);
  background: linear-gradient(180deg, #c2185b, #7a1030);
  z-index: 60;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { color: #ffe8ee; padding: 12px 8px; min-height: 44px; display: flex; align-items: center; }
.nav-mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nav-close { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 2rem; }
.nav-social { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--bordeaux)); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--stroke); }
.btn-ghost:hover { color: #fff; }
.btn-link { background: none; color: var(--pink-soft); }
.hero-actions .btn-ghost, .page-hero .btn-ghost { color: #fff; }

.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 50% -10%, #5a1430 0%, #1a0a12 52%, #12080c 100%);
  color: #fff;
  overflow: hidden;
  padding: 32px 0 72px;
}
.hero-glow {
  position: absolute; inset: auto -20% -30% auto; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(184, 237, 228, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid, .split { display: grid; gap: 36px; align-items: center; }
.eyebrow { letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem; color: var(--pink-soft); margin: 0 0 8px; }
.hero h1, .page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); margin: 0 0 8px; }
.lead { font-size: 1.25rem; color: var(--pink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.hero-visual { display: flex; justify-content: center; }
.app-overlay { display: block; width: min(540px, 100%); margin: 0 auto; }
.app-overlay img {
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}

.section { padding: 72px 0; }
.section-alt { background: var(--mist); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.card-grid, .pricing-grid, .gallery-grid, .feature-grid {
  display: grid; gap: 16px; align-items: stretch;
}
.card-grid { grid-template-columns: 1fr; }
.glass-card, .price-card, .diary-card, .stat-card, .panel, .auth-card, .feature-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(194, 24, 91, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(43, 28, 36, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.glass-card, .feature-card, .price-card { min-height: 100%; }
.glass-card .icon, .feature-card .icon { font-size: 1.55rem; margin: 0 0 8px; }
.feature-card h2 { font-size: 1.25rem; margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }
.section-alt .glass-card { background: rgba(255,255,255,0.88); }

.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-deep); }

.diary-card { background: #fff; }
.diary-date { color: var(--muted); font-size: 0.85rem; }
.diary-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { border-radius: 16px; min-height: 92px; box-shadow: var(--shadow); }
.ph-a, .ph-1 { background: linear-gradient(135deg, #7a1030, #ff8aa8); }
.ph-b, .ph-2 { background: linear-gradient(135deg, #c2185b, #b8ede4); }
.ph-c, .ph-3 { background: linear-gradient(135deg, #4a0e28, #e85a7a); }
.ph-4 { background: linear-gradient(135deg, #2a1018, #f48fb1); }
.ph-5 { background: linear-gradient(135deg, #6a1b3a, #ffd1dc); }
.ph-6 { background: linear-gradient(135deg, #880e4f, #b8ede4); }

.gallery-grid { grid-template-columns: 1fr 1fr; }
.gallery-item { margin: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.gallery-item .ph { min-height: 140px; border-radius: 0; transition: transform 0.35s ease; }
.gallery-item:hover .ph, .gallery-item:focus .ph { transform: scale(1.04); }
.gallery-item figcaption { padding: 12px; display: grid; gap: 2px; }
.gallery-item time, .muted { color: var(--muted); font-size: 0.9rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border-radius: 999px; padding: 8px 14px;
  background: #fff; border: 1px solid rgba(194,24,91,0.12);
}
.subtitle-sample { text-align: center; letter-spacing: 0.18em; color: var(--muted); }

.price-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 22px;
  background: #fff;
  border: 1px solid rgba(194, 24, 91, 0.1);
}
.price-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #c2185b, #ff6b8a);
}
.price-plan {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.price-card ul { list-style: none; margin: 8px 0 18px; flex: 1; }
.price-card li { padding: 7px 0 7px 22px; position: relative; color: #4a1528; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-deep); font-weight: 700; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card .btn-ghost {
  color: var(--bordeaux);
  background: #fff8fa;
  border-color: rgba(194, 24, 91, 0.18);
}
.price { font-size: 2.4rem; margin: 4px 0 0; font-family: var(--serif); color: #4a1020; }
.period { color: var(--muted); margin: 0 0 12px; font-size: 0.92rem; }
.price-desc { margin: 0 0 8px; color: #6a3a4c; }
.price-card.is-highlight {
  background: linear-gradient(180deg, #fff7f9, #fff);
  border-color: rgba(194, 24, 91, 0.35);
  box-shadow: 0 18px 40px rgba(194, 24, 91, 0.12);
}
.badge {
  display: inline-flex; align-items: center; min-height: 1.6em;
  background: var(--bordeaux); color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; margin: 0 0 10px; width: fit-content;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.price-table-wrap { margin-bottom: 28px; background: #fff; border-radius: 18px; overflow: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #f0dce3; }
.price-table th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

.cta-band {
  background: linear-gradient(135deg, #1a0a12, #7a1030);
  color: #fff; text-align: center;
}
.cta-band .btn-primary { background: #fff; color: var(--bordeaux); }

.page-hero {
  background: radial-gradient(900px 420px at 50% -20%, #5a1430, #1a0a12);
  color: #fff; padding: 48px 0 56px; text-align: center;
}
.inline-logo { margin: 0 auto 16px; background: transparent; }

.site-footer {
  background: #12080c; color: #f3c2ce; padding: 48px 0 24px;
}
.footer-grid { display: grid; gap: 24px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-family: var(--sans); }
.site-footer a { color: #ffb3c4; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 6px 0; }
.tagline { margin-top: 12px; }
.copyright { text-align: center; color: #c9a0ae; margin: 32px 0 0; }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
}
.cookie-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  background: rgba(18, 8, 12, 0.96);
  color: #fff;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 20px 22px;
  box-shadow: 0 24px 50px rgba(18, 8, 12, 0.35);
}
.cookie-kicker {
  margin: 0 0 4px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--pink-soft);
}
.cookie-copy h2 { margin: 0 0 8px; font-size: 1.35rem; }
.cookie-copy p { margin: 0; color: #f3c2ce; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie-link { color: #ffb3c4; font-weight: 600; padding: 10px 8px; }
.cookie-cats { display: grid; gap: 14px; }
.cookie-cat {
  background: #fff;
  border: 1px solid #f0dce3;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(43, 28, 36, 0.05);
}
.cookie-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.cookie-cat-head em { display: block; color: var(--muted); font-style: normal; font-size: 0.85rem; }
.cookie-cat p { margin: 10px 0 0; color: var(--muted); }
.cookie-cat input { width: 22px; height: 22px; }
.cookie-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-ghost.dark { color: var(--bordeaux); background: #fff; border-color: #ecd3db; }
.about-intro { margin-inline: auto; }
.lead-body { font-size: 1.25rem; }
.quiet-list { list-style: none; margin: 16px 0; }
.quiet-list li { padding: 4px 0; }
.about-acc details {
  background: #fff;
  border-radius: 18px;
  margin: 0 0 12px;
  border: 1px solid #f0dce3;
  overflow: hidden;
}
.about-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.05rem;
}
.about-acc summary::-webkit-details-marker { display: none; }
.about-acc summary::after {
  content: "+";
  float: right;
  color: var(--rose);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
.about-acc details[open] summary::after { content: "–"; }
.about-acc details > div { padding: 0 20px 18px; }
.about-acc .nested details { margin: 8px 0; background: #fff8f6; }
.cta-actions { justify-content: center; }

@media (min-width: 720px) {
  .cookie-inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .cookie-cats { grid-template-columns: repeat(3, 1fr); }
}

.stack-form { display: grid; gap: 14px; }
.stack-form label, .check { display: grid; gap: 6px; }
.stack-form input, .stack-form textarea, .stack-form select {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid #ecd3db;
  padding: 10px 12px; background: #fff;
}
.stack-form textarea { min-height: 120px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 12px; background: #fff3f6; }
.notice.error { background: #fde8ee; color: #7a1030; }
.notice.success { background: #e8f7f3; color: #1a4a40; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.faq details { background: #fff; border-radius: 16px; padding: 14px 16px; margin: 10px 0; }
.error-code { font-size: 1rem; letter-spacing: 0.2em; color: var(--pink-soft); }

.auth-body {
  min-height: 100vh;
  background: radial-gradient(1000px 500px at 50% -10%, #5a1430, #12080c);
  color: #fff;
}
.auth-wrap { width: min(420px, calc(100% - 24px)); margin: 48px auto; }
.center-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-card { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--stroke); }
.auth-card a { color: var(--pink-soft); }
.auth-card .btn-ghost { color: #fff; }
.license-key {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em; font-size: 1.1rem;
}

[hidden] { display: none !important; }

@media (min-width: 800px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .header-download { display: inline-flex; }
  .hero-grid, .split { grid-template-columns: 0.92fr 1.08fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
