/* "Wow" features: particle signature, Try-it live preview, 3D device showcase.
   Uses the tokens from style.css (--grad, --coral, --pink, --violet, --cyan, --border, --muted). */

/* ---------- Particle signature ---------- */
.sig { position: relative; z-index: 2; height: clamp(400px, 56vw, 660px); overflow: hidden; }
.sig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); pointer-events: none; }
.sig-hint b { color: #ffb59c; font-weight: 800; }

/* ---------- Try it: live preview ---------- */
.try-wrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: 28px; align-items: start; }
.try-form { display: grid; gap: 22px; }
.try-form label, .try-group > span { display: grid; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffb59c; }
.try-form input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .05);
  color: var(--text); font: 700 1.05rem Manrope, sans-serif; letter-spacing: 0; text-transform: none; outline: none; transition: border-color .2s, background .2s; }
.try-form input:focus { border-color: var(--pink); background: rgba(255, 255, 255, .08); }
.try-group { display: grid; gap: 10px; }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.try-chips button { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text);
  font: 700 .86rem Manrope, sans-serif; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.try-chips button:active { transform: scale(.95); }
.try-chips button[aria-checked="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.try-chips button:focus { outline: none; }
.try-chips button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.try-form .btn { margin-top: 4px; }
.try-out { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.try-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.try-tabs::-webkit-scrollbar { display: none; }
.try-tabs button { flex: none; padding: 9px 16px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 800 .86rem Manrope, sans-serif; cursor: pointer; transition: color .2s, background .2s; }
.try-tabs button[aria-selected="true"] { background: #fff; color: #0b0c14; }
.try-stage { position: relative; display: grid; place-items: center; min-height: 240px; border-radius: 20px; padding: 14px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(123, 92, 255, .14), rgba(255, 255, 255, .02) 60%); border: 1px solid var(--border); }
/* The preview is pixels only: no text to copy, no image to save, no long-press menu */
.try-stage canvas { display: block; border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.try-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.try-cta p { font-size: .95rem; max-width: 420px; }
.try-cta p b { color: var(--text); }
.try-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* "See it in 3D" viewer: reuses the .lap3d / .ph3d models from the showcase, sized by --tw */
.t3d { --tw: min(60vw, 760px, 64vh); position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto; padding: 18px 20px 24px;
  background: radial-gradient(90% 70% at 50% 45%, rgba(123, 92, 255, .25), transparent 70%), rgba(5, 6, 10, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.t3d[hidden] { display: none; }
.t3d-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; width: 100%; margin: 0 auto; }
.t3d-top p { display: grid; gap: 2px; }
.t3d-top span { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ffb59c; }
.t3d-top b { font: 800 clamp(1.2rem, 3vw, 1.8rem) var(--display); color: var(--text); letter-spacing: -.02em; }
.t3d-close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.t3d-close:hover { background: rgba(255, 255, 255, .16); }
.t3d-stage { position: relative; display: grid; place-items: center; perspective: 1800px; perspective-origin: 50% 35%; min-height: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.t3d-stage:active { cursor: grabbing; }
.t3d-float, .t3d-rig { transform-style: preserve-3d; }
.t3d-rig { position: relative; width: var(--tw); height: calc(var(--tw) * .625); }
.t3d .lap3d { --w: var(--tw); margin-top: 0; position: absolute; inset: 0; }
.t3d .ph3d { --pw: calc(var(--tw) * .27); }
/* iPhone Safari ignores backface-visibility on a face's children (canvas/img screens), so the screen showed
   through the back, mirrored. Every screen layer hides its own back, and the faces sit a hair apart in depth. */
.lap3d .lid-face, .ph3d .ph-face { transform: translateZ(.1em); }
.lap3d .lid-face *, .ph3d .ph-face *, .lap3d .lid-back *, .ph3d .ph-back * { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ph3d .ph-back { transform: rotateY(180deg) translateZ(.1em); }
.t3d canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-touch-callout: none; pointer-events: none; }
.t3d .screen canvas { position: absolute; inset: 0; }
.t3d .ph-face canvas { border-radius: 12em; }
.t3d-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.t3d-hint { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- 3D device showcase (pinned + scrubbed by wow.js) ---------- */
/* Its own page (showcase/): a slim header and a closing call to action */
.sc-actions { display: flex; align-items: center; gap: 22px; font-size: .93rem; font-weight: 700; }
.sc-back { color: #d6d9e4; }
.sc-back:hover { color: #fff; }
.sc-outro { text-align: center; display: grid; justify-items: center; gap: 18px; }
.sc-outro .eyebrow { margin-bottom: 0; }
.sc-outro .sub { max-width: 520px; font-size: 1.1rem; }
.sc-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.show { position: relative; z-index: 2; }
.show-pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 90px 24px 34px; }
.show-head { text-align: center; max-width: 900px; margin: 0 auto; }
.show-head .eyebrow { margin-bottom: 10px; }
.show-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.show-stage { position: relative; perspective: 1800px; perspective-origin: 50% 30%; display: grid; place-items: center; min-height: 0; }
.lap3d { --w: min(54vw, 640px, 70vh); margin-top: -8vh; position: relative; width: var(--w); height: calc(var(--w) * .625); transform-style: preserve-3d; font-size: calc(var(--w) / 100); }
.lap3d .lid { position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d; }
.lap3d .lid-face, .lap3d .lid-back { position: absolute; inset: 0; border-radius: 2.6em 2.6em .6em .6em; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lap3d .lid-face { padding: 2.2em 2.2em 3em; background: linear-gradient(135deg, #3a3c42, #0c0c0e 30%, #0c0c0e 70%, #2a2b30); box-shadow: inset 0 0 0 .2em rgba(255, 255, 255, .14); }
.lap3d .lid-back { transform: rotateY(180deg) translateZ(.1em); display: grid; place-items: center; background: linear-gradient(135deg, #c9cbd2, #8b8e96 45%, #b9bcc3); }
.lap3d .lid-back img { width: 14%; opacity: .8; filter: brightness(0) invert(1) drop-shadow(0 0 .6em rgba(255, 255, 255, .6)); }
.lap3d .screen { position: relative; width: 100%; height: 100%; border-radius: .8em; overflow: hidden; background: #000; }
.lap3d .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s; }
.lap3d .screen img.on { opacity: 1; }
.lap3d .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .1) 50%, transparent 60%); pointer-events: none; }
.lap3d .kb { position: absolute; left: -7%; width: 114%; top: 100%; height: 66%; transform-origin: 50% 0; transform: rotateX(90deg); border-radius: .6em .6em 3em 3em;
  background: linear-gradient(#d4d6db, #a7aab2); box-shadow: inset 0 .3em 0 #eceef2; }
.lap3d .kb::before { content: ""; position: absolute; left: 12%; right: 12%; top: 9%; height: 52%; border-radius: 1em;
  background: repeating-linear-gradient(90deg, #2a2c31 0 5.6%, transparent 5.6% 6.4%), repeating-linear-gradient(#2a2c31 0 17%, transparent 17% 20%); opacity: .85; }
.lap3d .kb::after { content: ""; position: absolute; left: 36%; right: 36%; bottom: 8%; height: 24%; border-radius: 1em; background: rgba(0, 0, 0, .14); }
.lap-shadow { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 1.25); height: calc(var(--w) * .3); --w: min(54vw, 640px, 70vh);
  transform: translate(-50%, 40%); border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 92, 255, .35), transparent); filter: blur(10px); pointer-events: none; }
.ph3d { --pw: min(17vw, 190px, 25vh); position: absolute; left: 50%; top: 50%; width: var(--pw); height: calc(var(--pw) * 2.05); margin: calc(var(--pw) * -1.025) 0 0 calc(var(--pw) * -.5);
  font-size: calc(var(--pw) / 100); transform-style: preserve-3d; opacity: 0; }
.ph3d .ph-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; position: absolute; inset: 0; padding: 5em; border-radius: 16em; background: linear-gradient(135deg, #8a8c92, #2a2b30 18%, #0b0b0d 50%, #2a2b30 82%, #6f7178);
  box-shadow: inset 0 0 0 1em #050506, 0 3em 8em rgba(0, 0, 0, .55); }
.ph3d .ph-back { position: absolute; inset: 0; border-radius: 16em; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; background: linear-gradient(135deg, #c9cbd2, #8b8e96 45%, #b9bcc3); }
.ph3d .ph-back img { width: 28%; filter: brightness(0) invert(1); opacity: .85; }
.ph3d .ph-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12em; }
.ph3d .ph-face::before { content: ""; position: absolute; left: 50%; top: 9em; width: 30em; height: 9em; margin-left: -15em; border-radius: 6em; background: #000; z-index: 1; }
.show-cap { text-align: center; display: grid; justify-items: center; gap: 8px; min-height: 76px; }
.show-cap b { font: 800 clamp(1.3rem, 2.6vw, 2rem) var(--display); letter-spacing: -.02em; }
.show-cap span { padding: 5px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.show-bar { width: min(260px, 60vw); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.show-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .try-wrap { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 22px; }
  .try-stage { padding: 10px; }
  .show-pin { padding-top: 80px; }
  .lap3d, .lap-shadow { --w: min(80vw, 52vh); }
  .lap3d { margin-top: -4vh; }
  .ph3d { --pw: min(28vw, 24vh); }
}
/* Phones: no live blur behind the 3D viewer (its background is already nearly solid) */
@media (hover: none) {
  .t3d { backdrop-filter: none; -webkit-backdrop-filter: none; background: radial-gradient(90% 70% at 50% 45%, rgba(123, 92, 255, .25), transparent 70%), #05060a; }
}
@media (max-width: 560px) {
  .sig { height: 420px; }
  .try-cta-btns { width: 100%; }
  .try-cta-btns .btn { flex: 1 1 100%; }
  .t3d { --tw: min(82vw, 40vh); padding: 14px 16px 20px; }
  .t3d .ph3d { --pw: calc(var(--tw) * .36); }
  .sc-back { display: none; }
}

/* The main menu got one more link (3D Showcase): keep every link on one line on smaller laptops */
.nav-links a, .brand-text { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .nav-links { gap: 20px; font-size: .86rem; }
  .nav-inner { gap: 16px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .nav-links { gap: 14px; font-size: .8rem; }
  .nav .brand-text { display: none; }
}

/* ---------- Pricing estimator ---------- */
.est { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.est-left { display: grid; gap: 26px; min-width: 0; }
.est-bundles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.est-bundle { position: relative; display: grid; gap: 4px; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04);
  color: var(--text); font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.est-bundle:hover { border-color: rgba(255, 255, 255, .28); }
.est-bundle:active { transform: scale(.98); }
.est-bundle span { font-weight: 800; font-size: .95rem; }
.est-bundle b { font: 800 1.8rem var(--display); letter-spacing: -.02em; }
.est-bundle small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.est-bundle em { position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 99px; background: var(--grad); font: 800 .66rem Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: #fff; }
.est-bundle.hot { border-color: rgba(255, 61, 139, .45); background: linear-gradient(135deg, rgba(255, 61, 139, .12), rgba(123, 92, 255, .08)); }
.est-bundle.on { border-color: #fff; box-shadow: 0 0 0 1px #fff inset; }
.est-group { display: grid; gap: 10px; }
.est-group h3 { font: 800 .78rem Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffb59c; }
.est-group h3 small { margin-left: 8px; color: var(--muted); letter-spacing: .08em; font-size: .7rem; }
.est-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--text); font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.est-opt:hover { border-color: rgba(255, 255, 255, .25); }
.est-opt[aria-pressed="true"] { border-color: var(--pink); background: rgba(255, 61, 139, .08); }
.est-check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.est-opt[data-group] .est-check { border-radius: 50%; }
.est-opt[aria-pressed="true"] .est-check { background: var(--grad); border-color: transparent; }
.est-opt[aria-pressed="true"] .est-check::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translate(0, -1px) rotate(-45deg); }
.est-txt b { display: block; font-size: 1rem; }
.est-txt small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.est-price { font-weight: 800; font-size: .92rem; white-space: nowrap; color: #e6e8f0; }
.est-qty { grid-column: 2 / -1; display: none; align-items: center; gap: 12px; justify-self: start; font-size: .85rem; color: var(--muted); }
.est-opt[aria-pressed="true"] .est-qty { display: inline-flex; }
.est-qty::before { content: "Designs:"; font-weight: 700; }
.est-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.est-qty b { min-width: 14px; text-align: center; color: #fff; }
.est-care { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.est-care button { display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
  color: var(--text); font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.est-care button[aria-checked="true"] { border-color: var(--violet); background: rgba(123, 92, 255, .12); }
.est-care b { font-size: .95rem; }
.est-care span { font: 800 1.35rem var(--display); }
.est-care i { font: 700 .8rem Manrope, sans-serif; font-style: normal; color: var(--muted); }
.est-care small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.est-sum { position: sticky; top: 96px; padding: 24px; border-radius: 24px; display: grid; gap: 10px; }
.est-label { font: 800 .76rem Manrope, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffb59c; }
.est-total { font: 800 clamp(2rem, 3.4vw, 2.6rem) var(--display); letter-spacing: -.02em; line-height: 1.05; }
.est-monthly { font-weight: 800; color: #c9bcff; }
.est-save { justify-self: start; padding: 5px 12px; border-radius: 99px; background: rgba(46, 229, 157, .14); color: #5ff0b5; font-weight: 800; font-size: .85rem; }
.est-lines { display: grid; gap: 8px; margin: 8px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .9rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 12px; }
.est-lines li span { color: var(--muted); }
.est-lines li b { white-space: nowrap; }
.est-lines .est-empty { color: var(--muted); }
.est-lines .is-bundle span { color: #fff; font-weight: 800; }
.est-note { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.est-bar { display: none; }
@media (max-width: 900px) {
  .est { grid-template-columns: minmax(0, 1fr); }
  .est-sum { position: static; }
  .est-care { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* phones: a slim running total that follows you while you pick */
  .est-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px 12px 18px;
    border-radius: 99px; background: rgba(14, 15, 24, .94); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-weight: 700; font-size: .9rem; }
  .est-bar span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .est-bar b { font: 800 .92rem var(--display); margin-left: 6px; white-space: nowrap; }
  .est-bar a { padding: 9px 16px; border-radius: 99px; background: var(--grad); font-weight: 800; font-size: .85rem; white-space: nowrap; }
  .est-bar.hide { visibility: hidden; }
  .est-bar.empty { display: none; }
}
@media (max-width: 560px) {
  .est-bundles { grid-template-columns: minmax(0, 1fr); }
  .est-opt { grid-template-columns: auto minmax(0, 1fr); }
  .est-price { grid-column: 2; font-size: .86rem; color: #ffb59c; }
  .est-qty { grid-column: 2; }
}

/* Pricing / Showcase pages on phones: the logo mark alone, so the header button never covers the name */
@media (max-width: 560px) {
  .pricing-page .nav .brand-text, .showcase-page .nav .brand-text { display: none; }
}
