:root {
  --orange: #ff9347;
  --orange-light: #ffd1ad;
  --orange-pale: #fff0e4;
  --brown: #573722;
  --brown-dark: #2d1c12;
  --milk: #fffaf5;
  --white: #ffffff;
  --pink: #ff6b73;
  --green: #2e7355;
  --line: rgba(87, 55, 34, 0.16);
  --shadow: 0 28px 70px rgba(87, 55, 34, 0.14);
  --radius-large: 2rem;
  --radius-medium: 1.35rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--milk);
  color: var(--brown-dark);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 3px solid var(--brown-dark);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--brown-dark);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header,
.hero,
.section,
footer {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  display: block;
  border-radius: 30%;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--brown-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: 4rem 5rem;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3rem, 4.8vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 span {
  color: var(--orange);
}

.hero-lead {
  max-width: 37rem;
  margin: 2rem 0;
  color: var(--brown);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-button {
  display: inline-flex;
  min-width: 10.75rem;
  min-height: 4rem;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-start;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 9px 24px rgba(87, 55, 34, 0.08);
  color: var(--brown-dark);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  opacity: 1;
  cursor: pointer;
}

button.store-button:disabled {
  cursor: not-allowed;
}

.store-button small {
  display: block;
  margin-bottom: 0.2rem;
  color: #7a6253;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
}

.store-mark {
  display: grid;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--brown-dark);
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1;
}

.store-mark-rustore {
  background: var(--orange);
  color: var(--brown-dark);
  font-weight: 950;
}

.store-button-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a.store-button-link,
a.store-button-link * {
  cursor: pointer !important;
}

.store-button-link:hover {
  border-color: #d7c3b4;
  transform: translateY(-1px);
}

.rustore-logo {
  display: block;
  width: 7.5rem;
  height: auto;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 40rem;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -3;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 46% 54% 56% 44% / 53% 44% 56% 47%;
  background: var(--orange);
  content: "";
  transform: rotate(-5deg);
}

.orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(87, 55, 34, 0.28);
  border-radius: 50%;
  animation: orbit-spin 18s linear infinite;
}

.orbit::after {
  position: absolute;
  top: 7%;
  left: 18%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--brown-dark);
  content: "";
}

.orbit-one {
  width: 104%;
  aspect-ratio: 1.2;
}

.orbit-two {
  width: 82%;
  aspect-ratio: 0.95;
  animation-direction: reverse;
  animation-duration: 24s;
}

.phone-shell {
  width: min(21.5rem, 74vw);
  padding: 0.7rem;
  border: 0.48rem solid var(--brown-dark);
  border-radius: 2.8rem;
  background: var(--milk);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  animation: phone-float 5s ease-in-out infinite;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem 0.9rem;
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 800;
}

.phone-shell-demo {
  position: relative;
  width: min(18rem, 74vw);
  padding: 0.25rem;
  overflow: visible;
  border: 0.2rem solid #777771;
  border-radius: 2.25rem;
  background: #171918;
  box-shadow:
    1px 1px 0 #e2dfd7,
    3px 2px 0 #858680,
    6px 4px 0 #434641,
    9px 6px 0 #242723,
    12px 8px 0 #111411,
    18px 20px 28px #2d1c1224,
    28px 40px 65px #2d1c1230;
  transform: perspective(1100px) rotateX(7deg) rotateY(-19deg) rotateZ(7deg);
  animation: none;
}

.phone-shell-demo::before {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  left: 50%;
  width: 3.5rem;
  height: 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at 86% 50%, #253747 0 2px, transparent 3px), #101211;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-shell-demo::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid #ffffff55;
  border-radius: inherit;
  background: linear-gradient(115deg, #ffffff12 0%, #ffffff06 28%, transparent 40%, transparent 75%, #ffffff08 100%);
  content: "";
  pointer-events: none;
}

.phone-hardware {
  position: absolute;
  top: 5.5rem;
  left: -0.4rem;
  width: 0.2rem;
  height: 1.75rem;
  border-radius: 0.15rem 0 0 0.15rem;
  background: linear-gradient(90deg, #292c28, #a2a49b);
  box-shadow: 0 2.25rem 0 #666a62;
}

.demo-app {
  position: relative;
  padding-top: 0.7rem;
  overflow: hidden;
  border-radius: 1.85rem;
  background: #fff8f5;
  color: #292421;
  font-family: system-ui, -apple-system, sans-serif;
}

.demo-app::after {
  position: absolute;
  bottom: 0.3rem;
  left: 35%;
  width: 30%;
  height: 0.2rem;
  border-radius: 999px;
  background: #292421;
  content: "";
}

.demo-status,
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 650;
}

.demo-toolbar {
  margin-block: 0.8rem;
}

.demo-toolbar > span:last-child,
.demo-card .app-city {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-toolbar svg,
.demo-card .app-city svg {
  width: 0.8rem;
  height: 0.8rem;
}

.demo-card .app-city svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.demo-card {
  margin: 0 0.65rem 0.7rem;
  padding: 0.85rem 0.7rem 0.7rem;
  border-radius: 1rem;
  background: #15100c;
  color: white;
}

.demo-card .app-city {
  width: max-content;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.65rem;
}

.demo-photo {
  position: relative;
  margin-inline: 0.3rem;
}

.demo-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
}

.demo-photo > span {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding-inline: 0.3rem;
  border-radius: 0.3rem;
  background: #ffffff40;
  font-size: 1.1rem;
}

.demo-name {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.1rem;
}

.demo-card .app-reviews {
  gap: 0.5rem;
  margin-block: 0.3rem 0.6rem;
}

.demo-card .app-reviews span:first-child {
  font-size: 1rem;
}

.demo-card .app-reviews span:last-child,
.demo-bio {
  font-size: 0.65rem;
}

.demo-bio {
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

.demo-info {
  font-size: 0.8rem;
}

.demo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
}

.demo-actions .app-action {
  width: 2rem;
  height: 2rem;
}

.demo-actions .app-score {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 0.9rem;
}

.demo-actions .app-action svg {
  width: 1.1rem;
  height: 1.1rem;
  transform: none;
}

.demo-actions .app-action:nth-child(2) svg {
  transform: rotate(180deg);
}

.demo-app .app-tabs {
  padding: 0.6rem 0.3rem 1rem;
}

.demo-app .app-tabs span {
  gap: 0.3rem;
  font-size: 0.55rem;
}

.demo-app .app-tabs svg {
  width: 1.2rem;
  height: 1.2rem;
}

.app-preview {
  background: #fff8f5;
}

.demo-mini-card {
  width: 11rem;
  padding: 0.7rem;
  border-radius: 0.8rem;
  background: #15100c;
  color: white;
}

.demo-mini-card .app-city {
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6rem;
}

.demo-mini-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.4rem;
  border-radius: 0.6rem;
}

.demo-mini-card strong {
  font-size: 0.85rem;
}

.demo-mini-reviews {
  display: block;
  color: #ffc400;
  font-size: 0.8rem;
}

.demo-mini-reviews small {
  color: #b7b4b2;
  font-size: 0.5rem;
}

.feature-search .profile-fan {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--orange);
}

.profile-fan .demo-mini-card {
  position: relative;
  flex: 0 1 9.25rem;
  min-width: 0;
  padding: 0.6rem;
  box-shadow: 0 10px 24px #57372230;
  transform: rotate(-9deg);
}

.profile-fan .demo-mini-card + .demo-mini-card {
  z-index: 1;
  margin-left: -1.25rem;
  transform: translateY(0.5rem) rotate(9deg);
}

.profile-fan .demo-mini-reviews small {
  display: block;
}

.app-actions-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.app-action,
.app-score {
  display: grid;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #292421;
}

.app-action svg,
.app-tabs svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-action:first-child svg {
  transform: rotate(180deg);
}

.app-score {
  width: 4rem;
  height: 4rem;
  background: var(--green);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}

.app-tabs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 1rem 0.25rem;
  background: white;
  color: #afa6a1;
}

.app-tabs span {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
}

.app-tabs .app-tab-active {
  color: #292421;
}

.app-profile-details {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: #15100c;
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
}

.app-profile-details h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: normal;
  line-height: 1.35;
}

.app-facts {
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0;
}

.app-facts > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-facts svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #b7b4b2;
  stroke-width: 2;
  stroke-linejoin: round;
}

.app-facts dt {
  color: #b7b4b2;
  font-size: 0.9rem;
}

.app-facts dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 650;
}

.app-detail-group {
  margin-top: 1.5rem;
}

.app-detail-group p {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.app-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-detail-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #ffdac6;
  color: #292421;
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.app-detail-tags svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #59524e;
  stroke-width: 2;
  stroke-linejoin: round;
}

.app-city {
  display: table;
  margin: 0 auto 2rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: white;
  color: #292421;
  font-weight: 700;
}

.app-reviews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-reviews span:first-child {
  color: #ffc400;
  font-size: 1.8rem;
}

.app-reviews span:last-child {
  color: #b7b4b2;
  text-decoration: underline;
}

.app-profile-details strong {
  font-size: 1.5rem;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(87, 55, 34, 0.16);
}

.profile-card-main {
  padding: 1rem;
}

.avatar {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  place-items: center;
  overflow: hidden;
  border-radius: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 6rem;
  font-weight: 900;
}

.avatar-mila {
  background: radial-gradient(circle at 50% 32%, #ffc690 0 18%, transparent 18.5%), linear-gradient(145deg, #c45f62, #603846);
}

.avatar-anton {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #698c8b, #304d50);
  font-size: 1.8rem;
}

.profile-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
}

.profile-heading strong,
.profile-heading span,
.profile-card-back strong,
.profile-card-back span,
.message-card strong,
.message-card span {
  display: block;
}

.profile-heading strong {
  font-size: 1.15rem;
}

.profile-heading div > span,
.profile-card-back div > span {
  color: #806958;
  font-size: 0.75rem;
}

.match-badge {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #dbf3e8;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.profile-card-main > p {
  margin: 0.85rem 0;
  color: var(--brown);
  font-size: 0.86rem;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trait-list li {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: var(--orange-pale);
  color: var(--brown);
  font-size: 0.68rem;
  font-weight: 800;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.1rem;
}

.profile-actions span {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brown);
  font-size: 1.6rem;
  font-weight: 700;
}

.profile-actions span:last-child {
  border-color: transparent;
  background: var(--pink);
  color: var(--white);
}

.profile-card-back,
.message-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  animation: card-float 6s ease-in-out infinite;
}

.profile-card-back {
  top: 12%;
  left: -2%;
  width: 12.5rem;
  transform: rotate(-6deg);
}

.message-card {
  right: -5%;
  bottom: 15%;
  width: 15rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(87, 55, 34, 0.16);
  animation-delay: -2s;
}

.message-card div > span {
  color: #806958;
  font-size: 0.72rem;
}

.mini-avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-light);
  font-weight: 900;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  max-width: 43rem;
  margin-bottom: 3rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.25rem, 3.8vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-heading > p:last-child,
.compatibility-copy > p:last-child,
.download > div > p:last-child {
  max-width: 37rem;
  margin: 1.4rem 0 0;
  color: var(--brown);
  font-size: 1.1rem;
}

.steps {
  border-top: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.step-grid li {
  min-height: 20rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--white);
}

.step-grid li:nth-child(2) {
  background: var(--orange);
}

.step-number {
  display: block;
  margin-bottom: 5rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.step-grid li:nth-child(2) .step-number {
  color: var(--brown-dark);
}

h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.step-grid p,
.feature-card > p:last-child {
  margin: 0.85rem 0 0;
  color: var(--brown);
}

.compatibility {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.trait-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1.25rem;
  border-radius: var(--radius-large);
  background: var(--brown-dark);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.trait {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #4b3325;
  color: #cdbbad;
  font-size: 0.82rem;
}

.trait b {
  color: var(--white);
  font-size: 1.15rem;
}

.trait-large {
  grid-column: span 2;
}

.trait-accent {
  background: var(--orange);
  color: var(--brown);
}

.trait-accent b {
  color: var(--brown-dark);
}

.features {
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, calc((100vw - 1180px) / 2));
  background: var(--orange-pale);
}

.feature-heading {
  width: min(100%, 1180px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.feature-card {
  grid-column: span 4;
  min-height: 34rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--white);
}

.feature-visual {
  position: relative;
  display: grid;
  height: 19rem;
  place-items: center;
  overflow: hidden;
  border-radius: 1.35rem;
  background: var(--orange);
}

.search-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
}

.mini-profile {
  display: flex;
  width: 78%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(87, 55, 34, 0.18);
  transform: rotate(-4deg);
}

.mini-profile span,
.heart-scene > span {
  display: grid;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-light);
  font-weight: 900;
}

.feature-like .feature-visual {
  background: var(--brown-dark);
}

.heart-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.heart-scene > span:last-child {
  background: #b9ddcf;
}

.heart-scene b {
  color: var(--pink);
  font-size: 3.5rem;
  animation: heart-beat 2s ease-in-out infinite;
}

.feature-chat .app-chat-preview {
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  justify-items: stretch;
  background: #fff8f5;
  color: #15100c;
  font-family: system-ui, -apple-system, sans-serif;
}

.app-chat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border-bottom: 1px solid #ebdfd9;
  background: white;
}

.app-chat-header img {
  flex: 0 0 auto;
  border-radius: 50%;
}

.app-chat-header strong {
  display: block;
  font-size: 0.8rem;
}

.app-chat-header small {
  display: block;
  color: #aaa29d;
  font-size: 0.6rem;
}

.app-chat-back,
.app-chat-menu {
  font-size: 1.6rem;
  line-height: 1;
}

.app-chat-menu {
  margin-left: auto;
}

.app-chat-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem;
}

.app-chat-date {
  align-self: center;
  padding: 0.2rem 0.6rem;
  border: 1px solid #ebdfd9;
  border-radius: 999px;
  background: white;
  color: #aaa29d;
  font-size: 0.6rem;
}

.app-chat-bubble {
  max-width: 90%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #ebdfd9;
  border-radius: 1rem;
  background: white;
  font-size: 0.72rem;
  line-height: 1.4;
}

.app-chat-bubble small {
  float: right;
  margin: 0.25rem 0 0 0.5rem;
  color: #aaa29d;
  font-size: 0.55rem;
}

.app-chat-outgoing {
  align-self: flex-end;
  border-color: transparent;
  background: #ffeee6;
}

.app-chat-outgoing small span {
  margin-left: 0.2rem;
  color: #15100c;
}

.app-chat-composer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-top: 1px solid #ebdfd9;
  background: white;
  color: #aaa29d;
}

.app-chat-composer > span {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid #b5aca7;
  border-radius: 0.8rem;
  font-size: 0.7rem;
}

.app-chat-composer svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.feature-index {
  margin: 1.3rem 0 0.55rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.download {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem 3rem;
}

.download-mark {
  display: grid;
  width: 10rem;
  height: 10rem;
  grid-row: span 2;
  place-items: center;
  border-radius: 2.8rem;
  background: var(--orange);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.download-mark img {
  border-radius: 2rem;
}

.store-row-footer {
  grid-column: 2;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--brown);
  font-size: 0.82rem;
}

footer p {
  max-width: 31rem;
}

.footer-placeholders a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-placeholders a:hover {
  color: var(--brown-dark);
}

.footer-placeholders {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1.2rem;
  color: #806958;
}

@keyframes orbit-spin {
  to { transform: rotate(1turn); }
}

@keyframes phone-float {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-0.75rem); }
}

@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.7rem; }
}

@keyframes heart-beat {
  0%, 100% { scale: 1; }
  50% { scale: 1.12; }
}

@media (max-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-visual {
    width: min(100%, 36rem);
    justify-self: center;
  }

  .profile-card-back {
    left: 0;
  }

  .message-card {
    right: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    grid-column: auto;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  footer {
    grid-template-columns: auto 1fr;
  }

  .footer-placeholders {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 48rem) {
  .phone-shell-demo {
    transform: perspective(1100px) rotateX(4deg) rotateY(-12deg) rotateZ(4deg);
  }

  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 2rem, 42rem);
  }

  .site-header {
    min-height: 4.75rem;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem 5rem;
  }

  h1 {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }

  .store-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-button {
    min-width: 0;
    width: 100%;
  }

  .store-button:last-child {
    grid-column: 1 / -1;
  }

  .hero-visual {
    min-height: 36rem;
  }

  .profile-card-back {
    left: 0;
  }

  .message-card {
    right: 0;
  }

  .step-grid,
  .compatibility,
  .feature-grid,
  .download {
    grid-template-columns: 1fr;
  }

  .step-grid li,
  .step-grid li:nth-child(2) {
    min-height: 0;
    transform: none;
  }

  .step-number {
    margin-bottom: 3rem;
  }

  .compatibility {
    gap: 3rem;
  }

  .features {
    width: 100%;
    max-width: none;
    padding-inline: 1rem;
  }

  .feature-card,
  .feature-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .download-mark,
  .store-row-footer {
    grid-row: auto;
    grid-column: auto;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .footer-placeholders {
    grid-column: auto;
  }
}

@media (max-width: 30rem) {
  .brand span {
    display: none;
  }

  .store-row {
    grid-template-columns: 1fr;
  }

  .store-button:last-child {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .orbit-one {
    width: 88%;
  }

  .orbit-two {
    width: 76%;
  }

  .profile-card-back {
    top: 8%;
    width: 10rem;
  }

  .message-card {
    bottom: 7%;
    width: 12.5rem;
  }

  .trait-cloud {
    grid-template-columns: 1fr;
  }

  .trait-large {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
