/* HaruVista user guide and its articles: the landing page's wide stage, HaruVista blue
   and soft cards, with larger reading text because the app is about larger text. */
body:has(main.hv-guide) :is(header.site, footer.site) .wrap { max-width: 1120px; }
main.hv-guide {
  --accent: #1967d2;
  --accent-soft: #e8f1fd;
  --button-text: #ffffff;
  --hv-surface: #ffffff;
  --hv-accent-border: #c5dcfb;
  --hv-shadow: 0 24px 56px -18px rgb(15 28 54 / 15%), 0 4px 16px rgb(15 28 54 / 6%);
  --hv-card-shadow: 0 1px 2px rgb(15 28 54 / 4%), 0 10px 26px -14px rgb(15 28 54 / 10%);
  --guide-label: #f1ece3;
  --guide-note: color-mix(in srgb, var(--accent) 6%, var(--hv-surface));
  --tone: var(--accent);
  --tone-soft: var(--accent-soft);
  max-width: 1120px;
  padding-top: 48px;
  padding-bottom: 88px;
}
:root[data-theme="dark"] main.hv-guide {
  --accent: #8ab4f8;
  --accent-soft: #1b2b44;
  --button-text: #062e6f;
  --hv-surface: #221f1c;
  --hv-accent-border: #2e4872;
  --hv-shadow: 0 26px 64px -14px rgb(0 0 0 / 55%), 0 4px 18px rgb(0 0 0 / 35%);
  --hv-card-shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 10px 28px -12px rgb(0 0 0 / 45%);
  --guide-label: #2e2a26;
}

/* Each topic group keeps one colour, from the contents down to its chapter. */
.guide-tone-display { --tone: #1967d2; --tone-soft: #e8f1fd; }
.guide-tone-reminders { --tone: #b0570c; --tone-soft: #fcefdc; }
.guide-tone-connections { --tone: #1d7a4c; --tone-soft: #e1f3e8; }
.guide-tone-data { --tone: #6a4fe0; --tone-soft: #eee9fb; }
:root[data-theme="dark"] .guide-tone-display { --tone: #8ab4f8; --tone-soft: #1b2b44; }
:root[data-theme="dark"] .guide-tone-reminders { --tone: #f3bd74; --tone-soft: #3a2b17; }
:root[data-theme="dark"] .guide-tone-connections { --tone: #7fd1a6; --tone-soft: #16322a; }
:root[data-theme="dark"] .guide-tone-data { --tone: #c8b4ff; --tone-soft: #2b2540; }
.guide-chapter-icon {
  display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--tone-soft); color: var(--tone);
}

/* Title */
.guide-hero { max-width: 820px; margin: 0 auto; text-align: center; }
.hv-app-pill.guide-back { text-decoration: none; }
/* Same file as the landing page's app icon; the link text already names the page. */
.guide-back-icon {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  background: url("/brand/haruvista-icon.20261113.a506d9d55c4d.png") center / cover no-repeat;
}
.hv-app-pill.guide-back:hover { border-color: var(--hv-accent-border); color: var(--accent); }
main.hv-guide .guide-hero h1 {
  margin: 0 auto 16px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.2;
  letter-spacing: -0.035em; font-weight: 750; color: var(--text); text-wrap: balance;
}
html:not([lang="en"]) main.hv-guide .guide-hero h1 { line-height: 1.28; }
.guide-hero-desc {
  max-width: 680px; margin: 0 auto; color: var(--muted);
  font-size: clamp(17px, 1.9vw, 19px); line-height: 1.7; text-wrap: pretty;
}
.guide-start {
  display: inline-block; max-width: 100%; margin: 24px auto 0; padding: 11px 18px;
  border: 1px solid var(--hv-accent-border); border-radius: 14px;
  background: var(--accent-soft); color: var(--text); font-size: 16px; line-height: 1.65;
}

/* Contents: the step-by-step articles, then the four topic groups. */
.guide-index { display: grid; gap: 52px; margin-top: 60px; }
main.hv-guide .guide-index section { margin: 0; }
main.hv-guide .guide-index h2 {
  margin: 0 0 16px; color: var(--text); font-size: 22px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.02em; text-transform: none;
}
.guide-index ul { margin: 0; padding: 0; list-style: none; }
.guide-index-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-index-articles a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 24px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--hv-surface);
  box-shadow: var(--hv-card-shadow); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.guide-index-articles a:hover { border-color: var(--hv-accent-border); box-shadow: var(--hv-shadow); transform: translateY(-2px); }
.guide-article-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.guide-article-label { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; }
.guide-article-label::after { content: "\00a0→"; content: "\00a0→" / ""; color: var(--accent); }
.guide-article-desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.guide-index-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-index-group {
  padding: 20px 20px 8px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--hv-surface); box-shadow: var(--hv-card-shadow);
}
main.hv-guide .guide-index-group h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-size: 17px; font-weight: 700; line-height: 1.35;
}
.guide-index-group .guide-chapter-icon { width: 38px; height: 38px; border-radius: 11px; }
.guide-index-group a,
.guide-chapter-topics a { text-decoration: none; }
.guide-index-group a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 10px 0; border-top: 1px solid var(--line);
  color: var(--text); font-size: 15px; line-height: 1.45;
}
.guide-index-group a::after {
  content: ""; flex: 0 0 6px; height: 6px; margin-right: 3px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg);
}
.guide-index-group a:hover { color: var(--tone); }
.guide-index-group a:hover::after { border-color: var(--tone); }

/* Chapters: the group's title and topics stay beside its cards while reading. */
.guide-chapter {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 52px;
  margin-top: 104px; scroll-margin-top: 24px;
}
.guide-chapter-head { position: sticky; top: 28px; align-self: start; }
main.hv-guide .guide-chapter-head h2 {
  margin: 16px 0 16px; color: var(--text); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700;
  line-height: 1.28; letter-spacing: -0.028em; text-transform: none;
}
.guide-chapter-topics { margin: 0 0 14px; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.guide-chapter-topics a {
  display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 15px; line-height: 1.45;
}
.guide-chapter-topics a:hover { border-left-color: var(--tone); color: var(--tone); }
.guide-chapter-top {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
.guide-chapter-top:hover { color: var(--accent); }
.guide-chapter-body { min-width: 0; }

/* Topic cards and article sections */
main.hv-guide .guide-topic,
main.hv-guide-article article .card {
  margin: 0; padding: 32px 36px 34px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--hv-surface); box-shadow: var(--hv-card-shadow); scroll-margin-top: 24px;
}
main.hv-guide .guide-topic + .guide-topic,
main.hv-guide-article article > * + .card { margin-top: 24px; }
main.hv-guide .guide-topic:target { border-color: var(--hv-accent-border); box-shadow: 0 0 0 4px var(--accent-soft), var(--hv-card-shadow); }
main.hv-guide .guide-topic h3,
main.hv-guide-article article .card h2 {
  margin: 0 0 22px; color: var(--text); font-size: 23px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.02em; text-transform: none;
}
.guide-topic :is(p, li),
.hv-guide-article .card :is(p, li) { font-size: 18px; line-height: 1.75; }
.guide-topic > p,
.hv-guide-article .card > p { margin: 0 0 16px; }
.guide-topic > :last-child,
.hv-guide-article .card > :last-child { margin-bottom: 0; }

/* Numbered steps */
.guide-steps,
.hv-guide-article .card ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-steps > li,
.hv-guide-article .card ol > li { position: relative; padding-left: 50px; counter-increment: guide-step; }
.guide-steps > li + li,
.hv-guide-article .card ol > li + li { margin-top: 22px; }
.guide-steps > li::before,
.hv-guide-article .card ol > li::before {
  content: counter(guide-step); position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--button-text);
  font-size: 15px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.guide-steps > li:not(:last-child)::after,
.hv-guide-article .card ol > li:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; bottom: -16px; left: 15px; width: 2px; border-radius: 1px; background: var(--line);
}

/* Bulleted points */
.guide-points,
.hv-guide-article .card ul { margin: 0 0 16px; padding: 0; list-style: none; }
.guide-points > li,
.hv-guide-article .card ul > li { position: relative; padding-left: 26px; }
.guide-points > li + li,
.hv-guide-article .card ul > li + li { margin-top: 14px; }
.guide-points > li::before,
.hv-guide-article .card ul > li::before {
  content: ""; position: absolute; top: 0.72em; left: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* App labels and keys inside steps */
.hv-guide strong.ui,
.hv-guide-article .card :is(ol, p) strong {
  padding: 0.08em 0.32em; border-radius: 6px;
  background: var(--guide-label); color: var(--text); font-weight: 650;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hv-guide kbd {
  display: inline-block; min-width: 1.7em; padding: 0 0.42em; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--hv-surface); color: var(--text);
  font: 600 0.85em/1.6 "Inter Web", "Segoe UI", sans-serif; text-align: center; vertical-align: 0.06em;
}

/* Calendar services, one block each */
.guide-services { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.guide-topic .guide-services > li {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 17px; line-height: 1.7;
}
.guide-service-name { display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; font-weight: 700; }

/* Notes */
.guide-topic .guide-note {
  position: relative; margin: 24px 0 0; padding: 16px 20px 16px 54px; border-radius: 14px;
  background: var(--guide-note); color: var(--text); font-size: 17px; line-height: 1.7;
}
.guide-note::before {
  content: "i"; content: "i" / ""; position: absolute; top: 18px; left: 20px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--button-text);
  font: italic 700 14px/1 Georgia, "Times New Roman", serif;
}
.hv-guide-article .card .section-note {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}

/* Screenshots */
.hv-guide .guide-shot { margin: 28px 0 0; }
.hv-guide .guide-shot .project-preview {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--hv-card-shadow);
}
.hv-guide .guide-shot figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Closing: blog posts (Korean), then the trial */
main.hv-guide > aside.card {
  margin-top: 104px; padding: 28px 32px; border-radius: 20px; background: var(--hv-surface); box-shadow: var(--hv-card-shadow);
}
main.hv-guide > aside.card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
main.hv-guide > aside.card ul { margin: 0; padding-left: 20px; }
main.hv-guide > aside.card li { font-size: 17px; line-height: 1.7; }
main.hv-guide > aside.card li + li { margin-top: 6px; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 64px; }

/* Article pages read in one centred column. */
.hv-guide-article article,
.guide-next { max-width: 820px; margin-right: auto; margin-left: auto; }
.hv-guide-article article { margin-top: 48px; }
.hv-guide-article article > .guide-shot:first-child { margin: 0 0 32px; }
.guide-next { margin-top: 40px; }
.guide-next a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 26px;
  border: 1px solid var(--hv-accent-border); border-radius: 18px; background: var(--accent-soft);
  color: var(--accent); font-size: 17px; font-weight: 700; line-height: 1.45; text-decoration: none;
}
.guide-next a:hover { border-color: var(--accent); }

@media (max-width: 1000px) {
  .guide-index-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .guide-index-articles { grid-template-columns: minmax(0, 1fr); }
  .guide-chapter { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 72px; }
  .guide-chapter-head { position: static; display: flex; align-items: center; gap: 14px; }
  main.hv-guide .guide-chapter-head h2 { flex: 1; margin: 0; }
  .guide-chapter-topics { display: none; }
  main.hv-guide > aside.card { margin-top: 72px; }
}
@media (max-width: 620px) {
  main.hv-guide { padding-top: 28px; padding-bottom: 56px; }
  .guide-hero { text-align: left; }
  main.hv-guide .guide-hero h1 { margin-left: 0; }
  .guide-start { font-size: 15px; }
  .guide-index { gap: 40px; margin-top: 40px; }
  .guide-index-articles a { padding: 18px 20px 20px; }
  .guide-article-icon { display: none; }
  .guide-index-topics { grid-template-columns: minmax(0, 1fr); }
  main.hv-guide .guide-topic,
  main.hv-guide-article article .card { padding: 22px 20px 24px; border-radius: 16px; }
  main.hv-guide .guide-topic h3,
  main.hv-guide-article article .card h2 { margin-bottom: 18px; font-size: 20px; }
  .guide-topic :is(p, li),
  .hv-guide-article .card :is(p, li) { font-size: 17px; }
  .guide-steps > li,
  .hv-guide-article .card ol > li { padding-left: 42px; }
  .guide-steps > li::before,
  .hv-guide-article .card ol > li::before { top: 1px; width: 28px; height: 28px; font-size: 14px; }
  .guide-steps > li:not(:last-child)::after,
  .hv-guide-article .card ol > li:not(:last-child)::after { top: 36px; left: 13px; }
  .guide-topic .guide-services > li { padding: 14px 16px; font-size: 16px; }
  .guide-topic .guide-note { padding: 14px 16px 14px 48px; font-size: 16px; }
  .guide-note::before { top: 16px; left: 16px; }
  main.hv-guide > aside.card { padding: 22px 20px; }
  .guide-cta { justify-content: flex-start; }
  .guide-next a { padding: 16px 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-index-articles a { transition: none; }
  .guide-index-articles a:hover { transform: none; }
}
