/* Hide only Netlify's injected branding badge. */
iframe#nl-badge-frame { display: none !important; }

:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#26362f;background:#f7f8f7;font-synthesis:none}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
button,select{font:inherit}
.preview-page{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.preview-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 40px 18px;z-index:1}
.preview-brand{display:flex;align-items:center;gap:17px;white-space:nowrap}
.brand-word{font-weight:750;font-size:19px;letter-spacing:5px;color:#164b41}
.brand-separator{height:22px;width:1px;background:#d9dfdc}
.preview-title{font-weight:600;font-size:15px;letter-spacing:-.25px}
.preview-title span{font-weight:400;margin-left:6px;color:#738079;font-size:12px}
.mode-controls{display:flex;padding:4px;gap:3px;border:1px solid #e0e5e2;border-radius:24px;background:#fff}
.mode-controls button{border:0;background:none;color:#68776f;border-radius:20px;padding:10px 20px;cursor:pointer;font-size:13px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.mode-controls button[aria-pressed="true"]{background:#174d42;color:white;box-shadow:0 2px 5px #153c3212}
.mode-controls button:focus-visible,select:focus-visible{outline:3px solid #71ad9c;outline-offset:3px}
.orientation-controls{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #e0e5e2;border-radius:24px;background:#fff;flex-shrink:0}
.orientation-controls[hidden]{display:none}
.orientation-label{padding:0 9px;color:#738079;font-size:11px;white-space:nowrap}
.orientation-controls button{border:0;background:none;color:#68776f;border-radius:20px;padding:8px 14px;cursor:pointer;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.orientation-controls button[aria-pressed="true"]{background:#e5f0eb;color:#174d42}
.orientation-controls button:focus-visible{outline:3px solid #71ad9c;outline-offset:3px}
.preview-stage{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;position:relative;padding:32px 32px 38px}
.device-box{position:relative;flex:none;width:317.8583px;height:445.2283px;visibility:hidden}
.device-box.is-ready{visibility:visible}
.device-shell{--device-corner-radius:59pt;position:absolute;left:0;top:0;width:317.8583px;height:445.2283px;transform-origin:0 0;border-radius:31px;background:linear-gradient(125deg,#bfc3c4 0%,#343a3a 10%,#131818 25%,#303737 72%,#b0b5b4 100%);box-shadow:inset 0 0 0 1px #7f8886,inset 0 0 0 3px #202626,0 22px 38px -15px #16292040,0 5px 10px #16292016}
.device-shell:before{content:"";position:absolute;inset:4px;border-radius:27px;background:#111615;box-shadow:inset 0 0 0 .7px #59635e;pointer-events:none}
.device-edge{position:absolute;left:5px;top:70px;width:2px;height:39px;background:linear-gradient(#89918c,#3d4841,#a6ada7);border-radius:3px;z-index:1;pointer-events:none}
.device-screen{position:absolute;overflow:hidden;background:#faf9f6;border-radius:21px;isolation:isolate;box-shadow:0 0 0 .7px #060c09}
/* Preserve the body/display rectangles. Extra side inset belongs to the graphite
   chassis, so the inner black gasket has equal straight-edge width, not the total bezel. */
.device-shell[data-mode="folded"]{--folded-rim-y:4.5px;--folded-rim-x:max(4.5px,calc(4.5px + var(--screen-inset-x) - var(--screen-inset-y)));--folded-outer-radius:34pt;--folded-screen-radius-x:calc(var(--folded-outer-radius) - var(--screen-inset-x));--folded-screen-radius-y:calc(var(--folded-outer-radius) - var(--screen-inset-y));border-radius:8pt var(--folded-outer-radius) var(--folded-outer-radius) 8pt;background:linear-gradient(100deg,#727977 0%,#3b4140 2%,#252a29 12%,#252a29 88%,#545c59 100%);box-shadow:inset 0 0 0 .8px #949c98,inset 0 0 0 2px #272d2b,0 22px 38px -15px #16292040,0 5px 10px #16292016}
.device-shell[data-mode="folded"]:before{inset:var(--folded-rim-y) var(--folded-rim-x);border-radius:max(0px,calc(8pt - var(--folded-rim-x))) calc(var(--folded-outer-radius) - var(--folded-rim-x)) calc(var(--folded-outer-radius) - var(--folded-rim-x)) max(0px,calc(8pt - var(--folded-rim-x))) / max(0px,calc(8pt - var(--folded-rim-y))) calc(var(--folded-outer-radius) - var(--folded-rim-y)) calc(var(--folded-outer-radius) - var(--folded-rim-y)) max(0px,calc(8pt - var(--folded-rim-y)));background:#050807;box-shadow:0 0 0 .65px #080c0a,inset 0 0 0 .6px #1a211e}
.device-shell[data-mode="folded"] .device-screen{border-radius:8pt var(--folded-screen-radius-x) var(--folded-screen-radius-x) 8pt / 8pt var(--folded-screen-radius-y) var(--folded-screen-radius-y) 8pt}
.device-shell[data-mode="unfolded"]{border-radius:var(--device-corner-radius);background:linear-gradient(100deg,#727977 0%,#3b4140 2%,#252a29 12%,#252a29 88%,#545c59 100%);box-shadow:inset 0 0 0 .8px #949c98,inset 0 0 0 2px #272d2b,0 22px 38px -15px #16292040,0 5px 10px #16292016}
.device-shell[data-mode="unfolded"]:before{border-radius:calc(var(--device-corner-radius) - 4px);background:#050807;box-shadow:0 0 0 .65px #080c0a,inset 0 0 0 .6px #1a211e}
.device-shell[data-mode="unfolded"] .device-screen{border-radius:calc(var(--device-corner-radius) - var(--screen-inset-x)) / calc(var(--device-corner-radius) - var(--screen-inset-y))}
/* Match the supplied close-up's gradual straight-to-curve transition, rather
   than a circular quarter-arc. Keep the established radius bounding boxes. */
@supports (corner-shape:superellipse(1.25)) {
  .device-shell[data-mode="folded"],.device-shell[data-mode="folded"]:before,.device-shell[data-mode="folded"] .device-screen{corner-shape:round superellipse(1.25) superellipse(1.25) round}
  .device-shell[data-mode="unfolded"],.device-shell[data-mode="unfolded"]:before,.device-shell[data-mode="unfolded"] .device-screen{corner-shape:superellipse(1.25)}
}
/* Owner-supplied artwork replaces only the chassis. The iframe keeps its exact
   viewport and uniform scale; a full-body aperture mask supplies the real crop. */
.device-shell.uses-supplied-frame[data-mode]{background:transparent;box-shadow:none}
.device-shell.uses-supplied-frame:before,.device-shell.uses-supplied-frame .device-edge{display:none}
.device-shell.uses-supplied-frame .device-screen{border-radius:0;box-shadow:none}
/* Extend only the invisible crop beneath the opaque artwork. The original PNG
   remains the visible edge; no second antialias/black backing can form a halo. */
.device-display-window{position:absolute;inset:0;z-index:1;background:transparent;-webkit-mask-image:url('assets/device-opening-folded-underlap.png');mask-image:url('assets/device-opening-folded-underlap.png');-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-mode:alpha}
.device-shell[data-mode="unfolded"] .device-display-window{-webkit-mask-image:url('assets/device-opening-unfolded-underlap.png');mask-image:url('assets/device-opening-unfolded-underlap.png')}
.device-shell[data-mode="unfolded"][data-orientation="portrait"] .device-display-window{-webkit-mask-image:url('assets/device-opening-unfolded-portrait-underlap.png');mask-image:url('assets/device-opening-unfolded-portrait-underlap.png')}
.device-frame-art{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:fill;transform-origin:center;z-index:2;pointer-events:none;user-select:none}
.device-screen iframe{position:absolute;left:0;top:0;display:block;border:0;max-width:none;margin:0;padding:0;transform-origin:0 0;background:#faf9f6}
.preview-footer{padding:12px 24px 24px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;color:#7c8882;font-size:12px;z-index:1}
.device-facts{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 20px;line-height:1.5;font-variant-numeric:tabular-nums}
.device-facts strong{font-size:13px;font-weight:650;color:#3e544a}
.device-facts span+span{position:relative}
.device-facts span+span:before{content:"";position:absolute;left:-10px;top:6px;height:8px;width:1px;background:#cfd7d1}
.device-facts #safe-area-measure{color:#62766a}
.scale-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;line-height:1.5}
.scale-controls label{color:#62736a}
.scale-controls select{border:1px solid #dce3df;border-radius:8px;background:#fff;padding:5px 24px 5px 10px;color:#3d5147;font-size:12px;cursor:pointer}
#actual-scale{font-variant-numeric:tabular-nums;color:#62766a}
.preview-note{margin:0;max-width:760px;line-height:1.7;font-size:11px;color:#8a948e}
.spec-link{font-size:10px;color:#89948d;text-decoration:none;text-underline-offset:3px}
.spec-link:hover{text-decoration:underline}
@media(min-width:651px) and (max-width:940px){.preview-header:has(.orientation-controls:not([hidden])){flex-wrap:wrap;gap:12px 18px}.orientation-controls{order:3;margin-inline:auto}}
@media(max-width:650px){.preview-header{padding:20px 20px 10px;flex-direction:column;gap:14px}.brand-word{font-size:17px;letter-spacing:4px}.preview-brand{gap:12px}.preview-title{font-size:14px}.preview-title span{font-size:11px}.mode-controls button{padding:9px 25px;font-size:12px}.preview-stage{padding:24px 20px 28px}.preview-footer{padding:8px 18px 18px;gap:9px}.device-facts{gap:4px 13px;font-size:11px}.device-facts strong{width:100%;font-size:12px}.device-facts span+span:before{left:-7px}.preview-note{font-size:10px;max-width:430px}.scale-controls{font-size:11px;gap:7px}.scale-controls select{font-size:11px;padding:4px 18px 4px 8px}.spec-link{font-size:9px}}
@media(max-height:600px){.preview-header{padding-top:12px;padding-bottom:6px;gap:8px}.preview-stage{padding-top:16px;padding-bottom:20px}.preview-footer{padding-top:6px;padding-bottom:10px;gap:6px}.preview-note{max-width:700px}.spec-link{display:none}}
@media(prefers-reduced-motion:reduce){.mode-controls button{transition:none}}

.device-shell[data-mode="folded"][data-orientation="landscape"] .device-display-window{-webkit-mask-image:url('assets/device-opening-folded-landscape-underlap.png');mask-image:url('assets/device-opening-folded-landscape-underlap.png')}

/* Standalone iPhone 18 Pro: a straight-portrait graphite chassis, with the
   app viewport clipped to the rounded screen and a native-style Dynamic Island. */
.device-shell[data-mode="iphone18pro"]{--device-corner-radius:42px;border-radius:42px;background:linear-gradient(112deg,#aeb4b6 0%,#737a7b 2%,#343a3b 7%,#161b1c 18%,#202526 82%,#697172 98%,#c0c4c4 100%);box-shadow:inset 0 0 0 .8px #d2d7d6,inset 0 0 0 2.4px #343b3c,0 22px 38px -15px #16292040,0 5px 10px #16292016}
.device-shell[data-mode="iphone18pro"]:before{inset:3px;border-radius:39px;background:#050707;box-shadow:0 0 0 .65px #080c0a,inset 0 0 0 .7px #222829}
.device-shell[data-mode="iphone18pro"] .device-display-window{-webkit-mask-image:none;mask-image:none;overflow:visible;border-radius:0}
.device-shell[data-mode="iphone18pro"] .device-screen{border-radius:37px;box-shadow:none}
.device-shell[data-mode="iphone18pro"] .device-frame-art{display:none}
/* The generic supplied-frame reset is for the Duo PNG chassis only. Restore
   the native CSS bezel for 18 Pro so its top edge joins the rounded side rails. */
.device-shell.uses-supplied-frame[data-mode="iphone18pro"]{background:linear-gradient(112deg,#aeb4b6 0%,#737a7b 2%,#343a3b 7%,#161b1c 18%,#202526 82%,#697172 98%,#c0c4c4 100%);box-shadow:inset 0 0 0 .8px #d2d7d6,inset 0 0 0 2.4px #343b3c,0 22px 38px -15px #16292040,0 5px 10px #16292016}
.device-shell.uses-supplied-frame[data-mode="iphone18pro"]:before{display:block;inset:3px;border-radius:39px;background:#050707;box-shadow:0 0 0 .65px #080c0a,inset 0 0 0 .7px #222829}
.iphone18-pro-status{display:none;position:absolute;left:0;top:0;width:402px;height:874px;transform-origin:0 0;z-index:3;pointer-events:none;color:#121814;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;font-variant-numeric:tabular-nums}
.device-shell[data-mode="iphone18pro"] .iphone18-pro-status{display:block}
.iphone18-pro-time{position:absolute;left:30px;top:15px;font-size:16px;line-height:20px;font-weight:700;letter-spacing:-.25px}
.iphone18-pro-island{position:absolute;left:50%;top:11px;width:122px;height:36px;transform:translateX(-50%);border-radius:20px;background:#050606;box-shadow:inset 0 0 0 1px #161a1a,0 0 0 1px rgba(14,18,17,.08)}
.iphone18-pro-indicators{position:absolute;top:17px;right:27px;display:flex;align-items:center;gap:5px;height:16px}
.iphone18-pro-signal{width:16px;height:13px}
.iphone18-pro-wifi{width:16px;height:14px}
.iphone18-pro-battery{position:relative;display:block;width:25px;height:12px;padding:2px;border:1.5px solid currentColor;border-radius:3.5px}
.iphone18-pro-battery:after{content:"";position:absolute;right:-3.5px;top:3px;width:2px;height:4px;border-radius:0 2px 2px 0;background:currentColor}
.iphone18-pro-battery i{display:block;width:100%;height:100%;border-radius:1px;background:currentColor}
