/* CNRY product page */
.cnry-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.cnry-hero-stage { display: grid; place-items: center; margin: clamp(16px, 4vw, 40px) 0 32px; }
.cnry-hero-stage .device { width: min(520px, 78vw); height: auto; }
.rise { animation: rise 1.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.cnry-hero-copy { font-size: 21px; line-height: 1.4; max-width: 640px; margin: 0 auto; color: var(--ink-2); }

/* Size + dimensions */
.size-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.dims { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 40px 56px; display: flex; gap: 36px; align-items: center; justify-content: center; }
.dims-front, .dims-side { position: relative; }
.dims-front img { width: clamp(160px, 22vw, 260px); }
.dims-side img { height: clamp(160px, 22vw, 260px); width: auto; }
.dim { position: absolute; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dim::before { content: ""; position: absolute; background: var(--silver-3); }
.dim-w { left: 4%; right: 4%; bottom: -30px; text-align: center; }
.dim-w::before { left: 0; right: 0; top: -6px; height: 1px; }
.dim-h { top: 4%; bottom: 10%; left: -14px; writing-mode: vertical-rl; transform: rotate(180deg); display: grid; place-items: center; }
.dim-h::before { top: 0; bottom: 0; right: -6px; width: 1px; }
.dim-d { left: 6%; right: 32%; bottom: -30px; text-align: center; }
.dim-d::before { left: 0; right: 0; top: -6px; height: 1px; }
@media (max-width: 833px) { .size-grid { grid-template-columns: 1fr; } .dims { padding: 40px 24px 52px; gap: 24px; } }

/* Alerts */
.alert-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin: 56px 0 40px; }
.alert-stage { position: relative; aspect-ratio: 1165 / 1281; width: min(460px, 100%); justify-self: center; }
.alert-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease); }
.alert-stage img.on { opacity: 1; }
.alert-stage::after { content: ""; position: absolute; left: 30%; right: 30%; top: 10%; height: 14%; border-radius: 50%; filter: blur(40px); opacity: .22; background: var(--glow, #30d158); transition: background .6s var(--ease); pointer-events: none; }
.levels { display: grid; gap: 14px; }
.level {
  text-align: left; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 4px; transition: border-color .25s, background .25s;
}
.level .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 8px; }
.level[data-level="ok"] .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.level[data-level="warn"] .dot { background: #ff9f0a; box-shadow: 0 0 12px #ff9f0a; }
.level[data-level="alert"] .dot { background: var(--alert); box-shadow: 0 0 12px var(--alert); }
.level strong { font-size: 21px; letter-spacing: -0.02em; }
.level span:last-child { color: var(--muted); font-size: 14px; }
.level[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 833px) { .alert-grid { grid-template-columns: 1fr; } .alert-stage { width: min(340px, 80%); } }
.footnote { font-size: 12px; color: var(--muted); max-width: 720px; margin: 0 auto; line-height: 1.5; }

/* 3D viewer */
.viewer { position: relative; width: min(var(--max), 100% - 32px); margin: 40px auto 0; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); background: radial-gradient(70% 70% at 50% 40%, #fffdf9, #ebe7de); border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity .6s var(--ease); }
.viewer canvas:active { cursor: grabbing; }
.viewer.ready canvas { opacity: 1; }
.viewer-poster { position: absolute; left: 50%; top: 50%; height: 72%; width: auto; transform: translate(-50%, -50%); transition: opacity .6s var(--ease); }
.viewer.ready .viewer-poster { opacity: 0; }
.viewer-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; margin: 0; font-size: 13px; color: var(--muted); transition: opacity .4s; pointer-events: none; }
.viewer-hint.hide { opacity: 0; }
@media (max-width: 640px) { .viewer { aspect-ratio: 1 / 1; } }
.viewer-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 22px; }
.viewer-leds { display: inline-flex; gap: 10px; margin-left: 12px; padding-left: 18px; border-left: 1px solid var(--line); }
.led-dot { width: 26px; height: 26px; border-radius: 2px; border: 0; padding: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .2s; }
.led-dot[data-led="ok"] { background: var(--ok); }
.led-dot[data-led="warn"] { background: #ff9f0a; }
.led-dot[data-led="alert"] { background: var(--alert); }
.led-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* Clip + color */
.clip-grid, .color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.clip-art img, .color-art img { width: min(440px, 100%); margin: 0 auto; }
.swatch { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.swatch span { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f4f1ec 45%, #d6cfc5); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 0 0 4px var(--arterial), 0 0 0 5px #1d1d1f; }
@media (max-width: 833px) { .clip-grid, .color-grid { grid-template-columns: 1fr; } }

/* App */
.app-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }

/* ── Phone mockup: slim titanium frame, iOS light-mode app ─────────────── */
.phone {
  --ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative; width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 19.5; padding: 10px;
  border-radius: 56px !important; background: linear-gradient(150deg, #4a4a4c, #1d1d1f 30%, #2c2c2e 70%, #48484a);
  box-shadow: 0 0 0 1.5px #8e8e93 inset, 0 50px 90px rgba(40, 36, 28, .22), 0 12px 24px rgba(40, 36, 28, .12);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #3a3a3c; border-radius: 2px; }
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 64px 0 #3a3a3c; }
.phone::after { right: -3px; top: 28%; height: 14%; }
.phone-screen {
  position: relative; height: 100%; border-radius: 46px !important; overflow: hidden;
  background: #f5f3ee; color: #1c1c1e; font-family: var(--ios); letter-spacing: -0.01em; font-size: 13px;
  display: flex; flex-direction: column;
}
.ios-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 0 30px; height: 48px; font-weight: 600; font-size: 14px; flex: none; }
.ios-island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.ios-icons { display: flex; gap: 5px; align-items: center; }
.ios-icons svg { height: 11px; width: auto; fill: currentColor; color: #1c1c1e; }
.app-scroll { flex: 1; overflow: hidden; padding: 2px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.app-date { margin: 4px 2px 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: #8a877f; }
.app-titlebar { display: flex; align-items: center; justify-content: space-between; margin: -4px 2px 2px; }
.app-titlebar h3 { font-family: var(--ios); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e4e0d7; color: #5a574f; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.app-card { background: #fff; border-radius: 16px !important; box-shadow: 0 1px 2px rgba(40, 36, 28, .06); }
.app-device { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; }
.app-device img { width: 36px; height: 36px; object-fit: contain; background: #f3f0ea; border-radius: 10px; padding: 3px; }
.app-device div { display: grid; flex: 1; line-height: 1.25; }
.app-device strong { font-size: 13px; }
.app-device span { font-size: 11px; color: #6e6b64; display: flex; align-items: center; gap: 5px; }
.app-device .chev { width: 7px; color: #c7c3ba; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: #34c759; } .dot.warn { background: #ff9f0a; } .dot.alert { background: #ff3b30; }
.app-gauge { position: relative; padding: 8px 14px 6px; text-align: center; }
.app-gauge svg { width: 74%; height: auto; display: block; margin: 0 auto; overflow: visible; }
.app-gauge path { fill: none; stroke-width: 11; stroke-linecap: butt; }
.app-gauge path:first-child { stroke-linecap: round; }
.app-gauge path:nth-child(3) { stroke-linecap: round; }
#app-marker { fill: #fff; stroke: #1c1c1e; stroke-width: 3; transition: cx .8s ease, cy .8s ease; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.app-gauge-read { position: absolute; left: 0; right: 0; top: 40%; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.app-value { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.app-value small { font-size: 13px; font-weight: 500; color: #8a877f; margin-left: 3px; letter-spacing: 0; }
.app-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.app-pill.ok { background: rgba(52, 199, 89, .14); color: #1e8a3c; }
.app-pill.warn { background: rgba(255, 159, 10, .16); color: #b06200; }
.app-pill.alert { background: rgba(255, 59, 48, .14); color: #c4251c; }
.app-scale { display: flex; justify-content: space-between; font-size: 9px; color: #8a877f; margin-top: 2px; padding: 0 4%; }
.app-chartcard { padding: 10px 12px 8px; position: relative; }
.app-cardhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.app-cardhead strong { font-size: 13px; }
.app-seg { display: flex; background: #efece5; border-radius: 8px; padding: 2px; font-size: 10px; font-weight: 600; color: #6e6b64; }
.app-seg > * { padding: 2px 8px; border-radius: 6px; }
.app-seg b { background: #fff; color: #1c1c1e; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.app-chart { width: 100%; height: 58px; display: block; }
.app-chartlabels { position: absolute; right: 14px; top: 34px; display: grid; gap: 3px; text-align: right; font-size: 8.5px; font-weight: 600; pointer-events: none; }
.app-chartlabels .pel { color: #d93a30; } .app-chartlabels .al { color: #c27400; }
.app-legend { display: flex; justify-content: space-between; color: #8a877f; font-size: 9px; margin-top: 4px; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.app-stats .app-card { padding: 8px 10px; display: grid; line-height: 1.15; }
.app-stats small { font-size: 9.5px; color: #8a877f; font-weight: 500; }
.app-stats strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.app-stats em { font-style: normal; font-size: 9.5px; color: #8a877f; }
.app-section { margin: 3px 4px -3px; font-size: 13px; font-weight: 700; }
.app-list { padding: 2px 12px; }
.app-list > div { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid #efece5; }
.app-list > div:last-child { border: 0; }
.app-list span { display: grid; flex: 1; line-height: 1.25; }
.app-list strong { font-size: 12px; font-weight: 600; }
.app-list small { font-size: 10px; color: #8a877f; }
.app-list em { font-style: normal; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #3a3833; }
.app-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 10px 26px; background: rgba(250, 248, 244, .92); border-top: 1px solid #e7e3da; backdrop-filter: blur(12px); }
.app-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 500; color: #9c998f; }
.app-tabs svg { width: 21px; height: 21px; }
.app-tabs .on { color: #1c1c1e; }
.ios-home { position: absolute; left: 50%; bottom: 8px; width: 112px; height: 4.5px; border-radius: 3px; background: #1c1c1e; transform: translateX(-50%); }
@media (max-width: 833px) { .app-grid { grid-template-columns: 1fr; } .app-grid > .reveal:last-child { order: -1; } }

/* Specs */
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.specs dt { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.specs dd { margin: 0; font-size: 17px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 640px) { .specs div { grid-template-columns: 1fr; gap: 6px; } }

.notify-device { width: 180px; margin: 0 auto 36px; }

/* 3D model in the hero: no frame, transparent canvas over the hero background */
.viewer.hero-viewer { background: none; border: 0 !important; width: min(1000px, 100% - 32px); aspect-ratio: 16 / 10; margin: 4px auto 0; }
.viewer.hero-viewer .viewer-poster { height: 78%; }
.cnry-hero .viewer-controls { margin: 6px 0 30px; }
@media (max-width: 640px) { .viewer.hero-viewer { aspect-ratio: 1 / 1; } }
