:root {
  color-scheme: light;
  --bg: #fff8ec;
  --bg-soft: #fff3db;
  --surface: #fffdf8;
  --surface-warm: #fff4df;
  --surface-green: #e9f6d9;
  --ink: #241812;
  --ink-soft: #5d493f;
  --muted: #7d6658;
  --line: rgba(86, 54, 35, 0.14);
  --line-strong: rgba(86, 54, 35, 0.24);
  --accent: #e8773d;
  --accent-dark: #b94b22;
  --yellow: #ffd972;
  --pink: #f7b7c8;
  --green: #b8dea0;
  --blue: #b9dff2;
  --shadow: 0 24px 60px rgba(102, 64, 31, 0.15);
  --shadow-soft: 0 14px 32px rgba(102, 64, 31, 0.1);
  --shadow-tight: 0 10px 0 rgba(63, 39, 22, 0.07);
  --radius: 26px;
  --font-snifff: "SnifffKKTWeb", -apple-system, BlinkMacSystemFont, "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@font-face {
  font-family: "SnifffKKTWeb";
  src: url("fonts/snifff-kkt-zh-cn.woff") format("woff");
  font-display: optional;
  font-weight: 100 900;
}

@font-face {
  font-family: "SnifffLaihuWebTW";
  src: url("fonts/snifff-laihu-zh-tw.woff") format("woff");
  font-display: optional;
  font-weight: 100 900;
}

@font-face {
  font-family: "SnifffLaihuWebEN";
  src: url("fonts/snifff-laihu-en.woff") format("woff");
  font-display: optional;
  font-weight: 100 900;
}

@font-face {
  font-family: "SnifffJapaneseWeb";
  src: url("fonts/snifff-japanese-ja.woff") format("woff");
  font-display: optional;
  font-weight: 100 900;
}

@font-face {
  font-family: "SnifffKoreanWeb";
  src: url("fonts/snifff-korean-ko.woff") format("woff");
  font-display: optional;
  font-weight: 100 900;
}

html[lang="zh-CN"] {
  --font-snifff: "SnifffKKTWeb", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-TW"] {
  --font-snifff: "SnifffLaihuWebTW", "PingFang TC", "PingFang SC", sans-serif;
}

html[lang="en"] {
  --font-snifff: "SnifffLaihuWebEN", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="ja"] {
  --font-snifff: "SnifffJapaneseWeb", "Hiragino Sans", "Yu Gothic", sans-serif;
}

html[lang="ko"] {
  --font-snifff: "SnifffKoreanWeb", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 217, 114, 0.46), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(247, 183, 200, 0.38), transparent 24%),
    linear-gradient(rgba(141, 90, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 90, 46, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  font: 16px/1.65 var(--font-snifff);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(80, 46, 25, 0.06) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px);
  background-position: 0 0, 17px 19px;
  background-size: 38px 38px, 42px 42px;
  opacity: 0.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(232, 119, 61, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell,
.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(86, 54, 35, 0.1);
  background: rgba(255, 248, 236, 0.82);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(86, 54, 35, 0.16);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  line-height: 1.08;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav > a,
.lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a.active,
.lang-switcher.open .lang-current {
  border-color: rgba(86, 54, 35, 0.14);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.site-nav .nav-cta {
  border-color: rgba(185, 75, 34, 0.28);
  background: var(--ink);
  color: #fff8ef;
  box-shadow: 0 10px 22px rgba(69, 38, 20, 0.16);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(86, 54, 35, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.lang-switcher {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 168px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(86, 54, 35, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.lang-switcher.open .lang-menu {
  display: grid;
  gap: 4px;
}

.lang-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  background: var(--surface-warm);
  color: var(--ink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0 54px;
}

.hero-section::after,
.memory-section::before,
.philosophy-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(36, 24, 18, 0.16) 0 2px, transparent 2.2px) 0 0 / 28px 28px,
    radial-gradient(circle, rgba(232, 119, 61, 0.12) 0 2px, transparent 2.2px) 14px 14px / 28px 28px;
  opacity: 0.35;
}

.hero-section::after {
  right: -90px;
  top: 120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.memory-copy h2,
.showcase-copy h2,
.philosophy-card h2,
.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  width: min(620px, 100%);
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(86, 54, 35, 0.16);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff8ee;
  box-shadow: 0 14px 28px rgba(69, 38, 20, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.hero-device {
  position: relative;
  min-height: 620px;
}

.phone-shell {
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(330px, 78vw);
  transform: translateX(-50%) rotate(2deg);
  padding: 14px;
  border: 2px solid rgba(74, 45, 29, 0.18);
  border-radius: 42px;
  background: #2a1d16;
  box-shadow: var(--shadow);
}

.phone-speaker {
  width: 72px;
  height: 8px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.phone-screen {
  min-height: 550px;
  overflow: hidden;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(rgba(157, 101, 52, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 101, 52, 0.06) 1px, transparent 1px),
    #fff7e8;
  background-size: 24px 24px;
}

.screen-status,
.app-card,
.screen-list div,
.memory-card,
.scenario-card,
.workflow-step,
.quote-card,
.faq-item,
.summary-panel,
.legal-article,
.legal-aside nav,
.download-card,
.philosophy-card {
  border: 1px solid rgba(86, 54, 35, 0.13);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-soft);
}

.screen-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
}

.app-card img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.app-card span,
.memory-card span,
.award-grid span,
.floating-note span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-card strong,
.memory-card strong,
.award-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.chart-card {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 170px;
  margin: 16px 0;
  padding: 18px;
  border: 1px dashed rgba(232, 119, 61, 0.5);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffef8, #ffe8c4);
}

.chart-card span {
  flex: 1;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, var(--green), #79b768);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.chart-card span:nth-child(1) { height: 48%; }
.chart-card span:nth-child(2) { height: 70%; }
.chart-card span:nth-child(3) { height: 56%; }
.chart-card span:nth-child(4) { height: 78%; }
.chart-card span:nth-child(5) { height: 64%; }

.screen-list {
  display: grid;
  gap: 10px;
}

.screen-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
}

.screen-list span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.screen-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.floating-note {
  position: absolute;
  z-index: 2;
  width: 148px;
  padding: 16px;
  border: 1px solid rgba(86, 54, 35, 0.14);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.floating-note strong {
  display: block;
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
}

.note-one {
  right: 0;
  top: 74px;
}

.note-two {
  left: 0;
  bottom: 72px;
  transform: rotate(5deg);
}

.award-strip {
  padding: 22px 0 72px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.award-grid div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(86, 54, 35, 0.13);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-soft);
}

.section-block,
.memory-section,
.workflow-section,
.showcase-section,
.testimonial-section,
.philosophy-section,
.faq-section,
.download-section,
.content-band {
  padding: 80px 0;
}

.section-heading {
  width: min(780px, calc(100% - 40px));
  text-align: center;
}

.section-heading.align-left {
  width: auto;
  margin: 0;
  text-align: left;
}

.section-heading h2,
.memory-copy h2,
.showcase-copy h2,
.philosophy-card h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
}

.section-heading + .scenario-rail,
.section-heading + .testimonial-grid,
.section-heading + .faq-list {
  margin-top: 34px;
}

.scenario-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.scenario-card {
  min-height: 320px;
  padding: 22px;
  border-radius: 28px;
  scroll-snap-align: start;
}

.scenario-card:nth-child(1) { background: #fff4cf; }
.scenario-card:nth-child(2) { background: #e9f6d9; }
.scenario-card:nth-child(3) { background: #ffe6d8; }
.scenario-card:nth-child(4) { background: #f8e4ed; }

.scenario-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  border: 1px dashed rgba(86, 54, 35, 0.36);
  border-radius: 50%;
  color: var(--accent-dark);
  font-weight: 900;
}

.scenario-card h3,
.workflow-step h3,
.faq-item h3,
.summary-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.scenario-card p,
.workflow-step p,
.quote-card p,
.faq-item p,
.memory-copy p,
.showcase-copy p,
.philosophy-card p,
.summary-panel p,
.legal-article p,
.legal-article li {
  color: var(--ink-soft);
}

.memory-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 244, 223, 0), rgba(255, 238, 202, 0.66), rgba(255, 244, 223, 0));
}

.memory-section::before {
  left: -120px;
  top: 60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
}

.memory-grid,
.workflow-grid,
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 44px;
}

.memory-card {
  padding: 28px;
  border-radius: 32px;
  background: #fffdf8;
  transform: rotate(1.5deg);
}

.memory-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.memory-card img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.memory-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.memory-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px dashed rgba(86, 54, 35, 0.2);
}

.memory-card dt {
  color: var(--muted);
  font-weight: 900;
}

.memory-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.workflow-section {
  background: rgba(255, 253, 248, 0.4);
}

.workflow-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.workflow-steps {
  display: grid;
  gap: 14px;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  padding: 22px;
  border-radius: 26px;
}

.workflow-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff7ea;
  font-weight: 900;
}

.workflow-step p {
  margin: 8px 0 0;
}

.showcase-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(0, 0.95fr);
}

.showcase-board {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(86, 54, 35, 0.12);
  border-radius: 36px;
  background:
    linear-gradient(rgba(232, 119, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 119, 61, 0.05) 1px, transparent 1px),
    #fff6e7;
  background-size: 32px 32px;
  box-shadow: var(--shadow);
}

.mini-window {
  position: absolute;
  border: 1px solid rgba(86, 54, 35, 0.14);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-soft);
}

.window-main {
  left: 44px;
  top: 44px;
  width: 250px;
  min-height: 240px;
  padding: 22px;
  transform: rotate(-3deg);
}

.window-main img {
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  border-radius: 22px;
}

.window-main span {
  display: block;
  height: 14px;
  margin-top: 12px;
  border-radius: 999px;
  background: #f5d7b7;
}

.window-main span:nth-of-type(2) {
  width: 74%;
}

.window-main span:nth-of-type(3) {
  width: 56%;
}

.window-side {
  right: 36px;
  top: 90px;
  display: grid;
  gap: 12px;
  width: 210px;
  padding: 20px;
  transform: rotate(4deg);
}

.window-side div {
  height: 52px;
  border-radius: 18px;
  background: #e7f3d4;
}

.window-side div:nth-child(2) {
  background: #ffe2bf;
}

.window-side div:nth-child(3) {
  background: #f5c8d6;
}

.window-bottom {
  left: 162px;
  bottom: 46px;
  width: 260px;
  padding: 22px;
  transform: rotate(1deg);
}

.window-bottom strong {
  font-size: 46px;
  line-height: 1;
}

.window-bottom span {
  display: block;
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.9);
}

.quote-card p {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.52;
}

.quote-card span {
  color: var(--accent-dark);
  font-weight: 900;
}

.philosophy-section {
  padding-top: 48px;
}

.philosophy-card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 38px;
  background: linear-gradient(135deg, #fff4cf, #eaf6d8 54%, #ffe7d7);
  text-align: center;
}

.philosophy-card::before {
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
}

.philosophy-card p {
  width: min(720px, 100%);
  margin: 20px auto 0;
  font-size: 18px;
}

.home-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-item {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.88);
}

.faq-item p {
  margin: 10px 0 0;
}

.download-card {
  display: grid;
  justify-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 38px;
  background: #fffdf8;
  text-align: center;
}

.download-card img {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.download-card h2 {
  width: min(680px, 100%);
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}

.download-card p {
  width: min(620px, 100%);
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.site-footer {
  padding: 36px 0 30px;
  border-top: 1px solid rgba(86, 54, 35, 0.12);
  background: rgba(255, 248, 236, 0.7);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-row strong {
  font-size: 18px;
}

.footer-row p,
.footer-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a,
.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.footer-note {
  margin-top: 18px;
}

.legal-main,
body[data-page="support"] main {
  background: linear-gradient(180deg, rgba(255, 247, 232, 0), rgba(255, 246, 229, 0.72));
}

.legal-hero {
  padding: 76px 0 42px;
}

.legal-hero-inner {
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(42px, 6vw, 74px);
}

.lead,
.lead-en {
  width: min(760px, 100%);
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.lead-en,
.legal-en,
.small-muted {
  color: var(--muted);
}

.content-band.band-alt {
  background: rgba(255, 253, 248, 0.42);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 96px;
}

.legal-aside nav {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 22px;
}

.legal-aside a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink-soft);
  font-weight: 900;
  text-decoration: none;
}

.legal-aside a:hover {
  background: var(--surface-warm);
  color: var(--ink);
}

.legal-article {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
}

.legal-article section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px dashed rgba(86, 54, 35, 0.18);
}

.legal-article h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.legal-article p,
.legal-article li {
  font-size: 16px;
}

.legal-article ul,
.detail-list {
  padding-left: 1.2em;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.summary-panel {
  padding: 26px;
  border-radius: 28px;
}

.summary-panel p {
  margin: 12px 0 0;
}

.detail-list.tight {
  margin: 12px 0 0;
}

.is-hidden {
  opacity: 0;
  transform: translateY(22px);
}

.scroll-reveal {
  transition: opacity 520ms ease, transform 520ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .button,
  .hamburger span {
    transition: none;
  }

  .is-hidden {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hamburger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    display: none;
    width: min(320px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid rgba(86, 54, 35, 0.14);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.97);
    box-shadow: var(--shadow);
  }

  .site-nav.nav-open {
    display: grid;
    gap: 6px;
  }

  .site-nav > a,
  .lang-current {
    justify-content: flex-start;
    width: 100%;
  }

  .lang-switcher {
    width: 100%;
  }

  .lang-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero-layout,
  .memory-grid,
  .workflow-grid,
  .showcase-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 58px;
  }

  .hero-device {
    min-height: 580px;
  }

  .phone-shell {
    width: min(330px, 88vw);
  }

  .award-grid,
  .testimonial-grid,
  .home-faq,
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-rail {
    grid-template-columns: repeat(4, 250px);
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .container {
    width: min(100% - 28px, 1140px);
  }

  .header-row {
    min-height: 68px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .section-heading h2,
  .memory-copy h2,
  .showcase-copy h2,
  .philosophy-card h2,
  .legal-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions,
  .footer-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-device {
    min-height: 540px;
  }

  .phone-screen {
    min-height: 500px;
  }

  .floating-note {
    width: 126px;
    padding: 12px;
  }

  .note-one {
    right: -4px;
    top: 44px;
  }

  .note-two {
    left: -4px;
    bottom: 42px;
  }

  .award-grid,
  .testimonial-grid,
  .home-faq,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .memory-section,
  .workflow-section,
  .showcase-section,
  .testimonial-section,
  .philosophy-section,
  .faq-section,
  .download-section,
  .content-band {
    padding: 58px 0;
  }

  .scenario-card {
    min-height: 280px;
  }

  .showcase-board {
    min-height: 390px;
  }

  .window-main {
    left: 18px;
    top: 32px;
    width: 214px;
  }

  .window-side {
    right: 16px;
    top: 128px;
    width: 176px;
  }

  .window-bottom {
    left: 54px;
    bottom: 28px;
    width: 230px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
