/* 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); 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: 10%; right: 34%; 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: .35; background: var(--glow, #30d158); transition: background .6s var(--ease); pointer-events: none; }
.levels { display: grid; gap: 14px; }
.level {
  text-align: left; border: 1px solid #333336; background: #161617; color: #f5f5f7; 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: #a1a1a6; font-size: 14px; }
.level[aria-pressed="true"] { border-color: #f5f5f7; background: #1d1d1f; }
@media (max-width: 833px) { .alert-grid { grid-template-columns: 1fr; } .alert-stage { width: min(340px, 80%); } }
.footnote { font-size: 12px; color: #86868b; 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%, #ffffff, #ecebea); 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: 50%; 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 {
  width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 12px;
  background: linear-gradient(145deg, #e9eaec, #a7aaaf 40%, #d9dbde 60%, #8d9196);
  box-shadow: 0 40px 80px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.5);
}
.phone-screen { height: 100%; border-radius: 42px; background: #000; color: #f5f5f7; padding: 22px 20px; display: flex; flex-direction: column; overflow: hidden; font-size: 13px; }
.app-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 26px; }
.app-conn { color: var(--ok); font-weight: 500; }
.app-label { margin: 0; color: #a1a1a6; font-size: 13px; }
.app-reading { margin: 2px 0 0; font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.app-reading small { font-size: 18px; color: #a1a1a6; font-weight: 500; letter-spacing: 0; }
.app-status { margin: 6px 0 14px; color: var(--ok); font-weight: 600; font-size: 15px; }
.app-chart { width: 100%; height: 110px; }
.app-legend { display: flex; justify-content: space-between; color: #6e6e73; font-size: 10px; margin: 4px 0 14px; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-cards div { background: #1c1c1e; border-radius: 14px; padding: 10px 12px; display: grid; }
.app-cards small { color: #8e8e93; font-size: 10px; }
.app-cards strong { font-size: 15px; }
.app-log { margin-top: 12px; background: #1c1c1e; border-radius: 14px; padding: 4px 12px; }
.app-log p { margin: 0; padding: 8px 0; display: flex; align-items: center; gap: 8px; font-size: 11px; border-bottom: 1px solid #2c2c2e; }
.app-log p:last-child { border: 0; }
.app-log em { margin-left: auto; font-style: normal; color: #8e8e93; }
.app-log .d { width: 7px; height: 7px; border-radius: 50%; }
.d.ok { background: var(--ok); } .d.warn { background: #ff9f0a; }
@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: 21px; font-weight: 600; 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; }
