/*
  StayOne guides (website/blog). One stylesheet for the index and every article, in the same
  palette, type and buttons as the landing page, tuned for reading: a 68-character measure,
  1.7 line height, and real headings for both people and crawlers.
*/
:root {
  --ink: #0B0B0D;
  --raised: #131316;
  --surface: #1A1A1E;
  --cream: #FFFFFF;
  --muted: #C4C4CE;
  --subtle: #90909B;
  --accent: #3D8BFF;
  --accent-deep: #1F6FE0;
  --on-accent: #0B0B0D;
  --line: #2A2A30;
  --line-strong: #33333A;
  --green: #34D07A;
  --whatsapp: #25D366;
  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: min(1120px, 92vw);
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.04rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6FA8FF; }
.wrap { width: var(--page); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 10px; }

/* --- header --- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgb(11 11 13 / 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; margin-right: auto; }
.brand svg { display: block; }
.head-links { display: flex; gap: 22px; align-items: center; }
.head-links a { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.head-links a:hover, .head-links a[aria-current="page"] { color: var(--cream); }
@media (max-width: 860px) { .head-links { display: none; } }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--display); font-size: 0.96rem; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 26px -14px rgba(61, 139, 255, 0.85); }
.btn-primary:hover { background: #6FA8FF; color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--cream); border-color: var(--line-strong); }
.btn-ghost:hover { background: #232329; color: var(--cream); border-color: var(--subtle); }
.site-head .btn { padding: 9px 16px; font-size: 0.9rem; }
.wa { color: var(--whatsapp); flex: none; }

/* --- article --- */
.crumbs { margin: 28px 0 0; font-size: 0.86rem; color: var(--subtle); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--subtle); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }

.article-head { max-width: 860px; padding: 18px 0 8px; }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.eyebrow .dot { color: var(--accent); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; margin: 14px 0 18px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: var(--measure); margin: 0 0 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.86rem; color: var(--subtle); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 10px 0 40px; }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.25; letter-spacing: -0.02em; margin: 2.2em 0 0.6em; scroll-margin-top: 84px; }
.prose > h2:first-child { margin-top: 0.3em; }
.prose h3 { font-size: 1.16rem; line-height: 1.35; margin: 1.6em 0 0.4em; scroll-margin-top: 84px; }
.prose p, .prose li { color: #E3E3EA; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose strong { color: var(--cream); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--subtle); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* How StayOne handles it: the product inside a guide, clearly marked as ours. */
.how {
  margin: 1.6em 0; padding: 18px 20px; border-radius: 16px;
  background: var(--raised); border: 1px solid var(--line);
}
.how .tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.how p { margin: 0.4em 0; }
.how ul { margin: 0.4em 0; }

.shot { margin: 1.8em 0; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.shot figure { margin: 0; width: min(280px, 100%); }
.shot img { border-radius: 26px; border: 1px solid var(--line-strong); background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--subtle); }

/* The call to action: once mid-article, once at the end. */
.cta-box {
  margin: 2.2em 0; padding: 24px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(61, 139, 255, 0.16), rgba(61, 139, 255, 0.04));
  border: 1px solid rgba(61, 139, 255, 0.35);
}
.cta-box h2, .cta-box h3 { margin: 0 0 6px; font-size: 1.3rem; }
.cta-box p { margin: 0 0 16px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-row .play img { height: 46px; width: auto; }
.cta-note { margin-top: 12px; font-size: 0.86rem; color: var(--subtle); }
.cta-note a { color: var(--cream); }

.toc { position: sticky; top: 88px; align-self: start; font-size: 0.9rem; }
.toc h2 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--cream); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 0 16px; color: #E3E3EA; }

.related { border-top: 1px solid var(--line); padding: 34px 0 10px; }
.related h2 { font-size: 1.2rem; margin: 0 0 14px; }

/* --- cards (index + related) --- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); color: var(--cream); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: var(--accent-deep); transform: translateY(-2px); color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 0.88rem; color: var(--accent); font-weight: 600; }

.index-head { padding: 40px 0 18px; max-width: 760px; }

/* --- footer --- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 48px; color: var(--subtle); font-size: 0.88rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.foot-links a:hover { color: var(--cream); }
