:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #66736d;
  --subtle: #8c9792;
  --line: #dde4de;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --mist: #eef5f0;
  --leaf: #285640;
  --leaf-strong: #183a2b;
  --rose: #b84f67;
  --amber: #c9862a;
  --blue: #416f8a;
  --shadow: 0 18px 44px rgba(23, 32, 28, 0.12);
  --shadow-lift: 0 24px 58px rgba(23, 32, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: rgba(40, 86, 64, 0.18);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-focus {
  from {
    transform: scale(1.025);
  }

  to {
    transform: scale(1.01);
  }
}

body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.72, 0.18, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 0 44px;
  background: rgba(248, 247, 242, 0.92);
  border-bottom: 1px solid rgba(221, 228, 222, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  transition: transform 220ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--surface);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a,
.header-action,
.quick-actions button,
.utility-button {
  min-height: 40px;
  border-radius: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--mist);
  color: var(--leaf-strong);
  transform: translateY(-1px);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--leaf);
  color: var(--surface);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(40, 86, 64, 0.18);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--leaf-strong);
  box-shadow: 0 14px 32px rgba(40, 86, 64, 0.22);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
  padding: 84px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/flowermean-hero-premium.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.01);
  animation: slow-focus 1200ms ease-out both;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 247, 242, 0.97) 0%, rgba(248, 247, 242, 0.86) 42%, rgba(248, 247, 242, 0.18) 76%),
    linear-gradient(0deg, rgba(23, 32, 28, 0.16), rgba(23, 32, 28, 0));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 1fr);
  gap: 54px;
  align-items: end;
}

.hero-content {
  display: grid;
  align-content: center;
  min-height: 480px;
  animation: fade-up 780ms cubic-bezier(0.2, 0.72, 0.18, 1) 80ms both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 4.75rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #35443c;
  font-size: 1.28rem;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  width: min(650px, 100%);
  min-height: 58px;
  margin-top: 34px;
  border: 1px solid rgba(40, 86, 64, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-search input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.hero-search button,
.detail-button,
.copy-button {
  border: 0;
  background: var(--leaf);
  color: var(--surface);
  font-weight: 850;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.hero-search button:hover,
.detail-button:hover,
.copy-button:hover {
  background: var(--leaf-strong);
  box-shadow: 0 12px 26px rgba(40, 86, 64, 0.2);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-actions button,
.utility-button {
  border: 1px solid rgba(40, 86, 64, 0.18);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--leaf-strong);
  font-weight: 750;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.quick-actions button:hover,
.quick-actions button:focus-visible,
.utility-button:hover,
.utility-button:focus-visible,
.utility-button[aria-pressed="true"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--surface);
}

.quick-actions button:hover,
.quick-actions button:focus-visible,
.utility-button:hover,
.utility-button:focus-visible {
  box-shadow: 0 12px 26px rgba(23, 32, 28, 0.12);
  transform: translateY(-2px);
}

.hero-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-self: end;
  justify-self: end;
  width: min(280px, 100%);
}

.hero-proof span {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  box-shadow: 0 12px 32px rgba(23, 32, 28, 0.08);
  backdrop-filter: blur(8px);
  animation: fade-up 680ms ease both;
}

.hero-proof span:nth-child(2) {
  animation-delay: 110ms;
}

.hero-proof span:nth-child(3) {
  animation-delay: 190ms;
}

.hero-proof strong {
  color: var(--leaf-strong);
  font-size: 1.32rem;
  line-height: 1.1;
}

.hero-proof small {
  font-size: 0.88rem;
}

.signal-band {
  padding: 34px 0;
  background:
    linear-gradient(90deg, rgba(238, 245, 240, 0.86), rgba(255, 255, 255, 0.9)),
    var(--surface);
  border-top: 1px solid rgba(221, 228, 222, 0.74);
  border-bottom: 1px solid rgba(221, 228, 222, 0.74);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(40, 86, 64, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(23, 32, 28, 0.08);
  backdrop-filter: blur(14px);
}

.signal-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding: 24px 26px;
}

.signal-grid article + article {
  border-left: 1px solid rgba(40, 86, 64, 0.12);
}

.signal-grid span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #fff4de;
  color: #aa741d;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
}

.signal-grid h2,
.signal-grid p,
.today-card h3,
.today-card p,
.section-heading p,
.flower-card p,
.scene-card p,
.journal-list p,
.contact-section p,
.contact-panel p,
.app-feature-list p {
  margin: 0;
}

.signal-grid h2 {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.signal-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.today-band {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.95), rgba(236, 246, 241, 0.95)),
    #f8f2e8;
  color: var(--ink);
  border-bottom: 1px solid rgba(221, 228, 222, 0.74);
}

.today-band::before {
  content: "";
  position: absolute;
  inset: auto -12% -36% 42%;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(184, 79, 103, 0.14), rgba(184, 79, 103, 0));
}

.today-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: center;
}

.today-band .eyebrow {
  color: var(--rose);
}

.today-band h2,
.content-section h2,
.scene-section h2,
.app-section h2,
.contact-section h2 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.today-copy p:not(.eyebrow) {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.today-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(40, 86, 64, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.today-visual {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
}

.today-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.today-visual figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--leaf-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.today-content {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
}

.today-meta {
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-card h3 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.1;
}

.today-meaning {
  color: #283b32;
  font-size: 1.08rem;
  font-weight: 850;
}

.today-fit {
  color: var(--muted);
}

.today-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-tags span {
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--mist);
  color: var(--leaf-strong);
  font-size: 0.82rem;
  font-weight: 750;
}

.today-link {
  justify-self: start;
  min-height: 38px;
  border: 1px solid rgba(40, 86, 64, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--leaf);
  color: var(--surface);
  font-weight: 800;
}

.today-link:hover,
.today-link:focus-visible {
  background: var(--leaf-strong);
}

.content-section,
.scene-section,
.app-section,
.contact-section {
  padding: 88px 0;
}

.finder-section {
  background: var(--paper);
}

.scene-section {
  background: #eef4f2;
}

.journal-section {
  background: var(--surface);
}

.app-section {
  background: #f6f0f2;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow),
.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-lead {
  max-width: 700px;
  margin: 14px 0 0;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.tool-row input,
.tool-row select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.tool-row input:focus,
.tool-row select:focus,
.hero-search:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(40, 86, 64, 0.12);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.chip-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--muted);
}

.chip-row button[aria-pressed="true"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--surface);
}

.result-meta {
  min-height: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.result-meta strong {
  color: var(--leaf-strong);
}

.flower-grid,
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flower-card,
.scene-card {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 32, 28, 0.06);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
  will-change: transform;
}

.flower-card:hover,
.flower-card:focus-within,
.scene-card:hover,
.scene-card:focus-within {
  border-color: rgba(40, 86, 64, 0.24);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.flower-card {
  overflow: hidden;
  gap: 12px;
  min-height: 438px;
  padding: 0;
}

.flower-thumb {
  position: relative;
  height: 176px;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
}

.flower-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(23, 32, 28, 0.08));
}

.flower-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.flower-card:hover .flower-thumb img,
.flower-card:focus-within .flower-thumb img {
  transform: scale(1.045);
}

.flower-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.flower-color {
  width: 48px;
  height: 8px;
  border-radius: 999px;
  background: var(--rose);
}

.favorite-button,
.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--leaf);
  font-size: 1.3rem;
  line-height: 1;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.favorite-button:hover,
.favorite-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
}

.favorite-button[data-active="true"] {
  border-color: #deb45e;
  background: #fff4d7;
  color: #9d6817;
}

.flower-card h3,
.scene-card h3,
.journal-list h3 {
  margin: 0;
  letter-spacing: 0;
}

.flower-card h3 {
  font-size: 1.45rem;
  padding: 0 22px;
}

.latin {
  color: var(--subtle);
  font-size: 0.9rem;
  font-style: italic;
  padding: 0 22px;
}

.meaning {
  color: #2d3d35;
  font-weight: 750;
  padding: 0 22px;
}

.card-fit {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding: 0 22px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--mist);
  color: var(--leaf-strong);
  font-size: 0.82rem;
}

.detail-button {
  align-self: end;
  min-height: 42px;
  margin: 4px 22px 22px;
  border-radius: 8px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.pagination[hidden] {
  display: none;
}

.pagination button {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--leaf-strong);
  font-weight: 800;
}

.pagination button:hover,
.pagination button:focus-visible,
.pagination button[aria-current="page"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--surface);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.scene-card {
  gap: 12px;
  min-height: 260px;
  padding: 22px;
  border-top: 4px solid var(--amber);
}

.scene-card:nth-child(2n) {
  border-top-color: var(--rose);
}

.scene-card:nth-child(3n) {
  border-top-color: var(--blue);
}

.scene-card p {
  color: var(--muted);
}

.scene-card strong {
  color: var(--leaf-strong);
}

.scene-card button {
  justify-self: start;
  align-self: end;
  min-height: 38px;
  border: 1px solid rgba(40, 86, 64, 0.22);
  border-radius: 8px;
  padding: 0 13px;
  background: transparent;
  color: var(--leaf-strong);
  font-weight: 800;
}

.scene-card button:hover,
.scene-card button:focus-visible {
  background: var(--leaf);
  color: var(--surface);
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: center;
}

.journal-layout .section-heading {
  grid-column: 1;
  margin-bottom: 18px;
}

.journal-list {
  grid-column: 1;
  display: grid;
  gap: 18px;
}

.journal-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
  box-shadow: var(--shadow);
}

.journal-visual img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.01);
  transition:
    filter 420ms ease,
    transform 620ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.journal-visual:hover img,
.journal-visual:focus-within img {
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.035);
}

.journal-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(23, 32, 28, 0.12);
  backdrop-filter: blur(12px);
}

.journal-visual strong {
  color: var(--leaf-strong);
  font-size: 1rem;
}

.journal-visual span {
  color: var(--muted);
  font-size: 0.92rem;
}

.journal-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.journal-list span {
  grid-row: span 2;
  color: var(--rose);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.2;
}

.journal-list p {
  color: var(--muted);
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  gap: 54px;
  align-items: center;
}

.app-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.app-feature-list p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(184, 79, 103, 0.16);
}

.app-feature-list strong {
  color: var(--leaf-strong);
}

.app-feature-list span {
  color: var(--muted);
}

.miniapp-preview {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(310px, 100%);
  padding: 12px;
  border: 1px solid rgba(23, 32, 28, 0.16);
  border-radius: 30px;
  background: #1d2622;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 82px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.phone-screen {
  display: grid;
  gap: 12px;
  min-height: 468px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 244, 0.98)),
    var(--surface);
}

.phone-title {
  margin: 0;
  color: var(--leaf-strong);
  font-size: 1.55rem;
  font-weight: 900;
}

.phone-search {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
}

.phone-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: var(--mist);
}

.phone-card p,
.miniapp-qr figcaption {
  margin: 0;
  color: var(--muted);
}

.miniapp-qr {
  align-self: end;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(40, 86, 64, 0.14);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.miniapp-qr img {
  display: block;
  width: min(100%, 188px);
  height: auto;
  border-radius: 6px;
}

.miniapp-qr figcaption {
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-section {
  background: #f2f4ee;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
}

.contact-section p {
  max-width: 720px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-panel a {
  color: var(--leaf);
  font-size: 1.35rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 24px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.88rem;
}

.footer-layout p {
  margin: 0;
}

.record-text {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.record-text a:hover,
.record-text a:focus-visible {
  color: var(--surface);
  text-decoration: underline;
}

.plain-page {
  min-height: calc(100vh - 72px);
  padding: 92px 0;
  background: var(--paper);
}

.plain-layout {
  max-width: 820px;
}

.plain-layout h1 {
  margin: 0 0 18px;
  font-size: 3.4rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.plain-layout h2 {
  margin: 34px 0 10px;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.plain-layout p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.plain-layout a {
  color: var(--leaf);
  font-weight: 800;
}

.detail-dialog {
  width: min(660px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(12, 18, 14, 0.42);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.dialog-latin {
  margin: 4px 0 14px;
  color: var(--subtle);
  font-style: italic;
}

.dialog-visual {
  height: 220px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.dialog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-meaning {
  margin: 0;
  color: #2d3d35;
  font-weight: 750;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.detail-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  color: var(--leaf);
  font-weight: 900;
}

.detail-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.copy-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 24px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 600px;
    padding: 70px 0 62px;
  }

  .hero-layout,
  .today-layout,
  .journal-layout,
  .contact-layout,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .journal-layout .section-heading,
  .journal-list,
  .journal-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .journal-visual,
  .journal-visual img {
    min-height: 440px;
  }

  .hero-content {
    min-height: auto;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
  }

  .signal-grid,
  .flower-grid,
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid article + article {
    border-top: 1px solid rgba(40, 86, 64, 0.12);
    border-left: 0;
  }

  .tool-row {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 640px) {
  .section-inner {
    width: min(100% - 32px, 720px);
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: visible;
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.9rem;
    white-space: normal;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 560px;
    padding: 52px 0 42px;
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(248, 247, 242, 0.98) 0%, rgba(248, 247, 242, 0.9) 62%, rgba(248, 247, 242, 0.58) 100%),
      linear-gradient(0deg, rgba(23, 32, 28, 0.18), rgba(23, 32, 28, 0.02));
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-search,
  .tool-row,
  .flower-grid,
  .scene-grid,
  .hero-proof,
  .app-feature-list p {
    grid-template-columns: 1fr;
  }

  .today-card {
    grid-template-columns: 1fr;
  }

  .today-visual {
    min-height: 240px;
  }

  .today-content {
    padding: 24px;
  }

  .flower-thumb {
    height: 160px;
  }

  .hero-search input {
    min-height: 54px;
  }

  .hero-search button {
    min-height: 50px;
  }

  .today-band h2,
  .content-section h2,
  .scene-section h2,
  .app-section h2,
  .contact-section h2,
  .plain-layout h1 {
    font-size: 2.25rem;
  }

  .content-section,
  .scene-section,
  .app-section,
  .contact-section {
    padding: 62px 0;
  }

  .flower-card,
  .scene-card {
    min-height: auto;
  }

  .journal-visual,
  .journal-visual img {
    min-height: 320px;
  }

  .journal-visual figcaption {
    position: static;
    border-color: var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .footer-layout {
    flex-direction: column;
  }

  .record-text {
    justify-content: flex-start;
  }

  .dialog-head h2 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .flower-card:hover,
  .flower-card:focus-within,
  .scene-card:hover,
  .scene-card:focus-within,
  .quick-actions button:hover,
  .quick-actions button:focus-visible,
  .utility-button:hover,
  .utility-button:focus-visible {
    transform: none;
  }
}
