:root {
  color-scheme: light;
  --paper: #f4efe4;
  --card: #fbf8f0;
  --ink: #25291f;
  --green: #4d6544;
  --muted: #646456;
  --line: #ddd7c6;
  --serif: "Noto Serif CJK SC", "Songti SC", SimSun, Georgia, serif;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.masthead { padding-top: 22px; }
.masthead nav {
  display: flex;
  align-items: center;
  gap: 36px;
  border: 1px solid var(--line);
  padding: 9px 10px 9px 19px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 3px 10px #4434160a;
}
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 750; }
.nav-links, .nav-actions { display: flex; gap: 24px; align-items: center; font-size: .875rem; color: var(--muted); }
.nav-actions { margin-left: auto; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 9px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-size: .875rem;
  font-weight: 650;
  transition: background .18s, color .18s;
}
.button:hover { background: #3f5539; color: white; }
.button.small { min-height: 36px; padding: 5px 17px; }
.hero { text-align: center; padding-top: clamp(56px, 7vw, 96px); }
h1, h2 { font-family: var(--serif); font-weight: 650; line-height: 1.18; letter-spacing: -.055em; }
h1 { font-size: clamp(3.25rem, 7.1vw, 6.2rem); margin: 13px 0 23px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
em { color: var(--green); font-style: normal; }
.intro { color: var(--muted); margin-bottom: 25px; }
.landscape {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: #a4ad99;
  aspect-ratio: 2.45;
  text-align: left;
}
.landscape img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 56%; }
.landscape figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 12px; color: #fffdf2; padding: 33px 24px 17px; background: linear-gradient(transparent, #20281cba); font-size: .875rem; }
.section { margin-top: 105px; scroll-margin-top: 26px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.tool-grid, .plans { display: grid; gap: 16px; }
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-grid article, .plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.tool-grid h3 { margin: 6px 0; font-family: var(--serif); }
.tool-grid p { font-size: .9375rem; color: var(--muted); }
.membership { max-width: 1040px; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; padding: clamp(18px, 2.6vw, 32px); }
.plan.featured { background: #e9eee2; border-color: #95a68a; }
.plan h3 { font: 600 2rem/1.1 Georgia, var(--serif); }
.tier { color: var(--muted); margin-top: 7px; font-size: .875rem; }
.price { margin: 12px 0 14px; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.price strong { color: var(--ink); font: 500 clamp(2rem, 3.6vw, 3.2rem)/1 Georgia, serif; }
.plan ul { margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .875rem; }
.plan li + li { margin-top: 7px; }
.plan .button { margin-top: auto; }
.outline { color: var(--ink); border-color: #a8ab97; background: transparent; }
.plan-notes { margin: 18px auto 29px; text-align: center; font-size: .875rem; color: var(--muted); }
footer p { color: var(--muted); font-size: .875rem; }
footer { margin-top: clamp(54px, 8vw, 96px); border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding-block: 26px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .875rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-top: 75px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 32px); }
  .masthead nav, .nav-actions { gap: 14px; }
  .nav-links { display: none; }
  .landscape { aspect-ratio: 1.34; margin-top: 30px; border-radius: 18px; }
  .plans { grid-template-columns: 1fr; }
  .tool-grid { gap: 10px; }
  .plan { padding: 17px; }
  .foot { flex-direction: column; }
}
@media (max-width: 340px) {
  .nav-actions .download { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
}

.plan-period { margin-top: 15px; }
.plan-period input {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.period-labels { display: flex; justify-content: space-between; gap: 4px; }
.period-labels button {
  min-height: 34px;
  padding: 2px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
}
.period-labels button:hover { background: #dbe2d5; }
.period-labels button[aria-pressed=true] { color: var(--green); font-weight: 750; }

.tool-grid { position: relative; }
.tool-grid article {
  overflow: hidden;
  padding: 9px 9px 19px;
}
.tool-grid article img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.22;
  object-fit: cover;
  border-radius: 12px;
  background: #d6dccd;
}
.tool-grid h3 { margin: 12px 10px 4px; }
.tool-grid p { margin: 0 10px; overflow-wrap: anywhere; }
@media (min-width: 721px) {
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.motion-band { min-height: 240px; overflow: hidden; position: relative; padding: 24px 0; }
.motion-band h2 { position: relative; z-index: 1; font-size: clamp(2rem, 4vw, 3.4rem); }
.motion-stickers { position: absolute; inset: 0; }
.motion-stickers img { position: absolute; width: 62px; height: 62px; object-fit: cover; border-radius: 12px; border: 2px solid var(--card); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: title-in .8s both; }
}
@keyframes title-in { from { opacity: 0; filter: blur(7px); translate: 0 11px; } }
.masthead { position: sticky; top: 0; z-index: 5; }
.masthead.has-scrolled nav { background: #fbf8f0e8; backdrop-filter: blur(12px); }
.section { scroll-margin-top: 95px; }


.pricing-page .membership { margin-top: clamp(50px, 7vw, 96px); }
.pricing-page h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); margin: 0; }
.nav-links [aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 690px) {
  .masthead .nav-links { display: flex; }
}
@media (max-width: 420px) {
  .masthead nav, .nav-actions { gap: 8px; }
  .nav-actions .small { padding-inline: 10px; }
}

.deck-extra, .deck-stair-copy { display: none; }
@media (min-width: 721px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .tools.has-deck-motion { height: 275svh; }

  .has-deck-motion .deck-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: clip;
    perspective: 1200px;
  }
  .has-deck-motion .section-head {
    position: absolute;
    inset: 15% 8% auto;
    z-index: 2;
    pointer-events: none;
  }
  .has-deck-motion .tool-grid {
    position: absolute;
    inset: 0;
    display: block;
  }
  .has-deck-motion .tool-grid article {
    position: absolute;
    display: block;
    overflow: hidden;
    margin: 0;
    width: 260px;
    height: 282px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 14px 36px #272b202c;
    backface-visibility: hidden;
  }
  .has-deck-motion .tool-grid img {
    height: 68%;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
  }
  .has-deck-motion .tool-grid .deck-extra img { height: 100%; }
  .has-deck-motion .tool-grid h3 { margin: 5px 8px 0; }
  .has-deck-motion .tool-grid p { margin: 0 8px; font-size: .8125rem; }
  .has-deck-motion .deck-stair-copy {
    display: block;
    position: absolute;
    top: 21%;
    left: 6%;
    z-index: 1;
    font: 650 clamp(1.8rem, 4vw, 3.4rem)/1.15 var(--serif);
    pointer-events: none;
  }

}
@media (min-width: 721px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .has-deck-motion .tool-grid article { top: 0; left: 0; }
}

.download-page { text-align: center; padding-block: clamp(52px, 9vw, 112px) clamp(24px, 5vw, 70px); }
.download-page h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 0 0 28px; }
.download-card {
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.download-card h2 { font-size: 1.8rem; letter-spacing: 0; }
.download-card p { color: var(--muted); margin: 10px 0 24px; }
@media (max-width: 340px) {
  .masthead nav { flex-wrap: wrap; }
  .nav-actions .download { display: inline-flex; }
}

.formation-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}
.formation-stage { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(132px,100%),1fr)); gap: 12px; padding: 16px; }
.formation-stage figure { margin: 0; overflow: hidden; border-radius: 13px; background: #272c27; color: #f5f1e8; }
.formation-stage img { display: block; width: 100%; aspect-ratio: .75; height: auto; object-fit: cover; pointer-events: none; }
.formation-stage figcaption { padding: 5px 9px; }
.formation-panel.is-ready .formation-stage {
  position: relative;
  display: block;
  height: clamp(355px, 56vw, 620px);
  padding: 0;
  perspective: 1150px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  --formation-width: clamp(108px, 22vw, 238px);
}
.formation-panel.is-ready .formation-stage.is-dragging { cursor: grabbing; }
.formation-panel.is-ready figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--formation-width);
  background: #262a25;
  box-shadow: 0 12px 24px #0007;
  transform: translate3d(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)), var(--z, 0px)) rotateY(var(--yaw, 0deg)) scale(var(--scale, 1));
  opacity: var(--alpha, 0);
  transition: transform .52s cubic-bezier(.2,.72,.25,1), opacity .35s;
}
.formation-stage.is-dragging figure, .formation-stage.is-wheeling figure { transition: none; }
.formation-panel.is-ready figcaption {
  position: absolute; inset: auto 0 0;
  background: linear-gradient(transparent,#151814d9);
  padding: 17px 10px 7px;
  font-size: .875rem;
}
.formation-stage:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .formation-panel.is-ready figure { transition: none; }
}

.formation-stage img, .tool-grid img { background: #dce3d9; }
.formation-stage figure:hover img { scale: 1.035; }
.formation-stage img { transition: scale .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .formation-stage figure:hover img { scale: none; }
  .formation-stage img { transition: none; }
}
