/* The Destiny Matrix site. Phone first: one column, big tap targets; wider screens get the second column. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair"; font-weight: 800; font-display: swap; src: url("/static/fonts/playfair-800.woff2") format("woff2"); }

:root {
  --bg: #FAF7F2; --card: #FFFFFF; --soft: #F3EEF9; --ink: #241E38; --muted: #6B6482; --line: #E6DFF1;
  --violet: #6C47D9; --violet-dark: #5636BA; --gold: #E9A93A; --gold-ink: #3A2A05; --red: #C8372D; --green: #2F9457;
  --radius: 18px; --shadow: 0 1px 2px rgba(36, 30, 56, .05), 0 8px 28px rgba(36, 30, 56, .07);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-dark); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font: 800 clamp(30px, 7.2vw, 46px)/1.12 var(--serif); letter-spacing: -.01em; }
h2 { font: 800 clamp(23px, 5.2vw, 30px)/1.2 var(--serif); margin-top: 1.6em; }
h3 { font: 700 19px/1.3 var(--sans); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(108, 71, 217, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-name { font: 800 21px/1 var(--serif); white-space: nowrap; }
.logo-tag { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.langs a { padding: 8px 7px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { color: var(--ink); background: var(--soft); }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-list { position: absolute; right: 0; top: 50px; min-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-list a { padding: 11px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-list a:hover, .menu-list a[aria-current] { background: var(--soft); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

/* hero and the calculator */
.hero { padding: 26px 0 8px; }
.hero-grid { display: grid; gap: 24px; }
.hero-chart { margin: 0; display: none; }
.hero-chart figcaption { text-align: center; font-size: 14px; margin-top: 4px; }
.lead { font-size: 18.5px; color: #3D3657; margin-bottom: 1.1em; }
.lead-small { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.soft { box-shadow: none; background: var(--soft); border-color: transparent; }
.calc { display: grid; gap: 14px; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.date { display: grid; grid-template-columns: 1fr 1.7fr 1.25fr; gap: 8px; }
.date legend { grid-column: 1 / -1; }
.calc label span, .field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select { width: 100%; font: 500 17px/1.2 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #D5CCE6; border-radius: 12px; padding: 13px 12px; min-height: 50px; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6482' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
input:focus, select:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 3px rgba(108, 71, 217, .18); }
input.bad, select.bad { border-color: var(--red); }
.calc-two { display: grid; gap: 14px; }
.err { color: var(--red); font-size: 14.5px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.mail-fix { background: none; border: 0; padding: 0; color: var(--violet-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.fine { font-size: 13.5px; color: var(--muted); margin: 0; text-align: center; }
.note { background: #FFF6DF; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: #5A4411; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 14px 22px; border-radius: 14px; border: 0; font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: transform .06s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--violet); color: #fff; width: 100%; }
.btn-main:hover { background: var(--violet-dark); color: #fff; }
.btn-pay { background: var(--gold); color: var(--gold-ink); width: 100%; font-weight: 700; box-shadow: 0 6px 18px rgba(233, 169, 58, .35); }
.btn-pay:hover { background: #F0B54A; color: var(--gold-ink); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid #D5CCE6; width: 100%; }
.btn[disabled], .btn.busy { opacity: 1; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--violet-dark); text-decoration: underline; cursor: pointer; }
.more { font-weight: 600; text-decoration: none; }

/* sections of the public pages */
section.wrap, article.wrap { margin-top: 34px; }
.two { display: grid; gap: 14px; }
.two h2 { margin-top: 0; font-size: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 .6em; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 9px; border-left: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(-45deg) scale(.8); }
.ticks-gold li::before { border-color: #C98A17; }
.ticks-minus li::before { width: 13px; height: 0; border-left: 0; border-color: var(--muted); transform: none; top: .8em; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 14px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: grid; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps span { color: var(--muted); font-size: 15.5px; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tile { display: grid; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--violet); color: var(--ink); }
.tile span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.arcana { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.arcana a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.25; }
.arcana a:hover { border-color: var(--violet); }
.arcana a b { min-width: 0; overflow-wrap: anywhere; }  /* a long name breaks inside its tile (arcana.tile_name) */
.arcana-big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.arcana-big a { display: grid; grid-template-columns: auto 1fr; padding: 12px; }
.arcana-big small { grid-column: 2; color: var(--muted); font-size: 13.5px; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: inline-grid; place-items: center; font: 700 15px/1 var(--sans); }
.num-locked { background: #fff; color: var(--muted); border: 1.5px dashed #BDB3D3; }
.num-xl { width: 64px; height: 64px; font-size: 28px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 26px 15px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--violet); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: #3D3657; }
.final { text-align: center; }
.final .calc { text-align: left; margin-top: 16px; }
.final > p { color: var(--muted); }
.page-head { padding-top: 6px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--violet-dark); margin: 0 0 6px; }
.prose h2 { margin-top: 1.5em; }
.prose p, .prose li { color: #332C4C; }
.advice { display: grid; gap: 8px; padding-left: 1.3em; }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; margin-top: 28px; }
.pager a { text-decoration: none; font-weight: 600; }
.arc-head { display: flex; gap: 14px; align-items: center; }
.arc-head h1 { margin-bottom: .15em; }
.zones-of { display: grid; gap: 10px; margin: 0 0 1em; }
.zones-of div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.zones-of dt { font-weight: 700; color: var(--violet-dark); font-size: 14.5px; }
.zones-of dd { margin: 2px 0 0; }
.rows { list-style: none; padding: 0; display: grid; gap: 8px; }
.rows a { display: flex; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.rows a:hover { border-color: var(--violet); }
.rows b { display: block; }
.rows span span, .rows a > span:last-child { color: #3D3657; font-size: 15.5px; line-height: 1.45; }
.example { display: grid; gap: 6px; margin: 1em 0; }
.example p { margin: 0; }
.calc-line { font-variant-numeric: tabular-nums; font-size: 16.5px; }
.hl { background: #FFE9B0; border-radius: 6px; padding: 1px 7px; }
.ex { display: grid; gap: 6px; margin: 0; }
.ex div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #D9D0EA; padding-bottom: 6px; }
.ex dt { color: var(--muted); }
.ex dd { margin: 0; text-align: right; }
.tail-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1em; }
.tail-index a, .code { font: 600 14px/1 var(--sans); background: var(--soft); color: var(--violet-dark); border-radius: 8px; padding: 6px 9px; text-decoration: none; white-space: nowrap; }
.tail { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.tail h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }

/* a reading */
.res-head { padding-top: 22px; margin-top: 0 !important; }
.chart-box { margin: 6px auto 4px; max-width: 460px; }
.chart-small { max-width: 300px; }
.mx-chart { width: 100%; height: auto; }
.legend { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); justify-content: center; }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.d-a { background: #7A4FD0; } .d-c { background: #E14B41; } .d-e { background: #F4C93C; }
.d-f { background: #fff; border: 1.5px solid #B9B1D2; } .d-l { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed #F08B34; }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.sum div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.sum dt { font-size: 12.5px; color: var(--muted); }
.sum dd { margin: 0; font: 700 18px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.people .card { display: grid; gap: 2px; padding: 12px; font-size: 14.5px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.chips i { font-style: normal; font-weight: 700; background: #fff; border-radius: 8px; padding: 3px 7px; font-size: 13.5px; }
.blocks { display: grid; gap: 8px; }
.blocks > * { min-width: 0; }  /* a wide table scrolls inside its block, the page stays as wide as the screen */
.tbl-scroll { overflow-x: auto; }
.blk h2 { margin-top: 1.2em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blk-intro { color: var(--muted); margin-bottom: 12px; }
.it, .tail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.it-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.it-role { font-size: 13px; color: var(--muted); margin: 0 0 1px; }
.it-name { margin: 0; font-size: 19px; }
.it-kw { font-size: 14px; color: var(--muted); margin: 1px 0 0; }
.it-text p:last-child { margin-bottom: 0; }
.it-now { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108, 71, 217, .1); }
.it-locked { background: linear-gradient(#fff, #FBF8FF); padding: 13px 14px; }
.it-locked .it-kw { display: none; }
.it-locked .it-head { margin-bottom: 6px; }
.it-locked .it-name { font-size: 17px; }
.it-hook { margin: 0 0 8px; color: #332C4C; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
.it-lock { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 600; color: #8A6A16; }
.lock { width: 13px; height: 11px; border-radius: 3px; background: #C98A17; position: relative; display: inline-block; margin-top: 4px; }
.lock::before { content: ""; position: absolute; left: 2.5px; top: -6px; width: 8px; height: 8px; border: 2px solid #C98A17; border-bottom: 0; border-radius: 5px 5px 0 0; }
.tail-name { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.tbl-scroll { overflow-x: auto; margin-bottom: 12px; }
.chakras { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; }
.chakras th, .chakras td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.chakras th[scope=row] { text-align: left; font-weight: 500; border-left: 5px solid transparent; }
.chakras thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ch-sahasrara th[scope=row] { border-left-color: #7A4FD0; } .ch-ajna th[scope=row] { border-left-color: #3F72E4; }
.ch-vishuddha th[scope=row] { border-left-color: #2FB3D6; } .ch-anahata th[scope=row] { border-left-color: #4FB26A; }
.ch-manipura th[scope=row] { border-left-color: #F4C93C; } .ch-svadhisthana th[scope=row] { border-left-color: #F08B34; }
.ch-muladhara th[scope=row] { border-left-color: #E14B41; } .ch-total th[scope=row], .ch-total td { font-weight: 700; border-bottom: 0; }

/* the paywall */
.pay { border: 2px solid var(--gold); background: linear-gradient(180deg, #FFFBF1, #fff 46%); margin: 18px 0 8px; scroll-margin-top: 70px; }
.pay h2 { margin-top: 0; }
.pay-form { display: grid; gap: 12px; margin-top: 14px; }
.ways { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ways legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.way { display: flex; align-items: center; gap: 10px; border: 1.5px solid #D5CCE6; border-radius: 12px; padding: 11px 12px; cursor: pointer; background: #fff; }
.way:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108, 71, 217, .14); }
.way input { width: 20px; min-height: 20px; height: 20px; padding: 0; margin: 0; accent-color: var(--violet); appearance: auto; flex: none; }
.way span { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.way small { color: var(--muted); font-size: 13px; }
.way em { font-style: normal; font-weight: 700; white-space: nowrap; }
.pay-progress { display: grid; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.pay-progress i { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.pay-progress i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: fill 12s linear forwards; }
@keyframes fill { from { transform: scaleX(.03); } to { transform: scaleX(1); } }
.pay-again { display: grid; gap: 8px; margin: 14px 0; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 247, 242, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky .btn { max-width: 720px; margin: 0 auto; display: flex; }
.page-result .foot { padding-bottom: 96px; }
.paid { border: 2px solid var(--green); margin-bottom: 14px; display: grid; gap: 8px; }
.paid h2 { margin: 0; font-size: 22px; }
.paid p { margin: 0; }
.tools .fold summary { font-weight: 600; cursor: pointer; padding: 2px 0; }
.tools .fold .calc { background: transparent; border: 0; box-shadow: none; padding: 12px 0 0; }
.tool-links { display: grid; gap: 8px; }
.tool-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.order { text-align: center; padding-top: 30px; }
.order .ways { margin: 14px 0; }
.spinner { width: 34px; height: 34px; margin: 12px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--violet); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.foot { margin-top: 56px; background: #2A2440; color: #D9D3EA; padding: 34px 0 26px; font-size: 14.5px; }
.foot a { color: #D9D3EA; text-decoration: none; display: block; padding: 5px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.foot-h { color: #fff; font-weight: 700; margin: 0 0 6px; }
.foot-note { margin-top: 24px; border-top: 1px solid #453D62; padding-top: 16px; color: #A9A1C2; font-size: 13px; }
.foot-note a { display: inline; }
.foot-note p { margin: 0 0 6px; }

@media (min-width: 720px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 28px; }
  .two { grid-template-columns: 1fr 1fr; }
  .calc-two { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .sum { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 24px; }
  .tool-links { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero-chart { display: block; }
  .logo-tag { font-size: 14px; }
}
@media (max-width: 480px) {
  .logo-tag { display: none; }
}
@media (max-width: 420px) {  /* a long name (BRAND) next to the languages and the menu on a phone */
  .top-row { gap: 6px; }
  .logo { gap: 7px; }
  .logo-name.long { font-size: 17.5px; }
  .langs a { padding: 8px 5px; }
  .arcana:not(.arcana-big) a { gap: 8px; padding: 8px; font-size: 14px; }
  .arcana:not(.arcana-big) .num { width: 30px; height: 30px; font-size: 14px; }
}
@media (max-width: 350px) {  /* 320 px: a 14-letter word (Справедливость) still fits the heading's line */
  h1 { font-size: 27px; }
}
@media (max-width: 380px) {
  .date { grid-template-columns: 1fr 1.5fr 1.2fr; gap: 6px; }
  input, select { padding: 12px 9px; font-size: 16px; }
  .chakras { font-size: 13.5px; }
  .chakras th, .chakras td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .sticky, .pay, .tools { display: none !important; } body { background: #fff; } }
