:root, .theme-midnight {
  --bg: #0e1736; --bg2: #162250; --ink: #f3efe6; --muted: #b9c0dc;
  --wall: #22327a; --wall2: #1a2760; --roof: #3b4da3; --dark: #0a1130;
  --lit: #ffcf70; --accent: #ff7a59; --accent-ink: #2a0f08;
  --paper: #fffaf0; --paper-ink: #1f1b2e; --line: #e4dccb;
}
.theme-nordic {
  --bg: #f4ede1; --bg2: #eadfcd; --ink: #2a211c; --muted: #6e6257;
  --wall: #b6382e; --wall2: #9c2d25; --roof: #3a2a24; --dark: #5a1d18;
  --lit: #ffe9a8; --accent: #1f4d3a; --accent-ink: #f4ede1;
}
.theme-pine {
  --bg: #10261d; --bg2: #173528; --ink: #eef3ea; --muted: #a9c0b2;
  --wall: #2a5f47; --wall2: #1f4a37; --roof: #0b1a14; --dark: #0c1d16;
  --lit: #ffd98a; --accent: #e9b44c; --accent-ink: #2a1c02;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background-image: radial-gradient(1200px 500px at 50% -10%, var(--bg2), transparent 70%);
  background-repeat: no-repeat; min-height: 100vh;
}
body.sheet-open { overflow: hidden; }
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 38em; }
.sub { font-size: .9rem; color: var(--muted); text-align: center; margin: .6em 0 0; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.brand-mark { width: 22px; height: 28px; border-radius: 11px 11px 3px 3px; background: var(--lit); box-shadow: 0 0 14px var(--lit); display: inline-block; }
.top nav { display: flex; gap: 16px; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .85; padding: 6px 0; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.top nav a, .brand { white-space: nowrap; }
@media (max-width: 479px) { .top { padding: 12px 16px; } .top nav { gap: 14px; font-size: .9rem; } .top nav:has(a[href="/pricing"]) .nav-how { display: none; } .brand { font-size: 1rem; gap: 8px; } }
main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 48px; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.big { width: 100%; min-height: 54px; font-size: 1.08rem; }
.btn.ghost { border-color: transparent; text-decoration: underline; font-weight: 600; }
.btn.small { min-height: 36px; padding: 4px 10px; font-size: .9rem; }
.btn.danger { color: #c0362c; margin-top: 12px; }
.btn.armed { background: #c0362c; color: #fff; border-color: #c0362c; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .win:focus-visible, summary:focus-visible { outline: 3px solid var(--lit); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > input { flex: 1 1 160px; }

.card, .sheet-panel, .ownerbox, .tools, .inapp { background: var(--paper); color: var(--paper-ink); border-radius: 22px; }
.card { padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.card .sub, .sheet-panel .sub, .card small, .tools small, .tools .sub, .ownerbox .sub { color: #6b6478; }
.fld { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.fld > span, .fld > legend, .fld > summary { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.fld > summary { cursor: pointer; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #cfc6b4; background: #fff; color: #1f1b2e; font: inherit;
}
textarea { resize: vertical; background-image: repeating-linear-gradient(transparent, transparent 1.52em, #eee6d6 1.52em, #eee6d6 calc(1.52em + 1px)); background-position: 0 10px; line-height: 1.55; }
.err { color: #b3261e; font-weight: 600; margin: 0 0 12px; }
input.bad, textarea.bad { border-color: #b3261e !important; box-shadow: 0 0 0 3px rgba(179,38,30,.18); }
.fld-label { font-weight: 700; font-size: .95rem; margin: 0 0 6px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind { position: relative; cursor: pointer; }
.kind input, .theme input { position: absolute; opacity: 0; inset: 0; }
.kind span { display: block; height: 100%; padding: 10px 12px; border: 1.5px solid #cfc6b4; border-radius: 14px; }
.kind b { display: block; }
.kind small { display: block; font-size: .8rem; line-height: 1.3; }
.kind input:checked + span { border-color: #ff7a59; background: #fff1e6; box-shadow: inset 0 0 0 1.5px #ff7a59; }
.kind input:focus-visible + span, .theme input:focus-visible + span { outline: 3px solid #ffb400; outline-offset: 2px; }
.custom { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.themes { display: flex; gap: 8px; }
.theme { position: relative; flex: 1; cursor: pointer; }
.theme span { display: block; text-align: center; padding: 26px 6px 8px; border-radius: 14px; border: 1.5px solid #cfc6b4; font-weight: 700; font-size: .9rem; background: linear-gradient(var(--wall) 0 20px, transparent 20px); }
.theme input:checked + span { border-color: #ff7a59; box-shadow: inset 0 0 0 1.5px #ff7a59; }
.th-midnight { --wall: #22327a; } .th-nordic { --wall: #b6382e; } .th-pine { --wall: #2a5f47; }
.mine { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 12px; margin-bottom: 16px; background: #fff1e6; border-radius: 14px; font-size: .95rem; }
.mine span { color: #6b6478; flex-basis: 100%; font-size: .85rem; }
.mine a { font-weight: 700; }
.check { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; }
.check input { width: 22px; height: 22px; }

/* landing */
.hero { display: grid; gap: 28px; align-items: start; padding: 20px 0 40px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 36px; align-items: stretch; }
  .hero > .card { display: flex; flex-direction: column; justify-content: space-between; }
  .hero > .card > * { flex: none; }
  /* Left column: text on top, house pinned to the bottom so it lines up with the form card. */
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .demo-wrap { margin-top: auto; padding-top: 26px; }
  .hero .house.demo { margin: 0; max-width: 400px; }
  .hero .demo-tip { max-width: 400px; }
  .house.demo .roof { width: 100%; margin-left: 0; }
}
@media (max-width: 899px) { .hero-copy { display: contents; } .hero-copy h1 { margin: 0; } .hero-copy .lead { margin: -14px 0 0; } .hero .demo-wrap { order: 3; } .hero .house.demo { margin: 0 auto; } }
.steps { padding: 28px 0; }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 42px; margin-bottom: 12px; border-radius: 17px 17px 4px 4px; background: var(--lit); color: #2a1c02; font-weight: 800; box-shadow: 0 0 16px color-mix(in srgb, var(--lit) 60%, transparent); }
.steps li p { margin: 0; color: var(--muted); font-size: .97rem; }
.prose { max-width: 720px; margin: 0 auto; padding: 20px 0; }
.prose section { margin: 0 0 34px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, transparent); }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--lit); }
.prose a.btn.primary { color: var(--accent-ink); }
.faq { border-top: 1px solid rgba(255,255,255,.16); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; }
.page { padding-top: 24px; }
.page.narrow { max-width: 480px; margin: 0 auto; }
.crumbs { font-size: .9rem; color: var(--muted); }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid rgba(128,128,128,.25); font-size: .9rem; color: var(--muted); text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }

/* the house */
.house { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 22px 30px rgba(0,0,0,.35)); }
.house.demo { max-width: 420px; margin: 26px 0 0; }
.roof { width: 106%; margin-left: -3%; aspect-ratio: 6 / 1; background: var(--roof); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.wall { background: linear-gradient(var(--wall), var(--wall2)); padding: 16px 14px 30px; border-radius: 4px 4px 18px 18px; box-shadow: inset 0 -10px 0 var(--roof); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.grid.g24 { grid-template-columns: repeat(6, 1fr); gap: 10px 6px; }
@media (min-width: 560px) { .grid.g24 { gap: 12px 10px; } }
@media (max-width: 559px) { .g24 .win { border-width: 2px; border-bottom-width: 4px; } .g24 .win i { font-size: .7rem; } .g24 .win b { font-size: 1.15rem; } .g24 .win u { font-size: .5rem; padding: 1px 4px; } .wall { padding: 14px 8px 16px; } }
.demo .grid { grid-template-columns: repeat(6, 1fr); gap: 8px 6px; }
.win {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 3px solid rgba(255,255,255,.82); border-bottom-width: 6px;
  border-radius: 46% 46% 5px 5px / 30% 30% 5px 5px; background: var(--dark); color: rgba(255,255,255,.75); font: inherit; cursor: pointer; overflow: visible;
  transition: transform .12s ease;
}
span.win { cursor: default; }
button.win:hover { transform: translateY(-2px); }
.win::before, .win::after { content: ""; position: absolute; background: rgba(255,255,255,.5); pointer-events: none; }
.win::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.win::after { top: 55%; left: 0; right: 0; height: 2px; }
.win i { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-style: normal; font-weight: 800; font-size: .82rem; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.win b { position: absolute; inset: 0 0 18%; display: grid; place-items: center; font-size: clamp(1.2rem, 6vw, 1.9rem); z-index: 1; font-weight: 400; }
.demo .win b { font-size: 1.1rem; }
.demo .win i { font-size: .65rem; }
.demo .win.pop { animation: pop .35s ease-out; }
@keyframes pop { 40% { transform: scale(1.15); } }
.demo-tip { max-width: 420px; margin: 14px auto 0; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.28); color: var(--ink); font-size: .95rem; text-align: center; min-height: 2.6em; display: grid; place-items: center; }
.demo-tip.on { background: var(--paper); color: var(--paper-ink); border: 1px solid transparent; font-weight: 600; }
@media (min-width: 900px) { .demo-tip { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .demo .win.pop { animation: none; } }
.win em { position: absolute; top: -8px; right: -8px; z-index: 2; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 800; font-size: .7rem; border-radius: 99px; padding: 1px 6px; }
.win u { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 2; background: #fff; color: #1f1b2e; text-decoration: none; font-weight: 800; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.win.lit { background: radial-gradient(circle at 50% 45%, #fff6d8, var(--lit) 70%); color: #3a2a05; box-shadow: 0 0 18px color-mix(in srgb, var(--lit) 70%, transparent); }
.win.lit i { text-shadow: none; }
.win.lit::before, .win.lit::after { background: rgba(120,80,10,.35); }
.win.today { border-color: #fff; animation: pulse 1.8s ease-in-out infinite; }
.win.seen { box-shadow: none; filter: saturate(.75); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 0 26px var(--lit); } }
@media (prefers-reduced-motion: reduce) { .win.today { animation: none; box-shadow: 0 0 0 4px rgba(255,255,255,.35); } button.win:hover { transform: none; } }

/* calendar page */
.cal { max-width: 620px; margin: 0 auto; display: grid; gap: 20px; }
.cal-head { text-align: center; }
.cal-head .lead { margin: 0 auto .6em; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; min-height: 40px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.crowd { display: grid; justify-items: center; gap: 6px; margin-top: 14px; }
.crowd-faces { display: flex; justify-content: center; padding-left: 10px; }
.crowd-faces span { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--bg); font-size: 1.25rem; line-height: 1; box-shadow: 0 0 12px color-mix(in srgb, var(--lit) 45%, transparent); }
.crowd-faces span.me { background: var(--lit); }
.crowd-faces span.more { background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 800; }
.crowd-line { margin: 10px 0 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.crowd .crowd-line { margin: 0; }
.help-btn span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lit); color: #2a1c02; font-weight: 800; }
.help-steps { list-style: none; counter-reset: hs; padding: 0; margin: 6px 0 20px; display: grid; gap: 12px; }
.help-steps li { counter-increment: hs; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; }
.help-steps li::before { content: counter(hs); display: grid; place-items: center; width: 34px; height: 40px; border-radius: 17px 17px 4px 4px; background: #ffcf70; color: #2a1c02; font-weight: 800; }
.progress { display: inline-block; margin: 0; padding: 4px 14px; border-radius: 99px; background: rgba(128,128,128,.22); font-weight: 700; font-size: .92rem; }
.cal-actions { display: grid; gap: 12px; justify-items: center; }
.cal-actions > * { width: 100%; max-width: 440px; }
.cal-actions .row { justify-content: center; }
.cal-actions .row .btn { flex: 1 1 150px; }
.codeline { text-align: center; margin: 0; color: var(--muted); }
.codeline code { font-size: 1.1rem; letter-spacing: .12em; color: var(--ink); font-weight: 700; user-select: all; }
.ownerbox, .inapp { padding: 18px; }
.ownerbox h2 { font-size: 1.25rem; }
.ownerbox.ready { display: grid; gap: 14px; }
.ownerbox.ready h2 { margin: 0; }
.ready-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.ready-step .num { display: grid; place-items: center; width: 30px; height: 36px; border-radius: 15px 15px 4px 4px; background: #ffcf70; color: #2a1c02; font-weight: 800; }
.ready-step strong { display: block; font-size: 1.05rem; }
.ready-step p { margin: 2px 0 10px; font-size: .93rem; color: #4a4458; }
.ready-step input { margin-bottom: 8px; font-size: .85rem !important; }
.ready-step .row .btn { flex: 1 1 130px; }
.ownerbox.ready > .btn.ghost { justify-self: center; }
.cal-cta { display: grid; gap: 8px; justify-items: center; }
.cal-cta > * { width: 100%; max-width: 440px; }
.cal-cta .row { justify-content: center; }
.cal-cta .row .btn { flex: 1 1 150px; }
.cta-label { margin: 0; text-align: center; font-weight: 700; color: var(--lit); }
.cal-cta .sub { margin: 0; }
.owner-status { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 12px; background: color-mix(in srgb, var(--lit) 22%, transparent); font-weight: 700; font-size: .95rem; }
.code-hint { margin: -4px 0 0; font-size: .85rem; }
.copy-manual { display: block; flex-basis: 100%; width: 100%; font-size: .85rem; font-weight: 600; }
.copy-manual span { display: block; margin-bottom: 4px; }
.copy-manual input { font-size: .85rem !important; }
.sheet-panel .row { margin-top: 8px; }
.sheet-panel .row .btn { flex: 1 1 110px; }
.cal-cta .row .btn.primary, .sheet-panel .row .btn.primary, .cal-actions .row .btn.primary { flex: 2 1 180px; }
.cal-cta .row .btn:not(.primary) { flex: 1 1 110px; }
.ownerbox input { margin-bottom: 12px; font-size: .85rem !important; }
.inapp p { margin: 4px 0 10px; font-size: .95rem; }
.tools { padding: 14px 18px; }
.tools > summary { cursor: pointer; font-weight: 700; }
.tools > summary + * { margin-top: 14px; }
.tools details { margin-bottom: 16px; }
.tools details summary { cursor: pointer; font-weight: 600; text-decoration: underline; }
.tools .ownerbox { padding: 12px 0 0; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(5,8,20,.72); display: grid; align-items: end; justify-items: center; overflow-y: auto; }
.sheet-panel { position: relative; width: 100%; max-width: 520px; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; max-height: 94vh; overflow-y: auto; animation: up .22s ease-out; }
@media (min-width: 620px) { .sheet { align-items: center; padding: 20px; } .sheet-panel { border-radius: 26px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet-panel { animation: none; } }
.x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: inherit; cursor: pointer; border-radius: 12px; }
.when { color: #6b6478; margin-top: -6px; font-weight: 600; }
.note { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: #fff; }
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sticker { font-size: 1.6rem; line-height: 1; }
.sticker.huge { font-size: 3.4rem; display: block; margin-bottom: 10px; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.08rem; margin: 0 0 8px; }
.note-photo { display: block; width: 100%; border-radius: 12px; margin: 8px 0; background: #eee; }
.locked { color: #6b6478; margin: 0 0 6px; }
.noteform { margin-top: 8px; }
.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.stickers button { aspect-ratio: 1; font-size: 1.5rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; padding: 0; }
.stickers button.on { border-color: #ff7a59; background: #fff1e6; box-shadow: inset 0 0 0 1.5px #ff7a59; }
.count { display: block; text-align: right; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.ideas button { border: 1px dashed #b9ae98; background: transparent; color: #4a4458; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.file { font: inherit; max-width: 100%; }
.photo-btn { position: relative; overflow: hidden; color: #1f1b2e; border-color: #cfc6b4; background: #fff; }
.photo-btn .file { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.photo-btn:focus-within { outline: 3px solid var(--lit); outline-offset: 2px; }
.photo-preview { margin: -6px 0 16px; }
.photo-preview img { display: block; max-width: 160px; max-height: 160px; border-radius: 12px; margin-bottom: 4px; }
.sent { text-align: center; padding: 10px 0; display: grid; gap: 4px; justify-items: center; }

.card > .btn.primary { width: 100%; min-height: 54px; font-size: 1.08rem; }

/* ---------- paid looks (window styles, calendar upgrade) ---------- */
/* Lantern: a warm lamp left on, with a second halo. */
.win.st-lantern { background: radial-gradient(circle at 50% 40%, #fffbe8, #ffd27a 45%, #f59e2b 85%); border-color: #fff3cf; box-shadow: 0 0 14px #ffc35a, 0 0 34px rgba(255,170,60,.55); }
.win.st-lantern::before, .win.st-lantern::after { background: rgba(110,60,0,.4); }
/* Mosaic: four coloured panes split by the window cross. */
.win.st-mosaic { background:
  linear-gradient(to right, transparent calc(50% - 1px), transparent calc(50% + 1px)),
  conic-gradient(from 0deg at 50% 55%, #ffd36e 0 25%, #7fd1c7 0 50%, #f39a8c 0 75%, #a9b8ff 0); border-color: #fff; box-shadow: 0 0 16px rgba(255,220,150,.7); }
.win.st-mosaic::before, .win.st-mosaic::after { background: rgba(40,30,60,.55); }
/* Aurora: slow drifting northern-light colours. */
.win.st-aurora { background: linear-gradient(160deg, #b9fbe0, #7ee0d0 30%, #a58cff 60%, #ffd1f0 85%); background-size: 220% 220%; border-color: #f3fffb; box-shadow: 0 0 16px rgba(140,240,210,.75), 0 0 34px rgba(165,140,255,.45); animation: aurora 6s ease-in-out infinite; }
.win.st-aurora::before, .win.st-aurora::after { background: rgba(30,40,80,.35); }
.win.st-aurora.today { animation: aurora 6s ease-in-out infinite, pulse 1.8s ease-in-out infinite; }
@keyframes aurora { 50% { background-position: 100% 100%; } }
/* Hearth: firelight flickering inside, a ring of bulbs around the frame. */
.win.st-hearth { background: radial-gradient(ellipse at 50% 80%, #fff3c9, #ffb347 28%, #e8562a 58%, #6e1c17 98%); border-color: #ffe2b0; outline: 3px dotted #ffd36e; outline-offset: 3px;
  box-shadow: 0 0 16px rgba(255,140,60,.85), 0 0 40px rgba(232,86,42,.5); animation: hearth 2.4s ease-in-out infinite; }
.win.st-hearth::before, .win.st-hearth::after { background: rgba(70,20,10,.45); }
.win.st-hearth.today { animation: hearth 2.4s ease-in-out infinite, pulse 1.8s ease-in-out infinite; }
@keyframes hearth { 0%, 100% { filter: brightness(1); outline-color: #ffd36e; } 30% { filter: brightness(1.12); outline-color: #ff9f80; } 60% { filter: brightness(.94); outline-color: #fff1b8; } }
.look .win.st-hearth, .price-row > .win.st-hearth { outline-width: 2px; outline-offset: 2px; }
.win.seen.st-lantern, .win.seen.st-mosaic, .win.seen.st-aurora, .win.seen.st-hearth { filter: none; }

/* Note card accents in the sheet */
.note.ns-lantern { border-color: #f5b54a; background: linear-gradient(#fff8e6, #fff); }
.note.ns-mosaic { border-image: linear-gradient(90deg, #ffd36e, #7fd1c7, #f39a8c, #a9b8ff) 1; }
.note.ns-aurora { border-color: #8fdcca; background: linear-gradient(135deg, #effff9, #f4efff); }
.note.ns-hearth { border-color: #e8803a; background: linear-gradient(#fff2e2, #fff); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255,180,80,.45); }
.note.pending { border-style: dashed; background: #fffdf6; }
.badge { margin-left: auto; font-size: .75rem; font-weight: 800; background: #fff1e6; color: #8a3a12; border-radius: 99px; padding: 2px 9px; }
.note.pending .row { margin: 6px 0 4px; }
.note.pending .row .btn { flex: 1 1 180px; }

/* Look picker in the note form */
.looks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.look { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: #1f1b2e; font: inherit; cursor: pointer; min-width: 0; }
.look .win { width: 34px; pointer-events: none; border-width: 2px; border-bottom-width: 4px; }
.look .win b { font-size: 1rem; inset: 0 0 10%; }
.look-name { font-size: .8rem; font-weight: 700; line-height: 1.1; text-align: center; }
.look-price { font-size: .78rem; font-weight: 800; color: #6b6478; }
.look-price.free { color: #1f6b3a; }
.look.on { border-color: #ff7a59; background: #fff1e6; box-shadow: inset 0 0 0 1.5px #ff7a59; }
.look:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }
.looks-note { display: block; margin-top: 6px; color: #6b6478; }
.pay-hint { margin: 8px 0 0; color: #4a4458; font-weight: 600; }

/* Reveal when the owner first opens a styled window: two shutters swing apart. */
.reveal { position: absolute; inset: 0; z-index: 5; pointer-events: none; perspective: 900px; border-radius: inherit; overflow: hidden; animation: reveal-fade 1.5s ease-in .2s forwards; }
.reveal .shutter { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--wall); box-shadow: inset 0 0 0 6px rgba(255,255,255,.65); }
.reveal .shutter.l { left: 0; transform-origin: left center; animation: shutter-l 1.1s cubic-bezier(.3,.7,.2,1) .15s forwards; }
.reveal .shutter.r { right: 0; transform-origin: right center; animation: shutter-r 1.1s cubic-bezier(.3,.7,.2,1) .15s forwards; }
.reveal::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.reveal.st-lantern::after { background: radial-gradient(circle at 50% 40%, #fff6d8, #ffc35a 60%, transparent); }
.reveal.st-mosaic::after { background: conic-gradient(from 0deg at 50% 45%, #ffd36e 0 25%, #7fd1c7 0 50%, #f39a8c 0 75%, #a9b8ff 0); opacity: .8; }
.reveal.st-aurora::after { background: linear-gradient(160deg, #b9fbe0, #7ee0d0 30%, #a58cff 60%, #ffd1f0 85%); }
.reveal.st-hearth::after { background: radial-gradient(ellipse at 50% 85%, #fff3c9, #ffb347 30%, #e8562a 60%, transparent 90%); }
@keyframes shutter-l { to { transform: rotateY(-100deg); } }
@keyframes shutter-r { to { transform: rotateY(100deg); } }
@keyframes reveal-fade { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .win.st-aurora, .win.st-aurora.today, .win.st-hearth, .win.st-hearth.today { animation: none; }
  .reveal { display: none; }
}

/* Starlit house: stars and a moon behind the roof, lights along the eaves. */
.house.up-starlit { position: relative; }
.house.up-starlit::before { content: ""; position: absolute; z-index: -1; left: -8%; right: -8%; top: -18%; height: 46%; border-radius: 40% 40% 0 0;
  background:
    radial-gradient(circle at 88.5% 17%, var(--bg) 0 13px, transparent 14px),
    radial-gradient(circle at 87% 22%, #fff7d6 0 15px, transparent 16px),
    radial-gradient(1.6px 1.6px at 12% 30%, #fff 99%, transparent), radial-gradient(1.4px 1.4px at 25% 12%, #fff 99%, transparent),
    radial-gradient(2px 2px at 40% 26%, #fff 99%, transparent), radial-gradient(1.4px 1.4px at 58% 8%, #fff 99%, transparent),
    radial-gradient(1.8px 1.8px at 70% 34%, #fff 99%, transparent), radial-gradient(1.4px 1.4px at 6% 6%, #fff 99%, transparent),
    radial-gradient(1.6px 1.6px at 95% 44%, #fff 99%, transparent), radial-gradient(1.2px 1.2px at 33% 40%, #fff 99%, transparent); }
.house.up-starlit .roof { position: relative; }
.house.up-starlit .wall { position: relative; }
.house.up-starlit .wall::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px;
  background: radial-gradient(circle, #ffe9a3 0 3px, transparent 3.5px) 0 0 / 22px 10px repeat-x,
              radial-gradient(circle, #ff9f80 0 3px, transparent 3.5px) 11px 0 / 22px 10px repeat-x;
  filter: drop-shadow(0 0 4px #ffd36e); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .house.up-starlit .wall::before { animation: none; } }

/* Small house icon for the calendar look, on /pricing and in the upgrade box */
.mini-house { display: inline-block; flex: none; width: 46px; height: 46px; border-radius: 10px; background:
  radial-gradient(1.4px 1.4px at 20% 20%, #fff 99%, transparent), radial-gradient(1.4px 1.4px at 75% 12%, #fff 99%, transparent),
  radial-gradient(circle at 80% 22%, #fff7d6 0 5px, transparent 5.5px),
  linear-gradient(#22327a, #22327a) 50% 100% / 60% 50% no-repeat,
  #0e1736; position: relative; }
.mini-house::after { content: ""; position: absolute; left: 14%; right: 14%; top: 30%; height: 22%; background: #3b4da3; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.upbox .up-preview { display: flex; gap: 12px; align-items: center; }
.upbox .up-preview p { margin: 0; font-size: .95rem; }
.upbox .btn { width: 100%; margin-top: 12px; }

/* /pricing */
.price-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.prose .price-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); margin: 0; }
.price-row > .win { width: 40px; flex: none; border-width: 2px; border-bottom-width: 4px; }
.price-row > .win b { font-size: 1rem; }
.price-row > span:not(.win):not(.mini-house) { flex: 1; min-width: 0; }
.price-row small { display: block; color: var(--muted); font-size: .88rem; }
.price-row strong { white-space: nowrap; }
.price-row.free strong { color: var(--lit); }

/* Story picture sheet and "make my own" after a note (share session) */
.story-img { display: block; width: auto; max-width: 100%; max-height: 52vh; margin: 10px auto 12px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.story-msg { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.story-msg input { width: 100%; font-size: .95rem; }
.own-check { align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--lit) 22%, transparent); font-weight: 600; }
.own-check input { flex: none; margin-top: 2px; }
.own-back { display: grid; gap: 8px; width: 100%; margin: 10px 0 4px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--lit) 20%, transparent); text-align: center; }
.own-back h3, .own-back p { margin: 0; }

/* Share channels, blocked-link help, milestones and sky (share session) */
.share { display: grid; gap: 8px; }
.share-more { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; font-size: .95rem; }
.chan { display: inline-block; padding: 8px 10px; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blocked { text-align: left; }
.blocked input { width: 100%; font-size: .95rem; }
.blocked p { margin: 8px 0; }
.ms-line { margin: 8px 0 0; font-size: .92rem; color: var(--muted); }
.sky { position: relative; width: 100%; max-width: 560px; height: 84px; margin: 0 auto -18px; pointer-events: none; }
.sky .moon { position: absolute; right: 9%; top: 6px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe8, var(--lit)); box-shadow: 0 0 26px color-mix(in srgb, var(--lit) 70%, transparent); animation: sky-rise .9s ease-out both; }
.sky .lantern { position: absolute; bottom: 4px; width: 14px; height: 20px; border-radius: 5px 5px 7px 7px; background: linear-gradient(#ffd98a, var(--accent)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 80%, transparent); animation: sky-float 5s ease-in-out infinite alternate; }
.sky .l1 { left: 10%; } .sky .l2 { left: 27%; bottom: 30px; animation-delay: -1.3s; } .sky .l3 { left: 46%; bottom: 12px; animation-delay: -2.6s; } .sky .l4 { left: 63%; bottom: 38px; animation-delay: -3.7s; }
.sky .burst { position: absolute; top: 4px; width: 64px; height: 64px; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, var(--lit) 0 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 20% 62%, transparent 66%); mask: radial-gradient(circle, transparent 18%, #000 20% 62%, transparent 66%);
  animation: sky-burst 2.8s ease-out infinite; }
.sky .b1 { left: 4%; } .sky .b2 { left: 38%; top: -8px; animation-delay: .9s; background: repeating-conic-gradient(from 10deg, var(--accent) 0 6deg, transparent 6deg 30deg); } .sky .b3 { left: 68%; top: 14px; animation-delay: 1.8s; background: repeating-conic-gradient(from 5deg, #fff 0 5deg, transparent 5deg 30deg); }
@keyframes sky-rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes sky-float { to { transform: translateY(-12px) rotate(4deg); } }
@keyframes sky-burst { 0% { transform: scale(.15); opacity: 0; } 15% { opacity: 1; } 70% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sky .moon, .sky .lantern { animation: none; } .sky .burst { animation: none; opacity: .8; } }

/* live countdown */
.cd { margin: 18px 0 14px; }
.cd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; }
.cd-cell { display: grid; justify-items: center; gap: 2px; padding: 14px 4px 10px; border-radius: 18px 18px 6px 6px; background: var(--dark); border: 2px solid rgba(255,255,255,.75); border-bottom-width: 5px; }
.cd-cell:first-child { background: radial-gradient(circle at 50% 40%, #fff6d8, var(--lit) 75%); color: #3a2a05; box-shadow: 0 0 22px color-mix(in srgb, var(--lit) 55%, transparent); }
.cd-cell b { font: 800 clamp(1.9rem, 9vw, 3.2rem)/1 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.cd-cell i { font-style: normal; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.cd-label { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.cd-answer { color: var(--ink); font-weight: 600; }
.cd-cta { margin: 22px 0 36px; padding: 20px; border-radius: 22px; background: var(--paper); color: var(--paper-ink); max-width: 520px; }
.cd-cta h2 { font-size: 1.3rem; margin-bottom: .35em; }
.prose .cd-cta p { color: #4a4458; }
.prose .cd-cta .sub { color: #6b6478; }
.buy-how { margin: 4px 0 10px; } .buy-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.4em; } .buy-btns .btn { text-decoration: none; }
