:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #68645f;
  --soft: #f7f3ed;
  --paper: #fffdf8;
  --sage: #94a584;
  --sage-dark: #65765b;
  --rose: #d99b8f;
  --clay: #b66f55;
  --denim: #5f7897;
  --line: rgba(23, 23, 23, 0.12);
  --shadow: 0 28px 70px rgba(54, 45, 36, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover,
.footer-links a:hover,
.legal-page a {
  color: var(--clay);
}

.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(30px, 5vw, 64px) 0;
  background:
    linear-gradient(115deg, rgba(247, 243, 237, 0.95) 0%, rgba(255, 253, 248, 0.82) 54%, rgba(148, 165, 132, 0.22) 100%),
    url("logo_pandrobe.png") right -12vw center / min(680px, 62vw) no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  border: 1px solid rgba(101, 118, 91, 0.24);
  border-radius: 999px;
  background: rgba(148, 165, 132, 0.14);
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 7px 12px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 76px);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(28px, 4.5vw, 52px);
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.hero-text,
.section-title p,
.split p,
.cta p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 17px;
}

.hero-text {
  width: min(100%, 620px);
  max-width: 620px;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}

.hero-copy,
.showcase {
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 850;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.showcase {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(370px, 100%);
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: linear-gradient(180deg, #282421, #111);
  box-shadow: var(--shadow);
}

.phone-bar,
.tabbar {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 34px;
  font-size: 12px;
}

.screen {
  overflow: hidden;
  border-radius: 25px;
  background: #fbf7f0;
  color: var(--ink);
  padding: 16px;
}

.screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.screen-kicker,
.flow-header span,
.tag-list span {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.screen h2 {
  font-size: 30px;
}

.round-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.tabs span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.tabs .active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

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

.closet-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 9px;
}

.closet-grid strong,
.closet-grid span,
.request-card span,
.request-card strong {
  display: block;
}

.closet-grid strong {
  margin-top: 7px;
  font-size: 12px;
}

.closet-grid span {
  color: var(--muted);
  font-size: 10px;
}

.cloth {
  height: 74px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.sage { background: var(--sage); }
.ink { background: #232323; }
.denim { background: var(--denim); }
.cream { background: #d7c5aa; color: #30271d; }

.garment {
  position: relative;
  display: block;
  width: 52px;
  height: 46px;
}

.garment::before,
.garment::after {
  content: "";
  position: absolute;
  display: block;
}

.garment.tee::before {
  left: 10px;
  top: 10px;
  width: 32px;
  height: 27px;
  border-radius: 7px 7px 4px 4px;
  background: currentColor;
}

.garment.tee::after {
  left: 2px;
  top: 9px;
  width: 48px;
  height: 18px;
  border-radius: 10px 10px 3px 3px;
  background: currentColor;
  clip-path: polygon(0 18%, 24% 0, 39% 16%, 61% 16%, 76% 0, 100% 18%, 86% 100%, 68% 78%, 68% 100%, 32% 100%, 32% 78%, 14% 100%);
}

.garment.blazer::before {
  left: 8px;
  top: 7px;
  width: 36px;
  height: 35px;
  border-radius: 10px 10px 5px 5px;
  background: currentColor;
  clip-path: polygon(12% 0, 38% 0, 50% 42%, 62% 0, 88% 0, 100% 100%, 0 100%);
}

.garment.jeans::before {
  left: 11px;
  top: 5px;
  width: 30px;
  height: 38px;
  border-radius: 5px 5px 8px 8px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 58% 100%, 50% 35%, 42% 100%, 14% 100%);
}

.garment.bag::before {
  left: 8px;
  top: 17px;
  width: 36px;
  height: 24px;
  border-radius: 7px 7px 9px 9px;
  background: currentColor;
}

.garment.bag::after {
  left: 17px;
  top: 8px;
  width: 18px;
  height: 16px;
  border: 4px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.garment.jacket::before {
  left: 7px;
  top: 8px;
  width: 38px;
  height: 34px;
  border-radius: 9px 9px 5px 5px;
  background: currentColor;
  clip-path: polygon(8% 0, 36% 0, 50% 28%, 64% 0, 92% 0, 100% 100%, 58% 100%, 50% 52%, 42% 100%, 0 100%);
}

.cloth .garment,
.outfit-photo .garment {
  color: rgba(255, 255, 255, 0.9);
}

.cloth.cream .garment,
.result-item .garment {
  color: #3b3128;
}

.request-card {
  margin-top: 12px;
  border-radius: 18px;
  background: #1f1d1a;
  color: #fff;
  padding: 14px;
}

.request-card span {
  color: #cfddd0;
  font-size: 11px;
  font-weight: 800;
}

.request-card strong {
  margin: 3px 0 12px;
  font-size: 14px;
  line-height: 1.25;
}

.request-card div {
  display: flex;
  gap: 8px;
}

.request-card button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 850;
}

.request-card .ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tabbar {
  height: 48px;
  justify-content: space-around;
  font-weight: 800;
}

.section-band {
  padding: 78px 0;
  background: var(--paper);
}

.section-band.light {
  background: var(--soft);
}

.section-title {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-title .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

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

.feature {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(54, 45, 36, 0.06);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(148, 165, 132, 0.18);
  color: var(--sage-dark);
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 10px;
}

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

.split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 6vw, 64px);
  align-items: center;
}

.app-flow {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
}

.flow-card {
  min-width: 0;
  min-height: 286px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.flow-card.offset {
  transform: translateY(24px);
}

.flow-header {
  margin-bottom: 12px;
}

.flow-header strong {
  display: block;
  font-size: 17px;
  line-height: 1.18;
}

.outfit-layout {
  display: grid;
  gap: 10px;
}

.outfit-photo {
  position: relative;
  min-height: 142px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(148, 165, 132, 0.86), rgba(217, 155, 143, 0.82)),
    #eee8df;
  overflow: hidden;
}

.outfit-photo .garment {
  position: absolute;
  transform: scale(1.28);
}

.outfit-photo .blazer {
  left: 48%;
  top: 20%;
  color: #1f1d1a;
}

.outfit-photo .tee {
  left: 24%;
  top: 22%;
  color: #fbf7f0;
}

.outfit-photo .jeans {
  left: 36%;
  top: 56%;
  color: #5f7897;
}

.tag-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

.tag-list p {
  margin-top: 7px;
  border-radius: 999px;
  background: var(--soft);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-card strong,
.flow-card small {
  display: block;
}

.flow-card small {
  color: var(--muted);
}

.search-line {
  margin: 14px 0;
  border-radius: 999px;
  background: var(--soft);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  padding: 10px;
}

.result-item > .garment {
  width: 44px;
  height: 42px;
  border-radius: 12px;
  background: #eee8df;
}

.result-item .jacket {
  color: #b99f7d;
}

.result-item .bag {
  color: #d7c5aa;
}

.bubble {
  width: 84%;
  margin: 18px 0;
  border-radius: 18px 18px 18px 5px;
  background: var(--soft);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.bubble.me {
  margin-left: auto;
  border-radius: 18px 18px 5px 18px;
  background: var(--sage);
  color: #fff;
}

.status-pill {
  width: fit-content;
  border-radius: 999px;
  background: rgba(148, 165, 132, 0.18);
  color: var(--sage-dark);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.trust {
  background: #fff;
}

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

.checks span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px 16px;
  font-weight: 850;
}

.cta-section {
  padding: 70px 0;
  background: #1f1d1a;
  color: #fff;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.cta .btn-primary {
  background: #fff;
  color: #1f1d1a;
}

.site-footer {
  padding: 34px 0;
  background: #141311;
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid span {
  color: rgba(255, 255, 255, 0.62);
  margin-top: 4px;
}

.legal-page {
  background: var(--paper);
}

.legal-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--sage-dark);
  font-weight: 850;
}

.legal-page h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 7vw, 64px);
}

.legal-card {
  margin: 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-page h2 {
  margin: 34px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 22px;
  margin-top: 8px;
}

.legal-page footer {
  margin-top: 46px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 28px, 760px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(145deg, rgba(247, 243, 237, 0.98), rgba(255, 253, 248, 0.94)),
      url("logo_pandrobe.png") right -110px top 10px / 360px no-repeat;
  }

  .hero-grid,
  .split,
  .features,
  .checks {
    grid-template-columns: 1fr;
  }

  .section-title {
    text-align: left;
    margin-left: 0;
  }

  .section-title .eyebrow {
    margin-left: 0;
  }

  .app-flow {
    max-width: 680px;
    margin: 0 auto;
  }

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

@media (max-width: 640px) {
  .container,
  .legal-shell {
    width: calc(100% - 22px);
  }

  .site-header {
    position: relative;
  }

  .brand {
    font-size: 22px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 26px 0 42px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 38px);
    max-width: 100%;
  }

  .hero-text,
  .split p,
  .legal-page p,
  .legal-page li {
    font-size: 16px;
  }

  .hero-text {
    width: min(100%, 320px);
    max-width: 320px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone {
    width: min(338px, calc(100vw - 22px));
    border-radius: 30px;
  }

  .screen {
    padding: 13px;
  }

  .closet-grid {
    gap: 8px;
  }

  .cloth {
    height: 66px;
  }

  .section-band,
  .cta-section {
    padding: 54px 0;
  }

  .app-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-card {
    min-height: auto;
  }

  .flow-card.offset {
    transform: none;
  }
}

@media (max-width: 380px) {
  .container,
  .legal-shell {
    width: calc(100% - 18px);
  }

  h1 {
    font-size: 29px;
  }

  .phone {
    padding: 9px;
  }

  .tabs span {
    font-size: 10px;
    padding-inline: 5px;
  }

  .tabbar {
    font-size: 11px;
  }
}
