:root {
  color-scheme: light;
  --ink: #203760;
  --body: #514a61;
  --cream: #fff8f2;
  --paper: #fffcf8;
  --purple: #e9dffb;
  --rule: #e8dedb;
  --page: min(1260px, 100% - 96px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #7752b8; outline-offset: 4px; }
h1, h2, h3, p, ol, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
p { color: var(--body); }
.shell { width: var(--page); margin-inline: auto; }
[id] { scroll-margin-top: 24px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 10px 14px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.topbar, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.topbar { min-height: 80px; }
.brand { display: inline-flex; align-items: center; font-weight: 750; font-size: 1.55rem; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand img { margin-right: 10px; border-radius: 24%; }
.brand span { color: #b85635; }
.topbar nav, .footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; font-size: .9375rem; font-weight: 650; }
.topbar nav a, .footer-inner nav a { text-decoration: none; text-underline-offset: 5px; }
.topbar nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.nav-button, .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px; font-weight: 700; }
.nav-button { min-height: 42px; padding: 7px 18px; border: 1px solid #cabddf; white-space: nowrap; }
.nav-button:hover { background: #f2eaf9; }
.button { min-height: 51px; padding: 11px 25px; color: #fff; background: var(--ink); transition: background-color .2s ease; }
.button:hover { background: #394c85; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  min-height: 562px;
  padding: 46px 6% 50px;
  overflow: hidden;
  border-radius: 38px;
  background:
    linear-gradient(90deg, #fff6ed 0%, rgba(255,246,237,.97) 18%, rgba(255,246,237,.88) 32%, rgba(255,246,237,.31) 53%, transparent 76%),
    #efdef4 url("./assets/walkio-park.jpg") center 59% / cover no-repeat;
}
.hero-copy { position: relative; z-index: 1; margin-block: 4px 10px; }
.hello { font-family: Georgia, "Times New Roman", serif; font-size: 4.6rem; font-style: italic; line-height: .95; letter-spacing: -.075em; color: var(--ink); margin-bottom: 20px; }
.hello span { color: #c3693f; }
.hero h1 { font-size: clamp(2.9rem, 5.25vw, 5.25rem); letter-spacing: -.085em; font-weight: 850; line-height: 1.12; }
.hero-description { margin-block: 24px 24px; font-size: clamp(1rem, 1.33vw, 1.2rem); line-height: 1.8; color: #464359; }
.device { width: 218px; overflow: hidden; border: 6px solid #282137; border-radius: 34px; background: #fff6ef; box-shadow: 0 24px 40px rgba(62, 42, 83, .26); }
.device img { width: 100%; height: auto; }
.hero-device { justify-self: end; z-index: 1; transform: rotate(5deg); }

.section { padding-block: 100px; }
.walk-section { display: grid; grid-template-columns: 1fr .93fr; align-items: start; column-gap: 9%; }
.kicker { margin-bottom: 13px; color: #65538e; font-weight: 740; font-size: .9375rem; letter-spacing: .13em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.85rem); letter-spacing: -.065em; }
.walk-intro > p:last-child, .badge-copy > p:last-child, .friend-copy > p:not(.kicker) { margin-top: 18px; max-width: 30rem; font-size: 1.0625rem; }
.walk-steps { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.walk-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.step-mark { color: #6d588f; font: italic 1.35rem Georgia, serif; padding-top: 1px; }
.walk-steps h3 { font-size: 1.22rem; margin-bottom: 7px; }
.badge-panel { display: grid; grid-template-columns: 1fr .87fr; align-items: center; gap: 7%; padding: 61px 7%; border-radius: 36px; background: radial-gradient(ellipse at 18% 54%, #ffefe2 0%, transparent 56%), linear-gradient(125deg, #f1e8ff, #e7dcf9); }
.badge-art { position: relative; min-height: 224px; isolation: isolate; }
.badge-art img { width: 44%; position: absolute; top: 50%; left: 50%; filter: drop-shadow(0 10px 13px #59426b30); }
.badge-art img:nth-child(1) { transform: translate(-105%, -48%) rotate(-17deg); }
.badge-art img:nth-child(2) { z-index: 1; transform: translate(-50%, -53%) scale(1.16); }
.badge-art img:nth-child(3) { transform: translate(7%, -46%) rotate(16deg); }
.friends-section { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: 10%; padding-inline: 7%; }
.friend-copy .context-note { font-size: .9375rem; color: #635a73; }
.friend-device { justify-self: center; box-shadow: 0 18px 45px #4f39702b, 0 0 0 18px #f2eafa, 0 0 0 38px #faf1ef; }
.return-section { display: flex; align-items: flex-start; gap: 18px; padding: 28px 4%; margin-bottom: 24px; border: 1px solid var(--rule); border-radius: 27px; }
.return-section > img { margin-top: 2px; flex: 0 0 auto; object-fit: contain; }
.return-section h2 { font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
.return-section p { margin-top: 6px; }
.ios-section { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 34px 4%; border-radius: 27px; background: #f7eee9; }
.ios-section > img { border-radius: 23%; }
.ios-section > div { flex: 1 1 270px; }
.ios-section h2 { font-size: clamp(1.62rem, 3vw, 2.4rem); }
.ios-section p { margin-top: 6px; }
.site-footer { margin-top: 68px; border-top: 1px solid var(--rule); }
.footer-inner { min-height: 88px; }

.legal { max-width: 800px; padding-block: 60px 30px; }
.legal h1 { font-size: clamp(2.35rem, 5vw, 4rem); letter-spacing: -.05em; }
.legal h2 { font-size: clamp(1.28rem, 3vw, 1.65rem); letter-spacing: -.02em; }
.legal-copy { margin-top: 32px; padding: clamp(20px, 4.5vw, 46px); background: #fff8f4; border: 1px solid var(--rule); border-radius: 24px; overflow-wrap: anywhere; }
.legal-copy section + section { margin-top: 27px; }
.legal-copy h2:not(:first-child) { margin-top: 32px; }
.legal p, .legal ul { margin-top: 12px; color: var(--body); }
.legal a:not(.button) { text-underline-offset: 4px; }
.legal-copy a { color: var(--ink); }
.legal details { border-bottom: 1px solid var(--rule); padding: 15px 0; }
.legal summary { cursor: pointer; font-weight: 700; }

@media (max-width: 970px) {
  :root { --page: min(1260px, 100% - 48px); }
  .hero { padding-inline: 5%; min-height: 505px; grid-template-columns: minmax(0, 1fr) 188px; background-position: center, 53% 60%; }
  .hero-device { width: 173px; border-width: 5px; border-radius: 27px; }
  .section { padding-block: 73px; }
  .badge-panel { padding-inline: 6%; }
}

@media (max-width: 670px) {
  :root { --page: calc(100% - 32px); }
  .topbar { gap: 8px 12px; min-height: 66px; }
  .topbar nav { gap: 13px; font-size: .875rem; }
  .topbar nav a[href="#friends"] { display: none; }
  .nav-button { display: none; }
  .brand { font-size: 1.37rem; }
  .brand img { width: 33px; height: 33px; margin-right: 7px; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 30px 24px 31px;
    min-height: auto;
    border-radius: 26px;
    background:
      linear-gradient(180deg, #fff6ed 6%, #fff6eddc 36%, #fff6ed1a 68%, transparent 100%),
      #efdef4 url("./assets/walkio-park.jpg") 75% bottom / auto 66% no-repeat;
  }
  .hero-copy { margin: 0; }
  .hello { font-size: 3.6rem; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.55rem, 10.5vw, 3.65rem); }
  .hero-description { margin-block: 16px 17px; }
  .hero-device { width: 136px; margin-top: -12px; margin-right: 3px; border-radius: 23px; border-width: 4px; }
  .section { padding-block: 55px; }
  .walk-section, .badge-panel, .friends-section { grid-template-columns: 1fr; }
  .walk-section { row-gap: 26px; }
  .walk-steps li { padding-block: 17px; grid-template-columns: 29px 1fr; gap: 13px; }
  .badge-panel { gap: 14px; padding: 23px 23px 31px; border-radius: 26px; }
  .badge-art { min-height: clamp(145px, 44vw, 235px); }
  .badge-art img { max-width: 142px; }
  .friends-section { gap: 40px; padding-inline: 12px; }
  .friend-device { width: 168px; border-width: 5px; border-radius: 27px; box-shadow: 0 16px 38px #4f397025, 0 0 0 12px #f2eafa, 0 0 0 25px #faf1ef; }
  .return-section { padding: 20px; gap: 12px; }
  .ios-section { padding: 23px; gap: 15px; }
  .ios-section > img { width: 55px; height: 55px; }
  .site-footer { margin-top: 40px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 14px; padding-block: 18px; }
  .footer-inner nav { gap: 15px; font-size: .875rem; }
  .legal { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
