/* dsixtyapi.com public site. Night sky + diya saffron. Fonts: Anek Latin (display), Mukta (body), IBM Plex Mono (code). */
:root {
  --night: #0b0e1c; --night-2: #131834; --night-3: #1a2046; --line: #2a3160; --ink: #eeeaf6; --muted: #a8a5c4;
  --saffron: #f3b54a; --saffron-ink: #0b0e1c; --teal: #6fd6c8; --bad: #ff8a8a;
  --f-display: "Anek Latin", "Segoe UI", system-ui, sans-serif;
  --f-body: "Mukta", "Segoe UI", system-ui, sans-serif;
  --f-code: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: rgba(243, 181, 74, .55); text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--saffron); color: var(--saffron-ink); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 14, 28, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(42, 49, 96, .6); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 19px; font-stretch: 110%; text-decoration: none; }
.brand i { width: 26px; height: 26px; flex: none; border-radius: 7px; background: url(/static/favicon.svg) center / contain no-repeat; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15.5px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--saffron-ink); }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; height: 38px; padding: 0 12px; font: inherit; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--f-body); line-height: 1.2; }
.btn.primary { background: var(--saffron); color: var(--saffron-ink); }
.btn.primary:hover { background: #ffc766; color: var(--saffron-ink); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--saffron); color: var(--ink); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14.5px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* type */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-stretch: 92%; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; font-stretch: 95%; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 18.5px; max-width: 36em; }
.lede strong, .sub strong { color: var(--ink); font-weight: 500; }
.sub { color: var(--muted); max-width: 44em; }
.small { font-size: 14.5px; }
.muted { color: var(--muted); }
.kicker { font-size: 14px; font-weight: 600; color: var(--teal); letter-spacing: .02em; }
code, .mono { font-family: var(--f-code); font-size: .88em; }
:not(pre) > code { background: var(--night-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

/* sections */
section { padding-block: 64px; }
.head { display: grid; gap: 10px; margin-bottom: 28px; }
.band { background: linear-gradient(180deg, rgba(19, 24, 52, .0), rgba(19, 24, 52, .75) 18%, rgba(19, 24, 52, .75) 82%, rgba(19, 24, 52, 0)); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-hero { padding-block: 56px 32px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .lede { margin-top: 16px; }
.page-hero .cta { margin-top: 26px; }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(55% 70% at 80% 45%, #1a2050 0%, transparent 70%), var(--night); padding-block: 40px 56px; }
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .cta { margin-top: 28px; }
.hero .price { margin-top: 20px; font-size: 15.5px; color: var(--muted); }
.hero .price b { color: var(--ink); }
.orbit { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.orbit svg.paths { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit svg.paths circle { fill: none; stroke: var(--line); }
.core { position: relative; z-index: 2; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #20275f, var(--night-2)); border: 1px solid var(--line); box-shadow: 0 0 56px rgba(243, 181, 74, .17); }
.core b { font-family: var(--f-display); font-weight: 800; font-size: 26px; font-stretch: 110%; }
.orb { position: absolute; display: flex; align-items: center; justify-content: center; width: var(--size); height: var(--size); border-radius: 50%; animation: orbit calc(var(--duration) * 1s) linear infinite; }
.orb.rev { animation-direction: reverse; }
@keyframes orbit {
  0% { transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg)); }
  100% { transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc((var(--angle) * -1deg) - 360deg)); }
}
.svc { background: var(--night-2); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.svc svg { width: 22px; height: 22px; stroke: var(--saffron); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc span { position: absolute; top: 100%; margin-top: 4px; white-space: nowrap; font-size: 13px; color: var(--muted); background: var(--night); padding: 0 4px; border-radius: 4px; }
.graha { font-size: 18px; color: var(--muted); }

/* cards and grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.card p, .card li { color: var(--muted); }
.card ul, .card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.card .amt { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.card .amt small { font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--night); border: 1px solid var(--line); }
.icon svg { width: 22px; height: 22px; stroke: var(--saffron); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-size: 13px; color: var(--saffron); border: 1px solid rgba(243, 181, 74, .4); border-radius: 6px; padding: 0 8px; }
.tag.teal { color: var(--teal); border-color: rgba(111, 214, 200, .4); }
.shine { position: relative; overflow: hidden; }
.shine::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background-image: radial-gradient(transparent, transparent, var(--saffron), var(--teal), transparent, transparent); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: shine 14s linear infinite; }
@keyframes shine { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } to { background-position: 0% 0%; } }

/* chain: who is who */
.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.chain .card { text-align: left; }
.chain .arrow { align-self: center; color: var(--saffron); font-size: 26px; }

/* timeline */
.day { border-radius: 18px; background: var(--night-2); border: 1px solid var(--line); padding: 28px; }
ol.times { list-style: none; margin: 0; padding: 0; }
ol.times li { display: grid; grid-template-columns: 92px 22px minmax(0, 1fr); gap: 14px; }
.t { font-family: var(--f-code); font-size: 14px; color: var(--muted); padding-top: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.rail { position: relative; display: flex; justify-content: center; }
.rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
ol.times li:first-child .rail::before { top: 10px; }
ol.times li:last-child .rail::before { bottom: auto; height: 10px; }
.rail i { position: relative; margin-top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 2px solid var(--saffron); }
.what { padding-bottom: 22px; min-width: 0; }
ol.times li:last-child .what { padding-bottom: 0; }
.what b { display: block; font-weight: 600; }
.what span { color: var(--muted); font-size: 15.5px; }

/* steps */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
ol.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--night-3); border: 1px solid var(--line); font-weight: 600; color: var(--saffron); }
ol.steps b { display: block; }
ol.steps span { color: var(--muted); }

/* code */
pre { margin: 0; background: #080a16; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: var(--f-code); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
pre .c { color: var(--muted); } pre .s { color: var(--saffron); } pre .k { color: var(--teal); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--saffron-ink); background: var(--saffron); border-color: var(--saffron); }

/* tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); background: var(--night-2); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td b { color: var(--ink); font-weight: 600; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); display: grid; gap: 8px; }

/* pricing calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.calc label.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--night-2); }
.calc label.opt:has(input:checked) { border-color: var(--saffron); }
.calc input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--saffron); }
.calc .n { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.calc input[type="number"], .calc select { width: 110px; background: var(--night); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }
.calc select { width: auto; }
.total { position: sticky; top: 84px; align-self: start; }
.total .big { font-family: var(--f-display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.total table td, .total table th { padding: 8px 0; background: none; }

/* samples */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; background: #fff; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.soon { border: 1px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted); }
.chart-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chart-row figure { margin: 0; background: #fffdf7; border-radius: 12px; padding: 10px; }
.chart-row figcaption { color: #3a3a3a; font-size: 14px; text-align: center; padding-top: 6px; }

/* closing band and footer */
.closing { text-align: center; }
.closing .cta { justify-content: center; margin-top: 22px; }
footer { border-top: 1px solid var(--line); padding-block: 40px 28px; color: var(--muted); font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
footer h4 { color: var(--ink); font-size: 15px; margin: 0 0 10px; font-family: var(--f-body); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px; }

.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); }
.prose p { color: var(--muted); }

@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .total { position: static; }
}
@media (max-width: 880px) {
  .menu { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(42, 49, 96, .5); }
  .nav .btn { margin-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .orbit { width: min(100%, 340px); }
  .g2 { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain .arrow { transform: rotate(90deg); justify-self: center; }
  .chart-row { grid-template-columns: 1fr; }
  section { padding-block: 44px; }
  .day { padding: 22px 16px; }
  ol.times li { grid-template-columns: 70px 18px minmax(0, 1fr); gap: 10px; }
  .t { font-size: 12.5px; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .shine::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* samples viewer */
.viewer { display: grid; gap: 16px; }
.vw-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.vw-set { text-align: left; background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); font: inherit; cursor: pointer; display: grid; gap: 4px; }
.vw-set[aria-pressed="true"] { border-color: var(--saffron); }
.vw-set span { color: var(--muted); font-size: 15px; }
.vw-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; align-items: center; }
.vw-frame { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; max-height: 82vh; }
.vw-frame img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.vw-frame.page img { width: auto; max-width: 100%; }
.vw-frame figcaption { width: 100%; padding: 8px 12px; font-size: 14px; color: #555; background: #f6f6f6; text-align: center; }
.vw-arrow { height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--night-2); color: var(--ink); font-size: 24px; cursor: pointer; }
.vw-arrow:disabled { opacity: .35; cursor: default; }
.vw-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.vw-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; }
.vw-thumbs button[aria-current="true"] { border-color: var(--saffron); }
.vw-thumbs img { display: block; height: 70px; width: auto; }
.vw-n { font-size: 12px; opacity: .8; }
@media (max-width: 600px) { .vw-main { grid-template-columns: 1fr; } .vw-arrow { display: none; } }
