@charset "UTF-8";

:root {
  --pink: #e95183;
  --pink-dark: #d94273;
  --blush: #f7b5cc;
  --wine: #5b1730;
  --wine-deep: #401020;
  --cream: #fff9f3;
  --paper: #fffdf9;
  --ink: #1e1a1c;
  --body: #655960;
  --line: #dfcfd5;
  --soft: #fff1f5;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: rgba(255, 253, 249, 0.98);
  border-bottom: 1px solid var(--line);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

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

.brand-copy strong {
  font-size: 23px;
  font-weight: 900;
}

.brand-copy small {
  margin-top: 5px;
  color: #8b7b82;
  font-size: 13px;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: var(--header-height);
}

.main-nav li,
.main-nav a {
  height: 100%;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 4px;
  content: "";
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--pink-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-download,
.menu-toggle {
  display: none;
}

.section {
  padding: 96px 0;
}

.section-code,
.micro-label {
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -2px;
}

.section-heading p:last-child {
  margin-top: 12px;
  color: var(--body);
  font-size: 17px;
}

.section-number {
  color: rgba(91, 23, 48, 0.12);
  font-size: 92px;
  font-weight: 900;
  line-height: 0.85;
}

.hero {
  position: relative;
  min-height: 1110px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream), #fde7ef);
}

.hero-orb {
  position: absolute;
  top: 80px;
  right: -110px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(247, 181, 204, 0.28);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 390px 380px 1fr;
  gap: 45px;
  padding-top: 86px;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(66px, 7vw, 102px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -5px;
}

.hero-copy h2 {
  margin-top: 20px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.hero-desc {
  margin-top: 22px;
  color: var(--body);
  font-size: 17px;
}

.product-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 9px 16px;
  color: #7d6871;
  background: var(--paper);
  border: 1px solid #ecd5de;
  border-radius: 24px;
  font-size: 13px;
}

.product-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

.hero-search {
  position: relative;
  margin-top: 92px;
  padding: 30px;
  background: var(--paper);
  border: 2px solid var(--wine);
}

.hero-search::before {
  position: absolute;
  top: -2px;
  right: -2px;
  left: -2px;
  height: 9px;
  content: "";
  background: var(--pink);
}

.hero-search h3 {
  margin-top: 10px;
  font-size: 25px;
}

.quick-search-form {
  display: flex;
  margin-top: 22px;
  background: var(--soft);
  border: 1px solid #e8cbd5;
}

.quick-search-form input {
  min-width: 0;
  height: 54px;
  flex: 1;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.quick-search-form button {
  width: 54px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.search-feedback {
  min-height: 22px;
  margin-top: 14px;
  color: #8a7880;
  font-size: 13px;
}

.phone-stage {
  display: flex;
  justify-content: center;
  padding-top: 300px;
}

.phone-shell {
  width: 350px;
  height: 700px;
  padding: 14px;
  background: var(--ink);
  border-radius: 54px;
  box-shadow: 0 26px 52px rgba(91, 23, 48, 0.2);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 42px;
}

.phone-screen::before {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: 90px;
  height: 23px;
  content: "";
  background: var(--ink);
  border-radius: 14px;
  transform: translateX(-50%);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  height: 36px;
  padding: 10px 20px 0;
  color: #fff;
  background: var(--pink);
  font-size: 11px;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #fff;
  background: var(--pink);
}

.phone-head strong {
  font-size: 23px;
}

.phone-head span {
  flex: 1;
  padding: 9px 14px;
  color: #ad8d99;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  font-size: 11px;
}

.phone-tabs {
  display: flex;
  justify-content: space-around;
  padding: 13px 12px;
  color: #a08c94;
  border-bottom: 1px solid #f0e2e7;
  font-size: 12px;
}

.phone-tabs b {
  color: var(--pink);
}

.phone-feature {
  display: grid;
  min-height: 148px;
  margin: 16px;
  padding: 24px;
  color: #fff;
  background: radial-gradient(circle at 86% 28%, var(--pink) 0 28%, transparent 29%), var(--wine);
  border-radius: 18px;
}

.phone-feature small {
  color: var(--blush);
  font-size: 10px;
  font-weight: 800;
}

.phone-feature strong {
  font-size: 24px;
}

.phone-feature span {
  color: #f0ceda;
  font-size: 11px;
}

.phone-screen > h3 {
  padding: 4px 18px 12px;
  font-size: 18px;
}

.phone-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.phone-covers article {
  display: grid;
  gap: 8px;
  font-size: 11px;
}

.cover {
  position: relative;
  display: block;
  height: 134px;
  overflow: hidden;
  border-radius: 10px;
}

.cover::before,
.cover::after {
  position: absolute;
  content: "";
}

.cover-one {
  background: var(--blush);
}

.cover-one::before {
  top: 24px;
  left: 20px;
  width: 52px;
  height: 52px;
  background: #fff4f7;
  border-radius: 50%;
}

.cover-one::after {
  right: 12px;
  bottom: -14px;
  left: 12px;
  height: 72px;
  background: var(--pink);
  border-radius: 50% 50% 0 0;
}

.cover-two {
  background: var(--wine);
}

.cover-two::before {
  top: 26px;
  left: 24px;
  width: 52px;
  height: 52px;
  background: var(--pink);
  border-radius: 50%;
}

.cover-two::after {
  right: -10px;
  bottom: 12px;
  width: 92px;
  height: 42px;
  background: var(--blush);
  transform: rotate(-18deg);
}

.cover-three {
  background: #f2d36d;
}

.cover-three::before {
  top: 26px;
  left: 18px;
  width: 64px;
  height: 84px;
  background: var(--pink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.cover-three::after {
  top: 55px;
  left: 42px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}

.phone-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 18px 12px;
  color: #a6969d;
  background: #fff;
  border-top: 1px solid #f0e2e7;
  font-size: 11px;
}

.phone-nav b {
  color: var(--pink);
}

.hero-side {
  padding-top: 170px;
}

.trend-brief {
  background: var(--paper);
  border: 2px solid var(--wine);
}

.trend-head {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  color: #fff;
  background: var(--wine);
  font-size: 14px;
}

.trend-brief ol {
  padding: 18px 22px 8px;
}

.trend-brief li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.trend-brief li span,
.trend-brief li em {
  color: var(--pink);
  font-style: normal;
}

.trend-brief > small {
  display: block;
  padding: 4px 22px 20px;
  color: #8b7880;
}

.hero-download {
  margin-top: 34px;
  padding: 30px;
  color: #fff;
  background: var(--pink);
}

.hero-download > p {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.hero-download h3 {
  margin-top: 8px;
  font-size: 28px;
}

.download-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.download-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 54px;
  gap: 8px;
  color: #fff;
  background: var(--wine);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.download-links .ios-link {
  color: var(--wine);
  background: #fff;
}

.hero-wave {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: -120px;
  left: -4%;
  height: 280px;
  background: var(--wine);
  border-radius: 50% 50% 0 0;
}

i[class^="icon-"] {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

i[class^="icon-"]::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-search::before {
  background-image: url("../icons/search.svg");
}

.icon-download::before {
  background-image: url("../icons/download.svg");
}

.icon-android::before {
  background-image: url("../icons/android.svg");
}

.icon-ios::before {
  background-image: url("../icons/ios.svg");
}

.icon-bell::before {
  background-image: url("../icons/bell.svg");
}

.icon-arrow::before {
  background-image: url("../icons/arrow.svg");
}

.icon-plus::before {
  background-image: url("../icons/plus.svg");
}

.discovery {
  background: var(--cream);
}

.discovery-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 500px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 24px solid var(--pink);
}

.search-workspace {
  padding: 46px;
}

.radar-search label,
.filter-block > p {
  display: block;
  margin-bottom: 13px;
  color: #88767e;
  font-size: 14px;
  font-weight: 800;
}

.radar-search > div {
  display: flex;
}

.radar-search input {
  min-width: 0;
  height: 64px;
  flex: 1;
  padding: 0 20px;
  background: var(--soft);
  border: 2px solid var(--wine);
  outline: 0;
}

.radar-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  gap: 8px;
  color: #fff;
  background: var(--wine);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.radar-search button .icon-search::before {
  filter: brightness(0) invert(1);
}

.filter-block {
  margin-top: 32px;
}

.chip-list,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list button {
  padding: 9px 17px;
  background: var(--soft);
  border: 1px solid #e9ccd6;
  border-radius: 22px;
  cursor: pointer;
}

.chip-list button.selected {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.category-filter {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.category-tabs {
  gap: 0;
}

.category-tabs button {
  position: relative;
  padding: 10px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  content: "";
  background: transparent;
}

.category-tabs button.selected {
  color: var(--pink);
}

.category-tabs button.selected::after {
  background: var(--pink);
}

.radar-feedback {
  min-height: 22px;
  margin-top: 28px;
  color: var(--pink-dark);
  font-size: 14px;
}

.ranking-panel {
  padding: 42px 34px;
  border-left: 1px solid var(--line);
}

.ranking-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ranking-title p {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.ranking-title h3 {
  margin-top: 5px;
  font-size: 25px;
}

.ranking-switch {
  display: flex;
}

.ranking-switch button {
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
}

.ranking-switch button.selected {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.ranking-panel ol {
  margin-top: 24px;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.ranking-panel li > span {
  color: #a38f98;
  font-size: 20px;
  font-weight: 900;
}

.ranking-panel li:first-child > span,
.ranking-panel li em {
  color: var(--pink);
}

.ranking-panel li div {
  display: grid;
}

.ranking-panel li small {
  color: #8c7a82;
}

.ranking-panel li em {
  font-size: 13px;
  font-style: normal;
}

.weekly-section {
  padding: 88px 0;
  color: #fff;
  background: var(--wine);
}

.light-heading h2,
.light-heading .section-number {
  color: #fff;
}

.light-heading .section-code {
  color: var(--blush);
}

.light-heading p:last-child {
  color: #dfbdc9;
}

.light-heading .section-number {
  opacity: 0.08;
}

.week-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 22px;
  background: var(--cream);
}

.week-timeline button {
  display: grid;
  min-width: 0;
  min-height: 250px;
  padding: 22px 18px;
  text-align: left;
  background: var(--paper);
  border: 1px solid #ead9df;
  cursor: pointer;
}

.week-timeline button small {
  color: #928087;
  font-size: 12px;
}

.week-timeline button b {
  margin-top: 10px;
  font-size: 22px;
}

.week-timeline button strong {
  align-self: end;
  color: var(--pink);
  font-size: 42px;
}

.week-timeline button span {
  color: #846f78;
  font-size: 12px;
}

.week-timeline button em {
  align-self: end;
  justify-self: start;
  margin-top: 18px;
  padding: 6px 14px;
  color: var(--wine);
  background: var(--soft);
  border-radius: 18px;
  font-size: 12px;
  font-style: normal;
}

.week-timeline button.selected {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.week-timeline button.selected small,
.week-timeline button.selected strong,
.week-timeline button.selected span {
  color: #fff;
}

.week-timeline button.selected em {
  color: #fff;
  background: var(--wine);
}

.week-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  color: #e7cbd5;
}

.week-feedback button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--wine);
  background: var(--blush);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.week-feedback button.active {
  color: #fff;
  background: var(--pink);
}

.topics-section {
  padding-bottom: 84px;
}

.topic-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.05fr;
  grid-template-rows: 160px 160px;
  gap: 20px;
}

.topic-mosaic button {
  position: relative;
  display: grid;
  align-content: start;
  padding: 28px;
  overflow: hidden;
  text-align: left;
  border: 1px solid #e7cbd5;
  cursor: pointer;
}

.topic-mosaic button small {
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.topic-mosaic button strong {
  margin-top: 8px;
  font-size: 25px;
}

.topic-mosaic button span {
  margin-top: 6px;
  color: #75656d;
  font-size: 13px;
}

.topic-main {
  grid-row: 1 / 3;
  color: #fff;
  background: var(--pink);
  border: 0 !important;
}

.topic-main::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  content: "";
  background: radial-gradient(circle, var(--blush) 0 42%, var(--wine) 43% 68%, transparent 69%);
  border-radius: 50%;
}

.topic-main small,
.topic-main span {
  color: #fff !important;
}

.topic-main strong {
  font-size: 40px !important;
}

.topic-main em {
  margin-top: 90px;
  font-style: normal;
  font-weight: 800;
}

.topic-short {
  background: var(--soft);
}

.topic-girl {
  background: var(--blush);
}

.topic-adventure {
  color: #fff;
  background: var(--wine);
}

.topic-adventure small {
  color: var(--blush) !important;
}

.topic-finished {
  grid-column: 3;
  background: #fff;
  border: 2px solid var(--wine) !important;
}

.topic-finished .icon-arrow {
  position: absolute;
  right: 28px;
  bottom: 30px;
}

.topic-feedback {
  min-height: 24px;
  margin-top: 20px;
  color: var(--pink-dark);
}

.showcase-section {
  padding: 88px 0 94px;
  background: #fff;
}

.compact-heading {
  margin-bottom: 34px;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.screenshot-strip figure > div {
  height: 500px;
  overflow: hidden;
  background: var(--soft);
  border: 3px solid var(--wine);
  border-radius: 22px;
}

.screenshot-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-strip figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
}

.screenshot-strip figcaption b {
  margin-right: 10px;
  color: var(--pink);
}

.reader-section {
  background: var(--cream);
}

.reader-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  min-height: 590px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.reader-preview {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 36px;
  background: #f2ebe6;
  transition: background 0.2s ease, filter 0.2s ease;
}

.reader-preview.theme-warm {
  background: #f5e6bf;
}

.reader-preview.theme-dark {
  background: #202024;
}

.reader-preview.immersive .reader-toolbar,
.reader-preview.immersive .reader-progress {
  opacity: 0.18;
}

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  color: #fff;
  background: var(--wine);
  transition: opacity 0.2s ease;
}

.comic-page {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c9bdc1;
}

.panel {
  position: relative;
  overflow: hidden;
  background: #e7dce0;
  border: 3px solid var(--ink);
}

.panel::before,
.panel::after {
  position: absolute;
  content: "";
}

.panel-a {
  grid-row: 1 / 3;
  background: linear-gradient(150deg, #f7b5cc 0 42%, #5b1730 43% 100%);
}

.panel-a::before {
  top: 18%;
  left: 24%;
  width: 130px;
  height: 130px;
  background: #fff4f7;
  border: 7px solid var(--ink);
  border-radius: 50%;
}

.panel-a::after {
  right: -14%;
  bottom: -16%;
  width: 75%;
  height: 60%;
  background: var(--pink);
  border: 7px solid var(--ink);
  border-radius: 50% 50% 0 0;
}

.panel-b {
  background: repeating-linear-gradient(135deg, #fff 0 12px, #ecdfe4 12px 24px);
}

.panel-b::before {
  top: 16%;
  left: 24%;
  width: 52%;
  height: 62%;
  background: var(--wine);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.panel-c {
  background: var(--blush);
}

.panel-c::before {
  top: 20%;
  left: 28%;
  width: 44%;
  height: 56%;
  background: var(--pink);
  border: 6px solid var(--ink);
  border-radius: 50%;
}

.speech {
  position: absolute;
  top: 42%;
  left: 34%;
  padding: 13px 20px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.reader-progress {
  height: 7px;
  overflow: hidden;
  background: #ddcfd4;
  transition: opacity 0.2s ease;
}

.reader-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--pink);
}

.reader-controls {
  padding: 34px 38px;
  border-left: 1px solid var(--line);
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.control-row > span,
.control-row label,
.control-row div > span {
  font-weight: 800;
}

.control-row div > small {
  display: block;
  margin-top: 4px;
  color: #8c7b82;
}

.segmented {
  display: flex;
}

.segmented button {
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.segmented button.selected {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.brightness-row input {
  flex: 1;
  accent-color: var(--pink);
}

.brightness-row output {
  width: 46px;
  color: var(--pink);
  text-align: right;
  font-weight: 800;
}

.theme-switcher {
  display: flex;
  gap: 12px;
}

.theme-switcher button {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 2px solid #c7b7bd;
  border-radius: 50%;
  cursor: pointer;
}

.theme-switcher button:nth-child(2) {
  background: #f5e6bf;
}

.theme-switcher button:nth-child(3) {
  background: #202024;
}

.theme-switcher button.selected {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.switch {
  position: relative;
  width: 56px;
  height: 30px;
  padding: 0;
  background: #e2d5da;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
}

.switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s ease;
}

.switch.active {
  background: var(--pink);
}

.switch.active span {
  left: 30px;
}

.save-reader {
  width: 100%;
  height: 54px;
  margin-top: 26px;
  color: #fff;
  background: var(--wine);
  border: 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.reader-feedback {
  min-height: 22px;
  margin-top: 12px;
  color: var(--pink-dark);
  font-size: 13px;
}

.reviews-section {
  padding: 88px 0;
  background: #fde9f0;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.review-summary {
  min-height: 100%;
  padding: 34px;
  color: #fff;
  background: var(--wine);
}

.review-summary > strong {
  color: var(--blush);
  font-size: 64px;
  line-height: 1;
}

.stars {
  margin-top: 14px;
  color: var(--pink);
  letter-spacing: 4px;
}

.review-summary > p {
  margin-top: 10px;
  color: #e0beca;
  font-size: 14px;
}

.review-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid #865069;
}

.review-sort button {
  padding: 9px 12px;
  color: #fff;
  background: transparent;
  border: 1px solid #a36981;
  cursor: pointer;
}

.review-sort button.selected {
  background: var(--pink);
  border-color: var(--pink);
}

.review-content {
  display: grid;
  gap: 20px;
}

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

.review-card {
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border: 1px solid #d8bcc7;
}

.review-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-card h3 {
  font-size: 17px;
}

.review-card time {
  color: #8c7b82;
  font-size: 12px;
}

.review-card header > span {
  color: var(--pink);
  letter-spacing: 3px;
  white-space: nowrap;
}

.review-card > p {
  margin-top: 22px;
  line-height: 1.8;
}

.review-card footer {
  margin-top: 20px;
  padding-top: 14px;
  color: #907f86;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.review-form {
  padding: 28px;
  background: var(--paper);
  border: 1px solid #d8bcc7;
}

.form-heading p {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.form-heading h3 {
  margin-top: 4px;
  font-size: 25px;
}

.review-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.review-fields label,
.review-message,
.review-fields legend {
  color: #65565d;
  font-size: 13px;
  font-weight: 800;
}

.review-fields input[type="text"],
.review-message textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid #d8bcc7;
  outline: 0;
}

.review-fields fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-input {
  display: flex;
  align-items: center;
  height: 52px;
  margin-top: 8px;
  padding: 0 12px;
  background: var(--soft);
  border: 1px solid #d8bcc7;
}

.rating-input button {
  padding: 3px 6px;
  color: #c9b9bf;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}

.rating-input button.active {
  color: var(--pink);
}

.review-message {
  display: block;
  margin-top: 18px;
}

.review-message textarea {
  min-height: 106px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.form-actions span {
  color: #8a7880;
  font-size: 12px;
}

.form-actions button {
  min-width: 140px;
  height: 48px;
  color: #fff;
  background: var(--pink);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.form-feedback {
  min-height: 22px;
  margin-top: 10px;
  color: var(--pink-dark);
  font-size: 13px;
}

.faq-section {
  padding: 88px 0;
  background: var(--cream);
}

.faq-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 60px;
}

.faq-title h2 {
  margin-top: 10px;
  font-size: 50px;
  line-height: 1.15;
}

.faq-title > p:last-child {
  margin-top: 14px;
  color: var(--body);
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  padding: 0 22px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.faq-item > button span {
  display: flex;
  align-items: center;
  gap: 24px;
}

.faq-item > button b {
  color: var(--pink);
  font-size: 13px;
}

.faq-item.open .icon-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 66px 22px;
  color: var(--body);
}

.final-download {
  padding: 70px 0;
  color: #fff;
  background: var(--wine);
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.download-inner > div:first-child p {
  color: var(--blush);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.download-inner h2 {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1.2;
}

.download-inner > div:first-child span {
  display: block;
  margin-top: 12px;
  color: #dfbdc9;
}

.final-download-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 0 0 470px;
}

.final-download-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 74px;
  gap: 12px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
  white-space: nowrap;
}

.final-download-links a > span {
  display: grid;
  line-height: 1.3;
}

.final-download-links small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}

.final-download-links .ios-link {
  color: var(--wine);
  background: var(--cream);
}

.site-footer {
  padding: 28px 0;
  color: #b895a3;
  background: var(--wine-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-inner p {
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  visibility: hidden;
  background: var(--pink);
  border: 2px solid var(--wine);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
}

.icon-top::before {
  background-image: url("../images/top.png");
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    padding-bottom: 150px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .hero-side {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 0;
  }

  .hero-download {
    margin-top: 0;
  }

  .phone-stage {
    padding-top: 170px;
  }

  .main-nav a {
    padding: 0 14px;
  }

  .main-nav a::after {
    right: 14px;
    left: 14px;
  }

  .week-timeline {
    overflow-x: auto;
    grid-template-columns: repeat(7, 150px);
    scrollbar-width: thin;
  }

  .screenshot-strip {
    overflow-x: auto;
    grid-template-columns: repeat(4, 270px);
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .screenshot-strip figure {
    scroll-snap-align: start;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    height: var(--header-height);
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 18px 14px;
    background: rgba(255, 249, 243, 0.99);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    display: grid;
    align-content: start;
    height: auto;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
  }

  .main-nav li,
  .main-nav a {
    height: auto;
  }

  .main-nav a {
    min-height: 58px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .header-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin-left: auto;
    padding: 0 14px;
    gap: 6px;
    color: #fff;
    background: var(--pink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .header-download .icon-download {
    width: 18px;
    height: 18px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 42px;
    margin-left: 8px;
    place-content: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--wine);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wine);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section,
  .weekly-section,
  .showcase-section,
  .reviews-section,
  .faq-section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-number {
    display: none;
  }

  .hero {
    padding-bottom: 120px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 58px;
  }

  .hero-copy h1 {
    font-size: 76px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .hero-search {
    margin-top: 44px;
  }

  .phone-stage {
    padding-top: 0;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .discovery-workbench {
    grid-template-columns: 1fr;
    border-left-width: 12px;
  }

  .ranking-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .topic-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }

  .topic-main {
    grid-row: 1 / 3;
  }

  .topic-finished {
    grid-column: 1 / -1;
  }

  .reader-workbench {
    grid-template-columns: 1fr;
  }

  .reader-preview {
    min-height: 580px;
  }

  .reader-controls {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .review-summary {
    min-height: 250px;
  }

  .review-sort {
    margin-top: 24px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .final-download-links {
    flex: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand-copy small {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .header-download {
    height: 40px;
    padding: 0 10px;
  }

  .header-download span {
    font-size: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 40px;
  }

  .hero-grid {
    padding-top: 46px;
  }

  .hero-copy h1 {
    font-size: 62px;
  }

  .hero-copy h2 {
    font-size: 29px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .product-note {
    align-items: center;
    border-radius: 8px;
  }

  .hero-search {
    padding: 25px 20px;
  }

  .phone-shell {
    width: min(100%, 350px);
    height: 690px;
  }

  .hero-side {
    min-width: 0;
  }

  .download-links {
    grid-template-columns: 1fr 1fr;
  }

  .download-links a {
    padding: 0 8px;
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .section-heading p:last-child {
    font-size: 15px;
  }

  .search-workspace,
  .ranking-panel {
    padding: 28px 20px;
  }

  .radar-search > div {
    display: grid;
  }

  .radar-search button {
    width: 100%;
    height: 50px;
  }

  .category-tabs button {
    padding: 9px 13px;
  }

  .week-timeline {
    margin-right: -12px;
    padding: 16px 12px;
  }

  .week-feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .topic-mosaic button {
    min-height: 150px;
  }

  .topic-main,
  .topic-finished {
    grid-row: auto;
    grid-column: auto;
  }

  .topic-main {
    min-height: 280px !important;
  }

  .screenshot-strip {
    grid-template-columns: repeat(4, min(78vw, 280px));
  }

  .screenshot-strip figure > div {
    height: 470px;
  }

  .reader-preview {
    min-height: 500px;
    padding: 18px;
  }

  .reader-controls {
    padding: 24px 18px;
  }

  .control-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  .control-row > .switch {
    align-self: flex-end;
    margin-top: -48px;
  }

  .brightness-row input {
    width: 100%;
  }

  .review-list,
  .review-fields {
    grid-template-columns: 1fr;
  }

  .review-summary,
  .review-card,
  .review-form {
    padding: 22px;
  }

  .review-card header {
    gap: 8px;
  }

  .review-card header > span {
    letter-spacing: 1px;
  }

  .faq-title h2 {
    font-size: 40px;
  }

  .faq-item > button {
    min-height: 62px;
    padding: 0 16px;
  }

  .faq-item > button span {
    gap: 12px;
  }

  .faq-answer {
    padding: 0 44px 18px;
  }

  .download-inner h2 {
    font-size: 34px;
  }

  .final-download-links {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .final-download-links a {
    height: 68px;
    padding: 0 10px;
    font-size: 13px;
  }

  .final-download-links i {
    width: 20px !important;
    height: 20px !important;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
