/* horacalendar.com — Hora's own look: the app's cream wallpaper, frosted glass panes,
   event chips and DM Sans throughout. */
:root {
  --bg: #fff7f0;
  --ink: #1a1a1a;
  --muted: #6b6862;
  --faint: #a8a39b;
  --line: rgba(26, 26, 26, 0.08);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --red: #e5484d;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #10b981;
  --amber: #f59e0b;
  --pane: 28px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(229, 72, 77, .18); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Wallpaper: the app's soft glow, drifting slowly behind everything ---------- */
.wallpaper { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.wallpaper i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.wallpaper i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: #c9c2ff; }
.wallpaper i:nth-child(2) { width: 46vw; height: 46vw; right: -10vw; top: 4vw; background: #ffc4ae; animation-duration: 32s; animation-delay: -8s; }
.wallpaper i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 38vh; background: #f7c6e6; opacity: .4; animation-duration: 38s; animation-delay: -16s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vw) scale(1.08); } 100% { transform: translate(-3vw, 5vw) scale(.96); } }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: saturate(1.5) blur(24px); -webkit-backdrop-filter: saturate(1.5) blur(24px);
  border-radius: var(--pane);
  position: relative;
  box-shadow: 0 30px 70px -40px rgba(70, 40, 90, .28), 0 1px 0 rgba(255,255,255,.7) inset;
}
/* Rim: bright along the top edge, faint down the sides — like a Hora pane. */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.25) 30%, rgba(26,26,26,.06) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- Nav: a floating glass capsule ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; transition: transform .5s var(--ease), opacity .4s; }
.nav.hidden { transform: translateY(-140%); opacity: 0; }
.nav .bar {
  display: flex; align-items: center; gap: 8px; height: 54px; max-width: 760px; margin: 0 auto; padding: 0 7px 0 16px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 7px 13px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: rgba(26,26,26,.06); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: inherit; font-weight: 500; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 30px -12px rgba(229, 72, 77, .7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-red:hover { box-shadow: 0 18px 36px -14px rgba(229, 72, 77, .8), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-glass { background: var(--glass-strong); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Event chip (section labels, ticker) ---------- */
.event {
  --c: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 14px 0 6px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 10%, white);
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  margin: 0 0 18px;
}
.event::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--c); }
.event time { color: color-mix(in srgb, var(--c) 70%, #222); font-variant-numeric: tabular-nums; font-weight: 500; }
.c-blue { --c: var(--blue); } .c-purple { --c: var(--purple); } .c-green { --c: var(--green); } .c-amber { --c: var(--amber); } .c-red { --c: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: #3a3835; transition: transform .35s var(--ease), background .2s; }
.chip:hover { transform: translateY(-1px); background: #fff; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
h4 { font-weight: 600; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 46ch; }
.accent { color: var(--red); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 0; text-align: center; }
.app-icon { width: 100px; height: 100px; border-radius: 23px; margin: 0 auto 28px; box-shadow: 0 26px 50px -20px rgba(229, 72, 77, .55); }
.hero h1 { max-width: 13ch; margin: 0 auto; }
.hero .lede { margin: 22px auto 32px; }
.hero .cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--red); opacity: .55; }
.hero-stage { perspective: 1600px; margin: 72px auto 0; padding: 0 24px; max-width: 1240px; }
.hero-shot { padding: 10px; border-radius: 30px; transform-origin: 50% 0%; will-change: transform; }
.hero-shot img { width: 100%; border-radius: 21px; }

/* ---------- Statement ---------- */
.statement { padding: 150px 0 120px; }
.statement p[data-words] {
  text-align: center; font-size: clamp(26px, 3.3vw, 40px); line-height: 1.25; font-weight: 500; letter-spacing: -0.025em;
  max-width: 25ch; margin: 0 auto; color: var(--ink);
}
.statement .w { color: #cfc8bf; transition: color .3s linear; }
.statement .w.on { color: var(--ink); }
.tiles { display: flex; justify-content: center; gap: 22px; margin-top: 64px; flex-wrap: wrap; }
.tile { text-align: center; font-size: 14px; color: var(--muted); }
.tile .face { width: 88px; height: 88px; border-radius: 21px; margin: 0 auto 12px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 18px 36px -18px rgba(70,40,90,.35), inset 0 0 0 1px var(--line); animation: float 6s ease-in-out infinite; }
.tile:nth-child(2) .face { animation-delay: -2s; } .tile:nth-child(3) .face { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
.tile .face.cal { display: block; text-align: center; }
.face.cal .m, .face.cal .d { width: 100%; }
.face.cal .m { background: var(--red); color: #fff; font-size: 12px; font-weight: 600; height: 25px; line-height: 25px; letter-spacing: .04em; }
.face.cal .d { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 60px; }
.face.tasks .lines { display: grid; gap: 7px; width: 54px; }
.face.tasks .row { display: flex; align-items: center; gap: 6px; }
.face.tasks .row i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c7c2ba; flex: none; }
.face.tasks .row i.done { background: var(--green); border-color: var(--green); }
.face.tasks .row b { height: 5px; border-radius: 3px; background: #ddd7cf; flex: 1; }
.face.spark { background: radial-gradient(circle at 30% 25%, #ff8a8e, var(--red) 60%, #b5232b); }
.face.spark svg { width: 44px; height: 44px; color: #fff; }
.private-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 44px; }

/* ---------- Feature panes ---------- */
.feature { margin: 0 auto 28px; max-width: 1200px; width: calc(100% - 40px); padding: 72px 0 0; overflow: hidden; }
.feature .head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 56px; align-items: end; }
.feature .head .lede { margin: 0; }
.feature .chips { margin-top: 26px; }
.feature .media { margin: 52px auto 0; padding: 0 36px; }
.feature .media > div { border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 -1px 0 var(--line), 0 -20px 50px -30px rgba(70,40,90,.3); }
.feature .media video, .feature .media img { width: 100%; }
.feature.pad-bottom { padding-bottom: 36px; }
.feature.pad-bottom .media > div { border-radius: 0; box-shadow: none; overflow: visible; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo figure { margin: 0; }
.duo img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.duo figcaption { padding: 14px 4px 0; font-size: 15px; color: var(--muted); }

/* Small things */
.small { margin: 0 auto 28px; max-width: 1200px; width: calc(100% - 40px); padding: 80px 0 84px; text-align: center; }
.small .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; text-align: left; }
.small .item { background: rgba(255,255,255,.7); border-radius: 20px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), background .2s; }
.small .item:hover { transform: translateY(-3px); background: #fff; }
.small .item .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--c, var(--red)) 12%, white); color: color-mix(in srgb, var(--c, var(--red)) 85%, #000); }
.small .item svg { width: 20px; height: 20px; }
.small .item h4 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.small .item p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Ticker of event chips */
.ticker { overflow: hidden; padding: 30px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .track { display: flex; gap: 10px; width: max-content; animation: tick 50s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .event { margin: 0; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.ticker .event:nth-child(5n+1) { --c: var(--blue); } .ticker .event:nth-child(5n+2) { --c: var(--purple); }
.ticker .event:nth-child(5n+3) { --c: var(--green); } .ticker .event:nth-child(5n+4) { --c: var(--amber); } .ticker .event:nth-child(5n) { --c: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Privacy */
.privacy { margin: 0 auto 28px; max-width: 1200px; width: calc(100% - 40px); padding: 84px 0; text-align: center; background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255, 236, 232, .7)); }
.privacy .lede { margin: 18px auto 0; }
.privacy .points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; text-align: left; }
.privacy .point { background: rgba(255,255,255,.8); border-radius: 20px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.privacy .point .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; margin-bottom: 14px; }
.privacy .point h4 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.privacy .point p { margin: 0; color: var(--muted); font-size: 15.5px; }
.privacy .more { display: inline-block; margin-top: 30px; font-size: 15px; color: var(--muted); }
.privacy .more:hover { color: var(--ink); }

/* Closing */
.closing { padding: 120px 0 110px; text-align: center; }
.closing .app-icon { width: 86px; height: 86px; border-radius: 20px; }
.closing h2 { max-width: 15ch; margin: 0 auto; }
.closing .lede { margin: 18px auto 30px; }

/* Footer */
footer { font-size: 14px; color: var(--muted); padding: 30px 0 44px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; max-width: 1200px; }
footer .brand { font-size: 16px; color: var(--ink); }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer .links { display: flex; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Text pages ---------- */
.page-pane { margin: 100px auto 40px; max-width: 840px; width: calc(100% - 40px); }
.page { padding: 72px 56px 80px; }
.page h1 { font-size: clamp(42px, 6vw, 62px); }
.page .updated { color: var(--muted); margin: 14px 0 44px; }
.page h2 { font-size: 25px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.page p, .page li { color: #3a3835; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 8px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 500; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--faint); font-size: 22px; line-height: 1; transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(45deg); color: var(--red); }
details p { margin: 12px 0 0; }
.contact { margin-top: 48px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); border-radius: 20px; padding: 24px 26px; }
.contact p { margin: 6px 0 0; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
h1 .word { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(8px); animation: word .95s var(--ease) forwards; animation-delay: calc(var(--w) * 75ms + 260ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes word { to { opacity: 1; transform: none; filter: blur(0); } }
.pop { opacity: 0; transform: scale(.6) rotate(-10deg); animation: pop 1.1s var(--ease) .05s forwards; }
@keyframes pop { 60% { opacity: 1; transform: scale(1.06) rotate(2deg); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(48px) scale(.985); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 60ms; } .stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.stagger.in > *:nth-child(4) { transition-delay: 180ms; } .stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.stagger.in > *:nth-child(6) { transition-delay: 300ms; } .stagger.in > *:nth-child(7) { transition-delay: 360ms; }
.js .media-rise { transform: translateY(60px); transition: transform 1.3s var(--ease); }
.js .media-rise.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .pop, h1 .word, .reveal, .stagger > *, .media-rise { opacity: 1 !important; transform: none !important; filter: none !important; }
  .statement .w { color: var(--ink); }
  .hero-shot { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature .head { grid-template-columns: 1fr; }
  .small .grid, .privacy .points { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .feature, .small, .privacy, .page-pane { width: calc(100% - 20px); }
}
@media (max-width: 640px) {
  :root { --pane: 24px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { top: 10px; padding: 0 10px; }
  .nav-links { display: none; }
  .nav .bar .btn { margin-left: auto; }
  .hero { padding-top: 116px; }
  .hero-stage { padding: 0 10px; margin-top: 52px; }
  .hero-shot { padding: 6px; border-radius: 20px; }
  .hero-shot img { border-radius: 15px; }
  .feature { padding-top: 56px; }
  .feature .media { padding: 0 14px; margin-top: 40px; }
  .small .grid, .privacy .points { grid-template-columns: 1fr; }
  .tiles { gap: 16px; }
  .tile .face { width: 74px; height: 74px; border-radius: 18px; }
  .face.cal .d { font-size: 32px; line-height: 50px; }
  .face.cal .m { height: 22px; line-height: 22px; font-size: 11px; }
  footer .links { margin-left: 0; }
  .page { padding: 52px 22px 60px; }
}
