/* 24 Doors — paper-craft styles (v5) */
:root {
  --paper: #f7efdf;
  --paper-2: #fbf6ea;
  --paper-3: #f1e5d0;
  --ink: #233229;
  --ink-soft: #43564b;
  --green: #1f4a3a;
  --green-2: #2b5c48;
  --muted: #6e7b72;
  --line: rgba(31, 74, 58, 0.16);
  --line-soft: rgba(31, 74, 58, 0.09);
  --gold: #9c6a1c;
  --gold-bright: #e3ad3f;
  --gold-pale: #f2c94c;
  --red: #a9423a;
  --mint: #3f7c63;
  --panel: rgba(255, 255, 255, 0.5);
  --radius: 18px;
  --shadow: 0 24px 46px -30px rgba(74, 52, 20, 0.5);
  --shadow-soft: 0 14px 30px -22px rgba(74, 52, 20, 0.42);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    var(--grain),
    radial-gradient(1100px 640px at 84% -10%, rgba(242, 201, 76, 0.20), transparent 62%),
    radial-gradient(900px 600px at -8% 4%, rgba(31, 74, 58, 0.07), transparent 60%),
    linear-gradient(180deg, #fcf7ec 0%, #f7efdf 52%, #f2e6d1 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
input[type="checkbox"] { accent-color: var(--green); }

.wrap { width: min(100% - 40px, var(--max)); margin: 0 auto; }
@media (max-width: 560px) { .wrap { width: min(100% - 28px, var(--max)); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(250, 244, 232, 0.86);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-family: var(--serif); font-size: 19px; letter-spacing: 0.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(160deg, #2b5c48, #173a2c);
  color: #fbf3e0; font-size: 15px; font-family: var(--serif);
  border: 1px solid rgba(242, 201, 76, 0.45);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 6px 14px -9px rgba(31, 74, 58, 0.85);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: 14.5px; }
.nav a:hover { color: var(--green); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav .btn { color: #fbf3e0; }
.nav .btn:hover { color: #fbf3e0; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 7px 11px; font-size: 16px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 14px 20px 18px; background: #fbf5e8;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 30px -26px rgba(74, 52, 20, 0.6);
  }
  .nav.is-open a { padding: 7px 0; font-size: 15px; }
  .nav.is-open .lang-switch { align-self: flex-start; margin: 6px 0 2px; }
  .nav.is-open .lang-switch a { padding: 4px 8px; font-size: 12px; }
  .nav-toggle { display: block; }
}

/* language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch a {
  font-size: 11.5px !important; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 999px; color: var(--ink-soft);
}
.lang-switch a:hover { color: var(--green); text-decoration: none; }
.lang-switch a[aria-current="true"] {
  color: #fbf3e0; background: linear-gradient(160deg, #2b5c48, #1b4033);
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 30px; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: -30px 0 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(227, 173, 63, 0.5) 1.5px, transparent 2.2px);
  background-size: 240px 240px, 380px 380px;
  background-position: 0 0, 120px 60px;
  opacity: 0.55;
  animation: drift 46s linear infinite;
}
@keyframes drift {
  to { background-position: 240px 240px, 500px 440px; }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .7; }
.hero h1 { font-size: clamp(38px, 6.2vw, 62px); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin-top: 20px; font-size: 17.5px; color: #4f5d54; max-width: 44ch; }
.trust-line { margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ---------- forms / buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(23, 58, 44, 0.5); border-radius: 12px; padding: 13px 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
  background: linear-gradient(160deg, #2b5c48, #1b4033);
  color: #fbf3e0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 24px -14px rgba(31, 74, 58, 0.85);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent; color: var(--green);
  border: 1px solid rgba(31, 74, 58, 0.28); box-shadow: none;
}
.btn-ghost:hover { background: rgba(31, 74, 58, 0.06); }
.btn-quiet { background: transparent; color: var(--muted); border: 0; box-shadow: none; font-weight: 500; padding: 10px 8px; }
.btn-quiet:hover { color: var(--green); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
input[type="text"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: #fffdf6; border: 1px solid #dccdb4;
  color: var(--ink); font-family: var(--sans); font-size: 15.5px;
}
input[type="text"]::placeholder, textarea::placeholder { color: #9a9284; }
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none; border-color: rgba(164, 113, 31, 0.7);
  box-shadow: 0 0 0 3px rgba(227, 173, 63, 0.18);
}
textarea { resize: vertical; min-height: 84px; }
.msg { font-size: 13px; color: var(--red); min-height: 18px; margin: 2px 0 10px; }
.msg.ok { color: var(--mint); }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- create card ---------- */
.create-card {
  position: relative;
  background: linear-gradient(180deg, #fffdf6, #f9f1e2);
  border: 1px solid #e3d3b7; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.create-card::before {
  content: ""; position: absolute; inset: 9px; border-radius: 12px;
  border: 1px dashed rgba(164, 113, 31, 0.22); pointer-events: none;
}
.create-card > * { position: relative; }
.create-card h2 { font-size: 21px; margin-bottom: 4px; }
.create-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.style-opt { position: relative; cursor: pointer; }
.style-opt input { position: absolute; opacity: 0; pointer-events: none; }
.style-opt .swatch {
  display: block; border-radius: 12px; padding: 10px 8px 9px; text-align: center;
  border: 1px solid #ddcdb2; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, 0.45);
  transition: border-color .15s ease, transform .15s ease;
}
.style-opt .swatch i { display: block; height: 26px; border-radius: 7px; margin-bottom: 7px; box-shadow: inset 0 0 0 1px rgba(74, 52, 20, 0.12); }
.style-opt input:checked + .swatch { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); background: #fffdf6; }
.style-opt input:focus-visible + .swatch { box-shadow: 0 0 0 3px rgba(227, 173, 63, 0.22); }
.sw-gingerbread { background: linear-gradient(160deg, #e9c091, #c1804a); }
.sw-snow { background: linear-gradient(160deg, #fafdff, #cfe2ee); }
.sw-candy { background: linear-gradient(130deg, #ffe6ec 0 30%, #fffaf6 30% 50%, #eec3ce 50% 80%, #fffaf6 80%); }

.check-row {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px;
  border: 1px dashed rgba(164, 113, 31, 0.4); border-radius: 12px;
  background: rgba(242, 201, 76, 0.12); margin: 2px 0 14px; cursor: pointer;
}
.check-row input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }
.check-body { display: flex; flex-direction: column; gap: 2px; }
.check-body strong { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.check-body small { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---------- door grid ---------- */
.cal { border-radius: var(--radius); }
.door-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
@media (max-width: 620px) { .door-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.door {
  position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 11px; padding: 0;
  background: radial-gradient(circle at 52% 42%, #fff8e6 0%, #f1d8ac 38%, #dcb06c 72%, #bb8a44 100%);
  cursor: pointer; overflow: hidden; perspective: 480px;
  box-shadow: 0 7px 14px -11px rgba(74, 52, 20, 0.75), inset 0 0 0 1px rgba(120, 83, 35, 0.22);
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.door:hover { transform: translateY(-2px); }
.door:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.door::after {
  content: attr(data-day); position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(15px, 2.4vw, 21px); font-weight: 600;
  color: rgba(96, 62, 22, 0.42); opacity: 0; transition: opacity .35s ease .3s;
}
.door.is-open::after { opacity: 1; }

.door .flap {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(15px, 2.4vw, 21px); font-weight: 600;
  transform-origin: left center; transform: rotateY(0deg);
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 -4px 0 rgba(0, 0, 0, 0.08), inset 12px 0 18px -14px rgba(74, 52, 20, 0.5);
  transition: transform .55s cubic-bezier(.22, .72, .2, 1), box-shadow .4s ease;
}
.door .flap::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 16%);
  pointer-events: none;
}
.door .num { position: relative; z-index: 2; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); }

.door.is-empty .flap::after {
  content: ""; position: absolute; inset: 7px; border-radius: 7px;
  border: 1px dashed rgba(74, 47, 18, 0.28); pointer-events: none;
}
.door.is-empty.is-locked .flap::after { border-color: rgba(74, 47, 18, 0.15); }
.door.is-locked .flap { filter: saturate(0.82) brightness(0.97); }

.door:not(.is-open):not(.is-locked):hover .flap { transform: rotateY(-13deg); }
.door.is-open .flap,
.door.is-open:hover .flap { transform: rotateY(-112deg); box-shadow: -12px 14px 26px -14px rgba(74, 52, 20, 0.62); }
.door.is-open { box-shadow: 0 10px 20px -14px rgba(74, 52, 20, 0.8), inset 0 0 0 1px rgba(164, 113, 31, 0.35); }

.door .seal {
  position: absolute; z-index: 3; right: 6px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 8px; line-height: 1; color: #ffe9cf;
  background: radial-gradient(circle at 34% 30%, #cf6a5c, #8d2f26);
  box-shadow: 0 1px 3px rgba(80, 20, 12, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.door.is-today {
  box-shadow: 0 0 0 2px var(--gold-bright), 0 0 0 6px rgba(227, 173, 63, 0.22), 0 10px 18px -12px rgba(74, 52, 20, 0.7);
}
.door.is-today::before {
  content: ""; position: absolute; z-index: 4; left: 50%; bottom: 4px;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: #b9822f; box-shadow: 0 0 0 3px rgba(227, 173, 63, 0.25);
  animation: todayPulse 2.4s ease-in-out infinite;
}
@keyframes todayPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.35); opacity: 1; } }

/* style palettes */
.cal[data-style="gingerbread"] .door .flap {
  background: linear-gradient(160deg, #e9c091, #c1804a); color: #4a2a10;
  box-shadow: inset 0 0 0 1px rgba(168, 106, 55, 0.55), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
}
.cal[data-style="snow"] .door .flap {
  background: linear-gradient(160deg, #fafdff, #cfe2ee); color: #1e4a60;
  box-shadow: inset 0 0 0 1px rgba(169, 196, 213, 0.7), inset 0 -4px 0 rgba(30, 74, 96, 0.1);
}
.cal[data-style="candy"] .door .flap {
  background: linear-gradient(160deg, #ffe6ec, #eec3ce); color: #7a3044;
  box-shadow: inset 0 0 0 1px rgba(203, 143, 158, 0.65), inset 0 -4px 0 rgba(122, 41, 60, 0.1);
}
.cal[data-style="snow"] .door {
  background: radial-gradient(circle at 52% 42%, #ffffff 0%, #e2eef7 38%, #c2d9e7 72%, #a4c1d3 100%);
}
.cal[data-style="candy"] .door {
  background: radial-gradient(circle at 52% 42%, #fff7f9 0%, #f9dde4 38%, #edb9c6 72%, #d99eae 100%);
}

/* ---------- preview ---------- */
.preview-card {
  position: relative;
  background: linear-gradient(180deg, #fffdf6, #f8efdd);
  border: 1px solid #e2d2b6; border-radius: 20px; padding: 20px;
  box-shadow: 0 30px 60px -34px rgba(74, 52, 20, 0.6), inset 0 1px 0 #fff;
  transform: rotate(-1.2deg);
}
.preview-card::before,
.preview-card::after {
  content: ""; position: absolute; top: -10px; width: 74px; height: 22px;
  background: rgba(242, 201, 76, 0.45);
  border: 1px solid rgba(196, 150, 55, 0.35);
  box-shadow: 0 3px 8px rgba(74, 52, 20, 0.12);
}
.preview-card::before { left: 22px; transform: rotate(-6deg); }
.preview-card::after { right: 22px; transform: rotate(5deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.preview-title { font-family: var(--serif); font-size: 17px; }
.preview-code { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.preview-card .door { animation: doorIn .5s both; }
@keyframes doorIn { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.preview-hint { margin: 12px 2px 0; font-size: 12px; letter-spacing: .05em; color: var(--muted); text-align: center; }
.preview-note {
  display: none; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(164, 113, 31, 0.32); min-height: 54px;
}
.preview-note.is-on { display: block; animation: noteIn .28s ease; }
@keyframes noteIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.preview-note-head { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.preview-note p { margin: 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.45; color: var(--ink); }

/* ---------- sections ---------- */
section { padding: 54px 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(27px, 4vw, 38px); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.kicker::before { content: "❋"; margin-right: 8px; font-size: 10px; opacity: .8; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; border: 1px solid #e4d6bd; border-radius: 14px;
  padding: 20px 18px; background: #fffdf6; box-shadow: var(--shadow-soft);
}
.step .n {
  font-family: var(--serif); font-size: 13px; color: var(--gold);
  display: inline-block; margin-bottom: 12px; letter-spacing: .1em;
}
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 30px; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feature { padding-top: 16px; border-top: 1px solid var(--line); }
.feature .ico { color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-list summary {
  cursor: pointer; font-family: var(--serif); font-size: 17.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-size: 18px; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; max-width: 70ch; }

.cta-band {
  border: 1px solid rgba(242, 201, 76, 0.3); border-radius: 24px; padding: 40px 28px; text-align: center;
  color: #f8f0dd;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(242, 201, 76, 0.22), transparent 70%),
    linear-gradient(160deg, #2b5c48, #1b4033);
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); color: #fbf3e0; }
.cta-band p { color: rgba(248, 240, 221, 0.78); margin: 12px auto 22px; max-width: 46ch; }
.cta-band .btn {
  background: linear-gradient(160deg, #f4d489, #dfa93e); color: #2a1a08;
  border-color: rgba(122, 76, 10, 0.35);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 12px 26px -16px rgba(242, 201, 76, 0.85);
}

/* ---------- article pages ---------- */
.page-head { padding: 54px 0 18px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); }
.page-head p.lede { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 60ch; }
.prose { max-width: 72ch; padding-bottom: 40px; }
.prose h2 { font-size: 28px; margin: 38px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; }
.prose p, .prose li { color: #4d5b52; font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 7px; }
.prose blockquote {
  margin: 20px 0; padding: 14px 18px; border-left: 2px solid var(--gold-bright);
  background: rgba(31, 74, 58, 0.05); border-radius: 0 12px 12px 0; color: var(--ink-soft);
}
.prose code { background: rgba(31, 74, 58, 0.08); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.card-note {
  border: 1px solid #e4d6bd; border-radius: 16px; padding: 18px 20px;
  background: #fffdf6; margin: 22px 0; box-shadow: var(--shadow-soft);
}
.card-note h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.toc { border: 1px solid #e4d6bd; border-radius: 16px; padding: 18px 20px; margin: 26px 0; background: #fffdf6; box-shadow: var(--shadow-soft); }
.toc h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; font-size: 14.5px; }
.idea-group { margin-bottom: 34px; }
.idea-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; list-style: none; padding: 0; }
@media (max-width: 700px) { .idea-list { grid-template-columns: 1fr; } }
.idea-list li {
  border: 1px solid #e4d6bd; border-radius: 12px; padding: 12px 14px;
  font-size: 14.5px; color: var(--ink-soft); background: #fffdf6;
}

/* ---------- calendar page ---------- */
.cal-shell { padding: 34px 0 60px; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.cal-title { font-size: clamp(28px, 5vw, 42px); }
.cal-meta { color: var(--muted); font-size: 13.5px; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.code-chip {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px;
  letter-spacing: .16em; border: 1px solid rgba(164, 113, 31, 0.3); padding: 3px 9px; border-radius: 7px;
  color: var(--gold); background: rgba(242, 201, 76, 0.14);
}
.gift-chip { color: #7a4c0a; background: rgba(242, 201, 76, 0.3); border-color: rgba(164, 113, 31, 0.45); }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-panel {
  border: 1px solid #e4d5ba; border-radius: 22px; padding: 20px;
  background: linear-gradient(180deg, #fffdf6, #faf3e5);
  box-shadow: var(--shadow);
}
.progress { height: 5px; border-radius: 99px; background: rgba(31, 74, 58, 0.12); overflow: hidden; margin: 4px 0 18px; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d19a4c, #f2c94c); transition: width .4s ease; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot.filled { background: #d9a14a; box-shadow: 0 0 10px rgba(227, 173, 63, 0.55); }
.dot.empty { background: rgba(31, 74, 58, 0.18); }
.dot.locked { background: rgba(31, 74, 58, 0.14); border: 1px solid rgba(31, 74, 58, 0.35); }

.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }

/* ---------- modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(30, 42, 34, 0.45); backdrop-filter: blur(6px);
}
.overlay.is-open { display: flex; }
.sheet {
  width: min(100%, 520px); max-height: min(90vh, 760px); overflow: auto;
  background: linear-gradient(180deg, #fffdf6, #f8f0e0);
  border: 1px solid #e2d2b6; border-radius: 22px; padding: 24px;
  box-shadow: 0 40px 80px -40px rgba(40, 30, 10, 0.7); animation: sheetIn .2s ease;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sheet-head h3 { font-size: 23px; }
.sheet-head .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.x {
  background: rgba(31, 74, 58, 0.06); border: 1px solid var(--line); color: var(--ink);
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 18px; line-height: 1;
  flex: 0 0 auto;
}
.x:hover { background: rgba(31, 74, 58, 0.11); }
.sticker-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 4px 0 14px; }
@media (max-width: 440px) { .sticker-row { grid-template-columns: repeat(4, 1fr); } }
.sticker {
  border: 1px solid #ddcdb2; background: #fffdf6; border-radius: 11px;
  padding: 8px 0; font-size: 20px; line-height: 1; cursor: pointer; transition: .15s ease;
}
.sticker:hover { background: #fbf4e6; }
.sticker[aria-pressed="true"] { border-color: var(--gold-bright); background: rgba(242, 201, 76, 0.2); transform: translateY(-1px); }
.note-preview {
  border: 1px solid #e0d0b4; border-radius: 14px; padding: 16px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(31, 74, 58, 0.07) 27px 28px),
    linear-gradient(170deg, #fffdf7, #f9f2e4);
  margin-bottom: 16px;
}
.note-preview .from { font-size: 12.5px; color: var(--gold); letter-spacing: .04em; margin-bottom: 6px; }
.note-preview .text { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; }
.note-preview .stk { font-size: 22px; margin-bottom: 8px; }
.code-box {
  width: 100%; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px; line-height: 1.6; word-break: break-all;
  background: #fdf8ee; border: 1px dashed #cdbb9c; color: #2f4638;
  border-radius: 12px; padding: 12px; resize: none; min-height: 96px;
}
.lock-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.lock-note .ic { font-size: 18px; line-height: 1.3; }
.link-list { display: flex; flex-direction: column; gap: 8px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  background: #1f4a3a; color: #fbf3e0; font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 99px; z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 18px 40px -18px rgba(20, 30, 20, 0.8);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 50px; background: rgba(31, 74, 58, 0.04); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ink-soft); font-size: 14px; }
.footer-note { color: #7c877f; font-size: 12.5px; margin-top: 22px; max-width: 70ch; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero::after { display: none; }
  .door.is-open .flap { transform: rotateY(-112deg); }
}

/* utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 14px; }
.mt-4 { margin-top: 26px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


.app-promo{width:min(100% - 40px, var(--max));margin:36px auto 0;padding:0}
.app-promo-card{display:flex;gap:16px;align-items:center;padding:22px;border-radius:18px;background:linear-gradient(135deg,#1f4a3a,#2b5c48);color:#fff8ec;text-decoration:none;box-shadow:0 16px 34px -20px rgba(31,74,58,.7);transition:transform .15s ease,box-shadow .15s ease;border:1px solid rgba(242,201,76,.25)}
.app-promo-card:hover{transform:translateY(-2px);box-shadow:0 22px 42px -22px rgba(31,74,58,.8);text-decoration:none}
.app-promo-card img{border-radius:15px;flex:0 0 60px;width:60px;height:60px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.app-promo-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.app-promo-tag{font-size:10px;letter-spacing:.14em;text-transform:uppercase;opacity:.65}
.app-promo-badge{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#f2c94c;font-weight:700}
.app-promo-title{font-size:17px;line-height:1.32;font-weight:700}
.app-promo-sub{font-size:13px;line-height:1.5;opacity:.86}
.app-promo-cta{margin-top:10px;align-self:flex-start;background:#f2c94c;color:#1f2a24;font-weight:700;font-size:13px;padding:9px 16px;border-radius:999px;white-space:nowrap}
.ad-slot{width:min(100% - 40px, var(--max));margin:16px auto 44px;padding:0;border:0;background:none;min-height:0;display:block}
@media(max-width:560px){
  .app-promo,.ad-slot{width:min(100% - 28px, var(--max))}
  .app-promo-card{flex-direction:column;align-items:flex-start;padding:18px;gap:12px}
  .app-promo-card img{flex-basis:auto;width:52px;height:52px}
  .app-promo-title{font-size:16px}
}
