/* Layered product concepts. Each display has a measured, fixed screen opening.
   The corresponding canvas scales uniformly; desktop, tablet, and phone each
   have their own layout. Physical frames and the environment stay separate. */
:root {
  --device-metal: var(--line);
  --device-metal-edge: var(--sage);
  --device-key: var(--charcoal);
  --device-shadow: color-mix(in srgb, var(--charcoal) 18%, transparent);
}
.villore-devices { max-width:1100px; }
.villore-devices .device-stage,
.workspace-scene .villore-devices .device-stage {
  position:relative; isolation:isolate; padding:24px 19% 26px 3%;
}
.villore-devices .device-stage::before { display:none; }
.villore-devices .showcase-laptop { width:100%; position:relative; }
.villore-devices .laptop-shell {
  position:relative; padding:11px 8px 8px; background:var(--charcoal);
  border:1px solid var(--device-metal-edge); border-radius:15px 15px 5px 5px;
  box-shadow:0 8px 18px var(--device-shadow);
}
.villore-devices .laptop-shell::before {
  content:""; position:absolute; top:4px; left:calc(50% - 2px); width:4px;
  height:4px; border-radius:50%; background:var(--ink-soft);
}
.villore-devices .laptop-frame {
  width:100%; aspect-ratio:16 / 10; padding:0; border:0;
  border-radius:4px; background:var(--cream); overflow:hidden;
  position:relative; box-shadow:none;
}
.villore-devices .laptop-deck {
  position:relative; width:108%; margin:0 -4%; aspect-ratio:7 / 1;
  background:linear-gradient(var(--device-metal),var(--warm));
  clip-path:polygon(4% 0,96% 0,100% 100%,0 100%);
  border-bottom:1px solid var(--device-metal-edge);
}
.villore-devices .laptop-keyboard {
  position:absolute; inset:8% 16% 36%; display:grid;
  grid-template-columns:repeat(12,1fr); grid-template-rows:repeat(4,1fr);
  gap:2px; transform:perspective(700px) rotateX(20deg);
}
.villore-devices .laptop-keyboard span {
  background:var(--device-key); border-radius:2px;
  box-shadow:inset 0 -1px 0 var(--ink-soft);
}
.villore-devices .laptop-trackpad {
  position:absolute; width:22%; height:25%; left:39%; bottom:5%;
  border:1px solid var(--device-metal-edge); border-radius:3px;
  background:var(--device-metal);
}
.villore-devices .laptop-foot {
  height:7px; margin:0 -4%; border-radius:1px 1px 45% 45%;
  background:var(--device-metal-edge); box-shadow:0 9px 10px var(--device-shadow);
}
.villore-devices .laptop-foot::before { display:none; }
.villore-devices .showcase-phone,
.workspace-scene .villore-devices .showcase-phone {
  position:absolute; right:1%; bottom:13px; width:21%; max-width:210px;
  aspect-ratio:auto; height:auto; margin:0; padding:6px;
  border:1px solid var(--device-metal-edge); border-radius:27px;
  background:var(--charcoal); transform:rotate(2deg);
  box-shadow:0 8px 18px var(--device-shadow);
}
.villore-devices .phone-frame,
.workspace-scene .villore-devices .phone-frame {
  position:relative; width:100%; height:auto; aspect-ratio:9 / 19;
  overflow:hidden; padding:0; border-radius:21px; background:var(--cream);
}
.villore-devices .phone-frame::before {
  content:""; position:absolute; top:6px; left:40%; width:20%; height:5px;
  margin:0; z-index:2; border-radius:8px; background:var(--charcoal);
}
.device-canvas {
  position:absolute; top:0; left:0; box-sizing:border-box;
  transform-origin:top left; transform:scale(var(--device-scale,1));
}
/* Keep the typography part of the same scaled screen. Mobile text autosizing
   must not enlarge it independently; visitors can still zoom the whole page. */
.device-canvas,.device-canvas * {
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
}
.villore-devices .laptop-canvas { width:1000px; height:625px; --device-scale:.5; }
.villore-devices .phone-canvas {
  width:360px; height:760px; padding:0; --device-scale:.45;
}
.vui-desktop,.vui-tablet,.vui-mobile {
  background:var(--cream); color:var(--charcoal); font-family:VilloreSans,Arial,sans-serif;
  line-height:1.5; overflow:hidden;
}
.device-canvas .demo-brand { min-height:54px; gap:9px; margin:0; flex-wrap:nowrap; }
.device-canvas .demo-brand img { width:52px; height:52px; flex-shrink:0; }
.device-canvas .demo-brand>span:not(.demo-tag) {
  font-size:29px; line-height:1; font-family:Cormorant,Georgia,serif;
}
.device-canvas .demo-brand small { font-size:8px; letter-spacing:.23em; margin-top:5px; }
.device-canvas .demo-brand>.demo-tag { font-size:11px; max-width:none; }
.device-canvas h4 { margin:0; font-family:Cormorant,Georgia,serif; font-size:25px;
  line-height:1.12; font-weight:500; letter-spacing:-.015em; color:var(--forest); }
.device-canvas p { margin:0; font-size:13px; line-height:1.5; }
.device-canvas .vui-small { font-size:11px; line-height:1.45; color:var(--ink-soft); }
.device-canvas .vui-kicker { font-size:10px; letter-spacing:.09em; color:var(--villore-rust); }
.vui-desktop { display:grid; grid-template-columns:160px 1fr; width:1000px; height:625px; }
.vui-sidebar {
  padding:24px 14px; border-right:1px solid var(--line); position:relative;
  background:linear-gradient(160deg,var(--cream) 65%,var(--sage-soft));
}
.vui-sidebar .demo-brand { flex-direction:column; align-items:flex-start; gap:12px; }
.vui-sidebar .demo-brand img { width:64px; height:64px; }
.vui-sidebar .demo-brand>span:not(.demo-tag) { font-size:32px; }
.vui-side-nav { display:flex; flex-direction:column; gap:5px; margin-top:25px; }
.vui-side-nav>span {
  display:flex; align-items:center; gap:10px; min-height:43px; padding:8px;
  font-size:13px; border-radius:5px; color:var(--ink-soft);
}
.vui-side-nav .line-icon { width:19px; height:19px; color:var(--forest); }
.vui-side-nav .vui-selected { background:var(--forest); color:var(--cream); }
.vui-side-nav .vui-selected .line-icon { color:var(--cream); }
.vui-sidebar-note { position:absolute; left:22px; right:15px; bottom:23px; }
.vui-sidebar-note p { font-family:Cormorant,Georgia,serif; font-size:21px; color:var(--forest); }
.vui-sidebar-note span { font-size:9px; letter-spacing:.06em; color:var(--ink-soft); }
.vui-desktop-main { padding:25px 24px 16px; min-width:0; }
.vui-desktop-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:18px; }
.vui-welcome { display:flex; align-items:center; gap:12px; margin:0; }
.vui-welcome>.line-icon { width:34px; height:34px; color:var(--villore-rust); }
.vui-welcome h3 { font-size:30px; line-height:1.05; margin:0 0 5px; }
.vui-welcome p { font-size:13px; color:var(--ink-soft); }
.vui-header-icons { display:flex; gap:17px; color:var(--forest); }
.vui-header-icons .line-icon { width:21px; height:21px; color:inherit; }
.vui-desktop-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:16px; }
.vui-banner {
  position:relative; height:143px; display:flex; align-items:center; overflow:hidden;
  background:var(--sage-soft); border-radius:7px; margin-bottom:13px;
}
.vui-banner>div { position:relative; z-index:1; width:62%; padding:16px; }
.vui-banner h3 { font-size:33px; line-height:.96; margin:7px 0; }
.vui-banner p { font-size:12px; line-height:1.4; }
.vui-banner img {
  position:absolute; top:0; right:0; width:44%; height:100%; object-fit:cover;
  object-position:62% center; border-radius:50% 0 0 50%;
}
.vui-card { padding:15px; background:var(--paper); border:1px solid var(--line);
  border-radius:7px; margin-bottom:13px; }
.vui-card-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:6px; }
.vui-card-heading>span { font-size:10px; color:var(--ink-soft); }
.vui-plan>p { margin-bottom:11px; }
.vui-activity-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.vui-activity-tiles>div { padding:10px 7px; text-align:center; background:var(--cream); border-radius:5px; }
.vui-activity-tiles .line-icon { width:28px; height:28px; margin:0 auto 8px; }
.vui-activity-tiles h4 { font-family:VilloreSans,Arial,sans-serif; font-size:12px; line-height:1.4; letter-spacing:0; }
.vui-activity-tiles p { font-size:10px; line-height:1.4; margin:5px 0 8px; }
.vui-check { display:block; width:13px; height:13px; border:1px solid var(--sage); border-radius:50%; margin:auto; flex-shrink:0; }
.vui-child-heading { display:flex; align-items:center; gap:10px; }
.vui-child-heading h4 { font-size:23px; }
.vui-child-heading p { font-size:11px; margin-top:4px; color:var(--ink-soft); }
.vui-avatar { display:grid; place-items:center; width:48px; height:48px; border-radius:50%;
  flex-shrink:0; background:var(--sage-soft); border:1px solid var(--sage); }
.vui-avatar .line-icon { width:28px; height:28px; color:var(--forest); }
.vui-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }
.vui-tags span { font-size:11px; padding:4px 8px; border-radius:13px; background:var(--warm); }
.vui-change { border-left:2px solid var(--cedar); padding-left:12px; margin:12px 0; }
.vui-change>span { font-size:9px; letter-spacing:.1em; color:var(--villore-rust); }
.vui-change p { font-size:13px; margin:3px 0 9px; }
.vui-noticed .vui-small { margin-top:5px; }
.vui-village-people { display:flex; align-items:center; gap:7px; margin:10px 0; }
.vui-village-people>span { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--sage-soft); }
.vui-village-people .line-icon { width:18px; height:18px; color:var(--forest); }
.vui-village>p { font-size:11px; }
.vui-village .vui-small { font-size:10px; margin-top:7px; }
.vui-memory { display:flex; align-items:center; gap:13px; background:var(--warm); }
.vui-memory>.line-icon { width:35px; height:35px; color:var(--forest); }
.vui-memory h4 { font-size:24px; margin-bottom:6px; }
.vui-memory .vui-small { margin-top:6px; }
.vui-screen-caption { font-size:10px!important; color:var(--ink-soft); letter-spacing:.02em; margin-top:0!important; }
.vui-mobile { display:flex; flex-direction:column; width:360px; height:760px; padding:27px 20px 12px; }
.vui-mobile>*,.vui-tablet>* { flex-shrink:0; }
.phone-canvas .demo-brand,
.workspace-scene .phone-canvas .demo-brand { flex-direction:row; align-items:center; gap:10px; min-height:52px; margin:0 0 19px; }
.phone-canvas .demo-brand img { width:49px; height:49px; }
.phone-canvas .demo-brand>span:not(.demo-tag),
.workspace-scene .phone-canvas .demo-brand>span:not(.demo-tag) { font-size:30px; }
.vui-mobile .vui-welcome { align-items:flex-start; margin-bottom:17px; }
.vui-mobile .vui-welcome>.line-icon { width:30px; height:30px; margin-top:2px; }
.vui-mobile .vui-welcome h3 { font-size:29px; line-height:1.05; }
.vui-mobile .vui-welcome p { font-size:14px; }
.vui-mobile-context { display:flex; gap:11px; align-items:center; padding:12px; background:var(--sage-soft); border-radius:6px; margin-bottom:18px; }
.vui-mobile-context>.line-icon { width:29px; height:29px; color:var(--forest); }
.vui-mobile-context h4 { font-size:23px; }
.vui-mobile-context p { font-size:13px; color:var(--ink-soft); margin-top:5px; }
.vui-mobile-plan .vui-card-heading { margin-bottom:6px; }
.vui-mobile-plan .vui-card-heading h4 { font-size:27px; }
.vui-mobile-plan .vui-card-heading span { font-size:13px; }
.vui-activity-rows>div { display:flex; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--line); min-height:67px; }
.vui-activity-rows>div>.line-icon { width:29px; height:29px; color:var(--villore-rust); }
.vui-activity-rows>div>div { flex:1; min-width:0; }
.vui-activity-rows h4 { font-size:19px; font-family:VilloreSans,Arial,sans-serif; line-height:1.3; letter-spacing:0; }
.vui-activity-rows p { font-size:14px; margin-top:4px; color:var(--ink-soft); }
.vui-activity-rows .vui-check { margin:0 2px 0 0; width:16px; height:16px; }
.vui-mobile-noticed { padding:12px 14px; background:var(--paper); border:1px solid var(--line); border-radius:6px; margin:8px 0 12px; }
.vui-mobile-noticed>p:nth-child(2) { font-size:15px; line-height:1.45; margin:5px 0; }
.vui-mobile-noticed .vui-small { font-size:12px; }
.vui-mobile-memory { padding:11px 14px; background:var(--warm); border-radius:6px; }
.vui-mobile-memory h4 { font-size:24px; }
.vui-mobile-memory p { font-size:14px; margin-top:5px; }
.vui-bottom-nav { display:flex; justify-content:space-around; gap:12px; border-top:1px solid var(--line); margin-top:16px; padding-top:12px; color:var(--forest); }
.vui-bottom-nav>span { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:10px; min-height:39px; min-width:44px; }
.vui-bottom-nav .line-icon { width:21px; height:21px; color:var(--forest); }
.villore-tablet { position:relative; padding:20px 22px; background:var(--warm); border-radius:4px; }
.villore-tablet .tablet-shell { width:min(520px,100%); padding:10px;
  background:var(--charcoal); border:1px solid var(--device-metal-edge); border-radius:22px; margin:auto; position:relative; }
.villore-tablet .tablet-shell::before { content:""; position:absolute; width:4px; height:4px; top:3px; left:calc(50% - 2px); border-radius:50%; background:var(--ink-soft); }
.villore-tablet .tablet-screen { width:100%; height:auto; aspect-ratio:3 / 4; padding:0; border:0;
  border-radius:13px; position:relative; overflow:hidden; background:var(--cream); box-shadow:none; }
.villore-tablet .tablet-canvas { width:600px; height:800px; padding:0; --device-scale:.7; }
.vui-tablet { display:flex; flex-direction:column; width:600px; height:800px; padding:22px; }
.vui-tablet .demo-brand { margin-bottom:14px; }
.vui-tablet .vui-welcome { margin-bottom:14px; }
.vui-tablet .vui-welcome h3 { font-size:29px; }
.vui-tablet .vui-banner { height:116px; margin-bottom:12px; }
.vui-tablet .vui-banner>div { padding:13px 16px; }
.vui-tablet .vui-banner h3 { font-size:32px; }
.vui-tablet .vui-week { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin:0 0 14px; }
.vui-week>span { text-align:center; padding:7px 0; background:var(--paper); border:1px solid var(--line); border-radius:5px; color:var(--forest); font-size:10px; line-height:1.15; }
.vui-week small { display:block; font-size:15px; margin-top:4px; }
.vui-week .vui-current-day { background:var(--forest); color:var(--cream); border-color:var(--forest); }
.vui-tablet-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:12px; }
.vui-tablet .vui-card { padding:12px; margin-bottom:10px; }
.vui-tablet .vui-card h4 { font-size:24px; }
.vui-tablet-plan>p { font-size:12px; margin:5px 0 10px; }
.vui-tablet .vui-activity-rows>div { gap:9px; min-height:70px; padding:10px 0; }
.vui-tablet .vui-activity-rows>div>.line-icon { width:25px; height:25px; }
.vui-tablet .vui-activity-rows h4 { font-size:13px; line-height:1.35; font-family:VilloreSans,Arial,sans-serif; letter-spacing:0; }
.vui-tablet .vui-activity-rows p { font-size:11px; line-height:1.4; }
.vui-tablet .vui-activity-rows .vui-check { width:13px; height:13px; }
.vui-tablet .vui-child-heading { gap:8px; }
.vui-tablet .vui-child-heading h4 { font-size:21px; }
.vui-tablet .vui-avatar { width:41px; height:41px; }
.vui-tablet .vui-tags { gap:5px; margin-top:10px; }
.vui-tablet .vui-tags span { font-size:10px; padding:3px 7px; }
.vui-tablet .vui-tablet-noticed>p { font-size:12px; margin-top:8px; }
.vui-tablet .vui-tablet-noticed .vui-small { font-size:10px; }
.vui-tablet .vui-memory { gap:9px; }
.vui-tablet .vui-memory>.line-icon { width:25px; height:25px; }
.vui-tablet .vui-memory h4 { font-size:22px; }
.vui-tablet .vui-memory p { font-size:11px; }
.vui-tablet .vui-memory .vui-small { display:none; }
.vui-tablet .vui-bottom-nav { margin-top:auto; padding-top:8px; }
/* Keep navigation inside each measured display. The compact phone header and
   the tablet’s context banner replace duplicate previews, rather than hiding
   overflowing content or distorting its screen. */
.vui-mobile>.vui-bottom-nav { margin-top:auto; padding-top:10px; }
.vui-mobile>.vui-bottom-nav,.vui-tablet>.vui-bottom-nav { gap:6px; }
.vui-mobile>.vui-bottom-nav>span { flex:1; min-width:44px; }
.villore-devices figcaption .concept-disclosure,
.villore-tablet figcaption { font-size:12px; line-height:1.8; letter-spacing:.055em; }
.villore-devices figcaption .concept-disclosure>span { font-size:11px; }
.villore-devices .showcase-caption { font-size:12px; }
@media(max-width:1020px) {
  .villore-devices .device-stage,.workspace-scene .villore-devices .device-stage { padding:15px 19% 25px 2%; }
  .villore-devices .showcase-phone,.workspace-scene .villore-devices .showcase-phone { width:21%; max-width:200px; }
}
@media(max-width:600px) {
  .villore-devices .device-stage,.workspace-scene .villore-devices .device-stage {
    display:flex; flex-direction:column; align-items:flex-start; padding:12px 0 18px;
  }
  .villore-devices .showcase-laptop { width:96%; }
  .villore-devices .laptop-shell { padding:7px 4px 4px; border-radius:9px 9px 3px 3px; }
  .villore-devices .laptop-shell::before { top:2px; width:3px; height:3px; }
  .villore-devices .laptop-frame { border:0; border-radius:2px; }
  .villore-devices .laptop-keyboard { gap:1px; }
  .villore-devices .laptop-keyboard span { border-radius:1px; }
  .villore-devices .laptop-foot { height:4px; }
  .villore-devices .showcase-phone,.workspace-scene .villore-devices .showcase-phone {
    position:relative; right:auto; bottom:auto; margin:-18px 6px 0 auto;
    width:76%; max-width:260px; min-width:210px; padding:5px; border-radius:23px;
    transform:rotate(2deg);
  }
  .villore-devices .phone-frame,.workspace-scene .villore-devices .phone-frame { border-radius:18px; }
  .villore-tablet { padding:15px 10px; }
  .villore-tablet .tablet-shell { padding:7px; border-radius:17px; }
  .villore-tablet .tablet-screen { border:0; padding:0; border-radius:10px; }
  .villore-devices .concept-disclosure { text-align:left; margin-top:20px; }
  .villore-devices .showcase-caption { text-align:left; }
}
