/* dresspec landing: 「Button Box 鈕扣盒」. Colours and radii come from tokens.css (apps/dresspec/design/tokens.json).
   Terracotta = action, butter = the AI's voice, lilac = AI imagery, sage = wardrobe; hard ink shadow on actions only. */
.dresspec {
  --ink: var(--dresspec-on-surface);
  --line: 1.5px solid var(--ink);
  --hard: 0 4px 0 var(--dresspec-shadow);
  --display: "Bricolage Grotesque", "dresspec-display-cjk", "dresspec-body", sans-serif;
  --body: "DM Sans", "dresspec-body", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 900px) { .dresspec { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body.dresspec { margin: 0; background: var(--dresspec-surface); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; font-synthesis-weight: none; overflow-x: clip; }
.dresspec a { color: var(--dresspec-primary); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
.dresspec a:hover { color: var(--dresspec-on-primary-container); }
.dresspec :focus-visible { outline: 3px solid var(--dresspec-tertiary); outline-offset: 3px; border-radius: 10px; }
:where(.dresspec) :is(h1, h2, h3) { font-family: var(--display); font-weight: 700; margin: 0; }
.dresspec:lang(zh-Hans) :is(h1, h2, h3, .fd) { font-weight: 700; }
:where(.dresspec) p { margin: 0; }
:where(.dresspec) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.fd { font-family: var(--display); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--dresspec-surface) !important; text-decoration: none; }
.skip:focus { top: 12px; }

/* the icon's four-hole button */
.dots { display: inline-grid; grid-template-columns: repeat(2, 6px); gap: 3px; vertical-align: middle; flex: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px; border-radius: 999px; border: var(--line);
  font: 700 15px/1.2 var(--body); letter-spacing: .01em; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.dresspec .pill.primary { background: var(--dresspec-primary); color: var(--dresspec-on-primary); box-shadow: var(--hard); }
.dresspec .pill.primary:hover { color: var(--dresspec-on-primary); transform: translateY(-1px); box-shadow: 0 5px 0 var(--dresspec-shadow); }
.dresspec .pill.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--dresspec-shadow); }
.dresspec .pill.ghost { background: var(--dresspec-surface-container-lowest); color: var(--ink); }
.dresspec .pill.ghost:hover { background: var(--dresspec-surface-container); color: var(--ink); }
.pill.small { min-height: 42px; padding: 9px 18px; font-size: 14px; }

/* nav */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--dresspec-surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav { max-width: 1344px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; font: 800 27px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; margin: 0; }
.logo-ic { width: 38px; height: 38px; border-radius: 11px; display: block; }
.nav .links { display: none; gap: 4px; }
.nav .links a { display: block; padding: 9px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .links a:hover { background: var(--ink); color: var(--dresspec-surface); }
.nav-end { display: flex; align-items: center; gap: 6px; }
@media (min-width: 960px) { .nav .links { display: flex; } }
@media (max-width: 440px) { .nav .pill.small { display: none; } }

.lang { position: relative; font: 600 14px/1.4 system-ui, sans-serif; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: var(--line); background: var(--dresspec-surface-container-lowest); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--dresspec-secondary-container); }
.lang svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 8px; border-radius: 22px; background: var(--dresspec-surface-container-lowest); border: var(--line); box-shadow: var(--hard); z-index: 30; }
.lang a { display: block; padding: 8px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.lang a:hover { background: var(--dresspec-surface-container); color: var(--ink); }
.lang a[aria-current] { background: var(--dresspec-primary-container); }

/* hero */
.hero { max-width: 1344px; margin: 0 auto; padding: 28px var(--gutter) 64px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1040px) { .hero { grid-template-columns: minmax(0, 1fr) 600px; padding-top: 40px; padding-bottom: 96px; } }
.kick { text-wrap: balance; display: inline-flex; gap: 10px; align-items: center; background: var(--dresspec-lilac); border: var(--line); border-radius: 999px; padding: 7px 14px; font: 700 13px/1.3 var(--body); color: var(--ink); }
.kick .dots { color: var(--dresspec-tertiary); }
.hero h1 { margin-top: 24px; }
.hero .z { display: block; font: 400 clamp(46px, 7vw, 88px)/1.12 var(--display); letter-spacing: -.01em; }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .hero .z { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(44px, 5.6vw, 76px); }
.dresspec:lang(zh-Hans) .hero .z { font-weight: 700; }
.dresspec:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
.dresspec:lang(ko) { word-break: keep-all; }
.dresspec:lang(ja) .hero .z { font-size: clamp(40px, 5vw, 68px); }
.hero mark { background: var(--dresspec-butter); color: inherit; border-radius: .3em; padding: 0 .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .tag { display: block; margin-top: 18px; font: 800 clamp(34px, 4.4vw, 56px)/1 "Bricolage Grotesque", var(--display); font-stretch: 75%; letter-spacing: -.03em; color: var(--dresspec-primary); }
.hero .lede { max-width: 31em; margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--dresspec-on-surface-variant); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* collage: product photos as cut-out cards around the try-on (the preview's composition) */
.collage { position: relative; height: 580px; max-width: 600px; width: 100%; justify-self: center; }
.tile, .tryon { position: absolute; border: var(--line); padding: 8px; animation: deal .7s var(--spring) both; }
.tile { border-radius: 24px; width: 30%; aspect-ratio: 1; }
.tile img, .tryon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.tryon { background: var(--dresspec-lilac); border-radius: var(--dresspec-radius-large); padding: 12px; width: 52%; aspect-ratio: 3 / 4; left: 24%; top: 3%; rotate: -2.5deg; z-index: 2; animation-delay: .17s; }
.tryon img { border-radius: 20px; object-position: 50% 40%; }
.t-jacket { background: var(--dresspec-surface-container-lowest); left: 0; top: 16%; rotate: -7deg; animation-delay: .05s; }
.t-shirt { background: var(--dresspec-sage); right: 0; top: 0; width: 27%; rotate: 6deg; animation-delay: .1s; }
.t-trousers { background: var(--dresspec-butter); right: 2%; top: 44%; width: 27%; rotate: -5deg; z-index: 3; animation-delay: .14s; }
.stk { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; border: var(--line); border-radius: 999px; padding: 9px 16px; font: 700 14px/1 var(--body); white-space: nowrap; box-shadow: 0 3px 0 var(--dresspec-shadow); animation: deal .7s var(--spring) .3s both; }
.s-terra { background: var(--dresspec-primary); color: var(--dresspec-on-primary); right: 18%; top: 31%; rotate: 5deg; }
.s-lilac { background: var(--dresspec-lilac); left: 4%; top: 58%; rotate: -4deg; }
.s-lilac .dots { color: var(--dresspec-tertiary); }
.why { position: absolute; z-index: 4; right: 0; bottom: 0; width: min(400px, 86%); background: var(--dresspec-butter); border: var(--line); border-radius: 28px 28px 28px 6px; padding: 18px 20px; box-shadow: var(--hard); font-size: 15px; line-height: 1.6; animation: deal .7s var(--spring) .4s both; }
.why .fd { font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .why .fd { font-weight: 700; letter-spacing: -.01em; }
.deal { animation: deal .6s var(--spring) both; }
.hero-copy .deal:nth-child(2) { animation-delay: .06s; } .hero-copy .deal:nth-child(3) { animation-delay: .12s; } .hero-copy .deal:nth-child(4) { animation-delay: .18s; }
@keyframes deal { from { opacity: 0; translate: 0 16px; transform: rotate(2deg); } to { opacity: 1; translate: 0 0; transform: none; } }
@media (max-width: 600px) {
  .collage { height: 470px; }
  .why { font-size: 14px; padding: 14px 16px; }
}

.intro { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.intro p { font: 400 clamp(18px, 1.8vw, 21px)/1.7 var(--body); text-align: center; text-wrap: pretty; }

/* features */
.feats { max-width: 1344px; margin: 0 auto; padding: 0 var(--gutter) 96px; }
.feats h2 { text-align: center; font: 400 clamp(38px, 5.4vw, 64px)/1.1 var(--display); }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .feats h2 { font-weight: 700; letter-spacing: -.03em; }
.cond { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-stretch: 75%; letter-spacing: -.03em; color: var(--dresspec-primary); }
.fg { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 900px) { .fg { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.fc { border: var(--line); border-radius: 32px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.fc1 { background: var(--dresspec-sage); } .fc2 { background: var(--dresspec-butter); } .fc3 { background: var(--dresspec-lilac); }
.fc .n { font: 800 88px/.8 "Bricolage Grotesque", sans-serif; font-stretch: 75%; letter-spacing: -.03em; }
.fc h3 { font-weight: 400; font-size: 32px; line-height: 1.2; }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .fc h3 { font-weight: 700; letter-spacing: -.02em; font-size: 30px; }
.dresspec:lang(zh-Hans) .fc h3 { font-weight: 700; }
.fc ul li { position: relative; padding-left: 18px; margin-top: 6px; font-size: 15px; }
.fc ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ph { margin-top: auto; height: 300px; border: var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5px; background: var(--ink); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph3 img { object-position: 50% 20%; }
.aside { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 16px; color: var(--dresspec-on-surface-variant); }
.note { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: 13px; color: var(--dresspec-on-surface-variant); }

/* screens on an ink band */
.screens { background: var(--ink); color: var(--dresspec-surface); border-radius: 48px 48px 0 0; padding: 72px var(--gutter) 88px; }
.screens h2 { max-width: 1248px; margin: 0 auto; font: 400 clamp(36px, 4.6vw, 52px)/1.1 var(--display); color: var(--dresspec-surface); }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .screens h2 { font-weight: 700; letter-spacing: -.03em; }
.screens .sub { max-width: 1248px; margin: 10px auto 0; color: var(--dresspec-butter); font-weight: 700; font-size: 15px; }
.row { max-width: 1248px; margin: 40px auto 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; }
.row figure { margin: 0; flex: 1 0 min(260px, 70vw); scroll-snap-align: start; }
.dev { border-radius: 40px; padding: 10px; background: color-mix(in srgb, var(--dresspec-inverse-surface), #000 50%); outline: 1.5px solid var(--dresspec-on-surface-variant); }
.dev img { display: block; width: 100%; height: auto; border-radius: 30px; }
.row figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--dresspec-surface-container); }

/* beta */
.beta { max-width: 1040px; margin: 0 auto; padding: 96px var(--gutter) 80px; text-align: center; }
.beta h2 { font: 400 clamp(32px, 4.4vw, 52px)/1.15 var(--display); }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .beta h2 { font-weight: 700; letter-spacing: -.03em; }
.steps { display: grid; gap: 18px; margin-top: 36px; text-align: start; }
@media (min-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--dresspec-surface-container-lowest); border: var(--line); border-radius: var(--dresspec-radius-large); padding: 22px; }
.steps .num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--dresspec-butter); border: var(--line); font-weight: 800; font-size: 20px; rotate: -4deg; }
.beta .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--dresspec-on-surface-variant); }

/* faq */
.faq { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) 96px; }
.faq h2 { text-align: center; font: 400 clamp(32px, 4.4vw, 52px)/1.15 var(--display); margin-bottom: 28px; }
.dresspec:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) .faq h2 { font-weight: 700; letter-spacing: -.03em; }
.faq details { background: var(--dresspec-surface-container-lowest); border: var(--line); border-radius: var(--dresspec-radius-medium); margin-bottom: 12px; }
.faq details[open] { background: var(--dresspec-surface-bright); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px; border-radius: var(--dresspec-radius-medium); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: var(--line); background: var(--dresspec-butter) linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat; transition: rotate .26s var(--spring); }
.faq details:not([open]) summary::after { background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 10px 1.5px, 1.5px 10px; background-position: center; background-repeat: no-repeat; }
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { padding: 0 22px 20px; color: var(--dresspec-on-surface-variant); }

.foot { border-top: 1.5px solid var(--dresspec-outline-variant); padding: 40px var(--gutter) 48px; display: grid; gap: 16px; justify-items: center; text-align: center; font-size: 14px; color: var(--dresspec-on-surface-variant); }
.foot .logo { font-size: 22px; }
.foot .logo-ic { width: 32px; height: 32px; border-radius: 9px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.foot-links a, .langs a { display: inline-block; padding: 4px 2px; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font: 13px/1.6 system-ui, sans-serif; }
.langs a { color: var(--dresspec-on-surface-variant); text-decoration: none; }
.langs a[aria-current] { color: var(--dresspec-primary); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dresspec *, .dresspec *::before, .dresspec *::after { animation: none !important; transition: none !important; }
}
.dresspec:lang(ja) .kick { word-break: auto-phrase; }
.pill.soon { cursor: default; }
