/* StayOne guides: dimensional covers and cards, with a flat, comfortable reading surface. */
:root {
  color-scheme: light;
  --ink: var(--depth-ink, #142444);
  --muted: var(--depth-muted, #52627c);
  --accent: var(--depth-blue, #245ce5);
  --line: var(--depth-line, #dce5f3);
  --paper: var(--depth-paper, #f5f8ff);
  --shadow: var(--depth-shadow, #203e771a);
  --white: #fff;
  --accent-deep: #1948bc;
  --book-edge: #b6c9ed;
  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: min(1120px, calc(100% - 32px));
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  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: var(--accent-deep); }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 5px;
}
.wrap { width: var(--page); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: 10px; }

/* Navigation stays available on a second row on phones. */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-height: 76px; padding-block: 10px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; margin-right: auto; }
.brand svg { display: block; flex: none; }
.head-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.head-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.head-links a:hover, .head-links a[aria-current="page"] { color: var(--accent); }
.head-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px;
  font-family: var(--display); font-size: 0.94rem; font-weight: 700;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 3px 0 var(--accent-deep), 0 8px 18px var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.site-head .btn { padding: 9px 14px; min-height: 44px; font-size: 0.86rem; }
.wa { color: #168444; flex: none; }

.crumbs { margin: 18px 0 10px; font-size: 0.82rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: '›'; margin: 0 9px 0 4px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Only the illustration tilts. Titles and article text remain on a flat plane. */
.index-head, .article-head {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 30px;
  padding: 42px 40px 38px; margin-bottom: 34px;
  background: linear-gradient(120deg, var(--white) 5%, var(--paper) 72%, #e9f1ff);
  border: 1px solid var(--line); border-radius: 8px 26px 26px 8px;
  box-shadow: inset 6px 0 0 #c8d9fb, 0 5px 0 var(--white), 0 6px 0 var(--line), 0 15px 30px -18px var(--shadow);
}
.guide-head-copy { min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.eyebrow .dot { color: var(--accent); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; letter-spacing: -0.045em; margin: 16px 0 20px; overflow-wrap: anywhere; }
.lede { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: var(--measure); margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.article-head { grid-template-columns: minmax(0, 1fr) 190px; }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }

.guide-books { position: relative; width: 250px; height: 246px; pointer-events: none; user-select: none; }
.guide-books::before { content: ''; position: absolute; inset: 12% 0 0; border-radius: 50%; background: radial-gradient(ellipse, #cbdcff 0%, #e7efff 55%, transparent 72%); }
.guide-book {
  position: absolute; left: 22%; top: 10%; width: 61%; height: 76%;
  border: 1px solid #87a8e6; border-radius: 4px 12px 10px 4px;
  background: linear-gradient(90deg, #b3ccfa 0 9%, #e1edff 10% 100%);
  box-shadow: 1px 3px 0 var(--white), 3px 7px 0 var(--book-edge), 10px 18px 18px var(--shadow);
  transform: rotate(17deg) skewY(-7deg);
}
.guide-book::before { content: ''; position: absolute; inset: 23% 18% 26% 24%; border-top: 3px solid currentColor; border-bottom: 2px solid currentColor; color: #87a8e6; opacity: 0.8; }
.guide-book::after { content: ''; position: absolute; left: 9%; right: 1%; height: 7px; bottom: -5px; border-radius: 0 0 6px 1px; background: repeating-linear-gradient(to bottom, var(--white) 0 2px, #dce6f7 2px 3px); }
.guide-book:nth-child(2) { left: 13%; top: 13%; transform: rotate(-18deg) skewY(6deg); background: linear-gradient(90deg, #8eb0f2 0 9%, #b4cef9 10% 100%); }
.guide-book:nth-child(3) { left: 18%; top: 1%; transform: rotate(-5deg) skewY(6deg); background: linear-gradient(90deg, #1948bc 0 9%, #245ce5 10%, #447bee 100%); border-color: #1948bc; }
.guide-book:nth-child(3)::before { color: var(--white); border-top-width: 5px; border-bottom-width: 3px; }
.article-head .guide-books { width: 190px; height: 190px; }

/* An uninterrupted reading column; product callouts are the only tinted surfaces. */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 60px; padding: 8px 0 40px; }
.prose { max-width: var(--measure); min-width: 0; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: -0.025em; margin: 2.2em 0 0.6em; }
.prose > h2:first-child { margin-top: 0.3em; }
.prose h3 { font-size: 1.16rem; line-height: 1.4; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: #35465f; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose strong { color: var(--ink); }
.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: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper); color: var(--muted); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.how { margin: 1.6em 0; padding: 18px 20px; border-radius: 4px 16px 16px 4px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid #8fb3fb; }
.how .tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.how p, .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); background: var(--paper); box-shadow: 0 8px 24px var(--shadow); }
.shot figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

.cta-box { margin: 2.2em 0; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #eef4ff, var(--white)); border: 1px solid #c7d8f7; box-shadow: 0 4px 0 #e4edfc, 0 12px 28px -18px var(--shadow); }
.cta-box h2, .cta-box h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.4; }
.cta-box p { margin: 0 0 18px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row .play { display: inline-flex; align-items: center; min-height: 46px; }
.cta-row .play img { height: 46px; width: auto; }
.cta-box .cta-note { margin: 18px 0 0; font-size: 0.84rem; color: var(--muted); }
.cta-note a { color: var(--accent-deep); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 0.85rem; padding: 20px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.toc h2 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0 8px 12px; color: var(--muted); border-left: 2px solid var(--line); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 44px; padding: 18px 30px 18px 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: 14px; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 0 18px; color: #35465f; }
.related { border-top: 1px solid var(--line); padding: 34px 0 10px; }
.related h2 { font-size: 1.3rem; margin: 0 0 24px; }

/* Page edges and a blue spine add depth without distorting card text. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cards li { min-width: 0; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; min-width: 0;
  padding: 26px 24px 24px 28px; border-radius: 5px 18px 18px 5px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: inset 4px 0 0 #b9cffb, 0 4px 0 var(--paper), 0 5px 0 var(--line), 0 14px 24px -14px var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: #9bb9f4; transform: translateY(-4px); color: var(--ink); box-shadow: inset 4px 0 0 var(--accent), 0 4px 0 var(--paper), 0 5px 0 var(--line), 0 18px 28px -12px var(--shadow); }
.card .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 0.86rem; color: var(--accent); font-weight: 700; }
.site-foot { background: var(--paper); border-top: 1px solid var(--line); margin-top: 48px; padding: 34px 0 40px; color: var(--muted); font-size: 0.85rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-foot p { margin: 0 0 10px; overflow-wrap: anywhere; }
.site-foot p a { display: inline-block; min-height: 44px; padding-block: 8px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: start; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; padding: 8px 0; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prose { margin-inline: auto; }
  .toc { display: none; }
  .index-head, .article-head { grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; padding: 30px; }
  .guide-books, .article-head .guide-books { width: 180px; height: 180px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .site-head .wrap { gap: 0 8px; padding-block: 8px 0; }
  .head-links { order: 3; width: 100%; justify-content: space-between; gap: 0 10px; padding-top: 4px; }
  .head-links a { font-size: 0.84rem; }
  .index-head, .article-head { display: block; padding: 24px; margin-bottom: 28px; }
  .guide-books, .article-head .guide-books { position: absolute; top: 15px; right: 20px; width: 96px; height: 96px; }
  .guide-head-copy .eyebrow { min-height: 72px; padding-right: 100px; font-size: 0.63rem; line-height: 1.8; letter-spacing: 0.08em; }
  h1, .article-head h1 { font-size: clamp(1.8rem, 6.8vw, 2.6rem); margin-top: 14px; }
  .lede { font-size: 1rem; }
  .byline { gap: 6px 12px; }
  .crumbs { margin-top: 12px; }
  .article { padding-top: 4px; }
  .cta-box { padding: 22px; }
}
@media (max-width: 360px) {
  .site-head .btn { padding-inline: 10px; font-size: 0.78rem; gap: 6px; }
  .brand { font-size: 0.95rem; gap: 6px; }
  .index-head, .article-head { padding: 20px; }
  .guide-books, .article-head .guide-books { right: 14px; width: 80px; height: 84px; }
  .guide-head-copy .eyebrow { padding-right: 78px; }
  .card { padding: 22px; }
  .cta-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
