:root {
  --ink: #24170f;
  --muted: #6f5c4d;
  --paper: #fffaf2;
  --panel: #ffffff;
  --ember: #d24a0b;
  --ember-dark: #8d2207;
  --gold: #ffbd19;
  --gold-soft: #fff0b8;
  --cyan: #0aa9ed;
  --blue: #0569bd;
  --line: #ead7c1;
  --heading: #561b08;
  --shadow: 0 18px 46px rgba(79, 33, 8, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ember); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(255,255,255,.18); background: linear-gradient(105deg, rgba(89,21,4,.97), rgba(186,55,6,.97)); box-shadow: 0 8px 24px rgba(72, 22, 0, .2); }
.header-inner { width: min(1180px, 100% - 1.25rem); min-height: 70px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 900; text-decoration: none; letter-spacing: -.03em; white-space: nowrap; }
.brand img { width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255,190,39,.8); object-fit: cover; box-shadow: 0 5px 12px rgba(0,0,0,.24); }
.brand span span { color: #54cbff; text-shadow: 0 2px 0 #073f7d; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; background: rgba(255,255,255,.09); color: #fff; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { width: 21px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: absolute; top: calc(100% + 1px); right: .625rem; left: .625rem; display: none; padding: .55rem; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: #fff; box-shadow: var(--shadow); }
.site-nav.open { display: grid; }
.site-nav a { padding: .72rem .85rem; border-radius: 10px; color: var(--ink); font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ember-dark); background: var(--gold-soft); }

main { min-height: 65vh; }
.page-shell { width: min(920px, 100% - 1.25rem); margin: 0 auto; padding: 1.25rem 0 4rem; }
.breadcrumbs { margin: .1rem 0 1rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; gap: .45rem; align-items: center; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: #b79069; }
.breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article { padding: clamp(1.15rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.article h1 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 8vw, 4rem); line-height: 1.05; letter-spacing: -.035em; color: var(--heading); }
.article h2 { margin: 2.8rem 0 .75rem; padding-top: .35rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.18; color: var(--heading); scroll-margin-top: 90px; }
.article h2::after { content: ""; display: block; width: 70px; height: 4px; margin-top: .55rem; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--ember)); }
.article h3 { margin: 2rem 0 .6rem; font-size: clamp(1.15rem, 4vw, 1.4rem); line-height: 1.3; color: var(--heading); scroll-margin-top: 90px; }
.article :is(h1, h2, h3) strong { color: inherit; }
.context-link { color: inherit; text-decoration-color: rgba(86, 27, 8, .28); text-decoration-thickness: .08em; }
.context-link:hover { color: var(--ember); text-decoration-color: currentColor; }
.article p { margin: .8rem 0; }
.article > h1 + .toc + p { font-size: clamp(1.05rem, 2.4vw, 1.18rem); color: #513b2b; }
.article strong { font-weight: 800; color: #3e210f; }
.article em { color: #71340e; }

.toc { margin: 1rem 0 1.4rem; border: 1px solid #e4c599; border-radius: 14px; background: #fff8e8; }
.toc summary { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; color: #5e2608; font-weight: 850; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ember); transition: transform .2s ease; }
.toc[open] summary span { transform: rotate(45deg); }
.toc nav { padding: 0 1rem 1rem; border-top: 1px solid #ecd7b6; }
.toc ol { columns: 1; margin: .75rem 0 0; padding-left: 1.3rem; }
.toc li { margin: .38rem 0; break-inside: avoid; }
.toc a { color: #66300d; text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.table-wrap { position: relative; overflow-x: auto; margin: 1.2rem 0 1.7rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(70,34,8,.07); scrollbar-color: var(--ember) #f7ead8; }
table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
th, td { padding: .78rem .9rem; border-bottom: 1px solid #efe2d1; vertical-align: top; }
th { color: #fff; background: linear-gradient(105deg, #8f2808, #d6530f); font-size: .9rem; letter-spacing: .015em; }
.article th strong { color: inherit; }
tbody tr { transition: background .16s ease, transform .16s ease; }
tbody tr:hover { background: #fff7e4; }
tbody tr:last-child td { border-bottom: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 1.5rem; }
.steps li { position: relative; min-height: 48px; margin: .65rem 0; padding: .65rem .75rem .65rem 3.4rem; border: 1px solid #ead9c4; border-radius: 12px; background: #fffdfa; counter-increment: step; transition: border-color .18s ease, transform .18s ease; }
.step-number { position: absolute; top: .52rem; left: .65rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--ember), var(--gold)); font-weight: 900; box-shadow: 0 4px 9px rgba(155,48,3,.2); }
.steps li:hover { transform: translateX(3px); border-color: #d89f5a; }
.feature-list { display: grid; gap: .55rem; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: .7rem .8rem .7rem 2.6rem; border: 1px solid #dfedf7; border-radius: 12px; background: #f8fcff; }
.feature-list .check { position: absolute; left: .8rem; color: var(--blue); font-weight: 900; }

.faq-list { display: grid; gap: .7rem; margin: 1rem 0 1.7rem; }
.faq-item { overflow: hidden; border: 1px solid #e4c599; border-radius: 14px; background: #fffdfa; transition: border-color .18s ease, box-shadow .18s ease; scroll-margin-top: 90px; }
.faq-item:hover, .faq-item[open] { border-color: #d79b3b; box-shadow: 0 7px 18px rgba(92, 39, 5, .09); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; color: var(--heading); font-weight: 850; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-question { min-width: 0; color: inherit; text-align: left; }
.article .faq-question strong { color: inherit; font-weight: inherit; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ember); transition: transform .2s ease; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1rem .95rem; border-top: 1px solid #f0dfc8; }
.faq-answer p { margin: .8rem 0 0; }

.home .page-shell { width: min(1050px, 100% - 1.25rem); }
.home .article { overflow: hidden; }
.home .article h1 { max-width: 16ch; }
.home-action { margin: 1.3rem 0 2rem; padding: 1.2rem; text-align: center; border: 1px solid #efb73d; border-radius: 20px; background: radial-gradient(circle at 50% 0, #fff8cc 0, #fff3d2 42%, #fffaf2 100%); }
.download-logo { display: block; width: 170px; aspect-ratio: 1; margin: 0 auto .9rem; border: 5px solid #fff; border-radius: 26px; object-fit: cover; box-shadow: 0 15px 30px rgba(104,34,3,.22); }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 52px; padding: .75rem 1.35rem; border-radius: 13px; color: #231200; background: linear-gradient(180deg, #ffe335, #ffad05); border: 2px solid #7f2800; box-shadow: 0 6px 0 #7f2800, 0 12px 24px rgba(91,31,0,.25); font-weight: 950; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.download-button:hover { color: #231200; transform: translateY(-2px); box-shadow: 0 8px 0 #7f2800, 0 16px 26px rgba(91,31,0,.22); }
.download-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #7f2800; }
.feature-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-top: 1.5rem; text-align: left; }
.feature-cards article { padding: .8rem; border: 1px solid #efd89d; border-radius: 12px; background: rgba(255,255,255,.82); transition: transform .18s ease, box-shadow .18s ease; }
.feature-cards article:hover { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(87,38,0,.1); }
.feature-cards span, .feature-cards strong { display: block; }
.feature-cards span { color: var(--muted); font-size: .82rem; }
.feature-cards strong { margin-top: .1rem; color: #7c2807; }

.screenshot-section { margin-top: 2.8rem; }
.screenshot-section > h2 { margin-top: 0; }
.screenshot-slider { padding: .8rem; border: 1px solid #d79224; border-radius: 18px; background: linear-gradient(145deg, #331206, #7f2607); box-shadow: 0 16px 34px rgba(71, 23, 3, .2); }
.slider-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.slider-counter { margin: 0; color: #fff4d1; font-weight: 850; font-variant-numeric: tabular-nums; }
.slider-controls { display: flex; gap: .5rem; }
.slider-button { width: 44px; height: 44px; border: 1px solid #ffe68a; border-radius: 50%; color: #2a1404; background: linear-gradient(180deg, #ffe23c, #ffae08); font-size: 1.35rem; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #7c2505; }
.slider-button:hover:not(:disabled) { transform: translateY(-1px); }
.slider-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #7c2505; }
.slider-button:disabled { opacity: .38; cursor: not-allowed; }
.slider-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-track { display: flex; gap: .8rem; padding: 0; margin: 0; list-style: none; }
.screenshot-slide { flex: 0 0 min(78vw, 320px); overflow: hidden; scroll-snap-align: start; border: 2px solid rgba(255, 218, 97, .72); border-radius: 14px; background: #090909; box-shadow: 0 9px 22px rgba(0,0,0,.32); }
.screenshot-slide img { display: block; width: 100%; height: auto; aspect-ratio: auto; }

.site-footer { color: #fdf3e3; background: #2c150c; border-top: 5px solid var(--gold); }
.footer-inner { width: min(1120px, 100% - 1.25rem); margin: auto; padding: 2.2rem 0; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 900; text-decoration: none; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.1rem; margin: 1.2rem 0; }
.site-footer nav a { color: #ffd883; }
.site-footer p { margin: 0; color: #cebcae; font-size: .9rem; }

:focus-visible { outline: 3px solid #16a9ec; outline-offset: 3px; }
@media (min-width: 700px) {
  .page-shell { padding-top: 2rem; }
  .article { border-radius: 28px; }
  .toc ol { columns: 2; column-gap: 2rem; }
  .feature-cards { grid-template-columns: repeat(4, 1fr); }
  .screenshot-slider { padding: 1rem; }
  .slider-track { gap: 1rem; }
  .screenshot-slide { flex-basis: 340px; }
}
@media (min-width: 1180px) {
  .menu-toggle { display: none; }
  .site-nav { position: static; display: flex; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .site-nav a { color: #fff9ea; font-size: .9rem; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: #331406; background: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
