@import "./tokens.css";

:root {
  font-family: var(--font-body);
  color: var(--lp-ink);
  background: var(--lp-canvas);
  font-synthesis: none;
  --ink: var(--lp-ink);
  --muted: var(--lp-muted);
  --line: var(--lp-line);
  --orange: var(--landing-warm-ink);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
  scroll-padding-top: var(--space-96);
}
body {
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: var(--focus-width) solid var(--lp-focus);
  outline-offset: var(--focus-offset);
}
::selection {
  background: var(--landing-sage);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
em {
  font-style: normal;
  color: var(--orange);
}
strong {
  font-weight: 700;
  color: var(--orange);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: var(--space-12);
  background: var(--lp-surface);
}
.skip:focus {
  top: 12px;
}

/* Shared chrome */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 72px;
  padding-inline: max(var(--space-48), calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  background: var(--lp-canvas);
  border-bottom: var(--border-hairline) solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: var(--touch-target);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.header nav {
  display: flex;
  gap: var(--space-24);
  align-items: center;
  font-size: var(--text-small);
}
.header nav > a:not(.button) {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  transition: transform var(--motion-fast);
}
.footer {
  margin-top: var(--space-48);
  padding-block: var(--space-56) var(--space-32);
  background: var(--landing-storage);
  border-top: var(--border-hairline) solid var(--line);
}
.footer-inner,
.footer-owner {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-40);
}
.footer-brand strong {
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}
.footer-brand p {
  margin: var(--space-8) 0 0;
  max-width: 22ch;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.7;
}
.footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--text-small);
}
.footer nav strong {
  margin-bottom: var(--space-8);
  font-size: var(--text-caption);
  color: var(--muted);
}
.footer nav a {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  transition: transform var(--motion-fast);
}
.footer-owner {
  margin-top: var(--space-32);
  padding-top: var(--space-20);
  border-top: var(--border-hairline) solid var(--line);
  color: var(--muted);
  font-size: var(--text-caption);
}

/* Motion budget 2: hover and press response on every control */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  min-height: var(--control-height);
  padding: var(--space-16) var(--space-24);
  background: var(--lp-action-fill);
  color: var(--lp-action-ink);
  border: var(--border-control) solid var(--lp-action-edge);
  border-radius: var(--radius-button);
  font-size: var(--text-body);
  font-weight: 600;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition:
    transform var(--motion-press) var(--ease-press),
    box-shadow var(--motion-fast),
    background var(--motion-fast);
}
.button:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: none;
}
.button.small {
  min-height: var(--touch-target);
  padding: var(--space-8) var(--space-16);
  font-size: var(--text-small);
  gap: var(--space-8);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--touch-target);
  padding: 0;
  background: none;
  border: 0;
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  cursor: pointer;
  transition: transform var(--motion-fast);
}
.text-link:active,
.header nav > a:not(.button):active,
.footer nav a:active {
  transform: scale(0.97);
}
.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px) rotate(-0.5deg);
    background: var(--lp-accent);
    box-shadow: var(--shadow-button-hover);
  }
  .text-link:hover,
  .header nav > a:not(.button):hover,
  .footer nav a:hover {
    transform: translateY(-2px);
  }
}

/* Shared content rhythm */
.eyebrow {
  margin: 0 0 var(--space-16);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 600;
}
main h2 {
  margin: 0 0 var(--space-24);
  font-size: var(--text-heading);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.quiet {
  margin: var(--space-16) 0 0;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.7;
}
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}
.section-top h2 {
  margin-bottom: 0;
}
.section-top > p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.85;
}

/* 1. Hero: understand and start */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--space-40);
  min-height: 600px;
  padding-block: var(--space-56) var(--space-64);
}
.hero > *,
.view-stage > *,
.journal > *,
.storage > *,
.contact > *,
.closing > * {
  min-width: 0;
}
.hero h1 {
  margin: 0 0 var(--space-24);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.85;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-24);
  margin-top: var(--space-32);
}
.hero-art {
  position: relative;
  isolation: isolate;
  padding: var(--space-24);
}
.hero-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4% 0 2%;
  background: var(--landing-art-wash);
  border-radius: var(--radius-art-wash);
  transform: rotate(-5deg);
}
.hero-art img {
  width: 100%;
}

/* 2. Three views: prove the plan */
.views {
  padding-block: var(--space-64);
  border-top: var(--border-hairline) solid var(--line);
}
.view-controls {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 460px);
  margin: 0 auto var(--space-24);
  padding: var(--space-6);
  background: var(--lp-surface);
  border: var(--border-hairline) solid var(--lp-input-edge);
  border-radius: var(--radius-tabs);
}
.view-controls::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: var(--space-6);
  bottom: var(--space-6);
  left: var(--space-6);
  width: calc((100% - 2 * var(--space-6)) / 3);
  background: var(--lp-accent-soft);
  border-radius: var(--radius-tab);
  box-shadow: 0 2px 0 var(--lp-accent-line);
  transform: translateX(200%);
  /* Motion budget 3: selection, copy and product view change as one event */
  transition: transform var(--motion-change) var(--ease-change);
}
.view-controls[data-current='list']::before {
  transform: translateX(0);
}
.view-controls[data-current='timeline']::before {
  transform: translateX(100%);
}
.view-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--control-tab);
  padding: var(--space-8);
  background: transparent;
  border: 0;
  border-radius: var(--radius-tab);
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--motion-press);
}
.view-controls button svg {
  flex: none;
}
.view-controls button[aria-pressed='true'] {
  color: var(--lp-accent);
}
.view-controls button:active {
  transform: scale(0.96);
}
/* The ring stays inside the tab so it follows the selection shape instead of doubling it. */
.view-controls button:focus-visible {
  outline-offset: -3px;
}
.view-stage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: var(--space-48);
  padding: var(--space-40) var(--space-56);
  background: var(--landing-stage);
  border: var(--border-control) solid var(--lp-outline);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}
.view-copy h3 {
  margin: 0 0 var(--space-16);
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.view-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.85;
}
/* A fixed window keeps the layout still when captures of different heights swap. */
.view-visual {
  position: relative;
  width: min(100%, 440px);
  height: 500px;
  justify-self: center;
  display: grid;
  align-items: start;
  min-width: 0;
  padding: var(--space-16);
  overflow: hidden;
  background: var(--lp-surface);
  border: var(--border-control) solid var(--lp-outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.view-stage[data-current='circle'] .view-visual {
  align-items: center;
}
.view-stage:not([data-current='circle']) .view-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: var(--space-48);
  background: linear-gradient(transparent, var(--frame-fill, var(--lp-surface)));
  pointer-events: none;
}
.view-visual img {
  width: 100%;
}
/* Native scale keeps the afternoon, the current time and the evening in one window.
   The frame takes the app's planning surface so the capture has no visible edge. */
.view-stage[data-current='timeline'] .view-visual {
  --frame-fill: var(--landing-capture);
  background: var(--frame-fill);
}
.view-stage[data-current='timeline'] .view-visual img {
  width: min(100%, 320px);
  justify-self: center;
  background: none;
}
.image-caption {
  margin: var(--space-12) 0 0;
  color: var(--muted);
  font-size: var(--text-caption);
  text-align: right;
}
.view-explanations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-40);
  margin-top: var(--space-48);
}
.view-explanations article img {
  width: auto;
  height: 104px;
  margin-bottom: var(--space-16);
}
.view-explanations h3 {
  margin: 0 0 var(--space-8);
  font-size: var(--text-xl);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.view-explanations p {
  margin: 0 0 var(--space-8);
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.8;
}

/* 3. Journal: what a plan alone misses */
.journal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-80);
  padding-block: var(--space-64);
}
.journal-image {
  padding: var(--space-20);
  background: var(--lp-surface);
  border: var(--border-control) solid var(--lp-outline);
  border-radius: var(--radius-paper);
  box-shadow: var(--shadow-paper);
  transform: rotate(-2deg);
}
.journal-image img {
  width: 100%;
  border-radius: var(--radius-paper);
}
.journal h2,
.storage h2 {
  font-size: var(--text-subheading);
}
.journal p:not(.eyebrow),
.storage p:not(.eyebrow) {
  max-width: 44ch;
  margin: 0 0 var(--space-12);
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.85;
}

/* 4. First day: lower the cost of starting */
.guide {
  padding-block: var(--space-64);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-40);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding-top: var(--space-20);
  border-top: var(--border-control) solid var(--lp-outline);
}
.steps li > span {
  color: var(--landing-number-ink);
  font: italic var(--text-3xl) var(--font-number);
}
.steps h3 {
  margin: var(--space-16) 0 var(--space-8);
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.8;
}

/* 5. Storage: answer the biggest worry */
.storage {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  align-items: center;
  gap: var(--space-64);
  padding: var(--space-56) var(--space-64);
  background: var(--landing-storage);
  border: var(--border-control) solid var(--lp-outline);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}
.storage-art {
  width: 100%;
  max-width: 240px;
  justify-self: center;
  transform: rotate(-10deg);
}

/* 6. Articles: depth for people who are not ready yet */
.articles {
  padding-block: var(--space-80) var(--space-64);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-20);
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-grid a {
  height: 100%;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-20);
  padding: var(--space-24);
  background: var(--lp-surface);
  border: var(--border-control) solid var(--lp-outline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--motion-press) var(--ease-press),
    box-shadow var(--motion-fast);
}
.guide-card-art {
  width: 96px;
  transition: transform var(--motion-press) var(--ease-press);
}
.guide-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.article-grid .guide-card-title {
  margin: 0;
  color: var(--lp-ink);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.article-grid .guide-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.7;
}
.article-grid a:active .guide-card-art {
  transform: rotate(3deg) scale(0.98);
}
.article-grid a:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .article-grid a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
  }
  .article-grid a:hover .guide-card-art {
    transform: rotate(-3deg) translateY(-2px);
  }
}

/* Advertising stays apart from actions and only exists when delivery is active. */
.ad-section {
  padding-block: var(--space-32);
}
.ad-label {
  display: block;
  margin-bottom: var(--space-12);
  color: var(--muted);
  font-size: var(--text-caption);
}

/* 7. FAQ: remove the last hesitations */
.faq {
  max-width: 820px;
  padding-block: var(--space-64);
}
.faq h2 {
  font-size: var(--text-subheading);
}
.faq details {
  border-top: var(--border-hairline) solid var(--line);
}
.faq details:last-child {
  border-bottom: var(--border-hairline) solid var(--line);
}
summary {
  min-height: var(--control-height);
  padding: var(--space-16) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  font-size: var(--text-body);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: transform var(--motion-fast);
}
summary:active {
  transform: scale(0.99);
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  flex: none;
  color: var(--lp-outline);
  font-size: var(--text-2xl);
  font-weight: 400;
  /* Motion budget 4: the icon confirms the state; the answer appears at once */
  transition: transform var(--motion-press);
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  max-width: 68ch;
  margin: 0 0 var(--space-24);
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.85;
}

/* 8. Closing: ask again at the moment of decision */
.closing {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-56);
  margin-block: var(--space-32) var(--space-64);
  padding: var(--space-48) var(--space-64);
  background: var(--landing-sage);
  border: var(--border-control) solid var(--lp-outline);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
}
.closing > img {
  width: 240px;
  max-width: 100%;
}
.closing h2 {
  font-size: var(--text-subheading);
}
.closing .eyebrow {
  color: var(--lp-ink);
}
.closing em {
  color: var(--lp-ink);
}

/* 9. Contact: the way out when the page did not answer */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: var(--space-64);
  padding-block: var(--space-48) var(--space-64);
  border-top: var(--border-hairline) solid var(--line);
}
.contact h2 {
  font-size: var(--text-subheading);
}
.contact-intro p:not(.eyebrow) {
  margin: 0 0 var(--space-12);
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.8;
}
.contact-intro .quiet {
  font-size: var(--text-small);
}
.contact form {
  display: grid;
  gap: var(--space-12);
}
.contact label {
  font-size: var(--text-small);
  font-weight: 600;
}
.contact input,
.contact textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: var(--space-16);
  color: var(--lp-ink);
  font: inherit;
  background: var(--lp-surface);
  border: var(--border-control) solid var(--lp-input-edge);
  border-radius: var(--radius-button);
}
.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.contact textarea {
  resize: vertical;
}
.contact .button {
  justify-self: start;
}
.contact-help {
  padding: var(--space-16);
  background: var(--landing-stage);
  border-radius: var(--radius-card);
}
.contact-help p {
  margin: 0 0 var(--space-8);
  font-size: var(--text-small);
  line-height: 1.7;
}
.contact-help div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20);
}

@media (max-width: 900px) {
  .wrap,
  .footer-inner,
  .footer-owner {
    width: calc(100% - 48px);
  }
  .header {
    padding-inline: var(--space-24);
  }
  .header nav {
    gap: var(--space-16);
  }
  .hero {
    min-height: 0;
    gap: var(--space-20);
  }
  .view-stage {
    padding: var(--space-32);
    gap: var(--space-28);
  }
  .journal,
  .contact {
    gap: var(--space-40);
  }
  .storage {
    padding: var(--space-40);
    gap: var(--space-32);
  }
  .closing {
    padding: var(--space-40);
    gap: var(--space-32);
  }
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .hero,
  .view-stage,
  .journal,
  .storage,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero-art {
    width: min(100%, 460px);
    margin-inline: auto;
  }
  .view-explanations,
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .storage-art {
    max-width: 130px;
    justify-self: start;
  }
  .section-top {
    display: block;
  }
  .section-top > p,
  .section-top > a {
    margin-top: var(--space-16);
  }
  .journal-image {
    transform: rotate(-1deg);
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: max(var(--space-80), 6rem);
  }
  .wrap,
  .footer-inner,
  .footer-owner {
    width: calc(100% - 40px);
  }
  .header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-12);
    padding-inline: var(--space-20);
  }
  .header nav > a:not(.button) {
    display: none;
  }
  .hero {
    padding-block: var(--space-28) var(--space-40);
  }
  .hero h1 {
    font-size: var(--text-hero-mobile);
    margin-bottom: var(--space-16);
  }
  .lead {
    font-size: var(--text-body);
    line-height: 1.75;
  }
  .actions {
    gap: var(--space-16);
    margin-top: var(--space-20);
  }
  .button {
    min-height: var(--touch-target);
    padding: var(--space-12) var(--space-16);
    font-size: var(--text-small);
  }
  .hero-art {
    width: min(100%, 300px);
    padding: var(--space-8);
  }
  main h2 {
    font-size: var(--text-3xl);
  }
  .journal h2,
  .storage h2,
  .closing h2,
  .contact h2,
  .faq h2 {
    font-size: var(--text-2xl);
  }
  .views,
  .journal,
  .guide,
  .articles,
  .faq {
    padding-block: var(--space-40);
  }
  .view-controls {
    width: 100%;
    max-width: 350px;
    margin-bottom: var(--space-20);
  }
  .view-stage {
    padding: var(--space-20);
    gap: var(--space-16);
    min-height: 0;
  }
  .view-copy h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
  }
  .view-visual {
    width: 100%;
    height: 420px;
    padding: var(--space-12);
  }
  .image-caption {
    text-align: left;
    line-height: 1.7;
  }
  .storage {
    padding: var(--space-24);
  }
  .closing {
    grid-template-columns: 1fr;
    padding: var(--space-28) var(--space-24);
    gap: var(--space-16);
    margin-block: var(--space-16) var(--space-40);
  }
  .closing > img {
    width: 200px;
  }
  .contact {
    padding-block: var(--space-40);
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-28);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 600px) {
  .article-grid a {
    grid-template-columns: minmax(0, 1fr) 72px;
    padding: var(--space-16);
    gap: var(--space-12);
  }
  .guide-card-copy {
    display: contents;
  }
  .guide-card-art {
    grid-column: 2;
    grid-row: 1;
    width: 72px;
  }
  .article-grid .guide-card-title {
    grid-column: 1;
    grid-row: 1;
    font-size: var(--text-lead);
  }
  .guide-card-summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 360px) {
  .article-grid a {
    grid-template-columns: minmax(0, 1fr) 56px;
  }
  .guide-card-art {
    width: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-grid a:is(:hover, :active) .guide-card-art {
    transform: none;
  }
}

/* PUB-004 guide hub shares the landing page's palette, cards, and footer. */
.guide-page .guide-main {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: var(--space-32) var(--space-64);
}
.guide-page .guide-hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: var(--space-40);
}
.guide-page .guide-hub-head > * {
  min-width: 0;
}
.guide-page .guide-hub-head img {
  width: 100%;
}
.guide-page h1 {
  margin: 0 0 var(--space-20);
  font-size: var(--text-heading);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.guide-page .guide-lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.85;
}
.guide-page .guide-main > section {
  margin-top: var(--space-48);
}
.guide-page .guide-main > section > h2 {
  margin-bottom: var(--space-20);
  font-size: var(--text-2xl);
  line-height: 1.45;
}
.guide-page .guide-start {
  margin-top: var(--space-48);
}
.guide-page .guide-start p {
  color: var(--muted);
  line-height: 1.8;
}
.guide-page .legacy-guide {
  padding-top: var(--space-24);
  border-top: var(--border-hairline) solid var(--line);
}
.guide-page .legacy-guide h3 {
  margin: var(--space-32) 0 var(--space-8);
  font-size: var(--text-xl);
}
.guide-page .legacy-guide p {
  color: var(--muted);
  line-height: 1.9;
}
.guide-page .legacy-guide a {
  color: var(--lp-action-fill);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
@media (max-width: 900px) {
  .guide-page .guide-main {
    width: calc(100% - 48px);
  }
}
@media (max-width: 600px) {
  .guide-page .guide-main {
    padding-block: var(--space-16) var(--space-40);
  }
  .guide-page .guide-hub-head {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
  }
  .guide-page .guide-hub-head img {
    grid-row: 1;
    width: 130px;
  }
  .guide-page .guide-lead {
    font-size: var(--text-body);
  }
  .guide-page .guide-main > section {
    margin-top: var(--space-36);
  }
}
