/* fashionstyle.ai — Another You landing.
   Section order matches index.html: tokens → base → header → hero/strip →
   shuffle control → how-it-works → why (dark) → features/pricing grids →
   banner → ios → waitlist → footer → motion → reduced-motion. */

/* ---- tokens ---- */
:root {
  --color-text: #000000;
  --color-text-inverse: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F5F5F5;
  --color-muted: #A8A7A7;
  --color-ui-mid: #C6C6C6;
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei";
}

/* ---- base ---- */
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--color-bg); color: var(--color-text); }
body { font-family: monospace, var(--font-cjk); font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: var(--color-text); text-decoration: underline; }
a:hover { color: var(--color-muted); text-decoration-thickness: 2px; text-underline-offset: 3px; }
::selection { background: #000; color: #fff; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.rule { border-top: 1px solid #000; }
.sec-head { border-top: 1px solid #000; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-head h2 { font-size: 18px; line-height: 25.2px; font-weight: 400; margin: 0; }
.sec-num { font-size: 11px; line-height: 18.15px; color: var(--color-muted); }
.dark { background: #000; color: #fff; }
.dark a { color: #fff; }
.dark a:hover { color: var(--color-muted); }
.dark .sec-head { border-top-color: #fff; }
.muted { color: var(--color-muted); }
.caption { font-size: 11px; line-height: 18.15px; color: var(--color-muted); }
.slot { background: var(--color-bg-subtle); width: 100%; height: 100%; object-fit: cover; display: block; }
.link { font-size: 16px; line-height: 22.4px; display: inline-flex; align-items: center; min-height: 44px; }
.pad-top { padding-top: 96px; }

/* ---- header ---- */
header.site { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 16px; }
header.site img { height: 30px; width: auto; display: block; }
header.site .logo { display: block; text-decoration: none; }
header.site nav { display: flex; align-items: center; gap: 24px; }
header.site a { font-size: 14.5px; line-height: 20.3px; }
.caret { font-size: 9px; text-decoration: none; display: inline-block; }

/* ---- hero + filmstrip ---- */
.hero { padding-top: 72px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.15; font-weight: 400; margin: 0; letter-spacing: -0.02em; max-width: 12ch; text-wrap: balance; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 32px; }
.hero-row p { font-size: 16px; line-height: 22.4px; margin: 0; max-width: 44ch; }
.hero-ctas { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.strip { display: flex; gap: 8px; margin-top: 56px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.strip .cell { flex: 0 0 auto; width: 220px; height: 320px; overflow: hidden; }
.strip .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip .arrow { flex: 0 0 auto; width: 60px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.strip-caption { margin: 8px 0 0 0; }

/* ---- shuffle control with countdown bar, overlaid on every set-changing image ---- */
.strip-wrap, .why-img, .banner-band { position: relative; }
.shuffle-ctl { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; border: 1px solid #000; padding: 14px 24px 17px 24px; text-decoration: none; background: #fff; min-height: 44px; box-sizing: border-box; overflow: hidden; }
.strip-wrap .shuffle-ctl { bottom: 32px; }
.banner-band .shuffle-ctl { right: 24px; bottom: 24px; }
.shuffle-ctl .shuffle-label { font-size: 16px; line-height: 22.4px; text-decoration: underline; white-space: nowrap; }
a.shuffle-ctl, .dark a.shuffle-ctl { color: #000; }
.shuffle-ctl:hover { background: #000; }
.shuffle-ctl:hover .shuffle-label { color: #fff; }
.shuffle-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #000; }
.shuffle-ctl:hover .shuffle-bar { background: #fff; }

/* ---- pain points (marquee carousel) ---- */
.sec-intro { font-size: 14.5px; line-height: 20.3px; color: var(--color-muted); margin: 24px 0 0 0; max-width: 60ch; }
.pp-band { margin-top: 48px; overflow: hidden; }
.pp-track { display: flex; width: max-content; animation: pp-scroll 50s linear infinite; }
.pp-band:hover .pp-track { animation-play-state: paused; }
.pp-set { display: flex; gap: 16px; padding-right: 16px; }
.pp-card { flex: 0 0 auto; width: 320px; margin: 0; border: 1px solid var(--color-ui-mid); background: #fff; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.pp-card blockquote { margin: 0; font-size: 14.5px; line-height: 20.3px; }
.pp-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 11px; line-height: 18.15px; color: var(--color-muted); }
.pp-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: block; }
@keyframes pp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .pp-card { width: 260px; } }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; margin-top: 48px; }
.steps .step { display: flex; flex-direction: column; gap: 16px; }
.steps .num { font-size: 32px; line-height: 1; }
.steps h3 { font-size: 16px; line-height: 22.4px; font-weight: 400; margin: 0; }
.steps p { font-size: 14.5px; line-height: 20.3px; margin: 0; color: var(--color-muted); }

/* ---- it tells you why (dark) ---- */
.dark-band { margin-top: 96px; }
.dark-band .band-inner { padding-top: 96px; padding-bottom: 96px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; margin-top: 48px; align-items: center; }
.why-copy { display: flex; flex-direction: column; gap: 24px; }
.why-copy .lede { font-size: 22px; line-height: 1.4; margin: 0; max-width: 30ch; }
.chat { display: flex; flex-direction: column; gap: 12px; border: 1px solid #fff; padding: 24px; }
.chat p { font-size: 14.5px; line-height: 20.3px; margin: 0; }
.chat .chat-me { text-align: right; }
.chat .divider { border-top: 1px solid #444; }
.why-img { justify-self: center; width: 100%; max-width: 380px; height: 480px; overflow: hidden; }

/* ---- features + pricing grids ---- */
.grid-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--color-ui-mid); border: 1px solid var(--color-ui-mid); margin-top: 48px; }
.grid-cells .cell { background: #fff; padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 120px; transition: background .3s ease; }
.grid-cells .cell:hover { background: var(--color-bg-subtle); }
.grid-cells h3 { font-size: 16px; line-height: 22.4px; font-weight: 400; margin: 0; }
.grid-cells p { font-size: 14.5px; line-height: 20.3px; margin: 0; color: var(--color-muted); }
.price-cells { margin-top: 32px; }
.price-cells .cell { gap: 16px; }
.price-cells .price { font-size: 28px; line-height: 1.2; margin: 0; color: var(--color-text); }
.price-cells .credits { color: var(--color-text); }
.pr-intro { font-size: 14.5px; line-height: 20.3px; color: var(--color-muted); margin: 24px 0 0 0; max-width: 60ch; }
.pr-note { margin: 16px 0 0 0; }
@media (max-width: 900px) { .grid-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-cells { grid-template-columns: 1fr; } }

/* ---- wide banner ---- */
.banner-band { margin-top: 96px; }
.banner-band img { display: block; width: 100%; height: auto; }

/* ---- iOS spotlight ---- */
.ios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 48px; align-items: center; }
.phones { display: flex; gap: 16px; justify-content: center; }
.phone { width: 220px; height: 460px; border: 1px solid #000; border-radius: 32px; padding: 8px; box-sizing: border-box; transition: transform .3s ease; }
.phone:hover { transform: translateY(-2px); }
.phone + .phone { margin-top: 48px; }
.phone .screen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; }
.ios-copy { display: flex; flex-direction: column; gap: 24px; }
.ios-copy .lede { font-size: 22px; line-height: 1.4; margin: 0; max-width: 28ch; }

/* ---- waitlist ---- */
.cta-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; font-weight: 400; margin: 0; max-width: 20ch; text-wrap: balance; }
.cta-inner .sub { font-size: 14.5px; line-height: 20.3px; margin: 0; color: var(--color-muted); max-width: 50ch; }
.cta-alt { font-size: 14.5px; }
.wl-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; width: 100%; max-width: 560px; }
.wl-form input { flex: 1 1 260px; background: #000; border: 1px solid #fff; color: #fff; font-family: inherit; font-size: 16px; padding: 12px 16px; outline: none; min-height: 44px; box-sizing: border-box; }
.wl-form input::placeholder { color: var(--color-muted); }
.wl-form a { color: #fff; font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; white-space: nowrap; }
.wl-done { font-size: 16px; line-height: 22.4px; margin: 0; border: 1px solid #fff; padding: 12px 24px; display: none; }
.wl-err { font-size: 11px; line-height: 18.15px; margin: -20px 0 0 0; color: #fff; display: none; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- doc pages (privacy / terms / support) ---- */
.doc { padding-top: 72px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.15; font-weight: 400; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.doc .doc-updated { margin: 16px 0 0 0; }
.doc .doc-sec { margin-top: 64px; }
.doc .doc-sec p, .doc .doc-sec li { font-size: 14.5px; line-height: 20.3px; margin: 16px 0 0 0; max-width: 70ch; }
.doc .doc-sec ul { margin: 16px 0 0 0; padding-left: 20px; }
.doc .doc-sec li { margin: 8px 0 0 0; }
.doc .doc-note { color: var(--color-muted); }
.doc .grid-cells p { margin: 0; } /* FAQ cells keep the index grid rhythm, not doc-paragraph rhythm */
.doc-contact { border: 1px solid #000; padding: 24px; margin-top: 24px; display: inline-block; }
.doc-contact p { margin: 0 0 8px 0; }
.doc-contact a { font-size: 18px; }

/* ---- footer ---- */
footer.site { padding-top: 48px; padding-bottom: 48px; }
footer.site .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
footer.site img { height: 14px; width: auto; display: block; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
footer.site a { font-size: 11px; }
.foot-copy { margin: 24px 0 0 0; }

/* ---- motion: scroll reveals, hero reveal, Ken Burns ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

.strip .cell img, .why-img img { animation: kb 14s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.045); } }

.hero h1 .hero-word { display: inline-block; opacity: 0; transform: translateY(.25em); transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms); }
.hero h1.in .hero-word { opacity: 1; transform: none; }
.hero-cursor { display: inline-block; margin-left: .08em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- reduced motion: information stays, decoration stops ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero h1 .hero-word { opacity: 1; transform: none; transition: none; }
  .strip .cell img, .why-img img { animation: none; }
  .hero-cursor { animation: none; }
  .grid-cells .cell, .phone { transition: none; }
  .phone:hover { transform: none; }
  /* marquee stops; the row becomes a normal swipeable strip (duplicate set hidden) */
  .pp-track { animation: none; width: auto; }
  .pp-band { overflow-x: auto; }
  .pp-set[aria-hidden="true"] { display: none; }
}
