/* Fashion Frames landing page. Served as it is, no build (see deploy.md).
   Layout: a light grey sheet ruled with hairlines, like a lay marked for cutting; one wide column, big pictures, few words.
   The app pieces use the app's own values (client/web/src/index.css). */

@font-face { font-family: 'Playfair Display'; src: url(fonts/playfair-display-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(fonts/nunito-latin-wght-normal.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
/* Only for ₹ */
@font-face { font-family: 'Nunito'; src: url(fonts/nunito-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; unicode-range: U+20A0-20AB, U+20AD-20C0; }

/* The shade on the hero shirt. Registered so the cloth and the ground behind it fade together. */
@property --cloth { syntax: '<color>'; inherits: true; initial-value: #d9c3a0; }

:root {
  --paper: #f4f5f7;
  --paper-2: #eaecf0;
  --rule: #dde1e8;
  --ink: #111827;
  --muted: #6b7280;
  --navy: #0b1f44;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-line: #93c5fd;
  --white: #fff;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --green: #047857;
  --green-soft: #ecfdf5;
  --red: #dc2626;

  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;

  --h1: clamp(2.5rem, 5.4vw, 4.5rem);
  --h2: clamp(2rem, 4vw, 3.5rem);
  --h3: clamp(1.75rem, 3.2vw, 2.75rem);
  --gutter: clamp(20px, 4vw, 56px);
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 600; transition: background .15s; }
.button:hover { background: var(--blue-dark); }
.button.big { min-height: 52px; padding: 0 32px; font-size: 17px; border-radius: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-inline: var(--gutter); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-size: 19px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.brand svg { width: 36px; height: 36px; flex: none; }
.top nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.top nav a { padding: 10px 0; }
.top nav a:hover { color: var(--blue); }
.top .button { justify-self: end; }

/* Hero */
.hero { background: linear-gradient(105deg, color-mix(in srgb, var(--cloth) 16%, var(--paper)) 0%, color-mix(in srgb, var(--cloth) 52%, var(--paper)) 100%); border-bottom: 1px solid var(--rule); overflow: hidden; transition: --cloth .7s ease; }
.hero-in { max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; }
.hero h1 { max-width: 11.5em; margin-bottom: 36px; }
.wear { position: relative; align-self: end; display: grid; justify-items: center; padding-top: 40px; }
.wear > .shirt { width: min(100%, 620px); margin-bottom: -56px; filter: drop-shadow(0 26px 30px rgb(17 24 39 / .16)); }
.shades { position: absolute; right: 0; bottom: 36px; padding: 16px 18px 18px; display: grid; gap: 12px; }
.shades output { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; }
.chips button { width: 36px; height: 36px; padding: 0; border: 1px solid rgb(17 24 39 / .18); border-radius: 8px; background: var(--c); cursor: pointer; }
.chips button[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The shirt: client/packages/shared/src/shirt-art.ts, styled as in the app */
.shirt { --stitch: #4a5263; display: block; overflow: visible; }
.body-fill { fill: var(--cloth); }
.body-line, .yoke { fill: none; stroke: #1f2937; stroke-width: 1.2; stroke-linejoin: round; }
.part path, .part rect, .part circle { fill: var(--cloth); stroke: #1f2937; stroke-width: 1.2; stroke-linejoin: round; }
.part .ln { fill: none; stroke-width: 1; }
.part .edge { stroke-width: 1.2; }
.part .btn { fill: #1f2937; stroke: none; }
.part .fillonly { stroke: none; }
.st { fill: none; stroke: var(--stitch); opacity: .7; }

/* Ruled sections */
.sheet { max-width: 1400px; margin: 0 auto; border-inline: 1px solid var(--rule); }
.title { padding: clamp(72px, 10vw, 136px) var(--gutter) clamp(48px, 6vw, 88px); text-align: center; }
.row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); min-height: 520px; }
.row > * { min-width: 0; }
.row > h3 { align-self: center; padding: 48px clamp(24px, 6vw, 96px); }
.row > .view { position: relative; display: grid; place-items: center; padding: 56px clamp(16px, 3.4vw, 56px); border-left: 1px solid var(--rule); }
.row:nth-of-type(even) > h3 { order: 2; }
.row:nth-of-type(even) > .view { border-left: 0; border-right: 1px solid var(--rule); background: var(--paper-2); }

/* Pieces of the app */
.piece { background: var(--white); border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 2px rgb(17 24 39 / .04), 0 18px 40px -18px rgb(17 24 39 / .22); }
.stack { position: relative; width: min(100%, 520px); }
.piece header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 18px 20px; font-size: 17px; font-weight: 600; }
.piece small, .phone small { font-size: 13px; color: var(--muted); font-weight: 400; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0 20px 16px; font-size: 13px; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--muted); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; background: #f3f4f6; color: #374151; }
.pill.blue { background: var(--blue-soft); color: var(--blue-dark); }
.pill.green { background: var(--green-soft); color: var(--green); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ok { color: var(--green); font-weight: 700; }
.late { color: var(--red); }

.grid { display: grid; font-size: 14px; }
.grid > * { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 10px; padding: 13px 20px; border-top: 1px solid #e5e7eb; }
.grid > :first-child { background: #f3f4f6; color: var(--muted); font-size: 13px; padding-block: 9px; }

.note { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.purchase { padding-bottom: 46px; }
.purchase .note { right: -14px; bottom: 0; }

.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid #e5e7eb; }
.line:first-child { border-top: 0; }
.line .thumb { width: 52px; height: 52px; padding: 5px; border-radius: 9px; background: #f3f4f6; }
.line b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }

.duo { display: flex; align-items: center; justify-content: center; gap: 24px; width: 100%; }
.phone { width: 276px; flex: none; padding: 8px; border-radius: 36px; background: var(--ink); box-shadow: 0 28px 50px -22px rgb(17 24 39 / .5); }
.phone > div { display: grid; align-content: start; gap: 12px; padding: 22px 14px 14px; border-radius: 29px; background: #f6f7f9; }
.phone .head { font-size: 18px; font-weight: 600; }
.card { padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: var(--white); }
.press { display: grid; place-items: center; min-height: 48px; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 600; }
.said { padding-left: 12px; border-left: 2px solid var(--blue-line); }
.phone .line { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; }
.phone .line .thumb { width: 40px; height: 40px; padding: 4px; }
.sum { display: flex; justify-content: space-between; font-weight: 700; font-variant-numeric: tabular-nums; }

.steps { padding: 18px 22px; display: grid; gap: 11px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); white-space: nowrap; }
.steps li::before { content: ''; width: 18px; flex: none; text-align: center; color: #c3c9d3; content: '•'; }
.steps .done { color: var(--ink); }
.steps .done::before { content: '✓'; color: var(--green); font-weight: 700; }


.sizes { padding: 8px 22px; min-width: 132px; font-variant-numeric: tabular-nums; }
.sizes div { display: flex; justify-content: space-between; gap: 32px; padding: 10px 0; }
.sizes div + div { border-top: 1px solid #e5e7eb; }
.sizes dt { color: var(--muted); }
.sizes dd { font-weight: 600; }

.parcels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px 20px; }
.parcels li { padding: 14px 8px; border: 1px solid #e5e7eb; border-radius: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.parcels svg { display: block; width: 44px; margin: 0 auto 8px; }
.parcels b { display: block; color: var(--ink); font-size: 15px; }
.foot { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid #e5e7eb; }
.foot .press { min-height: 42px; padding: 0 20px; }

/* Dashboard */
.board { padding: 0 var(--gutter) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.sheet + .sheet, .ruled { border-top: 1px solid var(--rule); }
.board .list { grid-column: span 6; overflow: hidden; }
.list .item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid #e5e7eb; }
.list .item > :last-child { text-align: right; white-space: nowrap; }
.list .item span span { display: block; font-size: 13px; }
.tile { grid-column: span 3; padding: 20px; display: grid; align-content: space-between; gap: 22px; box-shadow: none; }
.tile b { font-size: 40px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.features li { display: grid; grid-template-rows: 1fr auto; gap: 32px; padding: 56px 28px 36px; border-left: 1px solid var(--rule); }
.features li:nth-child(1) { border-left: 0; }
.features li:nth-child(even) { background: var(--paper-2); }
.features img { display: block; height: 250px; max-width: 100%; margin: auto; object-fit: contain; }
.features p { font-size: 21px; line-height: 1.3; text-wrap: balance; }

/* Close */
.close { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.close > div { padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 96px); align-self: center; }
.close h2 { margin-bottom: 32px; }
.rail { display: block; width: 100%; height: 100%; min-height: 300px; border-left: 1px solid var(--rule); background: linear-gradient(120deg, #ece3d4, #d9c3a0); }

.end { background: var(--paper-2); border-top: 1px solid var(--rule); }
.end div { max-width: 1400px; margin: 0 auto; padding: 36px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.end p { color: #4b5563; }

@media (max-width: 1100px) {
  .duo .steps, .duo .sizes { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features li:nth-child(odd) { border-left: 0; }
  .features li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .features li:nth-child(even) { background: none; }
  .features li:nth-child(2), .features li:nth-child(3) { background: var(--paper-2); }
  .tile { grid-column: span 6; }
  .shades { padding: 12px 14px 14px; gap: 8px; }
  .chips { gap: 6px; }
  .chips button { width: 28px; height: 28px; }
}
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top nav { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 56px; }
  .wear { padding-top: 28px; }
  .wear > .shirt { width: min(100%, 520px); }
  .wear > .shirt { margin-bottom: 0; }
  .shades { position: static; margin: 20px 0 36px; }
  .row, .close { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .row > h3, .row:nth-of-type(even) > h3 { order: 0; padding: 48px var(--gutter) 0; }
  .row > .view, .row:nth-of-type(even) > .view { border: 0; background: none; padding: 32px var(--gutter) 56px; }
  .row:nth-of-type(even) { background: var(--paper-2); }
  .board .list { grid-column: span 12; }
  .chips { gap: 10px; }
  .chips button { width: 40px; height: 40px; }
  .rail { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .brand { font-size: 17px; gap: 10px; }
  .top .button { padding: 0 16px; }
  .purchase .note { right: -4px; }
  .grid > * { gap: 6px; padding-inline: 14px; font-size: 13px; }
  .grid > * { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .line { padding-inline: 14px; }
  .features li { padding: 32px 16px 24px; gap: 20px; }
  .features img { height: 150px; }
  .features p { font-size: 17px; }
  .tile { padding: 16px; }
  .tile b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { transition: none; }
}
