/* fotostax shared components. Load after tokens.css and base.css.
   Concepts restyle freely with their own CSS; keep the behaviour hooks (data-* attributes) intact. */

/* ---------- Buttons ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.5em;
  border: 0; border-radius: var(--fx-radius-pill);
  font-family: var(--fx-font-text); font-weight: 700; font-size: 1.125rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--fx-dur-2) var(--fx-ease-out), color var(--fx-dur-2) var(--fx-ease-out), box-shadow var(--fx-dur-2) var(--fx-ease-out);
}
.fx-btn--primary { background: var(--fx-magenta); color: var(--fx-white); }
.fx-btn--primary:hover { background: #d0137d; }
.fx-btn--primary:active { background: #b80f6e; }
.fx-btn--ink { background: var(--fx-ink); color: var(--fx-white); }
.fx-btn--ink:hover { background: #2a2a2a; }
.fx-btn--ghost { background: transparent; color: var(--fx-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.fx-btn--ghost:hover { background: rgba(18, 18, 18, 0.05); }
.fx-btn--small { min-height: 44px; font-size: 1rem; padding: 0 1.15em; }

.fx-link { font-weight: 700; color: var(--fx-ink); text-decoration: underline; text-decoration-color: var(--fx-magenta); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.fx-link:hover { color: var(--fx-magenta-text); }

/* ---------- Waitlist signup ---------- */
.fx-signup { width: 100%; max-width: 32rem; }
.fx-signup__label { display: block; font-weight: 700; font-size: var(--fx-step--1); margin-bottom: var(--fx-space-2); }
.fx-signup__row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--fx-white);
  border: 1.5px solid var(--fx-ink);
  border-radius: var(--fx-radius-pill);
}
/* 18 Nov 2026: everything the email box shows when it is clicked stays inside the row. The ring is drawn inside the
   border (it was 3px outside), the box itself takes the row's rounded shape (it was a square-cornered block whose corners
   reached past the pill), and a browser's autofill colour is covered in white, so a filled-in address looks like a typed one. */
.fx-signup__row:focus-within { box-shadow: inset 0 0 0 3px var(--fx-magenta-tint); border-color: var(--fx-magenta); }
.fx-signup__input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 0 0.9em; min-height: 46px;
  font-size: 1.0625rem;
}
.fx-signup__input, .fx-signup__input:focus-visible { border-radius: var(--fx-signup-r, var(--fx-radius-pill)); }
.fx-signup__input:-webkit-autofill, .fx-signup__input:-webkit-autofill:hover, .fx-signup__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fx-ink); caret-color: var(--fx-ink);
  -webkit-box-shadow: inset 0 0 0 100px var(--fx-white); box-shadow: inset 0 0 0 100px var(--fx-white);
}
.fx-signup__input:autofill { box-shadow: inset 0 0 0 100px var(--fx-white); }
.fx-signup__input::placeholder { color: #8a8a8a; }
.fx-signup .fx-btn { min-height: 46px; flex: 0 0 auto; }
.fx-signup__note { margin-top: var(--fx-space-3); font-size: var(--fx-step--1); color: var(--fx-ink-3); }
.fx-signup__error { margin-top: var(--fx-space-2); font-size: var(--fx-step--1); font-weight: 700; color: #b0004f; }
.fx-signup.is-invalid .fx-signup__row { border-color: #b0004f; }
/* 18 Nov 2026: one column that can shrink, and a long address breaks onto the next line. Before, a long address
   pushed the thank-you box and its card wider than a phone screen. */
.fx-signup__success { display: grid; grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; gap: var(--fx-space-1); padding: var(--fx-space-4) var(--fx-space-5); border-radius: var(--fx-radius-m); background: var(--fx-paper); border: 1px solid var(--fx-line); }
.fx-signup__success:focus { outline: none; }
.fx-signup__success strong { font-family: var(--fx-font-display); font-weight: 600; font-size: var(--fx-step-2); line-height: 1.1; }
.fx-review-note { font-size: var(--fx-step--2); color: var(--fx-ink-3); letter-spacing: 0.01em; }
@media (max-width: 479px) {
  .fx-signup__row { flex-direction: column; border-radius: var(--fx-radius-m); padding: 6px; --fx-signup-r: 8px; }
  .fx-signup__input { min-height: 50px; }
  .fx-signup .fx-btn { width: 100%; min-height: 50px; border-radius: 10px; }
}
/* Dark surfaces */
.fx-on-dark .fx-signup__row { border-color: var(--fx-white); }
.fx-on-dark .fx-signup__note, .fx-on-dark .fx-review-note { color: rgba(255, 255, 255, 0.72); }
.fx-on-dark .fx-signup__success { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: var(--fx-white); }
.fx-on-dark .fx-signup__error { color: #ff8fc5; }

/* ---------- Contact (retail / press / investors) ---------- */
.fx-contact { display: grid; gap: var(--fx-space-4); max-width: 34rem; }
.fx-contact__field { display: grid; gap: var(--fx-space-1); }
.fx-contact__field label { font-weight: 700; font-size: var(--fx-step--1); }
.fx-contact input, .fx-contact select, .fx-contact textarea {
  width: 100%; min-height: 48px; padding: 0.7em 0.9em;
  border: 1.5px solid #bdbab3; border-radius: var(--fx-radius-s); background: var(--fx-white);
}
.fx-contact textarea { min-height: 7rem; resize: vertical; }
.fx-contact input:focus, .fx-contact select:focus, .fx-contact textarea:focus { outline: 2px solid var(--fx-ink); outline-offset: 1px; border-color: var(--fx-ink); }
.fx-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fx-space-4); }

/* Disclosure used for the secondary contact route */
.fx-disclosure > summary { cursor: pointer; list-style: none; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4em; }
.fx-disclosure > summary::-webkit-details-marker { display: none; }
.fx-disclosure > summary::after { content: ""; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); transition: transform var(--fx-dur-2) var(--fx-ease-out); }
.fx-disclosure[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
.fx-disclosure > summary + * { margin-top: var(--fx-space-5); }

/* ---------- Social links ---------- */
.fx-social { display: flex; flex-wrap: wrap; gap: var(--fx-space-2) var(--fx-space-5); padding: 0; margin: 0; list-style: none; }
.fx-social a { font-weight: 500; text-decoration: none; }
.fx-social a:hover { text-decoration: underline; text-decoration-color: var(--fx-magenta); }

/* ---------- Logo ---------- */
.fx-logo { display: inline-block; line-height: 0; }
.fx-logo img { height: 34px; width: auto; }

/* ---------- CMY signature (use with restraint) ---------- */
/* Offset echo behind display type: yellow and cyan copies sit behind the ink, like the bolt. */
.fx-cmy-text { text-shadow: calc(var(--fx-offset) * -1) 0 0 var(--fx-yellow), var(--fx-offset) 0 0 var(--fx-cyan); }
/* Three-line rule */
.fx-cmy-rule { display: block; height: 10px; width: 72px; background:
  linear-gradient(var(--fx-yellow), var(--fx-yellow)) 0 0 / 100% 3px no-repeat,
  linear-gradient(var(--fx-magenta), var(--fx-magenta)) 6px 3.5px / 100% 3px no-repeat,
  linear-gradient(var(--fx-cyan), var(--fx-cyan)) 12px 7px / 100% 3px no-repeat; }
/* Stacked-print edge: offset cyan and yellow layers peeking out behind a white card */
.fx-cmy-stack { position: relative; isolation: isolate; }
.fx-cmy-stack::before, .fx-cmy-stack::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; }
.fx-cmy-stack::before { background: var(--fx-yellow); transform: translate(-8px, 8px); }
.fx-cmy-stack::after { background: var(--fx-cyan); transform: translate(8px, -8px); }

/* ---------- Video loops ---------- */
.fx-video { position: relative; overflow: hidden; background: var(--fx-mist); }
.fx-video > video { width: 100%; height: 100%; object-fit: cover; }
/* Nov 19: the loops take no mouse or touch, so the browser's own hover buttons (Edge's "Picture in picture" and
   "Enhance") never show on them. Hover, clicks and touches land on the .fx-video box around the video instead. */
video[data-fx-loop] { pointer-events: none; }
.fx-video__toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(13, 13, 15, 0.55); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0.85; transition: opacity var(--fx-dur-2) var(--fx-ease-out);
}
.fx-video__toggle:hover, .fx-video__toggle:focus-visible { opacity: 1; }
.fx-video__toggle svg { width: 16px; height: 16px; }
.fx-video__toggle[data-size="large"] { width: 64px; height: 64px; right: 50%; bottom: 50%; transform: translate(50%, 50%); }
.fx-video__toggle[data-size="large"] svg { width: 22px; height: 22px; }
.fx-video__caption { font-size: var(--fx-step--1); color: var(--fx-ink-3); margin-top: var(--fx-space-2); }

/* ---------- Interactive print ---------- */
.fx-print { position: relative; width: 100%; max-width: 100%; --fx-print-pad: 3.6%; }
.fx-print__stage {
  position: relative; display: block; width: 100%;
  perspective: 1100px; perspective-origin: 50% 50%;
  border-radius: var(--fx-radius-xs);
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;                  /* page still scrolls on phones; horizontal drags reach the print */
  outline: none;
}
.fx-print__stage:focus-visible .fx-print__card { outline: 2px solid var(--fx-ink); outline-offset: 6px; }
.fx-print__card {
  position: relative; width: 100%;
  padding: var(--fx-print-pad);
  background: #fbfbf9;
  border-radius: var(--fx-radius-xs);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    0 1px 1px rgba(18, 18, 18, 0.10),
    calc(var(--fx-sx, 0) * 1px) calc(10px + var(--fx-sy, 0) * 1px) 26px -10px rgba(18, 18, 18, 0.30),
    calc(var(--fx-sx, 0) * 2px) calc(28px + var(--fx-sy, 0) * 2px) 60px -28px rgba(18, 18, 18, 0.34);
}
.fx-print__image { position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden; background: #e9e7e2; border-radius: 1px; }
.fx-print--landscape .fx-print__image { aspect-ratio: 4 / 3; }
.fx-print__image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; pointer-events: none; -webkit-user-drag: none;
}
.fx-print__image img.is-on { opacity: 1; }
/* Lens ridges: a faint lenticular texture. Vertical for 3D, horizontal for motion and flip. */
.fx-print__ridges {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  mix-blend-mode: soft-light; opacity: 0.4;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, rgba(0, 0, 0, 0.22) 1px 2px, transparent 2px 3px);
}
.fx-print--motion .fx-print__ridges, .fx-print--flip .fx-print__ridges {
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, rgba(0, 0, 0, 0.22) 1px 2px, transparent 2px 3px);
}
.fx-print--still .fx-print__ridges { display: none; }
/* Moving highlight: slides across as the print tilts */
.fx-print__sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  mix-blend-mode: screen;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.34) 50%, rgba(214, 246, 252, 0.14) 54%, transparent 62%);
  background-position: calc(50% + var(--fx-t, 0) * 38%) 50%;
  opacity: calc(0.35 + var(--fx-a, 0) * 0.65);
}
.fx-print--motion .fx-print__sheen, .fx-print--flip .fx-print__sheen {
  background-image: linear-gradient(195deg, transparent 38%, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.34) 50%, rgba(214, 246, 252, 0.14) 54%, transparent 62%);
  background-position: 50% calc(50% - var(--fx-t, 0) * 38%);
}
.fx-print__caption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  margin-top: 14px; font-size: var(--fx-step--1); line-height: 1.35; color: var(--fx-ink-3);
}
.fx-print__tag { font-size: var(--fx-step--2); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--fx-ink-3); }
.fx-print__hint { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--fx-ink-2); transition: opacity var(--fx-dur-3) var(--fx-ease-out); }
.fx-print__hint::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--fx-hint-icon) center / contain no-repeat; mask: var(--fx-hint-icon) center / contain no-repeat;
  --fx-hint-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l3 3H9v8h2l-3 3-3-3h2V4H5z'/%3E%3C/svg%3E"); }
.fx-print--3d .fx-print__hint::before { transform: rotate(90deg); }
.fx-print.is-hinting .fx-print__hint { color: var(--fx-ink); }
/* Nov 18, iPhones only: until phone tilt is on, each print that plays carries a short cue on its lower edge, a black
   pill with a hard shadow in the colour of the sheet behind the print (magenta where there is none) and a small phone
   that tips the way the print plays. theme.js (section 4) adds it and puts fx-tilt-ask on the root while it should
   show. Every touch goes through it to the print. */
.fx-print__tilt-cue {
  position: absolute; left: 50%; bottom: 14px; z-index: 4; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  padding: 7px 13px 7px 10px; border-radius: var(--fx-radius-pill);
  background: #000; color: #fff; box-shadow: 3px 3px 0 var(--c, var(--fx-magenta));
  font-family: var(--fx-font-display); font-weight: 600; font-size: 0.875rem; line-height: 1.1; word-spacing: 0.06em; white-space: nowrap;
  pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.fx-tilt-ask .fx-print__tilt-cue { opacity: 1; visibility: visible; transition-delay: 0s; }
.fx-print__tilt-cue::before {
  content: ""; flex: none; box-sizing: border-box; width: 11px; height: 18px; border: 2.5px solid currentColor; border-radius: 3px;
  animation: fx-tilt-tip 0.9s ease-in-out infinite alternate;
}
.fx-print--3d .fx-print__tilt-cue::before { animation-name: fx-tilt-turn; }
@keyframes fx-tilt-tip { from { transform: perspective(28px) rotateX(30deg); } to { transform: perspective(28px) rotateX(-30deg); } }
@keyframes fx-tilt-turn { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .fx-print__tilt-cue::before { animation: none; } }
/* On a print narrower than the full line ("Tap, then tilt your phone"), it reads "Tap, then tilt". */
.fx-print__stage.has-tilt-cue { container-type: inline-size; }
@container (max-width: 239px) { .fx-print__tilt-more { display: none; } }
.fx-print__gyro {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: var(--fx-radius-pill);
  border: 1.5px solid var(--fx-ink); background: var(--fx-white); color: var(--fx-ink);
  font-weight: 700; font-size: var(--fx-step--1);
}
.fx-print__gyro[aria-pressed="true"] { background: var(--fx-ink); color: var(--fx-white); }
.fx-print[data-ui="minimal"] .fx-print__caption .fx-print__hint { display: none; }
.fx-print[data-ui="none"] .fx-print__caption, .fx-print[data-ui="none"] .fx-print__gyro { display: none; }
.fx-print__corner-tag {
  position: absolute; left: calc(var(--fx-print-pad) + 8px); top: calc(var(--fx-print-pad) + 8px); z-index: 2;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  background: rgba(255, 255, 255, 0.86); color: var(--fx-ink); padding: 3px 6px; border-radius: 3px;
  transform: translateZ(1px);
}
.fx-print[data-ui="none"] .fx-print__corner-tag { display: block; }
.fx-print:not([data-ui="none"]) .fx-print__corner-tag { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-print__card { transform: none !important; }
}

/* ---------- Review chrome (internal only) ---------- */
.fx-review-pill {
  position: fixed; left: 12px; bottom: 12px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 12px; border-radius: var(--fx-radius-pill);
  background: rgba(18, 18, 18, 0.86); color: #fff; text-decoration: none;
  font: 500 12px/1.2 var(--fx-font-text); letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
}
.fx-review-pill:hover { background: #000; color: #fff; }
.fx-review-pill b { font-weight: 700; }
@media print { .fx-review-pill { display: none; } }
