:root {
  color-scheme:light;
  --paper:#f1ebdf; --surface:#faf6ee; --panel:#e8dfd1; --ink:#2d2723; --muted:#6c5f54;
  --line:#d9cebe; --accent:#b63e1c; --accent-soft:#f6e1d3;
  --heading:Georgia,'Times New Roman',serif;
  --ease:cubic-bezier(.22,.68,0,1.05);
  --shadow:0 8px 24px #4933240a,0 1px 2px #49332408;
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-top:env(safe-area-inset-top,0px);
  font-family:Arial,Helvetica,sans-serif; font-size:14px; line-height:1.5;
  color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; min-width:280px; -webkit-font-smoothing:antialiased; }
body:has(.photo-viewer[open]) { overflow:hidden; }
button,input,a { -webkit-tap-highlight-color:transparent; }
button,input { font:inherit; }
button,a { touch-action:manipulation; }
button { color:inherit; cursor:pointer; }
button:disabled { cursor:default; opacity:.5; }
a { color:inherit; text-decoration:none; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
button:focus:not(:focus-visible),main:focus { outline:none; }
[hidden] { display:none !important; }
h1,h2,h3,p,figure { margin:0; }
img { display:block; max-width:100%; }
svg { display:inline-block; vertical-align:middle; flex:none; }
::selection { background:var(--accent-soft); color:var(--ink); }
.app-shell { max-width:540px; margin:0 auto; min-height:100dvh; }
.app-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:calc(14px + var(--safe-top)) 22px 13px; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:8px; font-size:13px; letter-spacing:.035em; font-weight:600; min-height:44px; min-width:0; }
.brand span { overflow-wrap:anywhere; }
.brand svg { color:var(--accent); width:23px; height:23px; stroke-width:1.35; }
.version-label { flex:none; font-size:11px; color:var(--muted); }
.header-packages { display:inline-flex; align-items:center; justify-content:center; flex:none; min-height:44px; gap:7px; padding:0 13px; border:1px solid var(--line); border-radius:100px; background:#faf6ee9c; font-size:12px; }
.header-packages svg { width:15px; height:15px; color:var(--accent); }
.header-packages[aria-current="page"] { background:var(--ink); border-color:var(--ink); color:var(--surface); }
.header-packages[aria-current="page"] svg { color:#f4c3a5; }
main { padding:28px 22px calc(116px + var(--safe-bottom)); }
h1 { font-family:var(--heading); font-weight:400; font-size:38px; letter-spacing:-.047em; line-height:1.1; margin-bottom:25px; overflow-wrap:anywhere; }
.eyebrow { display:block; color:var(--accent); font-size:10px; font-weight:600; letter-spacing:.15em; line-height:1.5; text-transform:uppercase; }
.catalogue-heading { margin:4px 0 27px; }
.catalogue-heading h1 { margin:10px 0 11px; font-size:43px; }
.catalogue-caption { color:var(--muted); max-width:31em; font-size:13px; line-height:1.65; }
.catalogue { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:25px 13px; }
.look-card { display:block; border-radius:16px; min-width:0; }
.look-image { position:relative; aspect-ratio:675/1199; border-radius:15px; overflow:hidden; background:var(--panel); box-shadow:var(--shadow); }
.look-image::after { content:''; position:absolute; inset:0; border:1px solid #30261d12; border-radius:inherit; pointer-events:none; }
.look-image img { width:100%; height:100%; object-fit:contain; }
.look-title { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:11px 1px 0; font-size:13px; font-weight:500; line-height:1.45; }
.look-name { min-width:0; }
.look-title svg { width:14px; height:14px; margin-top:2px; color:var(--muted); }
.placeholder .look-image { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:11px; border:1px solid var(--line); color:#8f806e; background:linear-gradient(145deg,#eee6d9,#e8dfd1); box-shadow:none; }
.placeholder .look-image::after { display:none; }
.placeholder .look-image svg { width:27px; height:27px; stroke-width:1.1; }
.placeholder .look-image span { color:var(--muted); font-size:11px; text-align:center; padding:0 7px; }
.placeholder .look-title { color:var(--muted); font-weight:400; }
.catalogue-footer { display:flex; align-items:center; justify-content:center; gap:8px; border-top:1px solid var(--line); margin-top:30px; padding-top:20px; color:var(--muted); font-size:11px; text-align:center; }
.catalogue-footer svg { width:15px; height:15px; color:var(--accent); }
.bottom-nav { position:fixed; z-index:5; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:540px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; background:#f7f2e9f5; border-top:1px solid #d9cebeaa; padding:9px 17px calc(10px + var(--safe-bottom)); box-shadow:0 -8px 25px #49332404; }
.bottom-nav a { position:relative; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:5px; min-height:55px; font-size:11px; color:var(--muted); border-radius:15px; }
.bottom-nav svg { width:21px; height:21px; stroke-width:1.55; }
.bottom-nav a[aria-current="page"] { color:var(--accent); background:var(--accent-soft); }
.heading-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:-12px 0 16px; min-height:44px; }
.back-link { display:inline-flex; align-items:center; gap:7px; min-height:44px; font-size:12px; color:var(--muted); }
.back-link svg { width:16px; height:16px; }
.icon-button { border:0; background:transparent; border-radius:50%; width:44px; height:44px; display:inline-grid; place-items:center; padding:0; flex:none; }
.icon-button svg { width:19px; height:19px; stroke-width:1.6; }
.favorite { background:var(--surface); border:1px solid var(--line); }
.favorite[aria-pressed="true"] { color:var(--accent); border-color:#d9aa91; background:var(--accent-soft); }
.favorite[aria-pressed="true"] svg { fill:var(--accent); }
.photo-button { border:0; padding:0; display:block; width:100%; background:var(--panel); border-radius:18px; overflow:hidden; cursor:zoom-in; box-shadow:var(--shadow); }
.photo-button img { width:100%; height:auto; object-fit:contain; }
.description { font-size:13px; color:var(--muted); line-height:1.75; margin:20px 0 23px; }
.primary,.secondary { min-height:52px; width:100%; border-radius:13px; display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 16px; font-size:14px; font-weight:600; line-height:1.4; }
.primary { background:var(--accent); border:1px solid var(--accent); color:#fffaf4; box-shadow:0 4px 10px #b63e1514; }
.secondary { background:#faf6ee70; border:1px solid #c6b8a6; }
.primary svg,.secondary svg { width:17px; height:17px; }
.text-link { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:44px; border:0; background:transparent; font-size:12px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.template-summary { display:flex; align-items:center; gap:15px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px; margin-bottom:28px; box-shadow:var(--shadow); }
.template-summary img { width:44px; height:auto; aspect-ratio:675/1199; object-fit:contain; border-radius:7px; flex:none; }
.template-summary strong { font-family:var(--heading); font-size:23px; line-height:1.25; font-weight:400; letter-spacing:-.035em; }
fieldset { border:0; padding:0; margin:0 0 28px; min-width:0; }
legend { display:block; padding:0; margin-bottom:12px; font-size:13px; font-weight:600; }
legend span { color:var(--muted); font-weight:400; }
.upload { position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:5px; padding:25px 15px; border:1px dashed #b7a490; border-radius:17px; background:var(--surface); min-height:151px; cursor:pointer; }
.upload > svg { width:31px; height:31px; color:var(--accent); margin-bottom:8px; stroke-width:1.4; }
.upload strong { font-size:14px; font-weight:500; }
.upload > span { font-size:11px; color:var(--muted); }
.upload input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font-size:16px; }
.upload:focus-within { outline:3px solid var(--accent); outline-offset:3px; }
.upload.busy { opacity:.6; cursor:wait; }
.hint { font-size:11px; color:var(--muted); margin-top:11px; line-height:1.7; }
.draft-note { text-align:center; margin-top:13px; }
.references { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.reference { position:relative; width:80px; height:100px; border-radius:12px; background:var(--panel); border:1px solid var(--line); overflow:hidden; }
.reference img { width:100%; height:100%; object-fit:cover; }
.reference button { position:absolute; top:0; right:0; width:44px; height:44px; display:grid; place-items:center; background:#faf6eeef; border:0; border-radius:0 0 0 12px; }
.reference button svg { width:15px; height:15px; }
.choices { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.choice { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; min-width:0; min-height:73px; padding:11px 2px; border:1px solid var(--line); border-radius:12px; background:#faf6ee78; font-size:11px; }
.choice[aria-pressed="true"] { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); box-shadow:inset 0 0 0 .5px var(--accent); }
.ratio-outline { display:grid; place-items:center; height:23px; width:32px; }
.ratio-outline::after { content:''; display:block; height:21px; width:21px; border:1.2px solid currentColor; border-radius:2px; }
.ratio-4-5::after { width:17px; }
.ratio-3-4::after { width:16px; }
.ratio-9-16::after { width:12px; }
.ratio-16-9::after { height:16px; width:29px; }
.quantities { grid-template-columns:1fr 1fr; }
.quantities .choice { min-height:50px; flex-direction:row; gap:8px; font-size:13px; }
.choice svg { width:16px; height:16px; }
.summary { margin:23px 0; border-top:1px solid var(--line); }
.summary div { display:flex; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); padding:15px 0; font-size:13px; }
.summary dt { color:var(--muted); }
.summary dd { margin:0; text-align:right; }
.notice { font-size:12px; line-height:1.7; color:var(--muted); background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:15px 16px; margin-bottom:18px; }
.empty { padding:36px 0 30px; text-align:center; }
.empty-symbol { display:grid; place-items:center; width:78px; height:78px; border-radius:27px; border:1px solid #dac8b4; background:linear-gradient(145deg,#fbf4e9,#e9dbca); color:var(--accent); margin:0 auto 25px; box-shadow:0 8px 22px #8063440a; }
.empty-symbol svg { width:29px; height:29px; stroke-width:1.35; }
.empty p { color:var(--muted); font-size:13px; line-height:1.75; margin-bottom:23px; }
.empty .text-link { margin-top:10px; }
.example-label { display:inline-block; font-size:10px; color:var(--muted); padding:6px 10px; background:var(--panel); border-radius:100px; }
.result-actions { margin-top:20px; display:grid; gap:11px; }
.consent { display:flex; align-items:flex-start; gap:11px; margin:18px 0; font-size:12px; color:var(--muted); line-height:1.65; }
.consent input { flex:none; width:23px; height:23px; margin:0; accent-color:var(--accent); }
.retention { margin:-10px 0 22px; }
.job-card { display:flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--line); border-radius:17px; margin-bottom:12px; background:var(--surface); box-shadow:var(--shadow); }
.job-card > img,.job-placeholder { width:64px; height:86px; object-fit:contain; border-radius:9px; flex:none; }
.job-placeholder { display:grid; place-items:center; background:var(--panel); color:var(--accent); }
.job-card > span:not(.job-placeholder) { flex:1; min-width:0; }
.job-card strong { display:block; font-weight:500; font-size:15px; }
.job-card small { display:block; margin-top:6px; font-size:11px; color:var(--muted); }
.job-card > svg { width:17px; height:17px; color:var(--muted); }
.generated-result { margin-bottom:28px; }
.generated-result .primary { margin-top:14px; }
.error { font-size:12px; line-height:1.65; color:#982b18; background:#f7e4d8; border:1px solid #dab29a; border-radius:12px; padding:12px 14px; margin-top:11px; white-space:pre-line; }
.storage-warning { margin-top:15px; }
.loading,.noscript { padding:30px 0; color:var(--muted); }
.toast { position:fixed; left:50%; transform:translateX(-50%); z-index:30; bottom:calc(92px + var(--safe-bottom)); max-width:calc(100% - 32px); width:max-content; background:var(--ink); color:var(--paper); padding:13px 18px; border:1px solid #ffffff15; border-radius:14px; font-size:12px; box-shadow:0 8px 26px #241d1a26; text-align:center; }
.photo-viewer { padding:0; border:1px solid #ffffff18; border-radius:17px; background:#24221e; color:#f5efe2; width:min(100% - 20px,1000px); max-height:calc(100dvh - 24px); overflow:hidden; }
.photo-viewer::backdrop { background:#14110eed; }
.viewer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 10px 6px 17px; font-size:13px; }
.viewer-toolbar > span { min-width:0; }
.photo-viewer > img { width:100%; max-height:calc(100dvh - 82px); object-fit:contain; }

/* Packages 1-screen horizontal snap deck (9:16) - Cross-platform (iOS, Android, Desktop) */
main[data-page="packages"] {
  padding: 0 0 calc(80px + var(--safe-bottom)) !important;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body[data-page="packages"],
body:has(main[data-page="packages"]) {
  overflow: hidden !important;
  height: 100dvh;
  max-height: 100dvh;
  overscroll-behavior: none;
}

body[data-page="packages"] .app-shell,
.app-shell:has(main[data-page="packages"]) {
  min-height: 0 !important;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

body[data-page="packages"] .app-header,
.app-shell:has(main[data-page="packages"]) .app-header {
  flex: 0 0 auto;
}

.packages-carousel-screen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.packages-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 2px;
  flex: 0 0 auto;
  min-height: 28px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease, width 200ms ease;
}

.carousel-dots .dot.active {
  background: var(--accent);
  width: 16px;
  border-radius: 10px;
  transform: scale(1.05);
}

.carousel-viewport {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 26px 2px;
  gap: 10px;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-viewport {
    cursor: grab;
  }
}

.plan-slide {
  flex: 0 0 calc(100% - 52px);
  width: calc(100% - 52px);
  min-width: calc(100% - 52px);
  max-width: calc(100% - 52px);
  height: 100%;
  min-height: 0;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1), opacity 320ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.plan-slide:not(.is-active) {
  opacity: 0.72;
  transform: scale(0.96);
}

.plan-slide:not(.is-active) .plan-card-inner > * {
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.25, 1, 0.5, 1), transform 280ms cubic-bezier(0.25, 1, 0.5, 1);
}

.plan-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.plan-slide.is-active .plan-card-inner > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms cubic-bezier(0.25, 1, 0.5, 1), transform 320ms cubic-bezier(0.25, 1, 0.5, 1);
}

.plan-card-inner {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  transition: transform 200ms var(--ease), border-color 200ms ease, box-shadow 200ms ease;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.plan-card-inner::-webkit-scrollbar {
  display: none;
}

/* Card Themes */
/* 1. Trial (Sand / Cream) */
.plan-slide-trial .plan-card-inner {
  background: var(--surface);
  border: 1.5px solid var(--line);
}
.plan-slide-trial .tag-trial {
  background: #f0e7db;
  color: var(--muted);
  border: 1px solid #e0d4c3;
}

/* 2. Studio Set (Hit) - Terracotta Border */
.plan-slide-studio .plan-card-inner {
  background: var(--surface);
  border: 2px solid #c85a32;
  box-shadow: 0 10px 28px rgba(200, 90, 50, 0.12), var(--shadow);
}
.plan-slide-studio .tag-studio {
  background: #f6e1d3;
  color: #a43818;
  border: 1px solid #eabfa6;
  font-weight: 600;
}
.plan-slide-studio .plan-select {
  border-color: #c85a32;
}
.plan-slide-studio.is-selected .plan-select {
  background: #c85a32;
  color: #fff;
  border-color: #c85a32;
}

/* 3. Portfolio (Dark Chocolate / Graphite) */
.plan-slide-portfolio .plan-card-inner {
  background: #2d251f;
  color: #fcf5e9;
  border: 1.5px solid #4a3e35;
  box-shadow: 0 12px 30px rgba(45, 37, 31, 0.25);
}
.plan-slide-portfolio .plan-label,
.plan-slide-portfolio .plan-description,
.plan-slide-portfolio .plan-value {
  color: #d3c3b3;
}
.plan-slide-portfolio .tag-portfolio {
  background: #f4c7a6;
  color: #4c3321;
  border: 1px solid #f4c7a6;
}
.plan-slide-portfolio .plan-features li {
  color: #e5d7ca;
}
.plan-slide-portfolio .plan-features svg {
  color: #f4c7a6;
}
.plan-slide-portfolio .plan-select {
  border-color: #726253;
  color: #fff4e8;
}
.plan-slide-portfolio .plan-select[aria-pressed="true"] {
  background: #f0d3b9;
  border-color: #f0d3b9;
  color: #3b2a1d;
}

/* 4. Collection (Obsidian Luxury Gold) */
.plan-slide-collection .plan-card-inner {
  background: linear-gradient(165deg, #221d19, #141210);
  color: #fcf5e9;
  border: 2px solid #d4af37;
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.18);
}
.plan-slide-collection .plan-label,
.plan-slide-collection .plan-description,
.plan-slide-collection .plan-value {
  color: #e2d3c3;
}
.plan-slide-collection .tag-collection {
  background: linear-gradient(135deg, #e8c868, #caa030);
  color: #1a1403;
  border: 1px solid #f2da8a;
  font-weight: 700;
}
.plan-slide-collection .plan-features li {
  color: #f0e3d5;
}
.plan-slide-collection .plan-features svg {
  color: #d4af37;
}
.plan-slide-collection .plan-select {
  border-color: #937d36;
  color: #fcf5e9;
}
.plan-slide-collection .plan-select[aria-pressed="true"] {
  background: #d4af37;
  border-color: #d4af37;
  color: #181203;
}

/* Typography & Layout inside card */
.plan-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  line-height: 1.35;
}

.plan-heading {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.plan-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 5px;
}

.plan-price-block {
  margin: 10px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(150, 130, 110, 0.2);
  border-bottom: 1px solid rgba(150, 130, 110, 0.2);
  padding: 8px 0;
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-amount {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.plan-old-price {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
}

.plan-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
}

.plan-features svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  margin-top: 1px;
  flex: none;
}

.plan-card-bottom {
  margin-top: auto;
  padding-top: 4px;
}

.plan-select {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid #c9baa5;
  border-radius: 14px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: all 180ms ease;
}

.plan-select svg {
  width: 16px;
  height: 16px;
}

.plan-select[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@supports(backdrop-filter:blur(12px)) {
  .bottom-nav { background:#f7f2e9eb; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
}
@media(min-width:700px) {
  body { background:#e6ddcf; }
  .app-shell { background:var(--paper); box-shadow:0 0 0 1px #d8ccba,0 0 70px #49332408; }
}
@media(max-width:360px) {
  .app-header { padding-right:17px; padding-left:17px; gap:8px; }
  main { padding-right:17px; padding-left:17px; }
  h1 { font-size:34px; }
  .catalogue-heading h1,.plans-intro h1 { font-size:39px; }
  .brand { font-size:11px; gap:6px; }
  .brand svg { width:21px; height:21px; }
  .header-packages { font-size:11px; gap:5px; padding-right:11px; padding-left:11px; }
  .version-label { font-size:10px; }
  .catalogue { gap:23px 11px; }
  .look-title { font-size:12px; gap:4px; }
  .look-title svg { width:12px; height:12px; }
  .choices { gap:5px; }
  .plan-card { padding:19px; }
  .plan-heading { font-size:29px; }
  .plan-topline { gap:7px; }
  .plan-tag { font-size:10px; }
}
@media(hover:hover) and (pointer:fine) {
  .look-card:hover .look-image { box-shadow:0 12px 26px #49332416; }
  .look-card:hover .look-title,.back-link:hover,.text-link:hover { color:var(--accent); }
  .header-packages:not([aria-current="page"]):hover,.secondary:hover,.template-summary:hover,.job-card:hover { background:#fffaf2; border-color:#bda891; }
  .primary:not(:disabled):hover { background:#b43e1e; border-color:#b43e1e; }
  .icon-button:not(:disabled):hover,.bottom-nav a:not([aria-current="page"]):hover { background:#e9dfd1; }
  .upload:not(.busy):hover { background:#fffaf2; border-color:var(--accent); }
  .choice:not([aria-pressed="true"]):hover,.plan-select:not([aria-pressed="true"]):hover { border-color:#b68b6f; background:#eaddcc70; }
  .plan-featured .plan-select:not([aria-pressed="true"]):hover { background:#ffffff0d; border-color:#e7b98f; }
}
@media(prefers-reduced-motion:no-preference) {
  .primary,.secondary,.choice,.icon-button,.header-packages,.plan-select,.bottom-nav a,.upload,.job-card,.template-summary { transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease,transform 180ms var(--ease); }
  .look-image,.look-title,.plan-card,.trial-plan { transition:border-color 180ms ease,box-shadow 220ms ease,color 180ms ease,transform 220ms var(--ease); }
  .look-card,.photo-button { transition:transform 200ms var(--ease); }
  .primary:not(:disabled):active,.secondary:not(:disabled):active,.choice:not(:disabled):active,.icon-button:not(:disabled):active,.header-packages:active,.plan-select:active { transform:scale(.975); }
  .look-card:active,.photo-button:active,.job-card:active,.template-summary:active { transform:scale(.988); }
  .bottom-nav a:active { transform:scale(.96); }
  main.route-enter { animation:route-arrive 260ms cubic-bezier(.2,.7,.3,1) both; }
  main.route-enter .catalogue > :nth-child(-n+6) { animation:card-arrive 310ms cubic-bezier(.2,.7,.3,1) both; }
  main.route-enter .catalogue > :nth-child(2) { animation-delay:20ms; }
  main.route-enter .catalogue > :nth-child(3),main.route-enter .catalogue > :nth-child(4) { animation-delay:40ms; }
  main.route-enter .catalogue > :nth-child(5),main.route-enter .catalogue > :nth-child(6) { animation-delay:65ms; }
  .toast:not([hidden]) { animation:toast-arrive 210ms var(--ease) both; }
  .photo-viewer[open] { animation:viewer-arrive 220ms cubic-bezier(.2,.7,.3,1) both; }
  .photo-viewer[open]::backdrop { animation:backdrop-arrive 200ms ease both; }
  @keyframes route-arrive { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
  @keyframes card-arrive { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
  @keyframes toast-arrive { from { opacity:0; transform:translate(-50%,7px); } to { opacity:1; transform:translate(-50%,0); } }
  @keyframes viewer-arrive { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
  @keyframes backdrop-arrive { from { opacity:0; } to { opacity:1; } }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
