:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --paper: #f4efe6;
  --paper-deep: #e9dece;
  --surface: #fffcf7;
  --ink: #27211d;
  --muted: #766b62;
  --line: #d8ccbc;
  --accent: #6f2136;
  --accent-dark: #521326;
  --sage: #667565;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 60px rgba(58, 42, 32, 0.1), 0 2px 8px rgba(58, 42, 32, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(111, 33, 54, 0.08), transparent 24rem),
    linear-gradient(180deg, #f7f2ea 0, var(--paper) 35rem, #eee5d8 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #a45c70; outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 50; transform: translateY(-150%);
  background: var(--ink); color: white; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid rgba(93, 74, 62, 0.16);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand-mark, .avatar {
  display: grid; place-items: center; background: var(--accent); color: white; font-family: var(--font-serif); font-style: italic;
}
.brand-mark { width: 30px; height: 30px; border-radius: 50% 50% 46% 54%; }
.header-action { color: var(--accent); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.landing {
  min-height: calc(100vh - 84px); padding: 70px 0 64px; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .65fr); gap: 48px 72px; align-items: center;
}
.landing-copy h1 { max-width: 820px; font-size: clamp(54px, 7vw, 96px); }
.landing-lead { max-width: 670px; margin: 30px 0 26px; color: #574e47; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }
.landing-lead strong { color: var(--ink); }
.landing-action { width: min(330px, 100%); text-decoration: none; }
.landing-preview {
  position: relative; align-self: stretch; min-height: 390px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; border: 1px solid rgba(117, 96, 78, 0.18); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.landing-preview::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px;
  border: 52px solid rgba(111, 33, 54, .08); border-radius: 50%;
}
.preview-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.preview-heading strong { color: var(--accent); font-size: 11px; }
.preview-week { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; align-items: end; min-height: 210px; }
.preview-week span {
  position: relative; height: calc(142px + var(--height, 0px)); padding: 0 0 4px; display: flex; align-items: flex-end; justify-content: center; border-top: 8px solid var(--detail);
  color: var(--muted); font-size: 11px; font-weight: 750; text-align: center;
}
.preview-week span::before {
  content: ""; position: absolute; top: 24px; left: 50%; width: 34px; height: 67px; transform: translateX(-50%);
  border-radius: 11px 11px 4px 4px; background: var(--look); clip-path: polygon(20% 0, 80% 0, 100% 26%, 82% 33%, 76% 100%, 24% 100%, 18% 33%, 0 26%);
}
.preview-week span::after {
  content: ""; position: absolute; top: 96px; left: 50%; width: 40px; height: 13px; transform: translateX(-50%) skewX(-10deg);
  border-radius: 60% 20% 24% 14%; background: var(--detail);
}
.preview-week span:nth-child(2), .preview-week span:nth-child(4) { --height: 18px; }
.landing-preview > p { position: relative; max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.capabilities { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr 1fr; gap: 20px; align-items: start; padding-top: 8px; }
.capabilities > .eyebrow { padding-top: 21px; }
.capability { min-height: 150px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 20px 22px; border-top: 1px solid var(--line); }
.capability-number { color: var(--accent); font: italic 20px var(--font-serif); }
.capability h2 { margin: 0 0 9px; font: 400 clamp(22px, 2.2vw, 29px)/1.05 var(--font-serif); letter-spacing: -.025em; }
.capability p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.intro { padding: 78px 0 48px; display: grid; grid-template-columns: 1fr 0.62fr; gap: 40px; align-items: end; }
.app-intro { scroll-margin-top: 20px; border-top: 1px solid rgba(93, 74, 62, 0.16); }
.eyebrow, .step-label { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 700; color: var(--accent); }
.intro .eyebrow { grid-column: 1 / -1; margin-bottom: -24px; }
h1, .result-heading h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.045em; margin: 0; line-height: 0.93; }
h1 { font-size: clamp(52px, 7.6vw, 104px); }
h1 em, .result-heading em { color: var(--accent); font-weight: 400; }
.intro-copy { max-width: 430px; margin: 0 0 6px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: #574e47; }

.workspace {
  width: min(840px, 100%); margin: 18px auto 0; padding: 22px; background: rgba(255, 252, 247, 0.7);
  border: 1px solid rgba(117, 96, 78, 0.18); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.chat-heading { display: flex; align-items: center; gap: 13px; padding: 0 2px 19px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.chat-heading h2 { margin: 0 0 4px; font-size: 16px; }
.chat-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6b8a68; }

.message { max-width: 590px; margin: 22px 0; border-radius: 5px 18px 18px 18px; padding: 16px 18px 10px; background: #eee5d8; }
.message p { margin: 0; line-height: 1.52; }
.message time { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; text-align: right; }

.garment-panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.audience-picker { margin: 0 0 12px; padding: 13px 14px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.audience-picker > p { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.audience-switch, .capsule-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; background: #eee5d9; border-radius: 14px; }
.capsule-mode { margin-bottom: 22px; }
.audience-button, .mode-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.audience-button.selected, .mode-button.selected { border-color: rgba(111,33,54,.18); background: var(--surface); color: var(--accent); box-shadow: 0 3px 10px rgba(58,42,32,.07); }
.vacation-details { margin: 0 0 24px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #f7f0e7; }
.trip-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trip-field { display: grid; gap: 6px; color: #564c44; font-size: 12px; font-weight: 700; }
.trip-country, .trip-type { grid-column: 1 / -1; }
.trip-field input, .trip-field select { width: 100%; min-width: 0; height: 43px; border: 1px solid #cfc1b0; border-radius: 9px; background: #fffdf9; color: var(--ink); padding: 0 11px; font: 400 14px var(--font-sans); }
.trip-field input:focus, .trip-field select:focus { outline: 3px solid rgba(164,92,112,.28); border-color: var(--accent); }
.trip-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.panel-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.panel-title-row h3 { margin: 0; font: 400 clamp(24px, 4vw, 34px)/1.05 var(--font-serif); letter-spacing: -0.03em; }
#selected-count { flex: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; }
.category-label { margin: 4px 0 9px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.footwear-label { margin-top: 20px; }
.garment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.footwear-grid { grid-template-columns: repeat(5, 1fr); }
.garment {
  position: relative; min-width: 0; padding: 8px 8px 11px; border: 1px solid transparent; border-radius: 14px;
  background: #f3ede4; color: var(--ink); text-align: left; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}
.garment:hover { transform: translateY(-2px); }
.garment:not(.selected) { opacity: 0.42; background: #eeeae4; }
.garment.selected { border-color: var(--accent); background: #fffaf5; }
.garment.selected::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 12px; }
.garment > span:last-of-type { display: block; margin-top: 9px; font-size: 13px; font-weight: 700; }
.garment small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }

.garment-art { position: relative; display: grid; place-items: center; height: 94px; overflow: hidden; border-radius: 9px; background: #ded2c3; }
.garment-art::before, .garment-art::after, .garment-art i, .mini-garment::before, .mini-garment::after, .mini-garment i { content: ""; position: absolute; display: block; }
.garment-art::before { width: 48px; height: 59px; background: currentColor; border-radius: 10px 10px 6px 6px; }
.garment-art::after { width: 72px; height: 26px; top: 23px; background: currentColor; border-radius: 12px 12px 7px 7px; }
.garment-art i { z-index: 1; width: 13px; height: 37px; top: 22px; border-left: 2px solid rgba(255,255,255,.45); }
.jacket { color: #4a4b4b; }
.shirt { color: #e9e2d7; }
.trousers { color: #695043; }
.skirt { color: #7d263e; }
.knit { color: #c5aa82; }
.jeans { color: #3d5875; }
.dress { color: #242323; }
.vest { color: #b99b72; }
.loafers { color: #282524; }
.boots { color: #8a5d3b; }
.sneakers { color: #eee8dc; }
.pumps { color: #852b45; }
.ankleboots { color: #61483b; }
.m_blazer { color: #4a4b4b; }
.m_oxford { color: #eeeae2; }
.m_chinos { color: #a98b63; }
.m_polo { color: #742c3c; }
.m_sweater { color: #68705a; }
.m_jeans { color: #344f6c; }
.m_tshirt { color: #e7dfd2; }
.m_overshirt { color: #987052; }
.m_loafers { color: #292625; }
.m_boots { color: #76513a; }
.m_sneakers { color: #eeeae2; }
.m_derby { color: #6e2938; }
.m_chelsea { color: #554137; }
.trousers.garment-art::before, .jeans.garment-art::before, .m_chinos.garment-art::before, .m_jeans.garment-art::before { width: 52px; height: 67px; border-radius: 5px 5px 11px 11px; clip-path: polygon(8% 0, 92% 0, 100% 100%, 58% 100%, 50% 38%, 42% 100%, 0 100%); }
.trousers.garment-art::after, .jeans.garment-art::after, .m_chinos.garment-art::after, .m_jeans.garment-art::after { display: none; }
.skirt.garment-art::before { width: 60px; height: 58px; clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.skirt.garment-art::after, .skirt.garment-art i { display: none; }
.dress.garment-art::before { width: 64px; height: 73px; clip-path: polygon(34% 0, 66% 0, 70% 22%, 100% 100%, 0 100%, 30% 22%); }
.dress.garment-art::after, .dress.garment-art i { display: none; }
.vest.garment-art::after { display: none; }
.shoe.garment-art::before { width: 70px; height: 18px; top: 57px; border-radius: 70% 22% 28% 18%; transform: skewX(-12deg); }
.shoe.garment-art::after { width: 58px; height: 31px; top: 36px; left: 31px; border-radius: 5px; clip-path: polygon(0 48%, 52% 40%, 68% 0, 80% 8%, 88% 55%, 100% 72%, 100% 100%, 0 100%); transform: skewX(-8deg); }
.shoe.garment-art i { width: 62px; height: 2px; top: 75px; left: 34px; border: 0; border-radius: 2px; background: rgba(255,255,255,.55); }
.boots.garment-art::after { height: 52px; top: 15px; border-radius: 7px 15px 4px 7px; }
.pumps.garment-art::after { height: 20px; top: 46px; clip-path: polygon(0 35%, 72% 0, 100% 100%, 0 100%); }
.pumps.garment-art i { width: 4px; height: 17px; top: 62px; left: 78px; background: currentColor; }

.selection-help { min-height: 20px; margin: 15px 2px 12px; color: var(--muted); font-size: 12px; }
.primary-button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 0; border-radius: 12px;
  background: var(--accent); color: white; padding: 15px 17px; font-weight: 700; cursor: pointer; transition: background 150ms ease, transform 150ms ease;
}
.primary-button:hover { background: var(--accent-dark); }
.primary-button:active { transform: scale(0.99); }
.primary-button:disabled { background: #a99d94; cursor: not-allowed; }

.loading-state { min-height: 330px; display: grid; place-content: center; gap: 26px; text-align: center; color: var(--muted); }
.hanger-loader { position: relative; width: 116px; height: 74px; margin: 0 auto; }
.hanger-loader span { position: absolute; left: 18px; width: 80px; height: 42px; border: 2px solid var(--accent); border-top: 0; transform: rotate(45deg); border-radius: 3px; animation: hanger 1.2s ease-in-out infinite; }
.hanger-loader span:nth-child(2) { animation-delay: 160ms; opacity: .55; }
.hanger-loader span:nth-child(3) { animation-delay: 320ms; opacity: .28; }
@keyframes hanger { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-8px) rotate(45deg); } }

.capsule { padding: 20px 2px 2px; scroll-margin-top: 20px; }
.result-heading { padding: 18px 14px 28px; }
.result-heading h2 { font-size: clamp(38px, 6vw, 62px); }
.result-heading > p:last-child { max-width: 560px; margin: 18px 0 0; line-height: 1.55; color: var(--muted); }
.trip-result-meta { display: inline-flex; margin: 16px 0 0 !important; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--accent) !important; font-size: 12px; font-weight: 700; }
.week-strip { display: grid; gap: 8px; }
.day-look {
  display: grid; grid-template-columns: 72px 175px 1fr; gap: 22px; align-items: center; min-height: 155px; padding: 12px 20px;
  border-top: 1px solid var(--line); background: rgba(255, 252, 247, .58); animation: reveal 500ms both; animation-delay: var(--delay);
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
.day-look header { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.day-look header strong { font: 400 36px/1 var(--font-serif); }
.day-look header span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.day-look h3 { margin: 0 0 7px; font: 400 23px/1.1 var(--font-serif); }
.day-look p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.look-colors { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 11px; }
.color-chip { display: inline-flex; align-items: center; gap: 5px; color: #5f554d; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.color-chip i { width: 9px; height: 9px; flex: none; border: 1px solid rgba(39, 33, 29, .18); border-radius: 50%; background: var(--chip-color); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.look-stack { height: 125px; position: relative; display: flex; align-items: center; justify-content: center; }
.mini-garment { position: absolute; display: block; width: 68px; height: 58px; color: var(--ink); filter: drop-shadow(0 9px 7px rgba(41,31,24,.12)); }
.mini-garment:nth-child(1) { transform: translate(-28px, -25px) rotate(-7deg); }
.mini-garment:nth-child(2) { transform: translate(25px, 4px) rotate(6deg); }
.mini-garment:nth-child(3) { transform: translate(-25px, 36px) rotate(3deg); }
.mini-garment::before { left: 17px; width: 36px; height: 47px; background: currentColor; border-radius: 7px; }
.mini-garment::after { top: 8px; width: 68px; height: 19px; background: currentColor; border-radius: 9px; }
.mini-garment.trousers::before, .mini-garment.jeans::before, .mini-garment.m_chinos::before, .mini-garment.m_jeans::before { width: 42px; height: 58px; left: 13px; clip-path: polygon(8% 0, 92% 0, 100% 100%, 58% 100%, 50% 40%, 42% 100%, 0 100%); }
.mini-garment.trousers::after, .mini-garment.jeans::after, .mini-garment.m_chinos::after, .mini-garment.m_jeans::after, .mini-garment.skirt::after, .mini-garment.dress::after, .mini-garment.vest::after { display: none; }
.mini-garment.skirt::before { width: 52px; left: 8px; clip-path: polygon(25% 0,75% 0,100% 100%,0 100%); }
.mini-garment.dress::before { width: 54px; height: 57px; left: 7px; clip-path: polygon(34% 0,66% 0,72% 23%,100% 100%,0 100%,28% 23%); }
.mini-garment.shoe::before { width: 58px; height: 15px; left: 5px; top: 34px; border-radius: 70% 20% 25% 18%; transform: skewX(-12deg); }
.mini-garment.shoe::after { width: 48px; height: 25px; top: 17px; left: 10px; border-radius: 4px; clip-path: polygon(0 48%, 52% 40%, 68% 0, 80% 8%, 88% 55%, 100% 72%, 100% 100%, 0 100%); transform: skewX(-8deg); }
.mini-garment.shoe.boots::after { height: 38px; top: 4px; }

.stylist-note { margin: 18px 0; padding: 17px 20px; display: flex; gap: 13px; background: #e9ded0; border-radius: 14px; }
.stylist-note span { color: var(--accent); font-size: 22px; }
.stylist-note p { margin: 1px 0 0; line-height: 1.5; }
.result-actions { display: flex; gap: 18px; align-items: center; }
.result-actions .primary-button { width: min(300px, 100%); }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 12px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.save-message { margin: 14px 0 0; color: var(--sage); font-weight: 700; }
footer { width: min(1180px, calc(100% - 32px)); margin: 54px auto 0; padding: 26px 0 36px; border-top: 1px solid rgba(93, 74, 62, 0.16); color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .landing { min-height: auto; padding: 44px 0 54px; grid-template-columns: 1fr; gap: 32px; }
  .landing-copy h1 { font-size: clamp(46px, 13.8vw, 66px); }
  .landing-lead { margin: 24px 0 22px; font-size: 17px; }
  .landing-action { width: 100%; }
  .landing-preview { min-height: 330px; padding: 22px; }
  .preview-week { min-height: 180px; }
  .capabilities { grid-template-columns: 1fr; gap: 0; padding-top: 6px; }
  .capabilities > .eyebrow { padding: 0 0 8px; }
  .capability { min-height: 0; padding: 20px 2px; }
  .intro { padding: 48px 0 32px; display: block; }
  .intro .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(46px, 14.5vw, 68px); }
  .intro-copy { margin-top: 24px; font-size: 17px; }
  .workspace { width: calc(100% + 16px); margin-left: -8px; padding: 14px; border-radius: 22px; }
  .audience-picker { padding: 12px; }
  .garment-panel { padding: 14px; }
  .capsule-mode { grid-template-columns: 1fr; }
  .mode-button { justify-content: flex-start; }
  .vacation-details { padding: 14px; }
  .panel-title-row { align-items: start; }
  .garment-grid { grid-template-columns: repeat(2, 1fr); }
  .footwear-grid { grid-template-columns: repeat(2, 1fr); }
  .garment-art { height: 116px; }
  .day-look { grid-template-columns: 56px 105px 1fr; gap: 10px; padding: 12px 8px; }
  .day-look header strong { font-size: 29px; }
  .look-stack { transform: scale(.82); }
  .day-look h3 { font-size: 18px; }
  .look-colors { gap: 5px 7px; margin-top: 8px; }
  .color-chip { font-size: 9px; }
  .result-actions { align-items: stretch; flex-direction: column; gap: 6px; }
  .result-actions .primary-button { width: 100%; }
}

@media (max-width: 390px) {
  main, .site-header, footer { width: min(100% - 20px, 1180px); }
  .brand { font-size: 14px; }
  .garment-art { height: 102px; }
  .day-look { grid-template-columns: 48px 88px 1fr; }
  .day-look p { font-size: 11px; }
}

@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; }
}
