/* Symbolical — home page */

:root {
  --bg: #f6f7fb;
  --bg-alt: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #0e1424;
  --text-2: #4a5268;
  --text-3: #7a8199;
  --border: #dfe3ec;
  --accent: #e70048;          /* the crimson of the application icon */
  --accent-hover: #c8003e;
  --accent-soft: rgba(231, 0, 72, .08);
  --accent-2: #6d4aff;        /* violet, for the gradient */
  --ok: #0f9d74;
  --hero-1: #0b1020;
  --hero-2: #151c36;
  --hero-text: #eef1fa;
  --hero-text-2: #a9b1c9;
  --grid-line: rgba(255, 255, 255, .05);
  --paper: #ffffff;
  --paper-ink: #1a1f2e;
  --shadow: 0 1px 2px rgba(14, 20, 36, .06), 0 8px 24px rgba(14, 20, 36, .06);
  --shadow-lg: 0 2px 6px rgba(14, 20, 36, .08), 0 24px 60px rgba(14, 20, 36, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-math: "Latin Modern Math", "STIX Two Math", "Cambria Math", "Noto Serif", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #0f1529;
    --surface: #141b31;
    --surface-2: #19213b;
    --text: #eef1fa;
    --text-2: #a9b1c9;
    --text-3: #7c84a0;
    --border: #252e4b;
    --accent: #ff2e6a;
    --accent-hover: #ff5585;
    --accent-soft: rgba(255, 46, 106, .12);
    --accent-2: #8b72ff;
    --ok: #2fd3a0;
    --hero-1: #070b17;
    --hero-2: #10172e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Icons */
.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-lg { width: 28px; height: 28px; stroke-width: 1.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.3em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .97rem; line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-block { width: 100%; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hero-1) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--hero-text);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; }
.nav-links a { color: var(--hero-text-2); }
.nav-links a:hover { color: var(--hero-text); text-decoration: none; }
.nav .btn-ghost { border-color: rgba(255, 255, 255, .18); }
.nav .btn-ghost:hover { border-color: rgba(255, 255, 255, .45); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(231, 0, 72, .28), transparent 60%),
    radial-gradient(800px 460px at 95% 10%, rgba(109, 74, 255, .26), transparent 60%),
    linear-gradient(180deg, var(--hero-1), var(--hero-2));
  padding: clamp(72px, 11vw, 132px) 0 clamp(72px, 10vw, 120px);
  text-align: center;
}
.hero::before {
  /* squared paper */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-size: .85rem; color: var(--hero-text-2); margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fd3a0; box-shadow: 0 0 10px #2fd3a0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; }
.grad {
  background: linear-gradient(90deg, #ff2e6a, #a98bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--hero-text-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .2); color: var(--hero-text); }
.hero .btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.platforms { display: flex; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--hero-text-2); font-size: .88rem; }
.platforms li + li::before { content: "·"; margin-right: 10px; opacity: .6; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--text-2); font-size: 1.08rem; }
.kicker { color: var(--accent); font-weight: 650; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }

/* Concept */
.concept { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.concept-text > p:not(.kicker) { margin-top: 18px; color: var(--text-2); }
.concept-text h2 { max-width: 15ch; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 34px 92px 1fr; gap: 4px 12px; align-items: baseline;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; align-self: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem;
}
.steps strong { font-weight: 650; }
.steps span { color: var(--text-2); font-size: .95rem; }
.steps code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; color: var(--text); }
.steps em { font-family: var(--font-math); font-size: 1.05em; }

/* The worksheet illustration (always on white paper, like the application) */
.sheet {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #1b2030; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transform: rotate(.6deg);
}
.sheet-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #121624; }
.sheet-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a4157; }
.sheet-bar span:first-child { background: #ff5f57; }
.sheet-bar span:nth-child(2) { background: #febc2e; }
.sheet-bar span:nth-child(3) { background: #28c840; }
.sheet-bar em { margin-left: auto; margin-right: auto; padding-right: 50px; color: #8a91a8; font-size: .8rem; font-style: normal; }
.sheet-page {
  margin: 18px; padding: 26px 30px 22px;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 4px;
  font-family: var(--font-math); font-size: 1.05rem;
  background-image: radial-gradient(#d9dde8 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: -9px -9px;
}
.sheet-title { font-family: var(--font); font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.sheet-page .m { margin: 6px 0; line-height: 2.3; }
.sheet-page .m i { font-style: italic; }
.sheet-page .gap { display: inline-block; width: 2.2em; }
.sheet-page .note { font-family: var(--font); font-size: .85rem; color: #5a6178; margin-top: 14px; }
.sheet-page .result { color: #1747c2; }
.frac { display: inline-flex; vertical-align: middle; flex-direction: column; align-items: center; font-size: .9em; line-height: 1.2; margin: 0 .15em; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 .25em 1px; }
.frac > span:last-child { padding: 1px .25em 0; }
.sheet-plot { width: 100%; height: auto; margin-top: 10px; }
.sheet-plot .axis { stroke: #8a91a8; stroke-width: 1; fill: none; }
.sheet-plot .curve { stroke: #e70048; stroke-width: 2; fill: none; }
.sheet-plot text { font-family: var(--font-math); font-style: italic; font-size: 10px; fill: #5a6178; }

/* Videos */
.player {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px;
  padding: 12px; border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.player-stage { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.chapters { list-style: none; margin: 0; padding: 4px 4px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.chapter {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chapter:hover:not(:disabled) { background: var(--surface-2); }
.chapter.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.chapter:disabled { cursor: default; opacity: .55; }
.chapter-num {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: .85rem;
}
.chapter.is-active .chapter-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.chapter-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chapter-text strong { font-size: .95rem; font-weight: 650; line-height: 1.3; }
.chapter-text span { font-size: .85rem; color: var(--text-2); line-height: 1.4; }
.chapter-meta { font-size: .78rem; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }

/* Advantages */
.freedom {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 40px); margin-bottom: 20px;
  border-radius: var(--radius);
  color: var(--hero-text);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(231, 0, 72, .35), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(109, 74, 255, .3), transparent 60%),
    var(--hero-1);
  box-shadow: var(--shadow);
}
.freedom h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.freedom h3 .i { width: 26px; height: 26px; color: #ff6b95; }
.freedom-text p { margin-top: 12px; color: var(--hero-text-2); }
.freedom-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.freedom-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.freedom-list .i { color: #2fd3a0; margin-top: 3px; stroke-width: 2.4; }

.grid { display: grid; gap: 20px; }
.adv { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.card .i-lg { color: var(--accent); margin-bottom: 16px; }
.card p { margin-top: 8px; color: var(--text-2); font-size: .95rem; }

/* Example documents */
.docs { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc {
  display: flex; flex-direction: column; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.doc:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.doc-thumb {
  position: relative; display: block; height: 250px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-alt));
  padding: 24px 32px 0;
  border-bottom: 1px solid var(--border);
}
.doc-thumb img {
  width: 100%; height: auto; border-radius: 3px 3px 0 0;
  box-shadow: 0 2px 10px rgba(14, 20, 36, .15);
  transition: transform .35s ease;
  transform-origin: top center;
}
.doc:hover .doc-thumb img { transform: translateY(-6px); }
.doc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.doc-body strong { font-size: 1.02rem; font-weight: 650; }
.doc-body span { color: var(--text-2); font-size: .92rem; }
.doc-body .doc-meta {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--text-3); font-weight: 550;
}

/* Download */
.version {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .5em; font-weight: 650; letter-spacing: 0;
  background: var(--accent-soft); color: var(--accent);
}
.dl { grid-template-columns: repeat(4, 1fr); }
.dl-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.dl-card .i-lg { color: var(--text); margin-bottom: 14px; }
.dl-card p { color: var(--text-2); font-size: .92rem; margin: 4px 0 20px; }
.dl-card .btn { margin-top: auto; }
.dl-meta { align-self: center; margin-top: 10px; font-size: .8rem; color: var(--text-3); }
.dl-card.is-recommended { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.dl-card.is-recommended::after {
  content: "Recommended for you";
  position: absolute; top: -11px; right: 16px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 650;
}
.dl-card:not(.is-recommended) .btn-primary { background: var(--surface-2); color: var(--text); border-color: var(--border); box-shadow: none; }
.dl-card:not(.is-recommended) .btn-primary:hover { border-color: var(--text-3); }

.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.store {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 12px 12px 12px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.store-name { font-weight: 650; font-size: .9rem; flex: none; }
.store code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--text-2); font-size: .85rem; scrollbar-width: thin; }
.copy {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  cursor: pointer; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--text); border-color: var(--text-3); }
.copy.is-done { color: var(--ok); border-color: var(--ok); }

.dl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Footer */
.footer { background: var(--hero-1); color: var(--hero-text-2); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer .brand { color: var(--hero-text); margin-right: auto; }
.footer a { color: var(--hero-text); }

/* Switching page */
.hero-sm { padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 8vw, 88px); }
.hero-sm h1 { max-width: 20ch; font-size: clamp(2.1rem, 5vw, 3.4rem); }

.card p code, .table code {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 4px; color: var(--text);
}
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 16px 22px; text-align: left; vertical-align: top; }
.table th {
  font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.table td { border-top: 1px solid var(--border); }
.table tbody tr:first-child td { border-top: 0; }
.table td:first-child { color: var(--text-2); width: 42%; }
.table td:last-child { color: var(--text); }

.missing { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.missing li {
  position: relative; padding: 14px 18px 14px 44px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .95rem;
}
.missing li::before {
  content: ""; position: absolute; left: 18px; top: 23px;
  width: 12px; height: 2px; border-radius: 2px; background: var(--text-3);
}
.missing strong { color: var(--text); font-weight: 650; }
.missing-note { margin-top: 24px; color: var(--text-2); }

.files { grid-template-columns: repeat(3, 1fr); }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 650; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.tag-progress { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.switch-link { margin-top: 28px; text-align: center; color: var(--text-2); }
.footer .legal { width: 100%; font-size: .78rem; opacity: .75; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .concept { grid-template-columns: 1fr; }
  .sheet { transform: none; max-width: 560px; }
  .player { grid-template-columns: 1fr; }
  .chapters { padding: 0; }
  .adv, .docs { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: repeat(2, 1fr); }
  .freedom { grid-template-columns: 1fr; }
  .stores { grid-template-columns: 1fr; }
  .missing, .files { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .adv, .docs, .dl { grid-template-columns: 1fr; }
  .table th, .table td { padding: 12px 14px; }
  .steps li { grid-template-columns: 34px 1fr; }
  .steps li span { grid-column: 2; }
  .sheet-page { margin: 10px; padding: 18px 16px; font-size: .95rem; }
  .sheet-page .gap { width: 1em; }
  .doc-thumb { height: 220px; }
  .footer .brand { margin-right: 0; width: 100%; }
}
