/* Shared look of all our sites (utilities light, tarot/horoscope dark). Values follow the landing-page-design skill:
   Manrope only, Tailwind type scale, spacing 4/8/12/16/24/32/40/48/64/80/96, flat backgrounds, one motion curve. */
@font-face { font-family: Manrope; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root { --bg: #ffffff; --surface: #f5f6f8; --line: #e4e6eb; --fg: #0b0d12; --muted: #5a6070; --accent: #1f7a4d; --on-accent: #ffffff;
  --h1-from: #000000; --h1-to: #666666; --glass: rgba(255, 255, 255, .72); --panel-bg: rgba(255, 255, 255, .96); --ease: cubic-bezier(.22, 1, .36, 1); color-scheme: light; }
html[data-theme="dark"] { --bg: #131209; --surface: #1f1f1f; --line: #313131; --fg: #f4f1ea; --muted: #a9a499; --accent: #d9b46a; --on-accent: #131209;
  --h1-from: #ffffff; --h1-to: #9b9b9b; --panel: #1f1f1f; --glass: rgba(24, 24, 24, .72); --panel-bg: rgba(19, 18, 9, .96); color-scheme: dark; }
html[data-theme="dark"][data-tone="night"] { --bg: #000000; --surface: #181818; --panel: #181818; --line: #272727; --accent: #9db8ff; --on-accent: #000000; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body.site { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/24px Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
:where(body.site) :where(h1, h2, h3) { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
:where(body.site) :where(p, li) { text-wrap: pretty; }
:where(body.site) a { color: inherit; }
body.site img { max-width: 100%; height: auto; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transition: transform 300ms var(--ease); }
.skip:focus { transform: translateY(60px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Floating navigation */
.nav { position: sticky; top: 12px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; margin-top: 12px; }
.nav-bar { display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 9999px; background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); max-width: 100%; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; line-height: 20px; text-decoration: none; white-space: nowrap; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 16px; font-size: 14px; line-height: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { font-size: 14px; line-height: 20px; padding: 8px 12px; white-space: nowrap; }
@media (max-width: 560px) { .nav .nav-cta { display: none; } .nav-bar { justify-content: space-between; width: 100%; } }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: transparent; color: var(--fg); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; width: 16px; height: 2px; background: currentColor; transition: transform 500ms var(--ease); }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: 16px; padding: 96px 24px 32px; background: var(--panel-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
.menu-panel a { font-size: 24px; line-height: 32px; font-weight: 600; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.menu-open .menu-panel { opacity: 1; pointer-events: auto; }
.menu-open .menu-panel a { opacity: 1; transform: none; }
@media (max-width: 860px) { .nav-links { display: none; } .menu-btn { display: block; } .nav-bar { gap: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: var(--on-accent);
  font: 600 16px/24px Manrope, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
body.site .btn { color: var(--on-accent); }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.big { padding: 12px 24px; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
body.site .btn.ghost { color: var(--fg); }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
.sec.tight { padding: 64px 0; }
.sec.alt { background: var(--surface); }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.sec h2 { font-size: 36px; line-height: 40px; max-width: 680px; }
.sec .sub { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 680px; margin: 16px 0 0; }
.center { text-align: center; } .center h2, .center .sub { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .sec { padding: 64px 0; } .sec h2 { font-size: 30px; line-height: 36px; } .wrap, .narrow { padding: 0 16px; } }

/* Hero */
.hero { padding: 80px 0 64px; text-align: center; }
.badge { display: inline-flex; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 9999px; font-size: 14px; line-height: 20px; color: var(--muted); margin-bottom: 24px; }
.hero h1 { font-size: 60px; line-height: 1; max-width: 680px; margin: 0 auto; background: linear-gradient(90deg, var(--h1-from), var(--h1-to)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.hero .lead { font-size: 20px; line-height: 28px; color: var(--muted); max-width: 680px; margin: 24px auto 0; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.proof { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 16px; }
.shot { margin: 64px auto 0; max-width: 1040px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); }
.shot img { display: block; width: 100%; }
@media (max-width: 640px) { .hero { padding: 48px 0 40px; } .hero h1 { font-size: 36px; line-height: 40px; } .hero .lead { font-size: 18px; line-height: 28px; } .shot { margin-top: 40px; border-radius: 16px; } }

/* Cards and grids */
.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.c3, .grid.c2, .grid.c4 { grid-template-columns: 1fr; } }
.card-b { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg); }
.sec.alt .card-b { background: var(--bg); }
.card-b h3 { font-size: 18px; line-height: 28px; margin-bottom: 8px; }
.card-b p { margin: 0; color: var(--muted); }
.num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.ba .card-b:first-child h3 { color: var(--muted); }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } }

/* Tagline reveal: each word goes from muted to full colour as it crosses the trigger line */
.tagline { padding: 96px 0; }
.tagline p { font-size: 48px; line-height: 1; font-weight: 700; max-width: 760px; margin: 0 auto; text-align: center; letter-spacing: -0.02em; }
.tagline .w { opacity: .3; transition: opacity 500ms var(--ease); }
.tagline .w.on { opacity: 1; }
@media (max-width: 640px) { .tagline p { font-size: 30px; line-height: 36px; } }

/* Live tool box, pricing, tables, FAQ */
.tool { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg); margin: 48px auto 0; max-width: 880px; text-align: left; }
.tool textarea { width: 100%; min-height: 140px; font: 14px/20px ui-monospace, monospace; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.tool button, .tool select { font: inherit; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.plan.hl { border-color: var(--accent); }
.plan h3 { font-size: 18px; line-height: 28px; }
.plan .price { font-size: 36px; line-height: 40px; font-weight: 700; }
.plan .price small { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); flex: 1; }
.plan .btn { justify-content: center; }
body.site table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
body.site td, body.site th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
body.site th { background: var(--surface); }
.tablewrap { overflow-x: auto; margin-top: 32px; border-radius: 12px; }
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; line-height: 28px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 8px 0 0; }
.final { text-align: center; }
.final h2 { margin: 0 auto; }
.final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Prose for guide and reference pages */
.prose { font-size: 18px; line-height: 28px; }
.prose h2 { font-size: 30px; line-height: 36px; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; line-height: 28px; margin: 32px 0 8px; }
.prose p, .prose ol, .prose ul { margin: 0 0 16px; }
.prose .muted, .muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--fg); font-size: 14px; line-height: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; transition: color 300ms var(--ease); }
.foot a:hover { color: var(--fg); }
.foot .legal { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal (once) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 300ms linear; }
  .menu-panel a { transform: none; }
  html { scroll-behavior: auto; }
}
.no-js .reveal { opacity: 1; transform: none; }
