/* HueApp/docs/DESIGN.md (PR #186). UI colors are distinct from nail-colors.css.
   Web adaptations: neutral #242424/#595959 text, #dedede borders for contrast;
   responsive grid instead of the app's horizontal color list. */
:root {
  --accent: #fdaea1;
  --background: #fff8f6;
  --text: #242424;
  --secondary: #595959;
  --border: #dedede;
  font-family: Avenir, "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.75;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
button, select { font: inherit; color: inherit; }
a, button, summary, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; padding: 10px 20px; background: white; z-index: 2; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header { min-height: 96px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 78px; height: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
[data-language] { border: 1px solid var(--border); border-radius: 20px; padding: 4px 16px; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; padding-block: 56px 80px; }
.eyebrow, .panel-label { font-size: 14px; margin: 0 0 16px; color: var(--secondary); }
h1 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.45; font-weight: 400; letter-spacing: -.025em; margin: 0 0 24px; }
h2 { font-size: 26px; line-height: 1.6; font-weight: 400; margin: 0 0 20px; }
h3 { font-size: 20px; font-weight: 400; margin: 12px 0; }
p { margin: 0 0 20px; }
.lead { max-width: 32em; font-size: 16px; color: var(--secondary); margin-bottom: 30px; }
.store-cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 24px; min-height: 64px; max-width: 100%; background: var(--accent); border-radius: 20px; text-decoration: none; font-size: 18px; line-height: 1.5; text-align: center; }
.store-cta:hover { box-shadow: inset 0 0 0 2px var(--text); }
.store-cta span { flex-shrink: 0; }
.note { font-size: 13px; color: var(--secondary); line-height: 1.8; margin: 16px 0 0; }
.region-jump { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; margin-top: 8px; }
.color-panel { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--border); min-width: 0; }
.color-panel h2 { font-size: 24px; margin: 0 0 4px; }
.color-hint { font-size: 14px; color: var(--secondary); margin-bottom: 16px; }
.colors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.color-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; font-size: 14px; min-width: 0; }
.swatch { width: 64px; height: 64px; border-radius: 50%; background: var(--swatch); display: grid; place-items: center; border: 1px solid #00000018; }
.color-choice:hover .swatch { box-shadow: 0 0 0 3px #00000012; }
.how { padding-block: 48px 64px; border-top: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; padding: 0; margin: 30px 0 0; }
.steps li { padding: 24px; background: white; border-radius: 16px; }
.step-number { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); font-size: 14px; }
.steps p { font-size: 16px; color: var(--secondary); margin: 0; }
.examples, .pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 50px; border-top: 1px solid var(--border); }
.examples p, .pricing p { color: var(--secondary); }
.examples h2 { font-size: 24px; }
.pending { background: white; border: 1px dashed #999; border-radius: 16px; padding: 30px; display: grid; align-items: center; }
.pending p { margin: 0; font-size: 14px; }
.pricing > div > p { max-width: 36em; }
summary { padding: 20px 4px; cursor: pointer; }
.questions details { border-top: 1px solid var(--border); }
.questions details:last-child { border-bottom: 1px solid var(--border); }
details p { padding: 0 4px 20px; margin: 0; font-size: 14px; }
.closing { padding: 56px 0; background: #fff; text-align: center; }
.closing h2 { margin-bottom: 24px; }
.region { max-width: 430px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); }
.region label { display: block; font-size: 14px; margin-bottom: 8px; }
select { background: white; border: 1px solid #777; border-radius: 8px; min-height: 48px; padding: 8px 36px 8px 16px; max-width: 100%; }
.region .note { margin-top: 8px; }
footer { padding-block: 30px; }
.footer-row { margin-bottom: 20px; }
.footer-row > a:last-child { padding-block: 10px; font-size: 14px; }
footer nav a, footer small { font-size: 12px; }
footer .note { margin: 8px 0 16px; }
section, #store-region { scroll-margin-top: 24px; }
@media (max-width: 1000px) {
  .hero { gap: 30px; grid-template-columns: 1fr 1.1fr; }
  .colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .color-panel { padding: 20px; }
  .examples, .pricing { gap: 30px; }
  .steps { gap: 16px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 80px; }
  .brand img { width: 64px; }
  nav { gap: 16px; }
  nav a { font-size: 13px; }
  [data-language] { padding-inline: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 32px 44px; gap: 30px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .color-panel { padding: 20px 12px; }
  .colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .color-choice { font-size: 13px; }
  .steps, .examples, .pricing { grid-template-columns: 1fr; gap: 24px; }
  .how, .examples, .pricing { padding-block: 36px; }
  .store-cta { font-size: 16px; }
  .closing { padding-block: 40px; }
  footer nav { gap: 4px 20px; }
}
@media (max-width: 360px) {
  .header { gap: 12px; }
  nav { gap: 10px; }
  nav a { font-size: 12px; }
  h1 { font-size: 32px; }
  .colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Result-first acquisition layout: mobile order is title, artwork, then CTA. */
.hero { grid-template-columns: 1fr 1.12fr; grid-template-rows: auto auto; gap: 24px 48px; align-items: center; padding-top: 40px; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.hero-copy h1 { font-size: clamp(32px, 3.3vw, 46px); margin: 0; }
.hero-action { grid-column: 1; grid-row: 2; align-self: start; }
.hero-action .lead { margin-bottom: 24px; }
.hero-art { grid-column: 2; grid-row: 1 / 3; margin: 0; min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: 16px; }
.hero-art figcaption { margin: 12px 0 0; color: var(--secondary); font-size: 12px; }
.examples { display: block; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading p:last-child { color: var(--secondary); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.design-card { margin: 0; min-width: 0; }
.design-card img { width: 100%; height: auto; display: block; border-radius: 16px; }
.design-card h3 { font-size: 20px; margin: 16px 0 12px; }
.design-card p { font-size: 14px; }
.design-inputs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.design-inputs span { border: 1px solid var(--border); background: white; border-radius: 4px; padding: 3px 8px; font-size: 12px; }
.color-reference { width: min(1160px, calc(100% - 80px)); margin: 0 auto 40px; border: 0; }
.color-reference > summary { font-size: 14px; }
.color-panel { border: 0; margin-bottom: 20px; padding: 20px; }
.colors { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 4px; }
.color-choice { cursor: default; }
.color-choice:hover .swatch { box-shadow: none; }
@media(max-width:760px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-top: 24px; }
  .hero-copy { order: 0; align-self: stretch; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero-art { order: 1; }
  .hero-action { order: 2; }
  .hero-art figcaption { margin-top: 8px; }
  .hero-action .lead { margin-bottom: 20px; }
  .gallery { grid-template-columns: 1fr; gap: 32px; }
  .section-heading h2 { font-size: 24px; }
  .color-reference { width: calc(100% - 40px); }
  .color-panel { padding: 16px 0; }
  .colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media(max-width:360px) { .hero-copy h1 { font-size: 28px; }.colors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.brief-label { display: block; margin-bottom: 4px; font-size: 12px; }
